anyscale 0.26.52__py3-none-any.whl → 0.26.54__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +26 -26
- anyscale/_private/anyscale_client/common.py +5 -5
- anyscale/_private/anyscale_client/fake_anyscale_client.py +6 -6
- anyscale/_private/docgen/__main__.py +8 -8
- anyscale/_private/docgen/generator.py +48 -10
- anyscale/_private/docgen/models.md +2 -2
- anyscale/_private/sdk/__init__.py +124 -1
- anyscale/_private/workload/workload_config.py +4 -6
- anyscale/_private/workload/workload_sdk.py +9 -11
- anyscale/client/README.md +14 -13
- anyscale/client/openapi_client/__init__.py +4 -4
- anyscale/client/openapi_client/api/default_api.py +395 -325
- anyscale/client/openapi_client/models/__init__.py +4 -4
- anyscale/client/openapi_client/models/aws_config.py +2 -2
- anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
- anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
- anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
- anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
- anyscale/client/openapi_client/models/{clouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
- anyscale/client/openapi_client/models/file_storage.py +4 -4
- anyscale/client/openapi_client/models/gcp_config.py +2 -2
- anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
- anyscale/client/openapi_client/models/object_storage.py +2 -2
- anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → presigned_url_response.py} +24 -22
- anyscale/client/openapi_client/models/production_job_event.py +31 -3
- anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
- anyscale/client/openapi_client/models/resource_notification.py +29 -1
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/workload_info.py +31 -3
- anyscale/client/openapi_client/models/workload_state_info.py +29 -1
- anyscale/cloud/models.py +39 -42
- anyscale/commands/cloud_commands.py +25 -23
- anyscale/commands/command_examples.py +10 -10
- anyscale/commands/exec_commands.py +12 -1
- anyscale/commands/list_commands.py +42 -12
- anyscale/commands/project_commands.py +23 -10
- anyscale/commands/schedule_commands.py +22 -11
- anyscale/commands/service_commands.py +11 -6
- anyscale/commands/util.py +94 -1
- anyscale/commands/workspace_commands.py +92 -38
- anyscale/compute_config/__init__.py +1 -1
- anyscale/compute_config/_private/compute_config_sdk.py +8 -11
- anyscale/compute_config/commands.py +3 -3
- anyscale/compute_config/models.py +30 -30
- anyscale/controllers/cloud_controller.py +306 -300
- anyscale/controllers/kubernetes_verifier.py +1 -1
- anyscale/job/_private/job_sdk.py +12 -12
- anyscale/job/models.py +1 -1
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +114 -23
- anyscale/workspace/models.py +3 -5
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/METADATA +1 -1
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/RECORD +64 -64
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/WHEEL +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/top_level.txt +0 -0
@@ -36,12 +36,12 @@ class DefaultApi(object):
|
|
36
36
|
api_client = ApiClient()
|
37
37
|
self.api_client = api_client
|
38
38
|
|
39
|
-
def
|
40
|
-
"""Add Cloud
|
39
|
+
def add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
40
|
+
"""Add Cloud Resource # noqa: E501
|
41
41
|
|
42
42
|
This method makes a synchronous HTTP request by default. To make an
|
43
43
|
asynchronous HTTP request, please pass async_req=True
|
44
|
-
>>> thread = api.
|
44
|
+
>>> thread = api.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put(cloud_id, cloud_deployment, async_req=True)
|
45
45
|
>>> result = thread.get()
|
46
46
|
|
47
47
|
:param async_req bool: execute request asynchronously
|
@@ -59,14 +59,14 @@ class DefaultApi(object):
|
|
59
59
|
returns the request thread.
|
60
60
|
"""
|
61
61
|
kwargs['_return_http_data_only'] = True
|
62
|
-
return self.
|
62
|
+
return self.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
63
63
|
|
64
|
-
def
|
65
|
-
"""Add Cloud
|
64
|
+
def add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
65
|
+
"""Add Cloud Resource # noqa: E501
|
66
66
|
|
67
67
|
This method makes a synchronous HTTP request by default. To make an
|
68
68
|
asynchronous HTTP request, please pass async_req=True
|
69
|
-
>>> thread = api.
|
69
|
+
>>> thread = api.add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
70
70
|
>>> result = thread.get()
|
71
71
|
|
72
72
|
:param async_req bool: execute request asynchronously
|
@@ -105,18 +105,18 @@ class DefaultApi(object):
|
|
105
105
|
if key not in all_params:
|
106
106
|
raise ApiTypeError(
|
107
107
|
"Got an unexpected keyword argument '%s'"
|
108
|
-
" to method
|
108
|
+
" to method add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put" % key
|
109
109
|
)
|
110
110
|
local_var_params[key] = val
|
111
111
|
del local_var_params['kwargs']
|
112
112
|
# verify the required parameter 'cloud_id' is set
|
113
113
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
114
114
|
local_var_params['cloud_id'] is None): # noqa: E501
|
115
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
115
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put`") # noqa: E501
|
116
116
|
# verify the required parameter 'cloud_deployment' is set
|
117
117
|
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
118
118
|
local_var_params['cloud_deployment'] is None): # noqa: E501
|
119
|
-
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `
|
119
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `add_cloud_resource_api_v2_clouds_cloud_id_add_resource_put`") # noqa: E501
|
120
120
|
|
121
121
|
collection_formats = {}
|
122
122
|
|
@@ -146,7 +146,7 @@ class DefaultApi(object):
|
|
146
146
|
auth_settings = [] # noqa: E501
|
147
147
|
|
148
148
|
return self.api_client.call_api(
|
149
|
-
'/api/v2/clouds/{cloud_id}/
|
149
|
+
'/api/v2/clouds/{cloud_id}/add_resource', 'PUT',
|
150
150
|
path_params,
|
151
151
|
query_params,
|
152
152
|
header_params,
|
@@ -8563,6 +8563,7 @@ class DefaultApi(object):
|
|
8563
8563
|
:param async_req bool: execute request asynchronously
|
8564
8564
|
:param str cloud_id: (required)
|
8565
8565
|
:param SystemWorkloadName workload_name: (required)
|
8566
|
+
:param str cloud_resource_id:
|
8566
8567
|
:param bool start_cluster:
|
8567
8568
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
8568
8569
|
be returned without reading/decoding response
|
@@ -8590,6 +8591,7 @@ class DefaultApi(object):
|
|
8590
8591
|
:param async_req bool: execute request asynchronously
|
8591
8592
|
:param str cloud_id: (required)
|
8592
8593
|
:param SystemWorkloadName workload_name: (required)
|
8594
|
+
:param str cloud_resource_id:
|
8593
8595
|
:param bool start_cluster:
|
8594
8596
|
:param _return_http_data_only: response data without head status code
|
8595
8597
|
and headers
|
@@ -8610,6 +8612,7 @@ class DefaultApi(object):
|
|
8610
8612
|
all_params = [
|
8611
8613
|
'cloud_id',
|
8612
8614
|
'workload_name',
|
8615
|
+
'cloud_resource_id',
|
8613
8616
|
'start_cluster'
|
8614
8617
|
]
|
8615
8618
|
all_params.extend(
|
@@ -8647,6 +8650,8 @@ class DefaultApi(object):
|
|
8647
8650
|
query_params = []
|
8648
8651
|
if 'workload_name' in local_var_params and local_var_params['workload_name'] is not None: # noqa: E501
|
8649
8652
|
query_params.append(('workload_name', local_var_params['workload_name'])) # noqa: E501
|
8653
|
+
if 'cloud_resource_id' in local_var_params and local_var_params['cloud_resource_id'] is not None: # noqa: E501
|
8654
|
+
query_params.append(('cloud_resource_id', local_var_params['cloud_resource_id'])) # noqa: E501
|
8650
8655
|
if 'start_cluster' in local_var_params and local_var_params['start_cluster'] is not None: # noqa: E501
|
8651
8656
|
query_params.append(('start_cluster', local_var_params['start_cluster'])) # noqa: E501
|
8652
8657
|
|
@@ -11730,12 +11735,12 @@ class DefaultApi(object):
|
|
11730
11735
|
_request_timeout=local_var_params.get('_request_timeout'),
|
11731
11736
|
collection_formats=collection_formats)
|
11732
11737
|
|
11733
|
-
def
|
11734
|
-
"""Get Cloud Deployment # noqa: E501
|
11738
|
+
def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
|
11739
|
+
"""Get Cloud Deployment Config # noqa: E501
|
11735
11740
|
|
11736
11741
|
This method makes a synchronous HTTP request by default. To make an
|
11737
11742
|
asynchronous HTTP request, please pass async_req=True
|
11738
|
-
>>> thread = api.
|
11743
|
+
>>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get(cloud_id, cloud_deployment_id, async_req=True)
|
11739
11744
|
>>> result = thread.get()
|
11740
11745
|
|
11741
11746
|
:param async_req bool: execute request asynchronously
|
@@ -11748,19 +11753,19 @@ class DefaultApi(object):
|
|
11748
11753
|
number provided, it will be total request
|
11749
11754
|
timeout. It can also be a pair (tuple) of
|
11750
11755
|
(connection, read) timeouts.
|
11751
|
-
:return:
|
11756
|
+
:return: ClouddeploymentconfigResponse
|
11752
11757
|
If the method is called asynchronously,
|
11753
11758
|
returns the request thread.
|
11754
11759
|
"""
|
11755
11760
|
kwargs['_return_http_data_only'] = True
|
11756
|
-
return self.
|
11761
|
+
return self.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, **kwargs) # noqa: E501
|
11757
11762
|
|
11758
|
-
def
|
11759
|
-
"""Get Cloud Deployment # noqa: E501
|
11763
|
+
def get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(self, cloud_id, cloud_deployment_id, **kwargs): # noqa: E501
|
11764
|
+
"""Get Cloud Deployment Config # noqa: E501
|
11760
11765
|
|
11761
11766
|
This method makes a synchronous HTTP request by default. To make an
|
11762
11767
|
asynchronous HTTP request, please pass async_req=True
|
11763
|
-
>>> thread = api.
|
11768
|
+
>>> thread = api.get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get_with_http_info(cloud_id, cloud_deployment_id, async_req=True)
|
11764
11769
|
>>> result = thread.get()
|
11765
11770
|
|
11766
11771
|
:param async_req bool: execute request asynchronously
|
@@ -11775,7 +11780,7 @@ class DefaultApi(object):
|
|
11775
11780
|
number provided, it will be total request
|
11776
11781
|
timeout. It can also be a pair (tuple) of
|
11777
11782
|
(connection, read) timeouts.
|
11778
|
-
:return: tuple(
|
11783
|
+
:return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
|
11779
11784
|
If the method is called asynchronously,
|
11780
11785
|
returns the request thread.
|
11781
11786
|
"""
|
@@ -11799,28 +11804,28 @@ class DefaultApi(object):
|
|
11799
11804
|
if key not in all_params:
|
11800
11805
|
raise ApiTypeError(
|
11801
11806
|
"Got an unexpected keyword argument '%s'"
|
11802
|
-
" to method
|
11807
|
+
" to method get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get" % key
|
11803
11808
|
)
|
11804
11809
|
local_var_params[key] = val
|
11805
11810
|
del local_var_params['kwargs']
|
11806
11811
|
# verify the required parameter 'cloud_id' is set
|
11807
11812
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
11808
11813
|
local_var_params['cloud_id'] is None): # noqa: E501
|
11809
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
11814
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
|
11810
11815
|
# verify the required parameter 'cloud_deployment_id' is set
|
11811
11816
|
if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
|
11812
11817
|
local_var_params['cloud_deployment_id'] is None): # noqa: E501
|
11813
|
-
raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `
|
11818
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
|
11814
11819
|
|
11815
11820
|
collection_formats = {}
|
11816
11821
|
|
11817
11822
|
path_params = {}
|
11818
11823
|
if 'cloud_id' in local_var_params:
|
11819
11824
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
11825
|
+
if 'cloud_deployment_id' in local_var_params:
|
11826
|
+
path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
|
11820
11827
|
|
11821
11828
|
query_params = []
|
11822
|
-
if 'cloud_deployment_id' in local_var_params and local_var_params['cloud_deployment_id'] is not None: # noqa: E501
|
11823
|
-
query_params.append(('cloud_deployment_id', local_var_params['cloud_deployment_id'])) # noqa: E501
|
11824
11829
|
|
11825
11830
|
header_params = {}
|
11826
11831
|
|
@@ -11836,14 +11841,14 @@ class DefaultApi(object):
|
|
11836
11841
|
auth_settings = [] # noqa: E501
|
11837
11842
|
|
11838
11843
|
return self.api_client.call_api(
|
11839
|
-
'/api/v2/clouds/{cloud_id}/deployment', 'GET',
|
11844
|
+
'/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'GET',
|
11840
11845
|
path_params,
|
11841
11846
|
query_params,
|
11842
11847
|
header_params,
|
11843
11848
|
body=body_params,
|
11844
11849
|
post_params=form_params,
|
11845
11850
|
files=local_var_files,
|
11846
|
-
response_type='
|
11851
|
+
response_type='ClouddeploymentconfigResponse', # noqa: E501
|
11847
11852
|
auth_settings=auth_settings,
|
11848
11853
|
async_req=local_var_params.get('async_req'),
|
11849
11854
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -11851,17 +11856,16 @@ class DefaultApi(object):
|
|
11851
11856
|
_request_timeout=local_var_params.get('_request_timeout'),
|
11852
11857
|
collection_formats=collection_formats)
|
11853
11858
|
|
11854
|
-
def
|
11855
|
-
"""Get Cloud
|
11859
|
+
def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(self, cloud_id, **kwargs): # noqa: E501
|
11860
|
+
"""Get Cloud Deployments # noqa: E501
|
11856
11861
|
|
11857
11862
|
This method makes a synchronous HTTP request by default. To make an
|
11858
11863
|
asynchronous HTTP request, please pass async_req=True
|
11859
|
-
>>> thread = api.
|
11864
|
+
>>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(cloud_id, async_req=True)
|
11860
11865
|
>>> result = thread.get()
|
11861
11866
|
|
11862
11867
|
:param async_req bool: execute request asynchronously
|
11863
11868
|
:param str cloud_id: (required)
|
11864
|
-
:param str cloud_deployment_id: (required)
|
11865
11869
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
11866
11870
|
be returned without reading/decoding response
|
11867
11871
|
data. Default is True.
|
@@ -11869,24 +11873,23 @@ class DefaultApi(object):
|
|
11869
11873
|
number provided, it will be total request
|
11870
11874
|
timeout. It can also be a pair (tuple) of
|
11871
11875
|
(connection, read) timeouts.
|
11872
|
-
:return:
|
11876
|
+
:return: DecoratedcloudresourceListResponse
|
11873
11877
|
If the method is called asynchronously,
|
11874
11878
|
returns the request thread.
|
11875
11879
|
"""
|
11876
11880
|
kwargs['_return_http_data_only'] = True
|
11877
|
-
return self.
|
11881
|
+
return self.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
11878
11882
|
|
11879
|
-
def
|
11880
|
-
"""Get Cloud
|
11883
|
+
def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
11884
|
+
"""Get Cloud Deployments # noqa: E501
|
11881
11885
|
|
11882
11886
|
This method makes a synchronous HTTP request by default. To make an
|
11883
11887
|
asynchronous HTTP request, please pass async_req=True
|
11884
|
-
>>> thread = api.
|
11888
|
+
>>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, async_req=True)
|
11885
11889
|
>>> result = thread.get()
|
11886
11890
|
|
11887
11891
|
:param async_req bool: execute request asynchronously
|
11888
11892
|
:param str cloud_id: (required)
|
11889
|
-
:param str cloud_deployment_id: (required)
|
11890
11893
|
:param _return_http_data_only: response data without head status code
|
11891
11894
|
and headers
|
11892
11895
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -11896,7 +11899,7 @@ class DefaultApi(object):
|
|
11896
11899
|
number provided, it will be total request
|
11897
11900
|
timeout. It can also be a pair (tuple) of
|
11898
11901
|
(connection, read) timeouts.
|
11899
|
-
:return: tuple(
|
11902
|
+
:return: tuple(DecoratedcloudresourceListResponse, status_code(int), headers(HTTPHeaderDict))
|
11900
11903
|
If the method is called asynchronously,
|
11901
11904
|
returns the request thread.
|
11902
11905
|
"""
|
@@ -11904,8 +11907,7 @@ class DefaultApi(object):
|
|
11904
11907
|
local_var_params = locals()
|
11905
11908
|
|
11906
11909
|
all_params = [
|
11907
|
-
'cloud_id'
|
11908
|
-
'cloud_deployment_id'
|
11910
|
+
'cloud_id'
|
11909
11911
|
]
|
11910
11912
|
all_params.extend(
|
11911
11913
|
[
|
@@ -11920,26 +11922,20 @@ class DefaultApi(object):
|
|
11920
11922
|
if key not in all_params:
|
11921
11923
|
raise ApiTypeError(
|
11922
11924
|
"Got an unexpected keyword argument '%s'"
|
11923
|
-
" to method
|
11925
|
+
" to method get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get" % key
|
11924
11926
|
)
|
11925
11927
|
local_var_params[key] = val
|
11926
11928
|
del local_var_params['kwargs']
|
11927
11929
|
# verify the required parameter 'cloud_id' is set
|
11928
11930
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
11929
11931
|
local_var_params['cloud_id'] is None): # noqa: E501
|
11930
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
11931
|
-
# verify the required parameter 'cloud_deployment_id' is set
|
11932
|
-
if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
|
11933
|
-
local_var_params['cloud_deployment_id'] is None): # noqa: E501
|
11934
|
-
raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `get_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_get`") # noqa: E501
|
11932
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get`") # noqa: E501
|
11935
11933
|
|
11936
11934
|
collection_formats = {}
|
11937
11935
|
|
11938
11936
|
path_params = {}
|
11939
11937
|
if 'cloud_id' in local_var_params:
|
11940
11938
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
11941
|
-
if 'cloud_deployment_id' in local_var_params:
|
11942
|
-
path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
|
11943
11939
|
|
11944
11940
|
query_params = []
|
11945
11941
|
|
@@ -11957,14 +11953,14 @@ class DefaultApi(object):
|
|
11957
11953
|
auth_settings = [] # noqa: E501
|
11958
11954
|
|
11959
11955
|
return self.api_client.call_api(
|
11960
|
-
'/api/v2/clouds/{cloud_id}/
|
11956
|
+
'/api/v2/clouds/{cloud_id}/deployments', 'GET',
|
11961
11957
|
path_params,
|
11962
11958
|
query_params,
|
11963
11959
|
header_params,
|
11964
11960
|
body=body_params,
|
11965
11961
|
post_params=form_params,
|
11966
11962
|
files=local_var_files,
|
11967
|
-
response_type='
|
11963
|
+
response_type='DecoratedcloudresourceListResponse', # noqa: E501
|
11968
11964
|
auth_settings=auth_settings,
|
11969
11965
|
async_req=local_var_params.get('async_req'),
|
11970
11966
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -11972,12 +11968,13 @@ class DefaultApi(object):
|
|
11972
11968
|
_request_timeout=local_var_params.get('_request_timeout'),
|
11973
11969
|
collection_formats=collection_formats)
|
11974
11970
|
|
11975
|
-
def
|
11976
|
-
"""Get Cloud
|
11971
|
+
def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(self, cloud_id, **kwargs): # noqa: E501
|
11972
|
+
"""Get Cloud Overview Dashboard # noqa: E501
|
11977
11973
|
|
11974
|
+
Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
|
11978
11975
|
This method makes a synchronous HTTP request by default. To make an
|
11979
11976
|
asynchronous HTTP request, please pass async_req=True
|
11980
|
-
>>> thread = api.
|
11977
|
+
>>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(cloud_id, async_req=True)
|
11981
11978
|
>>> result = thread.get()
|
11982
11979
|
|
11983
11980
|
:param async_req bool: execute request asynchronously
|
@@ -11989,19 +11986,20 @@ class DefaultApi(object):
|
|
11989
11986
|
number provided, it will be total request
|
11990
11987
|
timeout. It can also be a pair (tuple) of
|
11991
11988
|
(connection, read) timeouts.
|
11992
|
-
:return:
|
11989
|
+
:return: CloudoverviewdashboardResponse
|
11993
11990
|
If the method is called asynchronously,
|
11994
11991
|
returns the request thread.
|
11995
11992
|
"""
|
11996
11993
|
kwargs['_return_http_data_only'] = True
|
11997
|
-
return self.
|
11994
|
+
return self.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
11998
11995
|
|
11999
|
-
def
|
12000
|
-
"""Get Cloud
|
11996
|
+
def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
11997
|
+
"""Get Cloud Overview Dashboard # noqa: E501
|
12001
11998
|
|
11999
|
+
Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
|
12002
12000
|
This method makes a synchronous HTTP request by default. To make an
|
12003
12001
|
asynchronous HTTP request, please pass async_req=True
|
12004
|
-
>>> thread = api.
|
12002
|
+
>>> thread = api.get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get_with_http_info(cloud_id, async_req=True)
|
12005
12003
|
>>> result = thread.get()
|
12006
12004
|
|
12007
12005
|
:param async_req bool: execute request asynchronously
|
@@ -12015,7 +12013,7 @@ class DefaultApi(object):
|
|
12015
12013
|
number provided, it will be total request
|
12016
12014
|
timeout. It can also be a pair (tuple) of
|
12017
12015
|
(connection, read) timeouts.
|
12018
|
-
:return: tuple(
|
12016
|
+
:return: tuple(CloudoverviewdashboardResponse, status_code(int), headers(HTTPHeaderDict))
|
12019
12017
|
If the method is called asynchronously,
|
12020
12018
|
returns the request thread.
|
12021
12019
|
"""
|
@@ -12038,14 +12036,14 @@ class DefaultApi(object):
|
|
12038
12036
|
if key not in all_params:
|
12039
12037
|
raise ApiTypeError(
|
12040
12038
|
"Got an unexpected keyword argument '%s'"
|
12041
|
-
" to method
|
12039
|
+
" to method get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get" % key
|
12042
12040
|
)
|
12043
12041
|
local_var_params[key] = val
|
12044
12042
|
del local_var_params['kwargs']
|
12045
12043
|
# verify the required parameter 'cloud_id' is set
|
12046
12044
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
12047
12045
|
local_var_params['cloud_id'] is None): # noqa: E501
|
12048
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
12046
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get`") # noqa: E501
|
12049
12047
|
|
12050
12048
|
collection_formats = {}
|
12051
12049
|
|
@@ -12069,14 +12067,14 @@ class DefaultApi(object):
|
|
12069
12067
|
auth_settings = [] # noqa: E501
|
12070
12068
|
|
12071
12069
|
return self.api_client.call_api(
|
12072
|
-
'/api/v2/clouds/{cloud_id}/
|
12070
|
+
'/api/v2/clouds/{cloud_id}/cloud-overview-dashboard', 'GET',
|
12073
12071
|
path_params,
|
12074
12072
|
query_params,
|
12075
12073
|
header_params,
|
12076
12074
|
body=body_params,
|
12077
12075
|
post_params=form_params,
|
12078
12076
|
files=local_var_files,
|
12079
|
-
response_type='
|
12077
|
+
response_type='CloudoverviewdashboardResponse', # noqa: E501
|
12080
12078
|
auth_settings=auth_settings,
|
12081
12079
|
async_req=local_var_params.get('async_req'),
|
12082
12080
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -12084,17 +12082,131 @@ class DefaultApi(object):
|
|
12084
12082
|
_request_timeout=local_var_params.get('_request_timeout'),
|
12085
12083
|
collection_formats=collection_formats)
|
12086
12084
|
|
12087
|
-
def
|
12088
|
-
"""Get Cloud
|
12085
|
+
def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(self, project_id, **kwargs): # noqa: E501
|
12086
|
+
"""Get Cloud Project Collaborator # noqa: E501
|
12089
12087
|
|
12090
|
-
|
12088
|
+
Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
|
12091
12089
|
This method makes a synchronous HTTP request by default. To make an
|
12092
12090
|
asynchronous HTTP request, please pass async_req=True
|
12093
|
-
>>> thread = api.
|
12091
|
+
>>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get(project_id, async_req=True)
|
12092
|
+
>>> result = thread.get()
|
12093
|
+
|
12094
|
+
:param async_req bool: execute request asynchronously
|
12095
|
+
:param str project_id: (required)
|
12096
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12097
|
+
be returned without reading/decoding response
|
12098
|
+
data. Default is True.
|
12099
|
+
:param _request_timeout: timeout setting for this request. If one
|
12100
|
+
number provided, it will be total request
|
12101
|
+
timeout. It can also be a pair (tuple) of
|
12102
|
+
(connection, read) timeouts.
|
12103
|
+
:return: CloudProjectCollaborator
|
12104
|
+
If the method is called asynchronously,
|
12105
|
+
returns the request thread.
|
12106
|
+
"""
|
12107
|
+
kwargs['_return_http_data_only'] = True
|
12108
|
+
return self.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, **kwargs) # noqa: E501
|
12109
|
+
|
12110
|
+
def get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(self, project_id, **kwargs): # noqa: E501
|
12111
|
+
"""Get Cloud Project Collaborator # noqa: E501
|
12112
|
+
|
12113
|
+
Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
|
12114
|
+
This method makes a synchronous HTTP request by default. To make an
|
12115
|
+
asynchronous HTTP request, please pass async_req=True
|
12116
|
+
>>> thread = api.get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get_with_http_info(project_id, async_req=True)
|
12117
|
+
>>> result = thread.get()
|
12118
|
+
|
12119
|
+
:param async_req bool: execute request asynchronously
|
12120
|
+
:param str project_id: (required)
|
12121
|
+
:param _return_http_data_only: response data without head status code
|
12122
|
+
and headers
|
12123
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12124
|
+
be returned without reading/decoding response
|
12125
|
+
data. Default is True.
|
12126
|
+
:param _request_timeout: timeout setting for this request. If one
|
12127
|
+
number provided, it will be total request
|
12128
|
+
timeout. It can also be a pair (tuple) of
|
12129
|
+
(connection, read) timeouts.
|
12130
|
+
:return: tuple(CloudProjectCollaborator, status_code(int), headers(HTTPHeaderDict))
|
12131
|
+
If the method is called asynchronously,
|
12132
|
+
returns the request thread.
|
12133
|
+
"""
|
12134
|
+
|
12135
|
+
local_var_params = locals()
|
12136
|
+
|
12137
|
+
all_params = [
|
12138
|
+
'project_id'
|
12139
|
+
]
|
12140
|
+
all_params.extend(
|
12141
|
+
[
|
12142
|
+
'async_req',
|
12143
|
+
'_return_http_data_only',
|
12144
|
+
'_preload_content',
|
12145
|
+
'_request_timeout'
|
12146
|
+
]
|
12147
|
+
)
|
12148
|
+
|
12149
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
12150
|
+
if key not in all_params:
|
12151
|
+
raise ApiTypeError(
|
12152
|
+
"Got an unexpected keyword argument '%s'"
|
12153
|
+
" to method get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get" % key
|
12154
|
+
)
|
12155
|
+
local_var_params[key] = val
|
12156
|
+
del local_var_params['kwargs']
|
12157
|
+
# verify the required parameter 'project_id' is set
|
12158
|
+
if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
|
12159
|
+
local_var_params['project_id'] is None): # noqa: E501
|
12160
|
+
raise ApiValueError("Missing the required parameter `project_id` when calling `get_cloud_project_collaborator_api_v2_projects_project_id_collaborators_clouds_get`") # noqa: E501
|
12161
|
+
|
12162
|
+
collection_formats = {}
|
12163
|
+
|
12164
|
+
path_params = {}
|
12165
|
+
if 'project_id' in local_var_params:
|
12166
|
+
path_params['project_id'] = local_var_params['project_id'] # noqa: E501
|
12167
|
+
|
12168
|
+
query_params = []
|
12169
|
+
|
12170
|
+
header_params = {}
|
12171
|
+
|
12172
|
+
form_params = []
|
12173
|
+
local_var_files = {}
|
12174
|
+
|
12175
|
+
body_params = None
|
12176
|
+
# HTTP header `Accept`
|
12177
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
12178
|
+
['application/json']) # noqa: E501
|
12179
|
+
|
12180
|
+
# Authentication setting
|
12181
|
+
auth_settings = [] # noqa: E501
|
12182
|
+
|
12183
|
+
return self.api_client.call_api(
|
12184
|
+
'/api/v2/projects/{project_id}/collaborators/clouds', 'GET',
|
12185
|
+
path_params,
|
12186
|
+
query_params,
|
12187
|
+
header_params,
|
12188
|
+
body=body_params,
|
12189
|
+
post_params=form_params,
|
12190
|
+
files=local_var_files,
|
12191
|
+
response_type='CloudProjectCollaborator', # noqa: E501
|
12192
|
+
auth_settings=auth_settings,
|
12193
|
+
async_req=local_var_params.get('async_req'),
|
12194
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
12195
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
12196
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
12197
|
+
collection_formats=collection_formats)
|
12198
|
+
|
12199
|
+
def get_cloud_resource_api_v2_clouds_cloud_id_resource_get(self, cloud_id, cloud_resource_id, **kwargs): # noqa: E501
|
12200
|
+
"""Get Cloud Resource # noqa: E501
|
12201
|
+
|
12202
|
+
This method makes a synchronous HTTP request by default. To make an
|
12203
|
+
asynchronous HTTP request, please pass async_req=True
|
12204
|
+
>>> thread = api.get_cloud_resource_api_v2_clouds_cloud_id_resource_get(cloud_id, cloud_resource_id, async_req=True)
|
12094
12205
|
>>> result = thread.get()
|
12095
12206
|
|
12096
12207
|
:param async_req bool: execute request asynchronously
|
12097
12208
|
:param str cloud_id: (required)
|
12209
|
+
:param str cloud_resource_id: (required)
|
12098
12210
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12099
12211
|
be returned without reading/decoding response
|
12100
12212
|
data. Default is True.
|
@@ -12102,24 +12214,24 @@ class DefaultApi(object):
|
|
12102
12214
|
number provided, it will be total request
|
12103
12215
|
timeout. It can also be a pair (tuple) of
|
12104
12216
|
(connection, read) timeouts.
|
12105
|
-
:return:
|
12217
|
+
:return: DecoratedcloudresourceResponse
|
12106
12218
|
If the method is called asynchronously,
|
12107
12219
|
returns the request thread.
|
12108
12220
|
"""
|
12109
12221
|
kwargs['_return_http_data_only'] = True
|
12110
|
-
return self.
|
12222
|
+
return self.get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(cloud_id, cloud_resource_id, **kwargs) # noqa: E501
|
12111
12223
|
|
12112
|
-
def
|
12113
|
-
"""Get Cloud
|
12224
|
+
def get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(self, cloud_id, cloud_resource_id, **kwargs): # noqa: E501
|
12225
|
+
"""Get Cloud Resource # noqa: E501
|
12114
12226
|
|
12115
|
-
Gets the cloud overview dashboard embed url. Installs or upgrades the Cloud overview dashboard if needed. # noqa: E501
|
12116
12227
|
This method makes a synchronous HTTP request by default. To make an
|
12117
12228
|
asynchronous HTTP request, please pass async_req=True
|
12118
|
-
>>> thread = api.
|
12229
|
+
>>> thread = api.get_cloud_resource_api_v2_clouds_cloud_id_resource_get_with_http_info(cloud_id, cloud_resource_id, async_req=True)
|
12119
12230
|
>>> result = thread.get()
|
12120
12231
|
|
12121
12232
|
:param async_req bool: execute request asynchronously
|
12122
12233
|
:param str cloud_id: (required)
|
12234
|
+
:param str cloud_resource_id: (required)
|
12123
12235
|
:param _return_http_data_only: response data without head status code
|
12124
12236
|
and headers
|
12125
12237
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -12129,7 +12241,7 @@ class DefaultApi(object):
|
|
12129
12241
|
number provided, it will be total request
|
12130
12242
|
timeout. It can also be a pair (tuple) of
|
12131
12243
|
(connection, read) timeouts.
|
12132
|
-
:return: tuple(
|
12244
|
+
:return: tuple(DecoratedcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
|
12133
12245
|
If the method is called asynchronously,
|
12134
12246
|
returns the request thread.
|
12135
12247
|
"""
|
@@ -12137,7 +12249,8 @@ class DefaultApi(object):
|
|
12137
12249
|
local_var_params = locals()
|
12138
12250
|
|
12139
12251
|
all_params = [
|
12140
|
-
'cloud_id'
|
12252
|
+
'cloud_id',
|
12253
|
+
'cloud_resource_id'
|
12141
12254
|
]
|
12142
12255
|
all_params.extend(
|
12143
12256
|
[
|
@@ -12152,14 +12265,18 @@ class DefaultApi(object):
|
|
12152
12265
|
if key not in all_params:
|
12153
12266
|
raise ApiTypeError(
|
12154
12267
|
"Got an unexpected keyword argument '%s'"
|
12155
|
-
" to method
|
12268
|
+
" to method get_cloud_resource_api_v2_clouds_cloud_id_resource_get" % key
|
12156
12269
|
)
|
12157
12270
|
local_var_params[key] = val
|
12158
12271
|
del local_var_params['kwargs']
|
12159
12272
|
# verify the required parameter 'cloud_id' is set
|
12160
12273
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
12161
12274
|
local_var_params['cloud_id'] is None): # noqa: E501
|
12162
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
12275
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_resource_api_v2_clouds_cloud_id_resource_get`") # noqa: E501
|
12276
|
+
# verify the required parameter 'cloud_resource_id' is set
|
12277
|
+
if self.api_client.client_side_validation and ('cloud_resource_id' not in local_var_params or # noqa: E501
|
12278
|
+
local_var_params['cloud_resource_id'] is None): # noqa: E501
|
12279
|
+
raise ApiValueError("Missing the required parameter `cloud_resource_id` when calling `get_cloud_resource_api_v2_clouds_cloud_id_resource_get`") # noqa: E501
|
12163
12280
|
|
12164
12281
|
collection_formats = {}
|
12165
12282
|
|
@@ -12168,6 +12285,8 @@ class DefaultApi(object):
|
|
12168
12285
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
12169
12286
|
|
12170
12287
|
query_params = []
|
12288
|
+
if 'cloud_resource_id' in local_var_params and local_var_params['cloud_resource_id'] is not None: # noqa: E501
|
12289
|
+
query_params.append(('cloud_resource_id', local_var_params['cloud_resource_id'])) # noqa: E501
|
12171
12290
|
|
12172
12291
|
header_params = {}
|
12173
12292
|
|
@@ -12183,14 +12302,14 @@ class DefaultApi(object):
|
|
12183
12302
|
auth_settings = [] # noqa: E501
|
12184
12303
|
|
12185
12304
|
return self.api_client.call_api(
|
12186
|
-
'/api/v2/clouds/{cloud_id}/
|
12305
|
+
'/api/v2/clouds/{cloud_id}/resource', 'GET',
|
12187
12306
|
path_params,
|
12188
12307
|
query_params,
|
12189
12308
|
header_params,
|
12190
12309
|
body=body_params,
|
12191
12310
|
post_params=form_params,
|
12192
12311
|
files=local_var_files,
|
12193
|
-
response_type='
|
12312
|
+
response_type='DecoratedcloudresourceResponse', # noqa: E501
|
12194
12313
|
auth_settings=auth_settings,
|
12195
12314
|
async_req=local_var_params.get('async_req'),
|
12196
12315
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -12198,17 +12317,16 @@ class DefaultApi(object):
|
|
12198
12317
|
_request_timeout=local_var_params.get('_request_timeout'),
|
12199
12318
|
collection_formats=collection_formats)
|
12200
12319
|
|
12201
|
-
def
|
12202
|
-
"""Get Cloud
|
12320
|
+
def get_cloud_resources_api_v2_clouds_cloud_id_resources_get(self, cloud_id, **kwargs): # noqa: E501
|
12321
|
+
"""Get Cloud Resources # noqa: E501
|
12203
12322
|
|
12204
|
-
Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
|
12205
12323
|
This method makes a synchronous HTTP request by default. To make an
|
12206
12324
|
asynchronous HTTP request, please pass async_req=True
|
12207
|
-
>>> thread = api.
|
12325
|
+
>>> thread = api.get_cloud_resources_api_v2_clouds_cloud_id_resources_get(cloud_id, async_req=True)
|
12208
12326
|
>>> result = thread.get()
|
12209
12327
|
|
12210
12328
|
:param async_req bool: execute request asynchronously
|
12211
|
-
:param str
|
12329
|
+
:param str cloud_id: (required)
|
12212
12330
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12213
12331
|
be returned without reading/decoding response
|
12214
12332
|
data. Default is True.
|
@@ -12216,24 +12334,23 @@ class DefaultApi(object):
|
|
12216
12334
|
number provided, it will be total request
|
12217
12335
|
timeout. It can also be a pair (tuple) of
|
12218
12336
|
(connection, read) timeouts.
|
12219
|
-
:return:
|
12337
|
+
:return: DecoratedcloudresourceListResponse
|
12220
12338
|
If the method is called asynchronously,
|
12221
12339
|
returns the request thread.
|
12222
12340
|
"""
|
12223
12341
|
kwargs['_return_http_data_only'] = True
|
12224
|
-
return self.
|
12342
|
+
return self.get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
12225
12343
|
|
12226
|
-
def
|
12227
|
-
"""Get Cloud
|
12344
|
+
def get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
12345
|
+
"""Get Cloud Resources # noqa: E501
|
12228
12346
|
|
12229
|
-
Get cloud that has permission for a given project if that project is public in the cloud. # noqa: E501
|
12230
12347
|
This method makes a synchronous HTTP request by default. To make an
|
12231
12348
|
asynchronous HTTP request, please pass async_req=True
|
12232
|
-
>>> thread = api.
|
12349
|
+
>>> thread = api.get_cloud_resources_api_v2_clouds_cloud_id_resources_get_with_http_info(cloud_id, async_req=True)
|
12233
12350
|
>>> result = thread.get()
|
12234
12351
|
|
12235
12352
|
:param async_req bool: execute request asynchronously
|
12236
|
-
:param str
|
12353
|
+
:param str cloud_id: (required)
|
12237
12354
|
:param _return_http_data_only: response data without head status code
|
12238
12355
|
and headers
|
12239
12356
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -12243,7 +12360,7 @@ class DefaultApi(object):
|
|
12243
12360
|
number provided, it will be total request
|
12244
12361
|
timeout. It can also be a pair (tuple) of
|
12245
12362
|
(connection, read) timeouts.
|
12246
|
-
:return: tuple(
|
12363
|
+
:return: tuple(DecoratedcloudresourceListResponse, status_code(int), headers(HTTPHeaderDict))
|
12247
12364
|
If the method is called asynchronously,
|
12248
12365
|
returns the request thread.
|
12249
12366
|
"""
|
@@ -12251,7 +12368,7 @@ class DefaultApi(object):
|
|
12251
12368
|
local_var_params = locals()
|
12252
12369
|
|
12253
12370
|
all_params = [
|
12254
|
-
'
|
12371
|
+
'cloud_id'
|
12255
12372
|
]
|
12256
12373
|
all_params.extend(
|
12257
12374
|
[
|
@@ -12266,20 +12383,20 @@ class DefaultApi(object):
|
|
12266
12383
|
if key not in all_params:
|
12267
12384
|
raise ApiTypeError(
|
12268
12385
|
"Got an unexpected keyword argument '%s'"
|
12269
|
-
" to method
|
12386
|
+
" to method get_cloud_resources_api_v2_clouds_cloud_id_resources_get" % key
|
12270
12387
|
)
|
12271
12388
|
local_var_params[key] = val
|
12272
12389
|
del local_var_params['kwargs']
|
12273
|
-
# verify the required parameter '
|
12274
|
-
if self.api_client.client_side_validation and ('
|
12275
|
-
local_var_params['
|
12276
|
-
raise ApiValueError("Missing the required parameter `
|
12390
|
+
# verify the required parameter 'cloud_id' is set
|
12391
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
12392
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
12393
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_resources_api_v2_clouds_cloud_id_resources_get`") # noqa: E501
|
12277
12394
|
|
12278
12395
|
collection_formats = {}
|
12279
12396
|
|
12280
12397
|
path_params = {}
|
12281
|
-
if '
|
12282
|
-
path_params['
|
12398
|
+
if 'cloud_id' in local_var_params:
|
12399
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
12283
12400
|
|
12284
12401
|
query_params = []
|
12285
12402
|
|
@@ -12297,14 +12414,14 @@ class DefaultApi(object):
|
|
12297
12414
|
auth_settings = [] # noqa: E501
|
12298
12415
|
|
12299
12416
|
return self.api_client.call_api(
|
12300
|
-
'/api/v2/
|
12417
|
+
'/api/v2/clouds/{cloud_id}/resources', 'GET',
|
12301
12418
|
path_params,
|
12302
12419
|
query_params,
|
12303
12420
|
header_params,
|
12304
12421
|
body=body_params,
|
12305
12422
|
post_params=form_params,
|
12306
12423
|
files=local_var_files,
|
12307
|
-
response_type='
|
12424
|
+
response_type='DecoratedcloudresourceListResponse', # noqa: E501
|
12308
12425
|
auth_settings=auth_settings,
|
12309
12426
|
async_req=local_var_params.get('async_req'),
|
12310
12427
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -15899,13 +16016,13 @@ class DefaultApi(object):
|
|
15899
16016
|
_request_timeout=local_var_params.get('_request_timeout'),
|
15900
16017
|
collection_formats=collection_formats)
|
15901
16018
|
|
15902
|
-
def
|
15903
|
-
"""Get Latest Cloud
|
16019
|
+
def get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get(self, cluster_id, **kwargs): # noqa: E501
|
16020
|
+
"""Get Latest Cloud Resource # noqa: E501
|
15904
16021
|
|
15905
|
-
Fetches the
|
16022
|
+
Fetches the last-used cloud resource for a cluster. # noqa: E501
|
15906
16023
|
This method makes a synchronous HTTP request by default. To make an
|
15907
16024
|
asynchronous HTTP request, please pass async_req=True
|
15908
|
-
>>> thread = api.
|
16025
|
+
>>> thread = api.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get(cluster_id, async_req=True)
|
15909
16026
|
>>> result = thread.get()
|
15910
16027
|
|
15911
16028
|
:param async_req bool: execute request asynchronously
|
@@ -15917,20 +16034,20 @@ class DefaultApi(object):
|
|
15917
16034
|
number provided, it will be total request
|
15918
16035
|
timeout. It can also be a pair (tuple) of
|
15919
16036
|
(connection, read) timeouts.
|
15920
|
-
:return:
|
16037
|
+
:return: DecoratedcloudresourceResponse
|
15921
16038
|
If the method is called asynchronously,
|
15922
16039
|
returns the request thread.
|
15923
16040
|
"""
|
15924
16041
|
kwargs['_return_http_data_only'] = True
|
15925
|
-
return self.
|
16042
|
+
return self.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
15926
16043
|
|
15927
|
-
def
|
15928
|
-
"""Get Latest Cloud
|
16044
|
+
def get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
16045
|
+
"""Get Latest Cloud Resource # noqa: E501
|
15929
16046
|
|
15930
|
-
Fetches the
|
16047
|
+
Fetches the last-used cloud resource for a cluster. # noqa: E501
|
15931
16048
|
This method makes a synchronous HTTP request by default. To make an
|
15932
16049
|
asynchronous HTTP request, please pass async_req=True
|
15933
|
-
>>> thread = api.
|
16050
|
+
>>> thread = api.get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get_with_http_info(cluster_id, async_req=True)
|
15934
16051
|
>>> result = thread.get()
|
15935
16052
|
|
15936
16053
|
:param async_req bool: execute request asynchronously
|
@@ -15944,7 +16061,7 @@ class DefaultApi(object):
|
|
15944
16061
|
number provided, it will be total request
|
15945
16062
|
timeout. It can also be a pair (tuple) of
|
15946
16063
|
(connection, read) timeouts.
|
15947
|
-
:return: tuple(
|
16064
|
+
:return: tuple(DecoratedcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
|
15948
16065
|
If the method is called asynchronously,
|
15949
16066
|
returns the request thread.
|
15950
16067
|
"""
|
@@ -15967,14 +16084,14 @@ class DefaultApi(object):
|
|
15967
16084
|
if key not in all_params:
|
15968
16085
|
raise ApiTypeError(
|
15969
16086
|
"Got an unexpected keyword argument '%s'"
|
15970
|
-
" to method
|
16087
|
+
" to method get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get" % key
|
15971
16088
|
)
|
15972
16089
|
local_var_params[key] = val
|
15973
16090
|
del local_var_params['kwargs']
|
15974
16091
|
# verify the required parameter 'cluster_id' is set
|
15975
16092
|
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
15976
16093
|
local_var_params['cluster_id'] is None): # noqa: E501
|
15977
|
-
raise ApiValueError("Missing the required parameter `cluster_id` when calling `
|
16094
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_latest_cloud_resource_api_v2_sessions_cluster_id_latest_cloud_resource_get`") # noqa: E501
|
15978
16095
|
|
15979
16096
|
collection_formats = {}
|
15980
16097
|
|
@@ -15998,14 +16115,14 @@ class DefaultApi(object):
|
|
15998
16115
|
auth_settings = [] # noqa: E501
|
15999
16116
|
|
16000
16117
|
return self.api_client.call_api(
|
16001
|
-
'/api/v2/sessions/{cluster_id}/
|
16118
|
+
'/api/v2/sessions/{cluster_id}/latest_cloud_resource', 'GET',
|
16002
16119
|
path_params,
|
16003
16120
|
query_params,
|
16004
16121
|
header_params,
|
16005
16122
|
body=body_params,
|
16006
16123
|
post_params=form_params,
|
16007
16124
|
files=local_var_files,
|
16008
|
-
response_type='
|
16125
|
+
response_type='DecoratedcloudresourceResponse', # noqa: E501
|
16009
16126
|
auth_settings=auth_settings,
|
16010
16127
|
async_req=local_var_params.get('async_req'),
|
16011
16128
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -18647,6 +18764,129 @@ class DefaultApi(object):
|
|
18647
18764
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18648
18765
|
collection_formats=collection_formats)
|
18649
18766
|
|
18767
|
+
def get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get(self, production_job_id, ha_job_event_id, **kwargs): # noqa: E501
|
18768
|
+
"""Get Sensitive Message Presigned Url # noqa: E501
|
18769
|
+
|
18770
|
+
Get the presigned url for the sensitive message details # noqa: E501
|
18771
|
+
This method makes a synchronous HTTP request by default. To make an
|
18772
|
+
asynchronous HTTP request, please pass async_req=True
|
18773
|
+
>>> thread = api.get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get(production_job_id, ha_job_event_id, async_req=True)
|
18774
|
+
>>> result = thread.get()
|
18775
|
+
|
18776
|
+
:param async_req bool: execute request asynchronously
|
18777
|
+
:param str production_job_id: (required)
|
18778
|
+
:param str ha_job_event_id: (required)
|
18779
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18780
|
+
be returned without reading/decoding response
|
18781
|
+
data. Default is True.
|
18782
|
+
:param _request_timeout: timeout setting for this request. If one
|
18783
|
+
number provided, it will be total request
|
18784
|
+
timeout. It can also be a pair (tuple) of
|
18785
|
+
(connection, read) timeouts.
|
18786
|
+
:return: PresignedUrlResponse
|
18787
|
+
If the method is called asynchronously,
|
18788
|
+
returns the request thread.
|
18789
|
+
"""
|
18790
|
+
kwargs['_return_http_data_only'] = True
|
18791
|
+
return self.get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get_with_http_info(production_job_id, ha_job_event_id, **kwargs) # noqa: E501
|
18792
|
+
|
18793
|
+
def get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get_with_http_info(self, production_job_id, ha_job_event_id, **kwargs): # noqa: E501
|
18794
|
+
"""Get Sensitive Message Presigned Url # noqa: E501
|
18795
|
+
|
18796
|
+
Get the presigned url for the sensitive message details # noqa: E501
|
18797
|
+
This method makes a synchronous HTTP request by default. To make an
|
18798
|
+
asynchronous HTTP request, please pass async_req=True
|
18799
|
+
>>> thread = api.get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get_with_http_info(production_job_id, ha_job_event_id, async_req=True)
|
18800
|
+
>>> result = thread.get()
|
18801
|
+
|
18802
|
+
:param async_req bool: execute request asynchronously
|
18803
|
+
:param str production_job_id: (required)
|
18804
|
+
:param str ha_job_event_id: (required)
|
18805
|
+
:param _return_http_data_only: response data without head status code
|
18806
|
+
and headers
|
18807
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18808
|
+
be returned without reading/decoding response
|
18809
|
+
data. Default is True.
|
18810
|
+
:param _request_timeout: timeout setting for this request. If one
|
18811
|
+
number provided, it will be total request
|
18812
|
+
timeout. It can also be a pair (tuple) of
|
18813
|
+
(connection, read) timeouts.
|
18814
|
+
:return: tuple(PresignedUrlResponse, status_code(int), headers(HTTPHeaderDict))
|
18815
|
+
If the method is called asynchronously,
|
18816
|
+
returns the request thread.
|
18817
|
+
"""
|
18818
|
+
|
18819
|
+
local_var_params = locals()
|
18820
|
+
|
18821
|
+
all_params = [
|
18822
|
+
'production_job_id',
|
18823
|
+
'ha_job_event_id'
|
18824
|
+
]
|
18825
|
+
all_params.extend(
|
18826
|
+
[
|
18827
|
+
'async_req',
|
18828
|
+
'_return_http_data_only',
|
18829
|
+
'_preload_content',
|
18830
|
+
'_request_timeout'
|
18831
|
+
]
|
18832
|
+
)
|
18833
|
+
|
18834
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
18835
|
+
if key not in all_params:
|
18836
|
+
raise ApiTypeError(
|
18837
|
+
"Got an unexpected keyword argument '%s'"
|
18838
|
+
" to method get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get" % key
|
18839
|
+
)
|
18840
|
+
local_var_params[key] = val
|
18841
|
+
del local_var_params['kwargs']
|
18842
|
+
# verify the required parameter 'production_job_id' is set
|
18843
|
+
if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
|
18844
|
+
local_var_params['production_job_id'] is None): # noqa: E501
|
18845
|
+
raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get`") # noqa: E501
|
18846
|
+
# verify the required parameter 'ha_job_event_id' is set
|
18847
|
+
if self.api_client.client_side_validation and ('ha_job_event_id' not in local_var_params or # noqa: E501
|
18848
|
+
local_var_params['ha_job_event_id'] is None): # noqa: E501
|
18849
|
+
raise ApiValueError("Missing the required parameter `ha_job_event_id` when calling `get_sensitive_message_presigned_url_api_v2_decorated_ha_jobs_production_job_id_events_ha_job_event_id_sensitive_message_presigned_url_get`") # noqa: E501
|
18850
|
+
|
18851
|
+
collection_formats = {}
|
18852
|
+
|
18853
|
+
path_params = {}
|
18854
|
+
if 'production_job_id' in local_var_params:
|
18855
|
+
path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
|
18856
|
+
if 'ha_job_event_id' in local_var_params:
|
18857
|
+
path_params['ha_job_event_id'] = local_var_params['ha_job_event_id'] # noqa: E501
|
18858
|
+
|
18859
|
+
query_params = []
|
18860
|
+
|
18861
|
+
header_params = {}
|
18862
|
+
|
18863
|
+
form_params = []
|
18864
|
+
local_var_files = {}
|
18865
|
+
|
18866
|
+
body_params = None
|
18867
|
+
# HTTP header `Accept`
|
18868
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
18869
|
+
['application/json']) # noqa: E501
|
18870
|
+
|
18871
|
+
# Authentication setting
|
18872
|
+
auth_settings = [] # noqa: E501
|
18873
|
+
|
18874
|
+
return self.api_client.call_api(
|
18875
|
+
'/api/v2/decorated_ha_jobs/{production_job_id}/events/{ha_job_event_id}/sensitive_message_presigned_url', 'GET',
|
18876
|
+
path_params,
|
18877
|
+
query_params,
|
18878
|
+
header_params,
|
18879
|
+
body=body_params,
|
18880
|
+
post_params=form_params,
|
18881
|
+
files=local_var_files,
|
18882
|
+
response_type='PresignedUrlResponse', # noqa: E501
|
18883
|
+
auth_settings=auth_settings,
|
18884
|
+
async_req=local_var_params.get('async_req'),
|
18885
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18886
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
18887
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
18888
|
+
collection_formats=collection_formats)
|
18889
|
+
|
18650
18890
|
def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
|
18651
18891
|
"""Get Serve Logs Download # noqa: E501
|
18652
18892
|
|
@@ -28582,181 +28822,6 @@ class DefaultApi(object):
|
|
28582
28822
|
_request_timeout=local_var_params.get('_request_timeout'),
|
28583
28823
|
collection_formats=collection_formats)
|
28584
28824
|
|
28585
|
-
def query_api_v2_logs_query_get(self, logql_query, start, end, source_type, **kwargs): # noqa: E501
|
28586
|
-
"""Query # noqa: E501
|
28587
|
-
|
28588
|
-
Fetching logs using LogQL queries. # noqa: E501
|
28589
|
-
This method makes a synchronous HTTP request by default. To make an
|
28590
|
-
asynchronous HTTP request, please pass async_req=True
|
28591
|
-
>>> thread = api.query_api_v2_logs_query_get(logql_query, start, end, source_type, async_req=True)
|
28592
|
-
>>> result = thread.get()
|
28593
|
-
|
28594
|
-
:param async_req bool: execute request asynchronously
|
28595
|
-
:param str logql_query: LogQL query string to execute against the logs. This should be a valid Loki LogQL expression. (required)
|
28596
|
-
:param float start: The start time for the query as a nanosecond Unix epoch. (required)
|
28597
|
-
:param float end: The end time for the query as a nanosecond Unix epoch. (required)
|
28598
|
-
:param str source_type: The type of logs to query. Must be one of \"application\" or \"system\". (required)
|
28599
|
-
:param str cluster_id: The cluster id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28600
|
-
:param str workspace_id: The workspace id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28601
|
-
:param str ha_job_id: The production job id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28602
|
-
:param str service_id: The service id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28603
|
-
:param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
|
28604
|
-
:param bool reverse_sort: Whether the result should be sorted by descending timestamp. Also determines the query direction. When false, it will start to query from the start and return results until it reaches the page_size or the end. When true, it will start to query from the end and return results until it reaches the page_size or the start. Default to false.
|
28605
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28606
|
-
be returned without reading/decoding response
|
28607
|
-
data. Default is True.
|
28608
|
-
:param _request_timeout: timeout setting for this request. If one
|
28609
|
-
number provided, it will be total request
|
28610
|
-
timeout. It can also be a pair (tuple) of
|
28611
|
-
(connection, read) timeouts.
|
28612
|
-
:return: LogitembatchResponse
|
28613
|
-
If the method is called asynchronously,
|
28614
|
-
returns the request thread.
|
28615
|
-
"""
|
28616
|
-
kwargs['_return_http_data_only'] = True
|
28617
|
-
return self.query_api_v2_logs_query_get_with_http_info(logql_query, start, end, source_type, **kwargs) # noqa: E501
|
28618
|
-
|
28619
|
-
def query_api_v2_logs_query_get_with_http_info(self, logql_query, start, end, source_type, **kwargs): # noqa: E501
|
28620
|
-
"""Query # noqa: E501
|
28621
|
-
|
28622
|
-
Fetching logs using LogQL queries. # noqa: E501
|
28623
|
-
This method makes a synchronous HTTP request by default. To make an
|
28624
|
-
asynchronous HTTP request, please pass async_req=True
|
28625
|
-
>>> thread = api.query_api_v2_logs_query_get_with_http_info(logql_query, start, end, source_type, async_req=True)
|
28626
|
-
>>> result = thread.get()
|
28627
|
-
|
28628
|
-
:param async_req bool: execute request asynchronously
|
28629
|
-
:param str logql_query: LogQL query string to execute against the logs. This should be a valid Loki LogQL expression. (required)
|
28630
|
-
:param float start: The start time for the query as a nanosecond Unix epoch. (required)
|
28631
|
-
:param float end: The end time for the query as a nanosecond Unix epoch. (required)
|
28632
|
-
:param str source_type: The type of logs to query. Must be one of \"application\" or \"system\". (required)
|
28633
|
-
:param str cluster_id: The cluster id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28634
|
-
:param str workspace_id: The workspace id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28635
|
-
:param str ha_job_id: The production job id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28636
|
-
:param str service_id: The service id used to fetch logs. Exactly one of cluster_id, workspace_id, ha_job_id, or service_id must be set.
|
28637
|
-
:param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
|
28638
|
-
:param bool reverse_sort: Whether the result should be sorted by descending timestamp. Also determines the query direction. When false, it will start to query from the start and return results until it reaches the page_size or the end. When true, it will start to query from the end and return results until it reaches the page_size or the start. Default to false.
|
28639
|
-
:param _return_http_data_only: response data without head status code
|
28640
|
-
and headers
|
28641
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28642
|
-
be returned without reading/decoding response
|
28643
|
-
data. Default is True.
|
28644
|
-
:param _request_timeout: timeout setting for this request. If one
|
28645
|
-
number provided, it will be total request
|
28646
|
-
timeout. It can also be a pair (tuple) of
|
28647
|
-
(connection, read) timeouts.
|
28648
|
-
:return: tuple(LogitembatchResponse, status_code(int), headers(HTTPHeaderDict))
|
28649
|
-
If the method is called asynchronously,
|
28650
|
-
returns the request thread.
|
28651
|
-
"""
|
28652
|
-
|
28653
|
-
local_var_params = locals()
|
28654
|
-
|
28655
|
-
all_params = [
|
28656
|
-
'logql_query',
|
28657
|
-
'start',
|
28658
|
-
'end',
|
28659
|
-
'source_type',
|
28660
|
-
'cluster_id',
|
28661
|
-
'workspace_id',
|
28662
|
-
'ha_job_id',
|
28663
|
-
'service_id',
|
28664
|
-
'page_size',
|
28665
|
-
'reverse_sort'
|
28666
|
-
]
|
28667
|
-
all_params.extend(
|
28668
|
-
[
|
28669
|
-
'async_req',
|
28670
|
-
'_return_http_data_only',
|
28671
|
-
'_preload_content',
|
28672
|
-
'_request_timeout'
|
28673
|
-
]
|
28674
|
-
)
|
28675
|
-
|
28676
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
28677
|
-
if key not in all_params:
|
28678
|
-
raise ApiTypeError(
|
28679
|
-
"Got an unexpected keyword argument '%s'"
|
28680
|
-
" to method query_api_v2_logs_query_get" % key
|
28681
|
-
)
|
28682
|
-
local_var_params[key] = val
|
28683
|
-
del local_var_params['kwargs']
|
28684
|
-
# verify the required parameter 'logql_query' is set
|
28685
|
-
if self.api_client.client_side_validation and ('logql_query' not in local_var_params or # noqa: E501
|
28686
|
-
local_var_params['logql_query'] is None): # noqa: E501
|
28687
|
-
raise ApiValueError("Missing the required parameter `logql_query` when calling `query_api_v2_logs_query_get`") # noqa: E501
|
28688
|
-
# verify the required parameter 'start' is set
|
28689
|
-
if self.api_client.client_side_validation and ('start' not in local_var_params or # noqa: E501
|
28690
|
-
local_var_params['start'] is None): # noqa: E501
|
28691
|
-
raise ApiValueError("Missing the required parameter `start` when calling `query_api_v2_logs_query_get`") # noqa: E501
|
28692
|
-
# verify the required parameter 'end' is set
|
28693
|
-
if self.api_client.client_side_validation and ('end' not in local_var_params or # noqa: E501
|
28694
|
-
local_var_params['end'] is None): # noqa: E501
|
28695
|
-
raise ApiValueError("Missing the required parameter `end` when calling `query_api_v2_logs_query_get`") # noqa: E501
|
28696
|
-
# verify the required parameter 'source_type' is set
|
28697
|
-
if self.api_client.client_side_validation and ('source_type' not in local_var_params or # noqa: E501
|
28698
|
-
local_var_params['source_type'] is None): # noqa: E501
|
28699
|
-
raise ApiValueError("Missing the required parameter `source_type` when calling `query_api_v2_logs_query_get`") # noqa: E501
|
28700
|
-
|
28701
|
-
if self.api_client.client_side_validation and 'source_type' in local_var_params and not re.search(r'^(application|system)$', local_var_params['source_type']): # noqa: E501
|
28702
|
-
raise ApiValueError("Invalid value for parameter `source_type` when calling `query_api_v2_logs_query_get`, must conform to the pattern `/^(application|system)$/`") # noqa: E501
|
28703
|
-
if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
|
28704
|
-
raise ApiValueError("Invalid value for parameter `page_size` when calling `query_api_v2_logs_query_get`, must be a value less than or equal to `1000`") # noqa: E501
|
28705
|
-
collection_formats = {}
|
28706
|
-
|
28707
|
-
path_params = {}
|
28708
|
-
|
28709
|
-
query_params = []
|
28710
|
-
if 'logql_query' in local_var_params and local_var_params['logql_query'] is not None: # noqa: E501
|
28711
|
-
query_params.append(('logql_query', local_var_params['logql_query'])) # noqa: E501
|
28712
|
-
if 'start' in local_var_params and local_var_params['start'] is not None: # noqa: E501
|
28713
|
-
query_params.append(('start', local_var_params['start'])) # noqa: E501
|
28714
|
-
if 'end' in local_var_params and local_var_params['end'] is not None: # noqa: E501
|
28715
|
-
query_params.append(('end', local_var_params['end'])) # noqa: E501
|
28716
|
-
if 'source_type' in local_var_params and local_var_params['source_type'] is not None: # noqa: E501
|
28717
|
-
query_params.append(('source_type', local_var_params['source_type'])) # noqa: E501
|
28718
|
-
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
28719
|
-
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
28720
|
-
if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
|
28721
|
-
query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
|
28722
|
-
if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
|
28723
|
-
query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
|
28724
|
-
if 'service_id' in local_var_params and local_var_params['service_id'] is not None: # noqa: E501
|
28725
|
-
query_params.append(('service_id', local_var_params['service_id'])) # noqa: E501
|
28726
|
-
if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
|
28727
|
-
query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
|
28728
|
-
if 'reverse_sort' in local_var_params and local_var_params['reverse_sort'] is not None: # noqa: E501
|
28729
|
-
query_params.append(('reverse_sort', local_var_params['reverse_sort'])) # noqa: E501
|
28730
|
-
|
28731
|
-
header_params = {}
|
28732
|
-
|
28733
|
-
form_params = []
|
28734
|
-
local_var_files = {}
|
28735
|
-
|
28736
|
-
body_params = None
|
28737
|
-
# HTTP header `Accept`
|
28738
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
28739
|
-
['application/json']) # noqa: E501
|
28740
|
-
|
28741
|
-
# Authentication setting
|
28742
|
-
auth_settings = [] # noqa: E501
|
28743
|
-
|
28744
|
-
return self.api_client.call_api(
|
28745
|
-
'/api/v2/logs/query', 'GET',
|
28746
|
-
path_params,
|
28747
|
-
query_params,
|
28748
|
-
header_params,
|
28749
|
-
body=body_params,
|
28750
|
-
post_params=form_params,
|
28751
|
-
files=local_var_files,
|
28752
|
-
response_type='LogitembatchResponse', # noqa: E501
|
28753
|
-
auth_settings=auth_settings,
|
28754
|
-
async_req=local_var_params.get('async_req'),
|
28755
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28756
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
28757
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
28758
|
-
collection_formats=collection_formats)
|
28759
|
-
|
28760
28825
|
def query_api_v2_metrics_query_get(self, promql_query, **kwargs): # noqa: E501
|
28761
28826
|
"""Query # noqa: E501
|
28762
28827
|
|
@@ -30005,17 +30070,17 @@ class DefaultApi(object):
|
|
30005
30070
|
_request_timeout=local_var_params.get('_request_timeout'),
|
30006
30071
|
collection_formats=collection_formats)
|
30007
30072
|
|
30008
|
-
def
|
30009
|
-
"""Remove Cloud
|
30073
|
+
def remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
|
30074
|
+
"""Remove Cloud Resource # noqa: E501
|
30010
30075
|
|
30011
30076
|
This method makes a synchronous HTTP request by default. To make an
|
30012
30077
|
asynchronous HTTP request, please pass async_req=True
|
30013
|
-
>>> thread = api.
|
30078
|
+
>>> thread = api.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete(cloud_id, cloud_resource_name, async_req=True)
|
30014
30079
|
>>> result = thread.get()
|
30015
30080
|
|
30016
30081
|
:param async_req bool: execute request asynchronously
|
30017
30082
|
:param str cloud_id: (required)
|
30018
|
-
:param str
|
30083
|
+
:param str cloud_resource_name: (required)
|
30019
30084
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
30020
30085
|
be returned without reading/decoding response
|
30021
30086
|
data. Default is True.
|
@@ -30028,19 +30093,19 @@ class DefaultApi(object):
|
|
30028
30093
|
returns the request thread.
|
30029
30094
|
"""
|
30030
30095
|
kwargs['_return_http_data_only'] = True
|
30031
|
-
return self.
|
30096
|
+
return self.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(cloud_id, cloud_resource_name, **kwargs) # noqa: E501
|
30032
30097
|
|
30033
|
-
def
|
30034
|
-
"""Remove Cloud
|
30098
|
+
def remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
|
30099
|
+
"""Remove Cloud Resource # noqa: E501
|
30035
30100
|
|
30036
30101
|
This method makes a synchronous HTTP request by default. To make an
|
30037
30102
|
asynchronous HTTP request, please pass async_req=True
|
30038
|
-
>>> thread = api.
|
30103
|
+
>>> thread = api.remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete_with_http_info(cloud_id, cloud_resource_name, async_req=True)
|
30039
30104
|
>>> result = thread.get()
|
30040
30105
|
|
30041
30106
|
:param async_req bool: execute request asynchronously
|
30042
30107
|
:param str cloud_id: (required)
|
30043
|
-
:param str
|
30108
|
+
:param str cloud_resource_name: (required)
|
30044
30109
|
:param _return_http_data_only: response data without head status code
|
30045
30110
|
and headers
|
30046
30111
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -30059,7 +30124,7 @@ class DefaultApi(object):
|
|
30059
30124
|
|
30060
30125
|
all_params = [
|
30061
30126
|
'cloud_id',
|
30062
|
-
'
|
30127
|
+
'cloud_resource_name'
|
30063
30128
|
]
|
30064
30129
|
all_params.extend(
|
30065
30130
|
[
|
@@ -30074,18 +30139,18 @@ class DefaultApi(object):
|
|
30074
30139
|
if key not in all_params:
|
30075
30140
|
raise ApiTypeError(
|
30076
30141
|
"Got an unexpected keyword argument '%s'"
|
30077
|
-
" to method
|
30142
|
+
" to method remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete" % key
|
30078
30143
|
)
|
30079
30144
|
local_var_params[key] = val
|
30080
30145
|
del local_var_params['kwargs']
|
30081
30146
|
# verify the required parameter 'cloud_id' is set
|
30082
30147
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
30083
30148
|
local_var_params['cloud_id'] is None): # noqa: E501
|
30084
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
30085
|
-
# verify the required parameter '
|
30086
|
-
if self.api_client.client_side_validation and ('
|
30087
|
-
local_var_params['
|
30088
|
-
raise ApiValueError("Missing the required parameter `
|
30149
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete`") # noqa: E501
|
30150
|
+
# verify the required parameter 'cloud_resource_name' is set
|
30151
|
+
if self.api_client.client_side_validation and ('cloud_resource_name' not in local_var_params or # noqa: E501
|
30152
|
+
local_var_params['cloud_resource_name'] is None): # noqa: E501
|
30153
|
+
raise ApiValueError("Missing the required parameter `cloud_resource_name` when calling `remove_cloud_resource_api_v2_clouds_cloud_id_remove_resource_delete`") # noqa: E501
|
30089
30154
|
|
30090
30155
|
collection_formats = {}
|
30091
30156
|
|
@@ -30094,8 +30159,8 @@ class DefaultApi(object):
|
|
30094
30159
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
30095
30160
|
|
30096
30161
|
query_params = []
|
30097
|
-
if '
|
30098
|
-
query_params.append(('
|
30162
|
+
if 'cloud_resource_name' in local_var_params and local_var_params['cloud_resource_name'] is not None: # noqa: E501
|
30163
|
+
query_params.append(('cloud_resource_name', local_var_params['cloud_resource_name'])) # noqa: E501
|
30099
30164
|
|
30100
30165
|
header_params = {}
|
30101
30166
|
|
@@ -30111,7 +30176,7 @@ class DefaultApi(object):
|
|
30111
30176
|
auth_settings = [] # noqa: E501
|
30112
30177
|
|
30113
30178
|
return self.api_client.call_api(
|
30114
|
-
'/api/v2/clouds/{cloud_id}/
|
30179
|
+
'/api/v2/clouds/{cloud_id}/remove_resource', 'DELETE',
|
30115
30180
|
path_params,
|
30116
30181
|
query_params,
|
30117
30182
|
header_params,
|
@@ -33017,7 +33082,7 @@ class DefaultApi(object):
|
|
33017
33082
|
def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(self, organization_id, **kwargs): # noqa: E501
|
33018
33083
|
"""Sync Organization With Metronome # noqa: E501
|
33019
33084
|
|
33020
|
-
Refreshes the status of all (recorded) Metronome alerts. # noqa: E501
|
33085
|
+
Refreshes the status of all (recorded) Metronome alerts. If reset_alerts is True, the alerts will be reset before being fetched. # noqa: E501
|
33021
33086
|
This method makes a synchronous HTTP request by default. To make an
|
33022
33087
|
asynchronous HTTP request, please pass async_req=True
|
33023
33088
|
>>> thread = api.sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(organization_id, async_req=True)
|
@@ -33025,6 +33090,7 @@ class DefaultApi(object):
|
|
33025
33090
|
|
33026
33091
|
:param async_req bool: execute request asynchronously
|
33027
33092
|
:param str organization_id: (required)
|
33093
|
+
:param bool reset_alerts:
|
33028
33094
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33029
33095
|
be returned without reading/decoding response
|
33030
33096
|
data. Default is True.
|
@@ -33042,7 +33108,7 @@ class DefaultApi(object):
|
|
33042
33108
|
def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post_with_http_info(self, organization_id, **kwargs): # noqa: E501
|
33043
33109
|
"""Sync Organization With Metronome # noqa: E501
|
33044
33110
|
|
33045
|
-
Refreshes the status of all (recorded) Metronome alerts. # noqa: E501
|
33111
|
+
Refreshes the status of all (recorded) Metronome alerts. If reset_alerts is True, the alerts will be reset before being fetched. # noqa: E501
|
33046
33112
|
This method makes a synchronous HTTP request by default. To make an
|
33047
33113
|
asynchronous HTTP request, please pass async_req=True
|
33048
33114
|
>>> thread = api.sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post_with_http_info(organization_id, async_req=True)
|
@@ -33050,6 +33116,7 @@ class DefaultApi(object):
|
|
33050
33116
|
|
33051
33117
|
:param async_req bool: execute request asynchronously
|
33052
33118
|
:param str organization_id: (required)
|
33119
|
+
:param bool reset_alerts:
|
33053
33120
|
:param _return_http_data_only: response data without head status code
|
33054
33121
|
and headers
|
33055
33122
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -33067,7 +33134,8 @@ class DefaultApi(object):
|
|
33067
33134
|
local_var_params = locals()
|
33068
33135
|
|
33069
33136
|
all_params = [
|
33070
|
-
'organization_id'
|
33137
|
+
'organization_id',
|
33138
|
+
'reset_alerts'
|
33071
33139
|
]
|
33072
33140
|
all_params.extend(
|
33073
33141
|
[
|
@@ -33098,6 +33166,8 @@ class DefaultApi(object):
|
|
33098
33166
|
path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
|
33099
33167
|
|
33100
33168
|
query_params = []
|
33169
|
+
if 'reset_alerts' in local_var_params and local_var_params['reset_alerts'] is not None: # noqa: E501
|
33170
|
+
query_params.append(('reset_alerts', local_var_params['reset_alerts'])) # noqa: E501
|
33101
33171
|
|
33102
33172
|
header_params = {}
|
33103
33173
|
|
@@ -34526,12 +34596,12 @@ class DefaultApi(object):
|
|
34526
34596
|
_request_timeout=local_var_params.get('_request_timeout'),
|
34527
34597
|
collection_formats=collection_formats)
|
34528
34598
|
|
34529
|
-
def
|
34530
|
-
"""Update Cloud
|
34599
|
+
def update_cloud_resources_api_v2_clouds_cloud_id_resources_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34600
|
+
"""Update Cloud Resources # noqa: E501
|
34531
34601
|
|
34532
34602
|
This method makes a synchronous HTTP request by default. To make an
|
34533
34603
|
asynchronous HTTP request, please pass async_req=True
|
34534
|
-
>>> thread = api.
|
34604
|
+
>>> thread = api.update_cloud_resources_api_v2_clouds_cloud_id_resources_put(cloud_id, cloud_deployment, async_req=True)
|
34535
34605
|
>>> result = thread.get()
|
34536
34606
|
|
34537
34607
|
:param async_req bool: execute request asynchronously
|
@@ -34549,14 +34619,14 @@ class DefaultApi(object):
|
|
34549
34619
|
returns the request thread.
|
34550
34620
|
"""
|
34551
34621
|
kwargs['_return_http_data_only'] = True
|
34552
|
-
return self.
|
34622
|
+
return self.update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
34553
34623
|
|
34554
|
-
def
|
34555
|
-
"""Update Cloud
|
34624
|
+
def update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34625
|
+
"""Update Cloud Resources # noqa: E501
|
34556
34626
|
|
34557
34627
|
This method makes a synchronous HTTP request by default. To make an
|
34558
34628
|
asynchronous HTTP request, please pass async_req=True
|
34559
|
-
>>> thread = api.
|
34629
|
+
>>> thread = api.update_cloud_resources_api_v2_clouds_cloud_id_resources_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
34560
34630
|
>>> result = thread.get()
|
34561
34631
|
|
34562
34632
|
:param async_req bool: execute request asynchronously
|
@@ -34595,18 +34665,18 @@ class DefaultApi(object):
|
|
34595
34665
|
if key not in all_params:
|
34596
34666
|
raise ApiTypeError(
|
34597
34667
|
"Got an unexpected keyword argument '%s'"
|
34598
|
-
" to method
|
34668
|
+
" to method update_cloud_resources_api_v2_clouds_cloud_id_resources_put" % key
|
34599
34669
|
)
|
34600
34670
|
local_var_params[key] = val
|
34601
34671
|
del local_var_params['kwargs']
|
34602
34672
|
# verify the required parameter 'cloud_id' is set
|
34603
34673
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
34604
34674
|
local_var_params['cloud_id'] is None): # noqa: E501
|
34605
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
34675
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_resources_api_v2_clouds_cloud_id_resources_put`") # noqa: E501
|
34606
34676
|
# verify the required parameter 'cloud_deployment' is set
|
34607
34677
|
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
34608
34678
|
local_var_params['cloud_deployment'] is None): # noqa: E501
|
34609
|
-
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `
|
34679
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_resources_api_v2_clouds_cloud_id_resources_put`") # noqa: E501
|
34610
34680
|
|
34611
34681
|
collection_formats = {}
|
34612
34682
|
|
@@ -34636,7 +34706,7 @@ class DefaultApi(object):
|
|
34636
34706
|
auth_settings = [] # noqa: E501
|
34637
34707
|
|
34638
34708
|
return self.api_client.call_api(
|
34639
|
-
'/api/v2/clouds/{cloud_id}/
|
34709
|
+
'/api/v2/clouds/{cloud_id}/resources', 'PUT',
|
34640
34710
|
path_params,
|
34641
34711
|
query_params,
|
34642
34712
|
header_params,
|