Generate client with 'version' parameter
This commit is contained in:
parent
69bce1aeb2
commit
1849b1fe56
@ -605,11 +605,11 @@ Class | Method | HTTP request | Description
|
||||
*StorageV1beta1Api* | [**patch_storage_class**](docs/StorageV1beta1Api.md#patch_storage_class) | **PATCH** /apis/storage.k8s.io/v1beta1/storageclasses/{name} |
|
||||
*StorageV1beta1Api* | [**read_storage_class**](docs/StorageV1beta1Api.md#read_storage_class) | **GET** /apis/storage.k8s.io/v1beta1/storageclasses/{name} |
|
||||
*StorageV1beta1Api* | [**replace_storage_class**](docs/StorageV1beta1Api.md#replace_storage_class) | **PUT** /apis/storage.k8s.io/v1beta1/storageclasses/{name} |
|
||||
*ThirdPartyResourcesApi* | [**create_third_party_resource**](docs/ThirdPartyResourcesApi.md#create_third_party_resource) | **POST** /apis/{fqdn}/v1/namespaces/{namespace}/{resource} | Create a Resource
|
||||
*ThirdPartyResourcesApi* | [**delete_third_party_resource**](docs/ThirdPartyResourcesApi.md#delete_third_party_resource) | **DELETE** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Deletes a specific Resource
|
||||
*ThirdPartyResourcesApi* | [**get_third_party_resource**](docs/ThirdPartyResourcesApi.md#get_third_party_resource) | **GET** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Gets a specific Resource
|
||||
*ThirdPartyResourcesApi* | [**list_third_party_resource**](docs/ThirdPartyResourcesApi.md#list_third_party_resource) | **GET** /apis/{fqdn}/v1/{resource} | Gets Resources
|
||||
*ThirdPartyResourcesApi* | [**update_third_party_resource**](docs/ThirdPartyResourcesApi.md#update_third_party_resource) | **PUT** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Update a Resource
|
||||
*ThirdPartyResourcesApi* | [**create_third_party_resource**](docs/ThirdPartyResourcesApi.md#create_third_party_resource) | **POST** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource} | Create a Resource
|
||||
*ThirdPartyResourcesApi* | [**delete_third_party_resource**](docs/ThirdPartyResourcesApi.md#delete_third_party_resource) | **DELETE** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Deletes a specific Resource
|
||||
*ThirdPartyResourcesApi* | [**get_third_party_resource**](docs/ThirdPartyResourcesApi.md#get_third_party_resource) | **GET** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Gets a specific Resource
|
||||
*ThirdPartyResourcesApi* | [**list_third_party_resource**](docs/ThirdPartyResourcesApi.md#list_third_party_resource) | **GET** /apis/{fqdn}/{version}/{resource} | Gets Resources
|
||||
*ThirdPartyResourcesApi* | [**update_third_party_resource**](docs/ThirdPartyResourcesApi.md#update_third_party_resource) | **PUT** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Update a Resource
|
||||
*VersionApi* | [**get_code**](docs/VersionApi.md#get_code) | **GET** /version/ |
|
||||
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ class ThirdPartyResourcesApi(object):
|
||||
config.api_client = ApiClient()
|
||||
self.api_client = config.api_client
|
||||
|
||||
def create_third_party_resource(self, namespace, fqdn, resource, body, **kwargs):
|
||||
def create_third_party_resource(self, namespace, fqdn, version, resource, body, **kwargs):
|
||||
"""
|
||||
Create a Resource
|
||||
Creates a third party resource of the type specified
|
||||
@ -50,12 +50,13 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.create_third_party_resource(namespace, fqdn, resource, body, callback=callback_function)
|
||||
>>> thread = api.create_third_party_resource(namespace, fqdn, version, resource, body, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:param object body: The JSON schema of the Resource to create. (required)
|
||||
:return: object
|
||||
@ -64,12 +65,12 @@ class ThirdPartyResourcesApi(object):
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('callback'):
|
||||
return self.create_third_party_resource_with_http_info(namespace, fqdn, resource, body, **kwargs)
|
||||
return self.create_third_party_resource_with_http_info(namespace, fqdn, version, resource, body, **kwargs)
|
||||
else:
|
||||
(data) = self.create_third_party_resource_with_http_info(namespace, fqdn, resource, body, **kwargs)
|
||||
(data) = self.create_third_party_resource_with_http_info(namespace, fqdn, version, resource, body, **kwargs)
|
||||
return data
|
||||
|
||||
def create_third_party_resource_with_http_info(self, namespace, fqdn, resource, body, **kwargs):
|
||||
def create_third_party_resource_with_http_info(self, namespace, fqdn, version, resource, body, **kwargs):
|
||||
"""
|
||||
Create a Resource
|
||||
Creates a third party resource of the type specified
|
||||
@ -79,12 +80,13 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.create_third_party_resource_with_http_info(namespace, fqdn, resource, body, callback=callback_function)
|
||||
>>> thread = api.create_third_party_resource_with_http_info(namespace, fqdn, version, resource, body, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:param object body: The JSON schema of the Resource to create. (required)
|
||||
:return: object
|
||||
@ -92,7 +94,7 @@ class ThirdPartyResourcesApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = ['namespace', 'fqdn', 'resource', 'body']
|
||||
all_params = ['namespace', 'fqdn', 'version', 'resource', 'body']
|
||||
all_params.append('callback')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
@ -113,6 +115,9 @@ class ThirdPartyResourcesApi(object):
|
||||
# verify the required parameter 'fqdn' is set
|
||||
if ('fqdn' not in params) or (params['fqdn'] is None):
|
||||
raise ValueError("Missing the required parameter `fqdn` when calling `create_third_party_resource`")
|
||||
# verify the required parameter 'version' is set
|
||||
if ('version' not in params) or (params['version'] is None):
|
||||
raise ValueError("Missing the required parameter `version` when calling `create_third_party_resource`")
|
||||
# verify the required parameter 'resource' is set
|
||||
if ('resource' not in params) or (params['resource'] is None):
|
||||
raise ValueError("Missing the required parameter `resource` when calling `create_third_party_resource`")
|
||||
@ -123,12 +128,14 @@ class ThirdPartyResourcesApi(object):
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/apis/{fqdn}/v1/namespaces/{namespace}/{resource}'.replace('{format}', 'json')
|
||||
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}'.replace('{format}', 'json')
|
||||
path_params = {}
|
||||
if 'namespace' in params:
|
||||
path_params['namespace'] = params['namespace']
|
||||
if 'fqdn' in params:
|
||||
path_params['fqdn'] = params['fqdn']
|
||||
if 'version' in params:
|
||||
path_params['version'] = params['version']
|
||||
if 'resource' in params:
|
||||
path_params['resource'] = params['resource']
|
||||
|
||||
@ -234,7 +241,7 @@ class ThirdPartyResourcesApi(object):
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
path_params = {}
|
||||
|
||||
query_params = {}
|
||||
@ -271,7 +278,7 @@ class ThirdPartyResourcesApi(object):
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def get_third_party_resource(self, namespace, name, fqdn, resource, **kwargs):
|
||||
def get_third_party_resource(self, namespace, name, fqdn, version, resource, **kwargs):
|
||||
"""
|
||||
Gets a specific Resource
|
||||
Returns a specific Resource in a namespace
|
||||
@ -281,13 +288,14 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.get_third_party_resource(namespace, name, fqdn, resource, callback=callback_function)
|
||||
>>> thread = api.get_third_party_resource(namespace, name, fqdn, version, resource, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str name: The Resource's name (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:return: object
|
||||
If the method is called asynchronously,
|
||||
@ -295,12 +303,12 @@ class ThirdPartyResourcesApi(object):
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('callback'):
|
||||
return self.get_third_party_resource_with_http_info(namespace, name, fqdn, resource, **kwargs)
|
||||
return self.get_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, **kwargs)
|
||||
else:
|
||||
(data) = self.get_third_party_resource_with_http_info(namespace, name, fqdn, resource, **kwargs)
|
||||
(data) = self.get_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, **kwargs)
|
||||
return data
|
||||
|
||||
def get_third_party_resource_with_http_info(self, namespace, name, fqdn, resource, **kwargs):
|
||||
def get_third_party_resource_with_http_info(self, namespace, name, fqdn, version, resource, **kwargs):
|
||||
"""
|
||||
Gets a specific Resource
|
||||
Returns a specific Resource in a namespace
|
||||
@ -310,20 +318,21 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.get_third_party_resource_with_http_info(namespace, name, fqdn, resource, callback=callback_function)
|
||||
>>> thread = api.get_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str name: The Resource's name (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:return: object
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = ['namespace', 'name', 'fqdn', 'resource']
|
||||
all_params = ['namespace', 'name', 'fqdn', 'version', 'resource']
|
||||
all_params.append('callback')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
@ -347,6 +356,9 @@ class ThirdPartyResourcesApi(object):
|
||||
# verify the required parameter 'fqdn' is set
|
||||
if ('fqdn' not in params) or (params['fqdn'] is None):
|
||||
raise ValueError("Missing the required parameter `fqdn` when calling `get_third_party_resource`")
|
||||
# verify the required parameter 'version' is set
|
||||
if ('version' not in params) or (params['version'] is None):
|
||||
raise ValueError("Missing the required parameter `version` when calling `get_third_party_resource`")
|
||||
# verify the required parameter 'resource' is set
|
||||
if ('resource' not in params) or (params['resource'] is None):
|
||||
raise ValueError("Missing the required parameter `resource` when calling `get_third_party_resource`")
|
||||
@ -354,7 +366,7 @@ class ThirdPartyResourcesApi(object):
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
path_params = {}
|
||||
if 'namespace' in params:
|
||||
path_params['namespace'] = params['namespace']
|
||||
@ -362,6 +374,8 @@ class ThirdPartyResourcesApi(object):
|
||||
path_params['name'] = params['name']
|
||||
if 'fqdn' in params:
|
||||
path_params['fqdn'] = params['fqdn']
|
||||
if 'version' in params:
|
||||
path_params['version'] = params['version']
|
||||
if 'resource' in params:
|
||||
path_params['resource'] = params['resource']
|
||||
|
||||
@ -391,7 +405,7 @@ class ThirdPartyResourcesApi(object):
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def list_third_party_resource(self, fqdn, resource, **kwargs):
|
||||
def list_third_party_resource(self, fqdn, version, resource, **kwargs):
|
||||
"""
|
||||
Gets Resources
|
||||
Returns a list of Resources
|
||||
@ -401,11 +415,12 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.list_third_party_resource(fqdn, resource, callback=callback_function)
|
||||
>>> thread = api.list_third_party_resource(fqdn, version, resource, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
: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: object
|
||||
@ -414,12 +429,12 @@ class ThirdPartyResourcesApi(object):
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('callback'):
|
||||
return self.list_third_party_resource_with_http_info(fqdn, resource, **kwargs)
|
||||
return self.list_third_party_resource_with_http_info(fqdn, version, resource, **kwargs)
|
||||
else:
|
||||
(data) = self.list_third_party_resource_with_http_info(fqdn, resource, **kwargs)
|
||||
(data) = self.list_third_party_resource_with_http_info(fqdn, version, resource, **kwargs)
|
||||
return data
|
||||
|
||||
def list_third_party_resource_with_http_info(self, fqdn, resource, **kwargs):
|
||||
def list_third_party_resource_with_http_info(self, fqdn, version, resource, **kwargs):
|
||||
"""
|
||||
Gets Resources
|
||||
Returns a list of Resources
|
||||
@ -429,11 +444,12 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.list_third_party_resource_with_http_info(fqdn, resource, callback=callback_function)
|
||||
>>> thread = api.list_third_party_resource_with_http_info(fqdn, version, resource, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
: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: object
|
||||
@ -441,7 +457,7 @@ class ThirdPartyResourcesApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = ['fqdn', 'resource', 'watch']
|
||||
all_params = ['fqdn', 'version', 'resource', 'watch']
|
||||
all_params.append('callback')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
@ -459,6 +475,9 @@ class ThirdPartyResourcesApi(object):
|
||||
# verify the required parameter 'fqdn' is set
|
||||
if ('fqdn' not in params) or (params['fqdn'] is None):
|
||||
raise ValueError("Missing the required parameter `fqdn` when calling `list_third_party_resource`")
|
||||
# verify the required parameter 'version' is set
|
||||
if ('version' not in params) or (params['version'] is None):
|
||||
raise ValueError("Missing the required parameter `version` when calling `list_third_party_resource`")
|
||||
# verify the required parameter 'resource' is set
|
||||
if ('resource' not in params) or (params['resource'] is None):
|
||||
raise ValueError("Missing the required parameter `resource` when calling `list_third_party_resource`")
|
||||
@ -466,10 +485,12 @@ class ThirdPartyResourcesApi(object):
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/apis/{fqdn}/v1/{resource}'.replace('{format}', 'json')
|
||||
resource_path = '/apis/{fqdn}/{version}/{resource}'.replace('{format}', 'json')
|
||||
path_params = {}
|
||||
if 'fqdn' in params:
|
||||
path_params['fqdn'] = params['fqdn']
|
||||
if 'version' in params:
|
||||
path_params['version'] = params['version']
|
||||
if 'resource' in params:
|
||||
path_params['resource'] = params['resource']
|
||||
|
||||
@ -501,7 +522,7 @@ class ThirdPartyResourcesApi(object):
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def update_third_party_resource(self, namespace, fqdn, resource, body, **kwargs):
|
||||
def update_third_party_resource(self, namespace, name, fqdn, version, resource, body, **kwargs):
|
||||
"""
|
||||
Update a Resource
|
||||
Update the specified third party resource of the type specified
|
||||
@ -511,12 +532,14 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.update_third_party_resource(namespace, fqdn, resource, body, callback=callback_function)
|
||||
>>> thread = api.update_third_party_resource(namespace, name, fqdn, version, resource, body, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str name: The Resource's name (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:param object body: The JSON schema of the Resource to create. (required)
|
||||
:return: object
|
||||
@ -525,12 +548,12 @@ class ThirdPartyResourcesApi(object):
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('callback'):
|
||||
return self.update_third_party_resource_with_http_info(namespace, fqdn, resource, body, **kwargs)
|
||||
return self.update_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, body, **kwargs)
|
||||
else:
|
||||
(data) = self.update_third_party_resource_with_http_info(namespace, fqdn, resource, body, **kwargs)
|
||||
(data) = self.update_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, body, **kwargs)
|
||||
return data
|
||||
|
||||
def update_third_party_resource_with_http_info(self, namespace, fqdn, resource, body, **kwargs):
|
||||
def update_third_party_resource_with_http_info(self, namespace, name, fqdn, version, resource, body, **kwargs):
|
||||
"""
|
||||
Update a Resource
|
||||
Update the specified third party resource of the type specified
|
||||
@ -540,12 +563,14 @@ class ThirdPartyResourcesApi(object):
|
||||
>>> def callback_function(response):
|
||||
>>> pprint(response)
|
||||
>>>
|
||||
>>> thread = api.update_third_party_resource_with_http_info(namespace, fqdn, resource, body, callback=callback_function)
|
||||
>>> thread = api.update_third_party_resource_with_http_info(namespace, name, fqdn, version, resource, body, callback=callback_function)
|
||||
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
:param str namespace: The Resource's namespace (required)
|
||||
:param str name: The Resource's name (required)
|
||||
:param str fqdn: The Third party Resource fqdn (required)
|
||||
:param str version: The Third party Resource version (required)
|
||||
:param str resource: The Resource type (required)
|
||||
:param object body: The JSON schema of the Resource to create. (required)
|
||||
:return: object
|
||||
@ -553,7 +578,7 @@ class ThirdPartyResourcesApi(object):
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = ['namespace', 'fqdn', 'resource', 'body']
|
||||
all_params = ['namespace', 'name', 'fqdn', 'version', 'resource', 'body']
|
||||
all_params.append('callback')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
@ -571,9 +596,15 @@ class ThirdPartyResourcesApi(object):
|
||||
# verify the required parameter 'namespace' is set
|
||||
if ('namespace' not in params) or (params['namespace'] is None):
|
||||
raise ValueError("Missing the required parameter `namespace` when calling `update_third_party_resource`")
|
||||
# verify the required parameter 'name' is set
|
||||
if ('name' not in params) or (params['name'] is None):
|
||||
raise ValueError("Missing the required parameter `name` when calling `update_third_party_resource`")
|
||||
# verify the required parameter 'fqdn' is set
|
||||
if ('fqdn' not in params) or (params['fqdn'] is None):
|
||||
raise ValueError("Missing the required parameter `fqdn` when calling `update_third_party_resource`")
|
||||
# verify the required parameter 'version' is set
|
||||
if ('version' not in params) or (params['version'] is None):
|
||||
raise ValueError("Missing the required parameter `version` when calling `update_third_party_resource`")
|
||||
# verify the required parameter 'resource' is set
|
||||
if ('resource' not in params) or (params['resource'] is None):
|
||||
raise ValueError("Missing the required parameter `resource` when calling `update_third_party_resource`")
|
||||
@ -584,12 +615,16 @@ class ThirdPartyResourcesApi(object):
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}'.replace('{format}', 'json')
|
||||
path_params = {}
|
||||
if 'namespace' in params:
|
||||
path_params['namespace'] = params['namespace']
|
||||
if 'name' in params:
|
||||
path_params['name'] = params['name']
|
||||
if 'fqdn' in params:
|
||||
path_params['fqdn'] = params['fqdn']
|
||||
if 'version' in params:
|
||||
path_params['version'] = params['version']
|
||||
if 'resource' in params:
|
||||
path_params['resource'] = params['resource']
|
||||
|
||||
|
||||
@ -4,15 +4,15 @@ All URIs are relative to *https://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**create_third_party_resource**](ThirdPartyResourcesApi.md#create_third_party_resource) | **POST** /apis/{fqdn}/v1/namespaces/{namespace}/{resource} | Create a Resource
|
||||
[**delete_third_party_resource**](ThirdPartyResourcesApi.md#delete_third_party_resource) | **DELETE** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Deletes a specific Resource
|
||||
[**get_third_party_resource**](ThirdPartyResourcesApi.md#get_third_party_resource) | **GET** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Gets a specific Resource
|
||||
[**list_third_party_resource**](ThirdPartyResourcesApi.md#list_third_party_resource) | **GET** /apis/{fqdn}/v1/{resource} | Gets Resources
|
||||
[**update_third_party_resource**](ThirdPartyResourcesApi.md#update_third_party_resource) | **PUT** /apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name} | Update a Resource
|
||||
[**create_third_party_resource**](ThirdPartyResourcesApi.md#create_third_party_resource) | **POST** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource} | Create a Resource
|
||||
[**delete_third_party_resource**](ThirdPartyResourcesApi.md#delete_third_party_resource) | **DELETE** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Deletes a specific Resource
|
||||
[**get_third_party_resource**](ThirdPartyResourcesApi.md#get_third_party_resource) | **GET** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Gets a specific Resource
|
||||
[**list_third_party_resource**](ThirdPartyResourcesApi.md#list_third_party_resource) | **GET** /apis/{fqdn}/{version}/{resource} | Gets Resources
|
||||
[**update_third_party_resource**](ThirdPartyResourcesApi.md#update_third_party_resource) | **PUT** /apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name} | Update a Resource
|
||||
|
||||
|
||||
# **create_third_party_resource**
|
||||
> object create_third_party_resource(namespace, fqdn, resource, body)
|
||||
> object create_third_party_resource(namespace, fqdn, version, resource, body)
|
||||
|
||||
Create a Resource
|
||||
|
||||
@ -35,12 +35,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
|
||||
api_instance = kubernetes.client.ThirdPartyResourcesApi()
|
||||
namespace = 'namespace_example' # str | The Resource's namespace
|
||||
fqdn = 'fqdn_example' # str | The Third party Resource fqdn
|
||||
version = 'version_example' # str | The Third party Resource version
|
||||
resource = 'resource_example' # str | The Resource type
|
||||
body = NULL # object | The JSON schema of the Resource to create.
|
||||
|
||||
try:
|
||||
# Create a Resource
|
||||
api_response = api_instance.create_third_party_resource(namespace, fqdn, resource, body)
|
||||
api_response = api_instance.create_third_party_resource(namespace, fqdn, version, resource, body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling ThirdPartyResourcesApi->create_third_party_resource: %s\n" % e)
|
||||
@ -52,6 +53,7 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**namespace** | **str**| The Resource's namespace |
|
||||
**fqdn** | **str**| The Third party Resource fqdn |
|
||||
**version** | **str**| The Third party Resource version |
|
||||
**resource** | **str**| The Resource type |
|
||||
**body** | **object**| The JSON schema of the Resource to create. |
|
||||
|
||||
@ -130,7 +132,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[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_third_party_resource**
|
||||
> object get_third_party_resource(namespace, name, fqdn, resource)
|
||||
> object get_third_party_resource(namespace, name, fqdn, version, resource)
|
||||
|
||||
Gets a specific Resource
|
||||
|
||||
@ -154,11 +156,12 @@ api_instance = kubernetes.client.ThirdPartyResourcesApi()
|
||||
namespace = 'namespace_example' # str | The Resource's namespace
|
||||
name = 'name_example' # str | The Resource's name
|
||||
fqdn = 'fqdn_example' # str | The Third party Resource fqdn
|
||||
version = 'version_example' # str | The Third party Resource version
|
||||
resource = 'resource_example' # str | The Resource type
|
||||
|
||||
try:
|
||||
# Gets a specific Resource
|
||||
api_response = api_instance.get_third_party_resource(namespace, name, fqdn, resource)
|
||||
api_response = api_instance.get_third_party_resource(namespace, name, fqdn, version, resource)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling ThirdPartyResourcesApi->get_third_party_resource: %s\n" % e)
|
||||
@ -171,6 +174,7 @@ Name | Type | Description | Notes
|
||||
**namespace** | **str**| The Resource's namespace |
|
||||
**name** | **str**| The Resource's name |
|
||||
**fqdn** | **str**| The Third party Resource fqdn |
|
||||
**version** | **str**| The Third party Resource version |
|
||||
**resource** | **str**| The Resource type |
|
||||
|
||||
### Return type
|
||||
@ -189,7 +193,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[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_third_party_resource**
|
||||
> object list_third_party_resource(fqdn, resource, watch=watch)
|
||||
> object list_third_party_resource(fqdn, version, resource, watch=watch)
|
||||
|
||||
Gets Resources
|
||||
|
||||
@ -211,12 +215,13 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
|
||||
# create an instance of the API class
|
||||
api_instance = kubernetes.client.ThirdPartyResourcesApi()
|
||||
fqdn = 'fqdn_example' # str | The Third party Resource fqdn
|
||||
version = 'version_example' # str | The Third party Resource version
|
||||
resource = 'resource_example' # str | The Resource type
|
||||
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:
|
||||
# Gets Resources
|
||||
api_response = api_instance.list_third_party_resource(fqdn, resource, watch=watch)
|
||||
api_response = api_instance.list_third_party_resource(fqdn, version, resource, watch=watch)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling ThirdPartyResourcesApi->list_third_party_resource: %s\n" % e)
|
||||
@ -227,6 +232,7 @@ except ApiException as e:
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fqdn** | **str**| The Third party Resource fqdn |
|
||||
**version** | **str**| The Third party Resource version |
|
||||
**resource** | **str**| The Resource type |
|
||||
**watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional]
|
||||
|
||||
@ -246,7 +252,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **update_third_party_resource**
|
||||
> object update_third_party_resource(namespace, fqdn, resource, body)
|
||||
> object update_third_party_resource(namespace, name, fqdn, version, resource, body)
|
||||
|
||||
Update a Resource
|
||||
|
||||
@ -268,13 +274,15 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
|
||||
# create an instance of the API class
|
||||
api_instance = kubernetes.client.ThirdPartyResourcesApi()
|
||||
namespace = 'namespace_example' # str | The Resource's namespace
|
||||
name = 'name_example' # str | The Resource's name
|
||||
fqdn = 'fqdn_example' # str | The Third party Resource fqdn
|
||||
version = 'version_example' # str | The Third party Resource version
|
||||
resource = 'resource_example' # str | The Resource type
|
||||
body = NULL # object | The JSON schema of the Resource to create.
|
||||
|
||||
try:
|
||||
# Update a Resource
|
||||
api_response = api_instance.update_third_party_resource(namespace, fqdn, resource, body)
|
||||
api_response = api_instance.update_third_party_resource(namespace, name, fqdn, version, resource, body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling ThirdPartyResourcesApi->update_third_party_resource: %s\n" % e)
|
||||
@ -285,7 +293,9 @@ except ApiException as e:
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**namespace** | **str**| The Resource's namespace |
|
||||
**name** | **str**| The Resource's name |
|
||||
**fqdn** | **str**| The Third party Resource fqdn |
|
||||
**version** | **str**| The Third party Resource version |
|
||||
**resource** | **str**| The Resource type |
|
||||
**body** | **object**| The JSON schema of the Resource to create. |
|
||||
|
||||
|
||||
@ -33250,48 +33250,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/apis/{fqdn}/v1/{resource}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A list of Resources",
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"uniqueItems": true,
|
||||
"in": "query",
|
||||
"type": "boolean",
|
||||
"name": "watch",
|
||||
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion."
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource fqdn",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "fqdn",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource type",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "resource",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"third_party_resources"
|
||||
],
|
||||
"summary": "Gets Resources",
|
||||
"operationId": "listThirdPartyResource",
|
||||
"description": "Returns a list of Resources"
|
||||
}
|
||||
},
|
||||
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": {
|
||||
"/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}": {
|
||||
"put": {
|
||||
"responses": {
|
||||
"201": {
|
||||
@ -33309,6 +33268,13 @@
|
||||
"name": "namespace",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource's name",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource fqdn",
|
||||
"required": true,
|
||||
@ -33316,6 +33282,13 @@
|
||||
"name": "fqdn",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource version",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "version",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource type",
|
||||
"required": true,
|
||||
@ -33418,6 +33391,13 @@
|
||||
"name": "fqdn",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource version",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "version",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource type",
|
||||
"required": true,
|
||||
@ -33434,7 +33414,7 @@
|
||||
"description": "Returns a specific Resource in a namespace"
|
||||
}
|
||||
},
|
||||
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": {
|
||||
"/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}": {
|
||||
"post": {
|
||||
"responses": {
|
||||
"201": {
|
||||
@ -33459,6 +33439,13 @@
|
||||
"name": "fqdn",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource version",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "version",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource type",
|
||||
"required": true,
|
||||
@ -33483,6 +33470,54 @@
|
||||
"operationId": "createThirdPartyResource",
|
||||
"description": "Creates a third party resource of the type specified"
|
||||
}
|
||||
},
|
||||
"/apis/{fqdn}/{version}/{resource}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A list of Resources",
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"uniqueItems": true,
|
||||
"in": "query",
|
||||
"type": "boolean",
|
||||
"name": "watch",
|
||||
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion."
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource fqdn",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "fqdn",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Third party Resource version",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "version",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"description": "The Resource type",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"name": "resource",
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"third_party_resources"
|
||||
],
|
||||
"summary": "Gets Resources",
|
||||
"operationId": "listThirdPartyResource",
|
||||
"description": "Returns a list of Resources"
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user