in api/client/src/pcluster_client/api/cluster_instances_api.py [0:0]
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.delete_cluster_instances_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [
'aws.auth.sigv4'
],
'endpoint_path': '/v3/clusters/{clusterName}/instances',
'operation_id': 'delete_cluster_instances',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'cluster_name',
'region',
'force',
],
'required': [
'cluster_name',
],
'nullable': [
],
'enum': [
],
'validation': [
'cluster_name',
]
},
root_map={
'validations': {
('cluster_name',): {
'regex': {
'pattern': r'^[a-zA-Z][a-zA-Z0-9-]+$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'cluster_name':
(str,),
'region':
(str,),
'force':
(bool,),
},
'attribute_map': {
'cluster_name': 'clusterName',
'region': 'region',
'force': 'force',
},
'location_map': {
'cluster_name': 'path',
'region': 'query',
'force': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.describe_cluster_instances_endpoint = _Endpoint(
settings={
'response_type': (DescribeClusterInstancesResponseContent,),
'auth': [
'aws.auth.sigv4'
],
'endpoint_path': '/v3/clusters/{clusterName}/instances',
'operation_id': 'describe_cluster_instances',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'cluster_name',
'region',
'next_token',
'node_type',
'queue_name',
],
'required': [
'cluster_name',
],
'nullable': [
],
'enum': [
],
'validation': [
'cluster_name',
]
},
root_map={
'validations': {
('cluster_name',): {
'regex': {
'pattern': r'^[a-zA-Z][a-zA-Z0-9-]+$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'cluster_name':
(str,),
'region':
(str,),
'next_token':
(str,),
'node_type':
(NodeType,),
'queue_name':
(str,),
},
'attribute_map': {
'cluster_name': 'clusterName',
'region': 'region',
'next_token': 'nextToken',
'node_type': 'nodeType',
'queue_name': 'queueName',
},
'location_map': {
'cluster_name': 'path',
'region': 'query',
'next_token': 'query',
'node_type': 'query',
'queue_name': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)