Skip to content

Commit

Permalink
[feat] Regenerate library with OpenAPI Generator v5.4.0 (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus authored Mar 13, 2022
1 parent c6bf8e6 commit 2d0452d
Show file tree
Hide file tree
Showing 1,427 changed files with 84,219 additions and 48,650 deletions.
4 changes: 2 additions & 2 deletions kubernetes_asyncio/.openapi-generator/COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requested Commit: v4.3.1
Actual Commit: 003165c2c254ded7817760cc1d6f97af730d9d4d
Requested Commit: v5.4.0
Actual Commit: 4a36be70025e9c0d3ff61731618b7fc2d942c4b6
2 changes: 1 addition & 1 deletion kubernetes_asyncio/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.1
5.4.0
14 changes: 4 additions & 10 deletions kubernetes_asyncio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

- API version: v1.21.7
- Package version: 21.7.0-snapshot
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
- Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegen

## Requirements.

Expand Down Expand Up @@ -64,14 +64,10 @@ configuration = kubernetes_asyncio.client.Configuration(
# satisfies your auth use case.

# Configure API key authorization: BearerToken
configuration = kubernetes_asyncio.client.Configuration(
host = "http://localhost",
api_key = {
'authorization': 'YOUR_API_KEY'
}
)
configuration.api_key['BearerToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# configuration.api_key_prefix['BearerToken'] = 'Bearer'


# Enter a context with an instance of the API kubernetes_asyncio.client
Expand Down Expand Up @@ -578,8 +574,6 @@ Class | Method | HTTP request | Description
*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}/{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 |
Expand Down
1 change: 1 addition & 0 deletions kubernetes_asyncio/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
from kubernetes_asyncio.client.exceptions import ApiTypeError
from kubernetes_asyncio.client.exceptions import ApiValueError
from kubernetes_asyncio.client.exceptions import ApiKeyError
from kubernetes_asyncio.client.exceptions import ApiAttributeError
from kubernetes_asyncio.client.exceptions import ApiException
# import models into sdk package
from kubernetes_asyncio.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference
Expand Down
39 changes: 31 additions & 8 deletions kubernetes_asyncio/client/api/admissionregistration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,24 @@ def get_api_group(self, **kwargs): # noqa: E501
get information of a group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_group(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for 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
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: V1APIGroup
"""
kwargs['_return_http_data_only'] = True
return self.get_api_group_with_http_info(**kwargs) # noqa: E501
Expand All @@ -66,22 +70,32 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
get information of a group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_group_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this 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))
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:type _content_type: string, optional: force content-type for the request
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict))
"""

local_var_params = locals()
Expand All @@ -93,7 +107,10 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
'_request_timeout',
'_request_auth',
'_content_type',
'_headers'
]
)

Expand All @@ -112,7 +129,7 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501

query_params = []

header_params = {}
header_params = dict(local_var_params.get('_headers', {}))

form_params = []
local_var_files = {}
Expand All @@ -125,6 +142,11 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
# Authentication setting
auth_settings = ['BearerToken'] # noqa: E501

response_types_map = {
200: "V1APIGroup",
401: None,
}

return self.api_client.call_api(
'/apis/admissionregistration.k8s.io/', 'GET',
path_params,
Expand All @@ -133,10 +155,11 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1APIGroup', # noqa: E501
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
Loading

0 comments on commit 2d0452d

Please sign in to comment.