language
stringclasses 6
values | original_string
stringlengths 25
887k
| text
stringlengths 25
887k
|
---|---|---|
Python | def create_backup_metadata_with_http_info(self, cluster_name, metadata_backup_payload, **kwargs): # noqa: E501
"""Create List of configured MetaData Backups Volume with their scheduled time # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_backup_metadata_with_http_info(cluster_name, metadata_backup_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetadataBackupPayload metadata_backup_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: InlineResponse2011
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'metadata_backup_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_backup_metadata" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_backup_metadata`") # noqa: E501
# verify the required parameter 'metadata_backup_payload' is set
if ('metadata_backup_payload' not in params or
params['metadata_backup_payload'] is None):
raise ValueError("Missing the required parameter `metadata_backup_payload` when calling `create_backup_metadata`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'metadata_backup_payload' in params:
body_params = params['metadata_backup_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/metadata_backups', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2011', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_backup_metadata_with_http_info(self, cluster_name, metadata_backup_payload, **kwargs): # noqa: E501
"""Create List of configured MetaData Backups Volume with their scheduled time # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_backup_metadata_with_http_info(cluster_name, metadata_backup_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetadataBackupPayload metadata_backup_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: InlineResponse2011
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'metadata_backup_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_backup_metadata" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_backup_metadata`") # noqa: E501
# verify the required parameter 'metadata_backup_payload' is set
if ('metadata_backup_payload' not in params or
params['metadata_backup_payload'] is None):
raise ValueError("Missing the required parameter `metadata_backup_payload` when calling `create_backup_metadata`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'metadata_backup_payload' in params:
body_params = params['metadata_backup_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/metadata_backups', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2011', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_backup_metadata(self, cluster_name, **kwargs): # noqa: E501
"""Delete configured Metadata backup settings # 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_backup_metadata(cluster_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
: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.delete_backup_metadata_with_http_info(cluster_name, **kwargs) # noqa: E501
else:
(data) = self.delete_backup_metadata_with_http_info(cluster_name, **kwargs) # noqa: E501
return data | def delete_backup_metadata(self, cluster_name, **kwargs): # noqa: E501
"""Delete configured Metadata backup settings # 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_backup_metadata(cluster_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
: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.delete_backup_metadata_with_http_info(cluster_name, **kwargs) # noqa: E501
else:
(data) = self.delete_backup_metadata_with_http_info(cluster_name, **kwargs) # noqa: E501
return data |
Python | def delete_backup_metadata_with_http_info(self, cluster_name, **kwargs): # noqa: E501
"""Delete configured Metadata backup settings # 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_backup_metadata_with_http_info(cluster_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_backup_metadata" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_backup_metadata`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/metadata_backups', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_backup_metadata_with_http_info(self, cluster_name, **kwargs): # noqa: E501
"""Delete configured Metadata backup settings # 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_backup_metadata_with_http_info(cluster_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_backup_metadata" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_backup_metadata`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/metadata_backups', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def create_meta_volume(self, cluster_name, meta_volume_payload, **kwargs): # noqa: E501
"""Create a new MetaVolume # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_meta_volume(cluster_name, meta_volume_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetaVolumePayload meta_volume_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, **kwargs) # noqa: E501
else:
(data) = self.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, **kwargs) # noqa: E501
return data | def create_meta_volume(self, cluster_name, meta_volume_payload, **kwargs): # noqa: E501
"""Create a new MetaVolume # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_meta_volume(cluster_name, meta_volume_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetaVolumePayload meta_volume_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, **kwargs) # noqa: E501
else:
(data) = self.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, **kwargs) # noqa: E501
return data |
Python | def create_meta_volume_with_http_info(self, cluster_name, meta_volume_payload, **kwargs): # noqa: E501
"""Create a new MetaVolume # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetaVolumePayload meta_volume_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'meta_volume_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_meta_volume`") # noqa: E501
# verify the required parameter 'meta_volume_payload' is set
if ('meta_volume_payload' not in params or
params['meta_volume_payload'] is None):
raise ValueError("Missing the required parameter `meta_volume_payload` when calling `create_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'meta_volume_payload' in params:
body_params = params['meta_volume_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='MetaVolume', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_meta_volume_with_http_info(self, cluster_name, meta_volume_payload, **kwargs): # noqa: E501
"""Create a new MetaVolume # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_meta_volume_with_http_info(cluster_name, meta_volume_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param MetaVolumePayload meta_volume_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'meta_volume_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_meta_volume`") # noqa: E501
# verify the required parameter 'meta_volume_payload' is set
if ('meta_volume_payload' not in params or
params['meta_volume_payload'] is None):
raise ValueError("Missing the required parameter `meta_volume_payload` when calling `create_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'meta_volume_payload' in params:
body_params = params['meta_volume_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='MetaVolume', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_meta_volume(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single MetaVolume # 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_meta_volume(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_meta_volume_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_meta_volume_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data | def delete_meta_volume(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single MetaVolume # 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_meta_volume(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_meta_volume_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_meta_volume_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data |
Python | def delete_meta_volume_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single MetaVolume # 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_meta_volume_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_meta_volume`") # noqa: E501
# 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 `delete_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_meta_volume_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single MetaVolume # 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_meta_volume_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_meta_volume`") # noqa: E501
# 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 `delete_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def patch_meta_volume(self, cluster_name, name, meta_volume_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a MetaVolume # noqa: E501
Settable attributes: 'active' . NOTE: only true value is allowed # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_meta_volume(cluster_name, name, meta_volume_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] meta_volume_patch_payload: (required)
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, **kwargs) # noqa: E501
return data | def patch_meta_volume(self, cluster_name, name, meta_volume_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a MetaVolume # noqa: E501
Settable attributes: 'active' . NOTE: only true value is allowed # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_meta_volume(cluster_name, name, meta_volume_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] meta_volume_patch_payload: (required)
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, **kwargs) # noqa: E501
return data |
Python | def patch_meta_volume_with_http_info(self, cluster_name, name, meta_volume_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a MetaVolume # noqa: E501
Settable attributes: 'active' . NOTE: only true value is allowed # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] meta_volume_patch_payload: (required)
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'name', 'meta_volume_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `patch_meta_volume`") # noqa: E501
# 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 `patch_meta_volume`") # noqa: E501
# verify the required parameter 'meta_volume_patch_payload' is set
if ('meta_volume_patch_payload' not in params or
params['meta_volume_patch_payload'] is None):
raise ValueError("Missing the required parameter `meta_volume_patch_payload` when calling `patch_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'meta_volume_patch_payload' in params:
body_params = params['meta_volume_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='MetaVolume', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def patch_meta_volume_with_http_info(self, cluster_name, name, meta_volume_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a MetaVolume # noqa: E501
Settable attributes: 'active' . NOTE: only true value is allowed # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_meta_volume_with_http_info(cluster_name, name, meta_volume_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] meta_volume_patch_payload: (required)
:return: MetaVolume
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'name', 'meta_volume_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_meta_volume" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `patch_meta_volume`") # noqa: E501
# 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 `patch_meta_volume`") # noqa: E501
# verify the required parameter 'meta_volume_patch_payload' is set
if ('meta_volume_patch_payload' not in params or
params['meta_volume_patch_payload'] is None):
raise ValueError("Missing the required parameter `meta_volume_patch_payload` when calling `patch_meta_volume`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'meta_volume_patch_payload' in params:
body_params = params['meta_volume_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/meta_volumes/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='MetaVolume', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def branding(self):
"""Gets the branding of this SystemConfig. # noqa: E501
:return: The branding of this SystemConfig. # noqa: E501
:rtype: SystemConfigBranding
"""
return self._branding | def branding(self):
"""Gets the branding of this SystemConfig. # noqa: E501
:return: The branding of this SystemConfig. # noqa: E501
:rtype: SystemConfigBranding
"""
return self._branding |
Python | def branding(self, branding):
"""Sets the branding of this SystemConfig.
:param branding: The branding of this SystemConfig. # noqa: E501
:type: SystemConfigBranding
"""
self._branding = branding | def branding(self, branding):
"""Sets the branding of this SystemConfig.
:param branding: The branding of this SystemConfig. # noqa: E501
:type: SystemConfigBranding
"""
self._branding = branding |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(SystemConfig, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(SystemConfig, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(DistributedVirtualVolumeExpandPayload, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(DistributedVirtualVolumeExpandPayload, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InitiatorPort, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InitiatorPort, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def create_device_migration(self, device_migration_payload, **kwargs): # noqa: E501
"""Create a new DeviceMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_device_migration(device_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DeviceMigrationPayload device_migration_payload: (required)
:return: DeviceMigration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_device_migration_with_http_info(device_migration_payload, **kwargs) # noqa: E501
else:
(data) = self.create_device_migration_with_http_info(device_migration_payload, **kwargs) # noqa: E501
return data | def create_device_migration(self, device_migration_payload, **kwargs): # noqa: E501
"""Create a new DeviceMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_device_migration(device_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DeviceMigrationPayload device_migration_payload: (required)
:return: DeviceMigration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_device_migration_with_http_info(device_migration_payload, **kwargs) # noqa: E501
else:
(data) = self.create_device_migration_with_http_info(device_migration_payload, **kwargs) # noqa: E501
return data |
Python | def create_device_migration_with_http_info(self, device_migration_payload, **kwargs): # noqa: E501
"""Create a new DeviceMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_device_migration_with_http_info(device_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DeviceMigrationPayload device_migration_payload: (required)
:return: DeviceMigration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_migration_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_device_migration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_migration_payload' is set
if ('device_migration_payload' not in params or
params['device_migration_payload'] is None):
raise ValueError("Missing the required parameter `device_migration_payload` when calling `create_device_migration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'device_migration_payload' in params:
body_params = params['device_migration_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/device_migrations', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DeviceMigration', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_device_migration_with_http_info(self, device_migration_payload, **kwargs): # noqa: E501
"""Create a new DeviceMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_device_migration_with_http_info(device_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param DeviceMigrationPayload device_migration_payload: (required)
:return: DeviceMigration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_migration_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_device_migration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_migration_payload' is set
if ('device_migration_payload' not in params or
params['device_migration_payload'] is None):
raise ValueError("Missing the required parameter `device_migration_payload` when calling `create_device_migration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'device_migration_payload' in params:
body_params = params['device_migration_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/device_migrations', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DeviceMigration', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def create_extent_migration(self, extent_migration_payload, **kwargs): # noqa: E501
"""Create a new ExtentMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_migration(extent_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ExtentMigrationPayload extent_migration_payload: (required)
:return: ExtentMigration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_extent_migration_with_http_info(extent_migration_payload, **kwargs) # noqa: E501
else:
(data) = self.create_extent_migration_with_http_info(extent_migration_payload, **kwargs) # noqa: E501
return data | def create_extent_migration(self, extent_migration_payload, **kwargs): # noqa: E501
"""Create a new ExtentMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_migration(extent_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ExtentMigrationPayload extent_migration_payload: (required)
:return: ExtentMigration
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_extent_migration_with_http_info(extent_migration_payload, **kwargs) # noqa: E501
else:
(data) = self.create_extent_migration_with_http_info(extent_migration_payload, **kwargs) # noqa: E501
return data |
Python | def create_extent_migration_with_http_info(self, extent_migration_payload, **kwargs): # noqa: E501
"""Create a new ExtentMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_migration_with_http_info(extent_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ExtentMigrationPayload extent_migration_payload: (required)
:return: ExtentMigration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['extent_migration_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_extent_migration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'extent_migration_payload' is set
if ('extent_migration_payload' not in params or
params['extent_migration_payload'] is None):
raise ValueError("Missing the required parameter `extent_migration_payload` when calling `create_extent_migration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'extent_migration_payload' in params:
body_params = params['extent_migration_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/extent_migrations', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ExtentMigration', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_extent_migration_with_http_info(self, extent_migration_payload, **kwargs): # noqa: E501
"""Create a new ExtentMigration # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_migration_with_http_info(extent_migration_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ExtentMigrationPayload extent_migration_payload: (required)
:return: ExtentMigration
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['extent_migration_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_extent_migration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'extent_migration_payload' is set
if ('extent_migration_payload' not in params or
params['extent_migration_payload'] is None):
raise ValueError("Missing the required parameter `extent_migration_payload` when calling `create_extent_migration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'extent_migration_payload' in params:
body_params = params['extent_migration_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/extent_migrations', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ExtentMigration', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_device_migration(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed DeviceMigration # 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_device_migration(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_device_migration_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_device_migration_with_http_info(name, **kwargs) # noqa: E501
return data | def delete_device_migration(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed DeviceMigration # 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_device_migration(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_device_migration_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_device_migration_with_http_info(name, **kwargs) # noqa: E501
return data |
Python | def delete_device_migration_with_http_info(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed DeviceMigration # 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_device_migration_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_device_migration" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_device_migration`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/device_migrations/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_device_migration_with_http_info(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed DeviceMigration # 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_device_migration_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_device_migration" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_device_migration`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/device_migrations/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_extent_migration(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed ExtentMigration # 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_extent_migration(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_extent_migration_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_extent_migration_with_http_info(name, **kwargs) # noqa: E501
return data | def delete_extent_migration(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed ExtentMigration # 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_extent_migration(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_extent_migration_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_extent_migration_with_http_info(name, **kwargs) # noqa: E501
return data |
Python | def delete_extent_migration_with_http_info(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed ExtentMigration # 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_extent_migration_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_extent_migration" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_extent_migration`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/extent_migrations/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_extent_migration_with_http_info(self, name, **kwargs): # noqa: E501
"""Deletes a single canceled or committed ExtentMigration # 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_extent_migration_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_extent_migration" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_extent_migration`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/data_migrations/extent_migrations/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def diagnostic(self):
"""Gets the diagnostic of this ClusterWitnessComponents. # noqa: E501
:return: The diagnostic of this ClusterWitnessComponents. # noqa: E501
:rtype: str
"""
return self._diagnostic | def diagnostic(self):
"""Gets the diagnostic of this ClusterWitnessComponents. # noqa: E501
:return: The diagnostic of this ClusterWitnessComponents. # noqa: E501
:rtype: str
"""
return self._diagnostic |
Python | def diagnostic(self, diagnostic):
"""Sets the diagnostic of this ClusterWitnessComponents.
:param diagnostic: The diagnostic of this ClusterWitnessComponents. # noqa: E501
:type: str
"""
self._diagnostic = diagnostic | def diagnostic(self, diagnostic):
"""Sets the diagnostic of this ClusterWitnessComponents.
:param diagnostic: The diagnostic of this ClusterWitnessComponents. # noqa: E501
:type: str
"""
self._diagnostic = diagnostic |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ClusterWitnessComponents, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ClusterWitnessComponents, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StorageArrayFamily, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StorageArrayFamily, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StorageArray, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StorageArray, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def connectivity(self):
"""Gets the connectivity of this ArrayManagementProvider. # noqa: E501
:return: The connectivity of this ArrayManagementProvider. # noqa: E501
:rtype: str
"""
return self._connectivity | def connectivity(self):
"""Gets the connectivity of this ArrayManagementProvider. # noqa: E501
:return: The connectivity of this ArrayManagementProvider. # noqa: E501
:rtype: str
"""
return self._connectivity |
Python | def connectivity(self, connectivity):
"""Sets the connectivity of this ArrayManagementProvider.
:param connectivity: The connectivity of this ArrayManagementProvider. # noqa: E501
:type: str
"""
allowed_values = ["connected", "unreachable"] # noqa: E501
if connectivity not in allowed_values:
raise ValueError(
"Invalid value for `connectivity` ({0}), must be one of {1}" # noqa: E501
.format(connectivity, allowed_values)
)
self._connectivity = connectivity | def connectivity(self, connectivity):
"""Sets the connectivity of this ArrayManagementProvider.
:param connectivity: The connectivity of this ArrayManagementProvider. # noqa: E501
:type: str
"""
allowed_values = ["connected", "unreachable"] # noqa: E501
if connectivity not in allowed_values:
raise ValueError(
"Invalid value for `connectivity` ({0}), must be one of {1}" # noqa: E501
.format(connectivity, allowed_values)
)
self._connectivity = connectivity |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ArrayManagementProvider, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ArrayManagementProvider, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def register_array_management_provider(self, cluster_name, amp_payload, **kwargs): # noqa: E501
"""Register a new ArrayManagementProvider # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.register_array_management_provider(cluster_name, amp_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param AmpPayload amp_payload: (required)
:return: ArrayManagementProvider
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.register_array_management_provider_with_http_info(cluster_name, amp_payload, **kwargs) # noqa: E501
else:
(data) = self.register_array_management_provider_with_http_info(cluster_name, amp_payload, **kwargs) # noqa: E501
return data | def register_array_management_provider(self, cluster_name, amp_payload, **kwargs): # noqa: E501
"""Register a new ArrayManagementProvider # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.register_array_management_provider(cluster_name, amp_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param AmpPayload amp_payload: (required)
:return: ArrayManagementProvider
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.register_array_management_provider_with_http_info(cluster_name, amp_payload, **kwargs) # noqa: E501
else:
(data) = self.register_array_management_provider_with_http_info(cluster_name, amp_payload, **kwargs) # noqa: E501
return data |
Python | def register_array_management_provider_with_http_info(self, cluster_name, amp_payload, **kwargs): # noqa: E501
"""Register a new ArrayManagementProvider # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.register_array_management_provider_with_http_info(cluster_name, amp_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param AmpPayload amp_payload: (required)
:return: ArrayManagementProvider
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'amp_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method register_array_management_provider" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `register_array_management_provider`") # noqa: E501
# verify the required parameter 'amp_payload' is set
if ('amp_payload' not in params or
params['amp_payload'] is None):
raise ValueError("Missing the required parameter `amp_payload` when calling `register_array_management_provider`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'amp_payload' in params:
body_params = params['amp_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/array_management_providers', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ArrayManagementProvider', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def register_array_management_provider_with_http_info(self, cluster_name, amp_payload, **kwargs): # noqa: E501
"""Register a new ArrayManagementProvider # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.register_array_management_provider_with_http_info(cluster_name, amp_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param AmpPayload amp_payload: (required)
:return: ArrayManagementProvider
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'amp_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method register_array_management_provider" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `register_array_management_provider`") # noqa: E501
# verify the required parameter 'amp_payload' is set
if ('amp_payload' not in params or
params['amp_payload'] is None):
raise ValueError("Missing the required parameter `amp_payload` when calling `register_array_management_provider`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'amp_payload' in params:
body_params = params['amp_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/array_management_providers', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ArrayManagementProvider', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def unregister_array_management_provider(self, cluster_name, name, **kwargs): # noqa: E501
"""Unregisters an AMP # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.unregister_array_management_provider(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.unregister_array_management_provider_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.unregister_array_management_provider_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data | def unregister_array_management_provider(self, cluster_name, name, **kwargs): # noqa: E501
"""Unregisters an AMP # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.unregister_array_management_provider(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.unregister_array_management_provider_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.unregister_array_management_provider_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data |
Python | def unregister_array_management_provider_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Unregisters an AMP # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.unregister_array_management_provider_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method unregister_array_management_provider" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `unregister_array_management_provider`") # noqa: E501
# 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 `unregister_array_management_provider`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/array_management_providers/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def unregister_array_management_provider_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Unregisters an AMP # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.unregister_array_management_provider_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method unregister_array_management_provider" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `unregister_array_management_provider`") # noqa: E501
# 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 `unregister_array_management_provider`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/array_management_providers/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def create_extent(self, cluster_name, extent_payload, **kwargs): # noqa: E501
"""Create a new Extent # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent(cluster_name, extent_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ExtentPayload extent_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_extent_with_http_info(cluster_name, extent_payload, **kwargs) # noqa: E501
else:
(data) = self.create_extent_with_http_info(cluster_name, extent_payload, **kwargs) # noqa: E501
return data | def create_extent(self, cluster_name, extent_payload, **kwargs): # noqa: E501
"""Create a new Extent # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent(cluster_name, extent_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ExtentPayload extent_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_extent_with_http_info(cluster_name, extent_payload, **kwargs) # noqa: E501
else:
(data) = self.create_extent_with_http_info(cluster_name, extent_payload, **kwargs) # noqa: E501
return data |
Python | def create_extent_with_http_info(self, cluster_name, extent_payload, **kwargs): # noqa: E501
"""Create a new Extent # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_with_http_info(cluster_name, extent_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ExtentPayload extent_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'extent_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_extent`") # noqa: E501
# verify the required parameter 'extent_payload' is set
if ('extent_payload' not in params or
params['extent_payload'] is None):
raise ValueError("Missing the required parameter `extent_payload` when calling `create_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'extent_payload' in params:
body_params = params['extent_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Extent', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_extent_with_http_info(self, cluster_name, extent_payload, **kwargs): # noqa: E501
"""Create a new Extent # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_extent_with_http_info(cluster_name, extent_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ExtentPayload extent_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'extent_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_extent`") # noqa: E501
# verify the required parameter 'extent_payload' is set
if ('extent_payload' not in params or
params['extent_payload'] is None):
raise ValueError("Missing the required parameter `extent_payload` when calling `create_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'extent_payload' in params:
body_params = params['extent_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Extent', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_extent(self, cluster_name, name, **kwargs): # noqa: E501
"""Delets a single Extent 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_extent(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_extent_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_extent_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data | def delete_extent(self, cluster_name, name, **kwargs): # noqa: E501
"""Delets a single Extent 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_extent(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_extent_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_extent_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data |
Python | def delete_extent_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Delets a single Extent 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_extent_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_extent`") # noqa: E501
# 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 `delete_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_extent_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Delets a single Extent 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_extent_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_extent`") # noqa: E501
# 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 `delete_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def patch_extent(self, cluster_name, name, extent_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a Extent # noqa: E501
Settable attributes: 'name' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_extent(cluster_name, name, extent_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] extent_patch_payload: (required)
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, **kwargs) # noqa: E501
return data | def patch_extent(self, cluster_name, name, extent_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a Extent # noqa: E501
Settable attributes: 'name' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_extent(cluster_name, name, extent_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] extent_patch_payload: (required)
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, **kwargs) # noqa: E501
return data |
Python | def patch_extent_with_http_info(self, cluster_name, name, extent_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a Extent # noqa: E501
Settable attributes: 'name' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] extent_patch_payload: (required)
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'name', 'extent_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `patch_extent`") # noqa: E501
# 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 `patch_extent`") # noqa: E501
# verify the required parameter 'extent_patch_payload' is set
if ('extent_patch_payload' not in params or
params['extent_patch_payload'] is None):
raise ValueError("Missing the required parameter `extent_patch_payload` when calling `patch_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'extent_patch_payload' in params:
body_params = params['extent_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Extent', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def patch_extent_with_http_info(self, cluster_name, name, extent_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a Extent # noqa: E501
Settable attributes: 'name' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_extent_with_http_info(cluster_name, name, extent_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] extent_patch_payload: (required)
:return: Extent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'name', 'extent_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_extent" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `patch_extent`") # noqa: E501
# 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 `patch_extent`") # noqa: E501
# verify the required parameter 'extent_patch_payload' is set
if ('extent_patch_payload' not in params or
params['extent_patch_payload'] is None):
raise ValueError("Missing the required parameter `extent_patch_payload` when calling `patch_extent`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'extent_patch_payload' in params:
body_params = params['extent_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/extents/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Extent', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def bulk_request(self, request, **kwargs): # noqa: E501
"""Make a bulk request # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bulk_request(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param object request: (required)
:return: BulkResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.bulk_request_with_http_info(request, **kwargs) # noqa: E501
else:
(data) = self.bulk_request_with_http_info(request, **kwargs) # noqa: E501
return data | def bulk_request(self, request, **kwargs): # noqa: E501
"""Make a bulk request # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bulk_request(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param object request: (required)
:return: BulkResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.bulk_request_with_http_info(request, **kwargs) # noqa: E501
else:
(data) = self.bulk_request_with_http_info(request, **kwargs) # noqa: E501
return data |
Python | def bulk_request_with_http_info(self, request, **kwargs): # noqa: E501
"""Make a bulk request # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bulk_request_with_http_info(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param object request: (required)
:return: BulkResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['request'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method bulk_request" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'request' is set
if ('request' not in params or
params['request'] is None):
raise ValueError("Missing the required parameter `request` when calling `bulk_request`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'request' in params:
body_params = params['request']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/bulk/', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='BulkResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def bulk_request_with_http_info(self, request, **kwargs): # noqa: E501
"""Make a bulk request # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bulk_request_with_http_info(request, async_req=True)
>>> result = thread.get()
:param async_req bool
:param object request: (required)
:return: BulkResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['request'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method bulk_request" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'request' is set
if ('request' not in params or
params['request'] is None):
raise ValueError("Missing the required parameter `request` when calling `bulk_request`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'request' in params:
body_params = params['request']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/bulk/', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='BulkResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AmpPayload, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AmpPayload, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def block_offset(self):
"""Gets the block_offset of this Extent. # noqa: E501
:return: The block_offset of this Extent. # noqa: E501
:rtype: float
"""
return self._block_offset | def block_offset(self):
"""Gets the block_offset of this Extent. # noqa: E501
:return: The block_offset of this Extent. # noqa: E501
:rtype: float
"""
return self._block_offset |
Python | def io_status(self):
"""Gets the io_status of this Extent. # noqa: E501
:return: The io_status of this Extent. # noqa: E501
:rtype: str
"""
return self._io_status | def io_status(self):
"""Gets the io_status of this Extent. # noqa: E501
:return: The io_status of this Extent. # noqa: E501
:rtype: str
"""
return self._io_status |
Python | def itls(self, itls):
"""Sets the itls of this Extent.
:param itls: The itls of this Extent. # noqa: E501
:type: list[str]
"""
self._itls = itls | def itls(self, itls):
"""Sets the itls of this Extent.
:param itls: The itls of this Extent. # noqa: E501
:type: list[str]
"""
self._itls = itls |
Python | def storage_volume(self):
"""Gets the storage_volume of this Extent. # noqa: E501
:return: The storage_volume of this Extent. # noqa: E501
:rtype: str
"""
return self._storage_volume | def storage_volume(self):
"""Gets the storage_volume of this Extent. # noqa: E501
:return: The storage_volume of this Extent. # noqa: E501
:rtype: str
"""
return self._storage_volume |
Python | def storage_volume(self, storage_volume):
"""Sets the storage_volume of this Extent.
:param storage_volume: The storage_volume of this Extent. # noqa: E501
:type: str
"""
self._storage_volume = storage_volume | def storage_volume(self, storage_volume):
"""Sets the storage_volume of this Extent.
:param storage_volume: The storage_volume of this Extent. # noqa: E501
:type: str
"""
self._storage_volume = storage_volume |
Python | def storage_volumetype(self):
"""Gets the storage_volumetype of this Extent. # noqa: E501
:return: The storage_volumetype of this Extent. # noqa: E501
:rtype: str
"""
return self._storage_volumetype | def storage_volumetype(self):
"""Gets the storage_volumetype of this Extent. # noqa: E501
:return: The storage_volumetype of this Extent. # noqa: E501
:rtype: str
"""
return self._storage_volumetype |
Python | def storage_volumetype(self, storage_volumetype):
"""Sets the storage_volumetype of this Extent.
:param storage_volumetype: The storage_volumetype of this Extent. # noqa: E501
:type: str
"""
self._storage_volumetype = storage_volumetype | def storage_volumetype(self, storage_volumetype):
"""Sets the storage_volumetype of this Extent.
:param storage_volumetype: The storage_volumetype of this Extent. # noqa: E501
:type: str
"""
self._storage_volumetype = storage_volumetype |
Python | def underlying_storage_block_size(self):
"""Gets the underlying_storage_block_size of this Extent. # noqa: E501
:return: The underlying_storage_block_size of this Extent. # noqa: E501
:rtype: float
"""
return self._underlying_storage_block_size | def underlying_storage_block_size(self):
"""Gets the underlying_storage_block_size of this Extent. # noqa: E501
:return: The underlying_storage_block_size of this Extent. # noqa: E501
:rtype: float
"""
return self._underlying_storage_block_size |
Python | def vendor_specific_name(self):
"""Gets the vendor_specific_name of this Extent. # noqa: E501
:return: The vendor_specific_name of this Extent. # noqa: E501
:rtype: str
"""
return self._vendor_specific_name | def vendor_specific_name(self):
"""Gets the vendor_specific_name of this Extent. # noqa: E501
:return: The vendor_specific_name of this Extent. # noqa: E501
:rtype: str
"""
return self._vendor_specific_name |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Extent, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Extent, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def patch_director_port(self, director_name, name, port_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a DirectorPort # noqa: E501
Settable attribute is 'enabled' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_director_port(director_name, name, port_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str director_name: The name of the director (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] port_patch_payload: (required)
:return: DirectorPort
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_director_port_with_http_info(director_name, name, port_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_director_port_with_http_info(director_name, name, port_patch_payload, **kwargs) # noqa: E501
return data | def patch_director_port(self, director_name, name, port_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a DirectorPort # noqa: E501
Settable attribute is 'enabled' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_director_port(director_name, name, port_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str director_name: The name of the director (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] port_patch_payload: (required)
:return: DirectorPort
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_director_port_with_http_info(director_name, name, port_patch_payload, **kwargs) # noqa: E501
else:
(data) = self.patch_director_port_with_http_info(director_name, name, port_patch_payload, **kwargs) # noqa: E501
return data |
Python | def patch_director_port_with_http_info(self, director_name, name, port_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a DirectorPort # noqa: E501
Settable attribute is 'enabled' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_director_port_with_http_info(director_name, name, port_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str director_name: The name of the director (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] port_patch_payload: (required)
:return: DirectorPort
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['director_name', 'name', 'port_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_director_port" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'director_name' is set
if ('director_name' not in params or
params['director_name'] is None):
raise ValueError("Missing the required parameter `director_name` when calling `patch_director_port`") # noqa: E501
# 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 `patch_director_port`") # noqa: E501
# verify the required parameter 'port_patch_payload' is set
if ('port_patch_payload' not in params or
params['port_patch_payload'] is None):
raise ValueError("Missing the required parameter `port_patch_payload` when calling `patch_director_port`") # noqa: E501
collection_formats = {}
path_params = {}
if 'director_name' in params:
path_params['director_name'] = params['director_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'port_patch_payload' in params:
body_params = params['port_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/directors/{director_name}/ports/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DirectorPort', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def patch_director_port_with_http_info(self, director_name, name, port_patch_payload, **kwargs): # noqa: E501
"""Update attributes on a DirectorPort # noqa: E501
Settable attribute is 'enabled' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_director_port_with_http_info(director_name, name, port_patch_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str director_name: The name of the director (required)
:param str name: The name of a specific instance of the resource (required)
:param list[JsonPatchOp] port_patch_payload: (required)
:return: DirectorPort
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['director_name', 'name', 'port_patch_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_director_port" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'director_name' is set
if ('director_name' not in params or
params['director_name'] is None):
raise ValueError("Missing the required parameter `director_name` when calling `patch_director_port`") # noqa: E501
# 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 `patch_director_port`") # noqa: E501
# verify the required parameter 'port_patch_payload' is set
if ('port_patch_payload' not in params or
params['port_patch_payload'] is None):
raise ValueError("Missing the required parameter `port_patch_payload` when calling `patch_director_port`") # noqa: E501
collection_formats = {}
path_params = {}
if 'director_name' in params:
path_params['director_name'] = params['director_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'port_patch_payload' in params:
body_params = params['port_patch_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/directors/{director_name}/ports/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DirectorPort', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CommunicationStatus, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CommunicationStatus, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def capacity(self, capacity):
"""Sets the capacity of this ViasPayload.
The capacity of each virtual volume, in bytes. # noqa: E501
:param capacity: The capacity of this ViasPayload. # noqa: E501
:type: float
"""
if capacity is None:
raise ValueError("Invalid value for `capacity`, must not be `None`") # noqa: E501
self._capacity = capacity | def capacity(self, capacity):
"""Sets the capacity of this ViasPayload.
The capacity of each virtual volume, in bytes. # noqa: E501
:param capacity: The capacity of this ViasPayload. # noqa: E501
:type: float
"""
if capacity is None:
raise ValueError("Invalid value for `capacity`, must not be `None`") # noqa: E501
self._capacity = capacity |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ViasPayload, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ViasPayload, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AdminState, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AdminState, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(PortExports, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(PortExports, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ConsistencyGroup, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ConsistencyGroup, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Aggregates, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Aggregates, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(OperationalStatus, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(OperationalStatus, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def cancel_vias_job(self, name, **kwargs): # noqa: E501
"""Cancel a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.cancel_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.cancel_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data | def cancel_vias_job(self, name, **kwargs): # noqa: E501
"""Cancel a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.cancel_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.cancel_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data |
Python | def cancel_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Cancel a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method cancel_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `cancel_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}/cancel', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def cancel_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Cancel a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method cancel_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `cancel_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}/cancel', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def create_vias_job(self, vias_payload, **kwargs): # noqa: E501
"""Create a VIAS provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_vias_job(vias_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ViasPayload vias_payload: (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_vias_job_with_http_info(vias_payload, **kwargs) # noqa: E501
else:
(data) = self.create_vias_job_with_http_info(vias_payload, **kwargs) # noqa: E501
return data | def create_vias_job(self, vias_payload, **kwargs): # noqa: E501
"""Create a VIAS provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_vias_job(vias_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ViasPayload vias_payload: (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_vias_job_with_http_info(vias_payload, **kwargs) # noqa: E501
else:
(data) = self.create_vias_job_with_http_info(vias_payload, **kwargs) # noqa: E501
return data |
Python | def create_vias_job_with_http_info(self, vias_payload, **kwargs): # noqa: E501
"""Create a VIAS provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_vias_job_with_http_info(vias_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ViasPayload vias_payload: (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['vias_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_vias_job" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'vias_payload' is set
if ('vias_payload' not in params or
params['vias_payload'] is None):
raise ValueError("Missing the required parameter `vias_payload` when calling `create_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'vias_payload' in params:
body_params = params['vias_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_vias_job_with_http_info(self, vias_payload, **kwargs): # noqa: E501
"""Create a VIAS provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_vias_job_with_http_info(vias_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ViasPayload vias_payload: (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['vias_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_vias_job" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'vias_payload' is set
if ('vias_payload' not in params or
params['vias_payload'] is None):
raise ValueError("Missing the required parameter `vias_payload` when calling `create_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'vias_payload' in params:
body_params = params['vias_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_vias_job(self, name, **kwargs): # noqa: E501
"""Delete a VIAS provisioning jobs # 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_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data | def delete_vias_job(self, name, **kwargs): # noqa: E501
"""Delete a VIAS provisioning jobs # 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_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
: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.delete_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.delete_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data |
Python | def delete_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Delete a VIAS provisioning jobs # 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_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Delete a VIAS provisioning jobs # 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_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `delete_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def resubmit_vias_job(self, name, **kwargs): # noqa: E501
"""Resubmit a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resubmit_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.resubmit_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.resubmit_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data | def resubmit_vias_job(self, name, **kwargs): # noqa: E501
"""Resubmit a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resubmit_vias_job(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.resubmit_vias_job_with_http_info(name, **kwargs) # noqa: E501
else:
(data) = self.resubmit_vias_job_with_http_info(name, **kwargs) # noqa: E501
return data |
Python | def resubmit_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Resubmit a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resubmit_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method resubmit_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `resubmit_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}/resubmit', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def resubmit_vias_job_with_http_info(self, name, **kwargs): # noqa: E501
"""Resubmit a vias provisioning job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.resubmit_vias_job_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str name: The name of a specific instance of the resource (required)
:return: ViasJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method resubmit_vias_job" % key
)
params[key] = val
del params['kwargs']
# 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 `resubmit_vias_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/jobs/{name}/resubmit', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ViasJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def cluster_ip_seed(self):
"""Gets the cluster_ip_seed of this Engine. # noqa: E501
:return: The cluster_ip_seed of this Engine. # noqa: E501
:rtype: str
"""
return self._cluster_ip_seed | def cluster_ip_seed(self):
"""Gets the cluster_ip_seed of this Engine. # noqa: E501
:return: The cluster_ip_seed of this Engine. # noqa: E501
:rtype: str
"""
return self._cluster_ip_seed |
Python | def enclosure_id(self):
"""Gets the enclosure_id of this Engine. # noqa: E501
:return: The enclosure_id of this Engine. # noqa: E501
:rtype: str
"""
return self._enclosure_id | def enclosure_id(self):
"""Gets the enclosure_id of this Engine. # noqa: E501
:return: The enclosure_id of this Engine. # noqa: E501
:rtype: str
"""
return self._enclosure_id |
Python | def engine_family(self):
"""Gets the engine_family of this Engine. # noqa: E501
:return: The engine_family of this Engine. # noqa: E501
:rtype: str
"""
return self._engine_family | def engine_family(self):
"""Gets the engine_family of this Engine. # noqa: E501
:return: The engine_family of this Engine. # noqa: E501
:rtype: str
"""
return self._engine_family |
Python | def engine_family(self, engine_family):
"""Sets the engine_family of this Engine.
:param engine_family: The engine_family of this Engine. # noqa: E501
:type: str
"""
self._engine_family = engine_family | def engine_family(self, engine_family):
"""Sets the engine_family of this Engine.
:param engine_family: The engine_family of this Engine. # noqa: E501
:type: str
"""
self._engine_family = engine_family |
Python | def marker_led(self):
"""Gets the marker_led of this Engine. # noqa: E501
:return: The marker_led of this Engine. # noqa: E501
:rtype: str
"""
return self._marker_led | def marker_led(self):
"""Gets the marker_led of this Engine. # noqa: E501
:return: The marker_led of this Engine. # noqa: E501
:rtype: str
"""
return self._marker_led |
Python | def wwn_seed(self):
"""Gets the wwn_seed of this Engine. # noqa: E501
:return: The wwn_seed of this Engine. # noqa: E501
:rtype: str
"""
return self._wwn_seed | def wwn_seed(self):
"""Gets the wwn_seed of this Engine. # noqa: E501
:return: The wwn_seed of this Engine. # noqa: E501
:rtype: str
"""
return self._wwn_seed |
Python | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StoragePool, dict):
for key, value in self.items():
result[key] = value
return result | def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(StoragePool, dict):
for key, value in self.items():
result[key] = value
return result |
Python | def create_consistency_group(self, cluster_name, consistency_group_payload, **kwargs): # noqa: E501
"""Create a new ConsistencyGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_consistency_group(cluster_name, consistency_group_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ConsistencyGroupPayload consistency_group_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: ConsistencyGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, **kwargs) # noqa: E501
else:
(data) = self.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, **kwargs) # noqa: E501
return data | def create_consistency_group(self, cluster_name, consistency_group_payload, **kwargs): # noqa: E501
"""Create a new ConsistencyGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_consistency_group(cluster_name, consistency_group_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ConsistencyGroupPayload consistency_group_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: ConsistencyGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, **kwargs) # noqa: E501
else:
(data) = self.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, **kwargs) # noqa: E501
return data |
Python | def create_consistency_group_with_http_info(self, cluster_name, consistency_group_payload, **kwargs): # noqa: E501
"""Create a new ConsistencyGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ConsistencyGroupPayload consistency_group_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: ConsistencyGroup
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'consistency_group_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_consistency_group" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_consistency_group`") # noqa: E501
# verify the required parameter 'consistency_group_payload' is set
if ('consistency_group_payload' not in params or
params['consistency_group_payload'] is None):
raise ValueError("Missing the required parameter `consistency_group_payload` when calling `create_consistency_group`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'consistency_group_payload' in params:
body_params = params['consistency_group_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/consistency_groups', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ConsistencyGroup', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def create_consistency_group_with_http_info(self, cluster_name, consistency_group_payload, **kwargs): # noqa: E501
"""Create a new ConsistencyGroup # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_consistency_group_with_http_info(cluster_name, consistency_group_payload, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param ConsistencyGroupPayload consistency_group_payload: (required)
:param str x_include_object: When passed as part of a POST request, controls whether the representation of the newly created object is included in the response. Defaults to 'true' which will include the object in the response. This header is useful because refreshing the newly created object is usually the slowest part of a POST operation.
:return: ConsistencyGroup
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', 'consistency_group_payload', 'x_include_object'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_consistency_group" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `create_consistency_group`") # noqa: E501
# verify the required parameter 'consistency_group_payload' is set
if ('consistency_group_payload' not in params or
params['consistency_group_payload'] is None):
raise ValueError("Missing the required parameter `consistency_group_payload` when calling `create_consistency_group`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_include_object' in params:
header_params['X-Include-Object'] = params['x_include_object'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'consistency_group_payload' in params:
body_params = params['consistency_group_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/consistency_groups', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ConsistencyGroup', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def delete_consistency_group(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single ConsistencyGroup # 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_consistency_group(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_consistency_group_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_consistency_group_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data | def delete_consistency_group(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single ConsistencyGroup # 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_consistency_group(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
: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.delete_consistency_group_with_http_info(cluster_name, name, **kwargs) # noqa: E501
else:
(data) = self.delete_consistency_group_with_http_info(cluster_name, name, **kwargs) # noqa: E501
return data |
Python | def delete_consistency_group_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single ConsistencyGroup # 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_consistency_group_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_consistency_group" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_consistency_group`") # noqa: E501
# 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 `delete_consistency_group`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/consistency_groups/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def delete_consistency_group_with_http_info(self, cluster_name, name, **kwargs): # noqa: E501
"""Deletes a single ConsistencyGroup # 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_consistency_group_with_http_info(cluster_name, name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str cluster_name: The name of the cluster (required)
:param str name: The name of a specific instance of the resource (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['cluster_name', '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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_consistency_group" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'cluster_name' is set
if ('cluster_name' not in params or
params['cluster_name'] is None):
raise ValueError("Missing the required parameter `cluster_name` when calling `delete_consistency_group`") # noqa: E501
# 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 `delete_consistency_group`") # noqa: E501
collection_formats = {}
path_params = {}
if 'cluster_name' in params:
path_params['cluster_name'] = params['cluster_name'] # noqa: E501
if 'name' in params:
path_params['name'] = params['name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/clusters/{cluster_name}/consistency_groups/{name}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def authenticate(self, username, password, **kwargs): # noqa: E501
"""URL to authenticate and get back access_token in case of success # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.authenticate(username, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: (required)
:param str password: (required)
:param LoginPayload token_payload:
:return: LoginResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.authenticate_with_http_info(username, password, **kwargs) # noqa: E501
else:
(data) = self.authenticate_with_http_info(username, password, **kwargs) # noqa: E501
return data | def authenticate(self, username, password, **kwargs): # noqa: E501
"""URL to authenticate and get back access_token in case of success # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.authenticate(username, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: (required)
:param str password: (required)
:param LoginPayload token_payload:
:return: LoginResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.authenticate_with_http_info(username, password, **kwargs) # noqa: E501
else:
(data) = self.authenticate_with_http_info(username, password, **kwargs) # noqa: E501
return data |
Python | def authenticate_with_http_info(self, username, password, **kwargs): # noqa: E501
"""URL to authenticate and get back access_token in case of success # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.authenticate_with_http_info(username, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: (required)
:param str password: (required)
:param LoginPayload token_payload:
:return: LoginResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['username', 'password', 'token_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method authenticate" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `authenticate`") # noqa: E501
# verify the required parameter 'password' is set
if ('password' not in params or
params['password'] is None):
raise ValueError("Missing the required parameter `password` when calling `authenticate`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'username' in params:
header_params['username'] = params['username'] # noqa: E501
if 'password' in params:
header_params['password'] = params['password'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'token_payload' in params:
body_params = params['token_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/token', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='LoginResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def authenticate_with_http_info(self, username, password, **kwargs): # noqa: E501
"""URL to authenticate and get back access_token in case of success # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.authenticate_with_http_info(username, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: (required)
:param str password: (required)
:param LoginPayload token_payload:
:return: LoginResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['username', 'password', 'token_payload'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method authenticate" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `authenticate`") # noqa: E501
# verify the required parameter 'password' is set
if ('password' not in params or
params['password'] is None):
raise ValueError("Missing the required parameter `password` when calling `authenticate`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'username' in params:
header_params['username'] = params['username'] # noqa: E501
if 'password' in params:
header_params['password'] = params['password'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'token_payload' in params:
body_params = params['token_payload']
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/token', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='LoginResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def logout(self, **kwargs): # noqa: E501
"""Endpoint to logout and invalidate/delete the token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.logout(async_req=True)
>>> result = thread.get()
:param async_req bool
: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.logout_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.logout_with_http_info(**kwargs) # noqa: E501
return data | def logout(self, **kwargs): # noqa: E501
"""Endpoint to logout and invalidate/delete the token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.logout(async_req=True)
>>> result = thread.get()
:param async_req bool
: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.logout_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.logout_with_http_info(**kwargs) # noqa: E501
return data |
Python | def logout_with_http_info(self, **kwargs): # noqa: E501
"""Endpoint to logout and invalidate/delete the token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.logout_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: None
If the method is called asynchronously,
returns the request thread.
"""
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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method logout" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/token', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) | def logout_with_http_info(self, **kwargs): # noqa: E501
"""Endpoint to logout and invalidate/delete the token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.logout_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: None
If the method is called asynchronously,
returns the request thread.
"""
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')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method logout" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['basicAuth', 'jwtAuth'] # noqa: E501
return self.api_client.call_api(
'/token', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats) |
Python | def iscsi_name(self):
"""Gets the iscsi_name of this Port. # noqa: E501
:return: The iscsi_name of this Port. # noqa: E501
:rtype: str
"""
return self._iscsi_name | def iscsi_name(self):
"""Gets the iscsi_name of this Port. # noqa: E501
:return: The iscsi_name of this Port. # noqa: E501
:rtype: str
"""
return self._iscsi_name |
Python | def port_wwn(self):
"""Gets the port_wwn of this Port. # noqa: E501
:return: The port_wwn of this Port. # noqa: E501
:rtype: str
"""
return self._port_wwn | def port_wwn(self):
"""Gets the port_wwn of this Port. # noqa: E501
:return: The port_wwn of this Port. # noqa: E501
:rtype: str
"""
return self._port_wwn |
Python | def node_wwn(self):
"""Gets the node_wwn of this Port. # noqa: E501
:return: The node_wwn of this Port. # noqa: E501
:rtype: str
"""
return self._node_wwn | def node_wwn(self):
"""Gets the node_wwn of this Port. # noqa: E501
:return: The node_wwn of this Port. # noqa: E501
:rtype: str
"""
return self._node_wwn |
Python | def export_status(self):
"""Gets the export_status of this Port. # noqa: E501
:return: The export_status of this Port. # noqa: E501
:rtype: str
"""
return self._export_status | def export_status(self):
"""Gets the export_status of this Port. # noqa: E501
:return: The export_status of this Port. # noqa: E501
:rtype: str
"""
return self._export_status |
Python | def discovered_initiators(self):
"""Gets the discovered_initiators of this Port. # noqa: E501
:return: The discovered_initiators of this Port. # noqa: E501
:rtype: list[str]
"""
return self._discovered_initiators | def discovered_initiators(self):
"""Gets the discovered_initiators of this Port. # noqa: E501
:return: The discovered_initiators of this Port. # noqa: E501
:rtype: list[str]
"""
return self._discovered_initiators |
Python | def discovered_initiators(self, discovered_initiators):
"""Sets the discovered_initiators of this Port.
:param discovered_initiators: The discovered_initiators of this Port. # noqa: E501
:type: list[str]
"""
self._discovered_initiators = discovered_initiators | def discovered_initiators(self, discovered_initiators):
"""Sets the discovered_initiators of this Port.
:param discovered_initiators: The discovered_initiators of this Port. # noqa: E501
:type: list[str]
"""
self._discovered_initiators = discovered_initiators |
Python | def director_id(self):
"""Gets the director_id of this Port. # noqa: E501
:return: The director_id of this Port. # noqa: E501
:rtype: str
"""
return self._director_id | def director_id(self):
"""Gets the director_id of this Port. # noqa: E501
:return: The director_id of this Port. # noqa: E501
:rtype: str
"""
return self._director_id |
Python | def collecting_data(self):
"""Gets the collecting_data of this Monitors. # noqa: E501
:return: The collecting_data of this Monitors. # noqa: E501
:rtype: bool
"""
return self._collecting_data | def collecting_data(self):
"""Gets the collecting_data of this Monitors. # noqa: E501
:return: The collecting_data of this Monitors. # noqa: E501
:rtype: bool
"""
return self._collecting_data |
Python | def average_period(self):
"""Gets the average_period of this Monitors. # noqa: E501
:return: The average_period of this Monitors. # noqa: E501
:rtype: float
"""
return self._average_period | def average_period(self):
"""Gets the average_period of this Monitors. # noqa: E501
:return: The average_period of this Monitors. # noqa: E501
:rtype: float
"""
return self._average_period |
Python | def idle_for(self):
"""Gets the idle_for of this Monitors. # noqa: E501
:return: The idle_for of this Monitors. # noqa: E501
:rtype: float
"""
return self._idle_for | def idle_for(self):
"""Gets the idle_for of this Monitors. # noqa: E501
:return: The idle_for of this Monitors. # noqa: E501
:rtype: float
"""
return self._idle_for |
Python | def bucket_min(self):
"""Gets the bucket_min of this Monitors. # noqa: E501
:return: The bucket_min of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_min | def bucket_min(self):
"""Gets the bucket_min of this Monitors. # noqa: E501
:return: The bucket_min of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_min |
Python | def bucket_max(self):
"""Gets the bucket_max of this Monitors. # noqa: E501
:return: The bucket_max of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_max | def bucket_max(self):
"""Gets the bucket_max of this Monitors. # noqa: E501
:return: The bucket_max of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_max |
Python | def bucket_width(self):
"""Gets the bucket_width of this Monitors. # noqa: E501
:return: The bucket_width of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_width | def bucket_width(self):
"""Gets the bucket_width of this Monitors. # noqa: E501
:return: The bucket_width of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_width |
Python | def bucket_count(self):
"""Gets the bucket_count of this Monitors. # noqa: E501
:return: The bucket_count of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_count | def bucket_count(self):
"""Gets the bucket_count of this Monitors. # noqa: E501
:return: The bucket_count of this Monitors. # noqa: E501
:rtype: float
"""
return self._bucket_count |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.