lightning-sdk 0.2.5__py3-none-any.whl → 0.2.7__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/ai_hub_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +84 -24
- lightning_sdk/api/teamspace_api.py +8 -9
- lightning_sdk/api/utils.py +0 -1
- lightning_sdk/cli/docker.py +1 -1
- lightning_sdk/cli/download.py +10 -2
- lightning_sdk/cli/serve.py +26 -19
- lightning_sdk/cli/upload.py +41 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +9 -9
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +15 -3
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +617 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -79
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lit_container.py +19 -4
- lightning_sdk/models.py +1 -1
- lightning_sdk/serve.py +86 -15
- lightning_sdk/teamspace.py +32 -18
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +65 -49
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/top_level.txt +0 -0
|
@@ -5003,6 +5003,99 @@ class CloudSpaceServiceApi(object):
|
|
|
5003
5003
|
_request_timeout=params.get('_request_timeout'),
|
|
5004
5004
|
collection_formats=collection_formats)
|
|
5005
5005
|
|
|
5006
|
+
def cloud_space_service_list_cloud_space_cold_start_metrics(self, project_id: 'str', **kwargs) -> 'V1ListCloudSpaceColdStartMetricsResponse': # noqa: E501
|
|
5007
|
+
"""cloud_space_service_list_cloud_space_cold_start_metrics # noqa: E501
|
|
5008
|
+
|
|
5009
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5010
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5011
|
+
>>> thread = api.cloud_space_service_list_cloud_space_cold_start_metrics(project_id, async_req=True)
|
|
5012
|
+
>>> result = thread.get()
|
|
5013
|
+
|
|
5014
|
+
:param async_req bool
|
|
5015
|
+
:param str project_id: (required)
|
|
5016
|
+
:return: V1ListCloudSpaceColdStartMetricsResponse
|
|
5017
|
+
If the method is called asynchronously,
|
|
5018
|
+
returns the request thread.
|
|
5019
|
+
"""
|
|
5020
|
+
kwargs['_return_http_data_only'] = True
|
|
5021
|
+
if kwargs.get('async_req'):
|
|
5022
|
+
return self.cloud_space_service_list_cloud_space_cold_start_metrics_with_http_info(project_id, **kwargs) # noqa: E501
|
|
5023
|
+
else:
|
|
5024
|
+
(data) = self.cloud_space_service_list_cloud_space_cold_start_metrics_with_http_info(project_id, **kwargs) # noqa: E501
|
|
5025
|
+
return data
|
|
5026
|
+
|
|
5027
|
+
def cloud_space_service_list_cloud_space_cold_start_metrics_with_http_info(self, project_id: 'str', **kwargs) -> 'V1ListCloudSpaceColdStartMetricsResponse': # noqa: E501
|
|
5028
|
+
"""cloud_space_service_list_cloud_space_cold_start_metrics # noqa: E501
|
|
5029
|
+
|
|
5030
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5031
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5032
|
+
>>> thread = api.cloud_space_service_list_cloud_space_cold_start_metrics_with_http_info(project_id, async_req=True)
|
|
5033
|
+
>>> result = thread.get()
|
|
5034
|
+
|
|
5035
|
+
:param async_req bool
|
|
5036
|
+
:param str project_id: (required)
|
|
5037
|
+
:return: V1ListCloudSpaceColdStartMetricsResponse
|
|
5038
|
+
If the method is called asynchronously,
|
|
5039
|
+
returns the request thread.
|
|
5040
|
+
"""
|
|
5041
|
+
|
|
5042
|
+
all_params = ['project_id'] # noqa: E501
|
|
5043
|
+
all_params.append('async_req')
|
|
5044
|
+
all_params.append('_return_http_data_only')
|
|
5045
|
+
all_params.append('_preload_content')
|
|
5046
|
+
all_params.append('_request_timeout')
|
|
5047
|
+
|
|
5048
|
+
params = locals()
|
|
5049
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
5050
|
+
if key not in all_params:
|
|
5051
|
+
raise TypeError(
|
|
5052
|
+
"Got an unexpected keyword argument '%s'"
|
|
5053
|
+
" to method cloud_space_service_list_cloud_space_cold_start_metrics" % key
|
|
5054
|
+
)
|
|
5055
|
+
params[key] = val
|
|
5056
|
+
del params['kwargs']
|
|
5057
|
+
# verify the required parameter 'project_id' is set
|
|
5058
|
+
if ('project_id' not in params or
|
|
5059
|
+
params['project_id'] is None):
|
|
5060
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_list_cloud_space_cold_start_metrics`") # noqa: E501
|
|
5061
|
+
|
|
5062
|
+
collection_formats = {}
|
|
5063
|
+
|
|
5064
|
+
path_params = {}
|
|
5065
|
+
if 'project_id' in params:
|
|
5066
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
5067
|
+
|
|
5068
|
+
query_params = []
|
|
5069
|
+
|
|
5070
|
+
header_params = {}
|
|
5071
|
+
|
|
5072
|
+
form_params = []
|
|
5073
|
+
local_var_files = {}
|
|
5074
|
+
|
|
5075
|
+
body_params = None
|
|
5076
|
+
# HTTP header `Accept`
|
|
5077
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
5078
|
+
['application/json']) # noqa: E501
|
|
5079
|
+
|
|
5080
|
+
# Authentication setting
|
|
5081
|
+
auth_settings = [] # noqa: E501
|
|
5082
|
+
|
|
5083
|
+
return self.api_client.call_api(
|
|
5084
|
+
'/v1/projects/{projectId}/cloudspaces/cold-start-metrics', 'GET',
|
|
5085
|
+
path_params,
|
|
5086
|
+
query_params,
|
|
5087
|
+
header_params,
|
|
5088
|
+
body=body_params,
|
|
5089
|
+
post_params=form_params,
|
|
5090
|
+
files=local_var_files,
|
|
5091
|
+
response_type='V1ListCloudSpaceColdStartMetricsResponse', # noqa: E501
|
|
5092
|
+
auth_settings=auth_settings,
|
|
5093
|
+
async_req=params.get('async_req'),
|
|
5094
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
5095
|
+
_preload_content=params.get('_preload_content', True),
|
|
5096
|
+
_request_timeout=params.get('_request_timeout'),
|
|
5097
|
+
collection_formats=collection_formats)
|
|
5098
|
+
|
|
5006
5099
|
def cloud_space_service_list_cloud_space_instances(self, **kwargs) -> 'V1ListCloudSpaceInstancesResponse': # noqa: E501
|
|
5007
5100
|
"""Returns list of all statuses of all active cloudspaces (i.e. cloudspace instance exists) according to filters specified # noqa: E501
|
|
5008
5101
|
|
|
@@ -6485,6 +6578,115 @@ class CloudSpaceServiceApi(object):
|
|
|
6485
6578
|
_request_timeout=params.get('_request_timeout'),
|
|
6486
6579
|
collection_formats=collection_formats)
|
|
6487
6580
|
|
|
6581
|
+
def cloud_space_service_report_cloud_space_instance_stop_at(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1ReportCloudSpaceInstanceStopAtResponse': # noqa: E501
|
|
6582
|
+
"""cloud_space_service_report_cloud_space_instance_stop_at # noqa: E501
|
|
6583
|
+
|
|
6584
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6585
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6586
|
+
>>> thread = api.cloud_space_service_report_cloud_space_instance_stop_at(project_id, cloudspace_id, async_req=True)
|
|
6587
|
+
>>> result = thread.get()
|
|
6588
|
+
|
|
6589
|
+
:param async_req bool
|
|
6590
|
+
:param str project_id: (required)
|
|
6591
|
+
:param str cloudspace_id: (required)
|
|
6592
|
+
:param str cloudspace_instance_id:
|
|
6593
|
+
:param datetime stop_at:
|
|
6594
|
+
:return: V1ReportCloudSpaceInstanceStopAtResponse
|
|
6595
|
+
If the method is called asynchronously,
|
|
6596
|
+
returns the request thread.
|
|
6597
|
+
"""
|
|
6598
|
+
kwargs['_return_http_data_only'] = True
|
|
6599
|
+
if kwargs.get('async_req'):
|
|
6600
|
+
return self.cloud_space_service_report_cloud_space_instance_stop_at_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
6601
|
+
else:
|
|
6602
|
+
(data) = self.cloud_space_service_report_cloud_space_instance_stop_at_with_http_info(project_id, cloudspace_id, **kwargs) # noqa: E501
|
|
6603
|
+
return data
|
|
6604
|
+
|
|
6605
|
+
def cloud_space_service_report_cloud_space_instance_stop_at_with_http_info(self, project_id: 'str', cloudspace_id: 'str', **kwargs) -> 'V1ReportCloudSpaceInstanceStopAtResponse': # noqa: E501
|
|
6606
|
+
"""cloud_space_service_report_cloud_space_instance_stop_at # noqa: E501
|
|
6607
|
+
|
|
6608
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
6609
|
+
asynchronous HTTP request, please pass async_req=True
|
|
6610
|
+
>>> thread = api.cloud_space_service_report_cloud_space_instance_stop_at_with_http_info(project_id, cloudspace_id, async_req=True)
|
|
6611
|
+
>>> result = thread.get()
|
|
6612
|
+
|
|
6613
|
+
:param async_req bool
|
|
6614
|
+
:param str project_id: (required)
|
|
6615
|
+
:param str cloudspace_id: (required)
|
|
6616
|
+
:param str cloudspace_instance_id:
|
|
6617
|
+
:param datetime stop_at:
|
|
6618
|
+
:return: V1ReportCloudSpaceInstanceStopAtResponse
|
|
6619
|
+
If the method is called asynchronously,
|
|
6620
|
+
returns the request thread.
|
|
6621
|
+
"""
|
|
6622
|
+
|
|
6623
|
+
all_params = ['project_id', 'cloudspace_id', 'cloudspace_instance_id', 'stop_at'] # noqa: E501
|
|
6624
|
+
all_params.append('async_req')
|
|
6625
|
+
all_params.append('_return_http_data_only')
|
|
6626
|
+
all_params.append('_preload_content')
|
|
6627
|
+
all_params.append('_request_timeout')
|
|
6628
|
+
|
|
6629
|
+
params = locals()
|
|
6630
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
6631
|
+
if key not in all_params:
|
|
6632
|
+
raise TypeError(
|
|
6633
|
+
"Got an unexpected keyword argument '%s'"
|
|
6634
|
+
" to method cloud_space_service_report_cloud_space_instance_stop_at" % key
|
|
6635
|
+
)
|
|
6636
|
+
params[key] = val
|
|
6637
|
+
del params['kwargs']
|
|
6638
|
+
# verify the required parameter 'project_id' is set
|
|
6639
|
+
if ('project_id' not in params or
|
|
6640
|
+
params['project_id'] is None):
|
|
6641
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_report_cloud_space_instance_stop_at`") # noqa: E501
|
|
6642
|
+
# verify the required parameter 'cloudspace_id' is set
|
|
6643
|
+
if ('cloudspace_id' not in params or
|
|
6644
|
+
params['cloudspace_id'] is None):
|
|
6645
|
+
raise ValueError("Missing the required parameter `cloudspace_id` when calling `cloud_space_service_report_cloud_space_instance_stop_at`") # noqa: E501
|
|
6646
|
+
|
|
6647
|
+
collection_formats = {}
|
|
6648
|
+
|
|
6649
|
+
path_params = {}
|
|
6650
|
+
if 'project_id' in params:
|
|
6651
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
6652
|
+
if 'cloudspace_id' in params:
|
|
6653
|
+
path_params['cloudspaceId'] = params['cloudspace_id'] # noqa: E501
|
|
6654
|
+
|
|
6655
|
+
query_params = []
|
|
6656
|
+
if 'cloudspace_instance_id' in params:
|
|
6657
|
+
query_params.append(('cloudspaceInstanceId', params['cloudspace_instance_id'])) # noqa: E501
|
|
6658
|
+
if 'stop_at' in params:
|
|
6659
|
+
query_params.append(('stopAt', params['stop_at'])) # noqa: E501
|
|
6660
|
+
|
|
6661
|
+
header_params = {}
|
|
6662
|
+
|
|
6663
|
+
form_params = []
|
|
6664
|
+
local_var_files = {}
|
|
6665
|
+
|
|
6666
|
+
body_params = None
|
|
6667
|
+
# HTTP header `Accept`
|
|
6668
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
6669
|
+
['application/json']) # noqa: E501
|
|
6670
|
+
|
|
6671
|
+
# Authentication setting
|
|
6672
|
+
auth_settings = [] # noqa: E501
|
|
6673
|
+
|
|
6674
|
+
return self.api_client.call_api(
|
|
6675
|
+
'/v1/projects/{projectId}/cloudspaces/{cloudspaceId}/report-stop-at', 'GET',
|
|
6676
|
+
path_params,
|
|
6677
|
+
query_params,
|
|
6678
|
+
header_params,
|
|
6679
|
+
body=body_params,
|
|
6680
|
+
post_params=form_params,
|
|
6681
|
+
files=local_var_files,
|
|
6682
|
+
response_type='V1ReportCloudSpaceInstanceStopAtResponse', # noqa: E501
|
|
6683
|
+
auth_settings=auth_settings,
|
|
6684
|
+
async_req=params.get('async_req'),
|
|
6685
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
6686
|
+
_preload_content=params.get('_preload_content', True),
|
|
6687
|
+
_request_timeout=params.get('_request_timeout'),
|
|
6688
|
+
collection_formats=collection_formats)
|
|
6689
|
+
|
|
6488
6690
|
def cloud_space_service_restart_cloud_space_instance(self, project_id: 'str', id: 'str', **kwargs) -> 'V1RestartCloudSpaceInstanceResponse': # noqa: E501
|
|
6489
6691
|
"""cloud_space_service_restart_cloud_space_instance # noqa: E501
|
|
6490
6692
|
|
|
@@ -665,6 +665,111 @@ class ClusterServiceApi(object):
|
|
|
665
665
|
_request_timeout=params.get('_request_timeout'),
|
|
666
666
|
collection_formats=collection_formats)
|
|
667
667
|
|
|
668
|
+
def cluster_service_create_server_alert(self, body: 'ServerIdAlertsBody', server_id: 'str', **kwargs) -> 'V1CreateServerAlertResponse': # noqa: E501
|
|
669
|
+
"""cluster_service_create_server_alert # noqa: E501
|
|
670
|
+
|
|
671
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
672
|
+
asynchronous HTTP request, please pass async_req=True
|
|
673
|
+
>>> thread = api.cluster_service_create_server_alert(body, server_id, async_req=True)
|
|
674
|
+
>>> result = thread.get()
|
|
675
|
+
|
|
676
|
+
:param async_req bool
|
|
677
|
+
:param ServerIdAlertsBody body: (required)
|
|
678
|
+
:param str server_id: (required)
|
|
679
|
+
:return: V1CreateServerAlertResponse
|
|
680
|
+
If the method is called asynchronously,
|
|
681
|
+
returns the request thread.
|
|
682
|
+
"""
|
|
683
|
+
kwargs['_return_http_data_only'] = True
|
|
684
|
+
if kwargs.get('async_req'):
|
|
685
|
+
return self.cluster_service_create_server_alert_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
686
|
+
else:
|
|
687
|
+
(data) = self.cluster_service_create_server_alert_with_http_info(body, server_id, **kwargs) # noqa: E501
|
|
688
|
+
return data
|
|
689
|
+
|
|
690
|
+
def cluster_service_create_server_alert_with_http_info(self, body: 'ServerIdAlertsBody', server_id: 'str', **kwargs) -> 'V1CreateServerAlertResponse': # noqa: E501
|
|
691
|
+
"""cluster_service_create_server_alert # noqa: E501
|
|
692
|
+
|
|
693
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
694
|
+
asynchronous HTTP request, please pass async_req=True
|
|
695
|
+
>>> thread = api.cluster_service_create_server_alert_with_http_info(body, server_id, async_req=True)
|
|
696
|
+
>>> result = thread.get()
|
|
697
|
+
|
|
698
|
+
:param async_req bool
|
|
699
|
+
:param ServerIdAlertsBody body: (required)
|
|
700
|
+
:param str server_id: (required)
|
|
701
|
+
:return: V1CreateServerAlertResponse
|
|
702
|
+
If the method is called asynchronously,
|
|
703
|
+
returns the request thread.
|
|
704
|
+
"""
|
|
705
|
+
|
|
706
|
+
all_params = ['body', 'server_id'] # noqa: E501
|
|
707
|
+
all_params.append('async_req')
|
|
708
|
+
all_params.append('_return_http_data_only')
|
|
709
|
+
all_params.append('_preload_content')
|
|
710
|
+
all_params.append('_request_timeout')
|
|
711
|
+
|
|
712
|
+
params = locals()
|
|
713
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
714
|
+
if key not in all_params:
|
|
715
|
+
raise TypeError(
|
|
716
|
+
"Got an unexpected keyword argument '%s'"
|
|
717
|
+
" to method cluster_service_create_server_alert" % key
|
|
718
|
+
)
|
|
719
|
+
params[key] = val
|
|
720
|
+
del params['kwargs']
|
|
721
|
+
# verify the required parameter 'body' is set
|
|
722
|
+
if ('body' not in params or
|
|
723
|
+
params['body'] is None):
|
|
724
|
+
raise ValueError("Missing the required parameter `body` when calling `cluster_service_create_server_alert`") # noqa: E501
|
|
725
|
+
# verify the required parameter 'server_id' is set
|
|
726
|
+
if ('server_id' not in params or
|
|
727
|
+
params['server_id'] is None):
|
|
728
|
+
raise ValueError("Missing the required parameter `server_id` when calling `cluster_service_create_server_alert`") # noqa: E501
|
|
729
|
+
|
|
730
|
+
collection_formats = {}
|
|
731
|
+
|
|
732
|
+
path_params = {}
|
|
733
|
+
if 'server_id' in params:
|
|
734
|
+
path_params['serverId'] = params['server_id'] # noqa: E501
|
|
735
|
+
|
|
736
|
+
query_params = []
|
|
737
|
+
|
|
738
|
+
header_params = {}
|
|
739
|
+
|
|
740
|
+
form_params = []
|
|
741
|
+
local_var_files = {}
|
|
742
|
+
|
|
743
|
+
body_params = None
|
|
744
|
+
if 'body' in params:
|
|
745
|
+
body_params = params['body']
|
|
746
|
+
# HTTP header `Accept`
|
|
747
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
748
|
+
['application/json']) # noqa: E501
|
|
749
|
+
|
|
750
|
+
# HTTP header `Content-Type`
|
|
751
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
752
|
+
['application/json']) # noqa: E501
|
|
753
|
+
|
|
754
|
+
# Authentication setting
|
|
755
|
+
auth_settings = [] # noqa: E501
|
|
756
|
+
|
|
757
|
+
return self.api_client.call_api(
|
|
758
|
+
'/v1/core/servers/{serverId}/alerts', 'POST',
|
|
759
|
+
path_params,
|
|
760
|
+
query_params,
|
|
761
|
+
header_params,
|
|
762
|
+
body=body_params,
|
|
763
|
+
post_params=form_params,
|
|
764
|
+
files=local_var_files,
|
|
765
|
+
response_type='V1CreateServerAlertResponse', # noqa: E501
|
|
766
|
+
auth_settings=auth_settings,
|
|
767
|
+
async_req=params.get('async_req'),
|
|
768
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
769
|
+
_preload_content=params.get('_preload_content', True),
|
|
770
|
+
_request_timeout=params.get('_request_timeout'),
|
|
771
|
+
collection_formats=collection_formats)
|
|
772
|
+
|
|
668
773
|
def cluster_service_delete_cluster(self, id: 'str', **kwargs) -> 'V1DeleteClusterResponse': # noqa: E501
|
|
669
774
|
"""cluster_service_delete_cluster # noqa: E501
|
|
670
775
|
|
|
@@ -159,6 +159,7 @@ class LitRegistryServiceApi(object):
|
|
|
159
159
|
:param async_req bool
|
|
160
160
|
:param str project_id: (required)
|
|
161
161
|
:param str lit_repo_name: (required)
|
|
162
|
+
:param str cluster_id:
|
|
162
163
|
:return: V1DeleteLitRepositoryResponse
|
|
163
164
|
If the method is called asynchronously,
|
|
164
165
|
returns the request thread.
|
|
@@ -181,12 +182,13 @@ class LitRegistryServiceApi(object):
|
|
|
181
182
|
:param async_req bool
|
|
182
183
|
:param str project_id: (required)
|
|
183
184
|
:param str lit_repo_name: (required)
|
|
185
|
+
:param str cluster_id:
|
|
184
186
|
:return: V1DeleteLitRepositoryResponse
|
|
185
187
|
If the method is called asynchronously,
|
|
186
188
|
returns the request thread.
|
|
187
189
|
"""
|
|
188
190
|
|
|
189
|
-
all_params = ['project_id', 'lit_repo_name'] # noqa: E501
|
|
191
|
+
all_params = ['project_id', 'lit_repo_name', 'cluster_id'] # noqa: E501
|
|
190
192
|
all_params.append('async_req')
|
|
191
193
|
all_params.append('_return_http_data_only')
|
|
192
194
|
all_params.append('_preload_content')
|
|
@@ -219,6 +221,8 @@ class LitRegistryServiceApi(object):
|
|
|
219
221
|
path_params['litRepoName'] = params['lit_repo_name'] # noqa: E501
|
|
220
222
|
|
|
221
223
|
query_params = []
|
|
224
|
+
if 'cluster_id' in params:
|
|
225
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
222
226
|
|
|
223
227
|
header_params = {}
|
|
224
228
|
|
|
@@ -475,6 +479,7 @@ class LitRegistryServiceApi(object):
|
|
|
475
479
|
:param str project_id: (required)
|
|
476
480
|
:param str lit_repo_name: (required)
|
|
477
481
|
:param bool latest_only:
|
|
482
|
+
:param str cluster_id:
|
|
478
483
|
:return: V1LitRepository
|
|
479
484
|
If the method is called asynchronously,
|
|
480
485
|
returns the request thread.
|
|
@@ -498,12 +503,13 @@ class LitRegistryServiceApi(object):
|
|
|
498
503
|
:param str project_id: (required)
|
|
499
504
|
:param str lit_repo_name: (required)
|
|
500
505
|
:param bool latest_only:
|
|
506
|
+
:param str cluster_id:
|
|
501
507
|
:return: V1LitRepository
|
|
502
508
|
If the method is called asynchronously,
|
|
503
509
|
returns the request thread.
|
|
504
510
|
"""
|
|
505
511
|
|
|
506
|
-
all_params = ['project_id', 'lit_repo_name', 'latest_only'] # noqa: E501
|
|
512
|
+
all_params = ['project_id', 'lit_repo_name', 'latest_only', 'cluster_id'] # noqa: E501
|
|
507
513
|
all_params.append('async_req')
|
|
508
514
|
all_params.append('_return_http_data_only')
|
|
509
515
|
all_params.append('_preload_content')
|
|
@@ -538,6 +544,8 @@ class LitRegistryServiceApi(object):
|
|
|
538
544
|
query_params = []
|
|
539
545
|
if 'latest_only' in params:
|
|
540
546
|
query_params.append(('latestOnly', params['latest_only'])) # noqa: E501
|
|
547
|
+
if 'cluster_id' in params:
|
|
548
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
541
549
|
|
|
542
550
|
header_params = {}
|
|
543
551
|
|
|
@@ -580,6 +588,7 @@ class LitRegistryServiceApi(object):
|
|
|
580
588
|
:param str project_id: (required)
|
|
581
589
|
:param str lit_repo_name: (required)
|
|
582
590
|
:param bool latest_only:
|
|
591
|
+
:param str cluster_id:
|
|
583
592
|
:return: V1ListLitRegistryRepositoryImageArtifactVersionsResponse
|
|
584
593
|
If the method is called asynchronously,
|
|
585
594
|
returns the request thread.
|
|
@@ -603,12 +612,13 @@ class LitRegistryServiceApi(object):
|
|
|
603
612
|
:param str project_id: (required)
|
|
604
613
|
:param str lit_repo_name: (required)
|
|
605
614
|
:param bool latest_only:
|
|
615
|
+
:param str cluster_id:
|
|
606
616
|
:return: V1ListLitRegistryRepositoryImageArtifactVersionsResponse
|
|
607
617
|
If the method is called asynchronously,
|
|
608
618
|
returns the request thread.
|
|
609
619
|
"""
|
|
610
620
|
|
|
611
|
-
all_params = ['project_id', 'lit_repo_name', 'latest_only'] # noqa: E501
|
|
621
|
+
all_params = ['project_id', 'lit_repo_name', 'latest_only', 'cluster_id'] # noqa: E501
|
|
612
622
|
all_params.append('async_req')
|
|
613
623
|
all_params.append('_return_http_data_only')
|
|
614
624
|
all_params.append('_preload_content')
|
|
@@ -643,6 +653,8 @@ class LitRegistryServiceApi(object):
|
|
|
643
653
|
query_params = []
|
|
644
654
|
if 'latest_only' in params:
|
|
645
655
|
query_params.append(('latestOnly', params['latest_only'])) # noqa: E501
|
|
656
|
+
if 'cluster_id' in params:
|
|
657
|
+
query_params.append(('clusterId', params['cluster_id'])) # noqa: E501
|
|
646
658
|
|
|
647
659
|
header_params = {}
|
|
648
660
|
|
|
@@ -24,6 +24,8 @@ from __future__ import absolute_import
|
|
|
24
24
|
from lightning_sdk.lightning_cloud.openapi.models.affiliatelinks_id_body import AffiliatelinksIdBody
|
|
25
25
|
from lightning_sdk.lightning_cloud.openapi.models.agentmanagedendpoints_id_body import AgentmanagedendpointsIdBody
|
|
26
26
|
from lightning_sdk.lightning_cloud.openapi.models.agents_id_body import AgentsIdBody
|
|
27
|
+
from lightning_sdk.lightning_cloud.openapi.models.alerts_config_billing import AlertsConfigBilling
|
|
28
|
+
from lightning_sdk.lightning_cloud.openapi.models.alerts_config_studios import AlertsConfigStudios
|
|
27
29
|
from lightning_sdk.lightning_cloud.openapi.models.app_id_works_body import AppIdWorksBody
|
|
28
30
|
from lightning_sdk.lightning_cloud.openapi.models.appinstances_id_body import AppinstancesIdBody
|
|
29
31
|
from lightning_sdk.lightning_cloud.openapi.models.approveautojoindomain_domain_body import ApproveautojoindomainDomainBody
|
|
@@ -154,6 +156,7 @@ from lightning_sdk.lightning_cloud.openapi.models.rpc_status import RpcStatus
|
|
|
154
156
|
from lightning_sdk.lightning_cloud.openapi.models.schedules_id_body import SchedulesIdBody
|
|
155
157
|
from lightning_sdk.lightning_cloud.openapi.models.secrets_id_body import SecretsIdBody
|
|
156
158
|
from lightning_sdk.lightning_cloud.openapi.models.secrets_id_body1 import SecretsIdBody1
|
|
159
|
+
from lightning_sdk.lightning_cloud.openapi.models.server_id_alerts_body import ServerIdAlertsBody
|
|
157
160
|
from lightning_sdk.lightning_cloud.openapi.models.servers_server_id_body import ServersServerIdBody
|
|
158
161
|
from lightning_sdk.lightning_cloud.openapi.models.service_artifact_artifact_kind import ServiceArtifactArtifactKind
|
|
159
162
|
from lightning_sdk.lightning_cloud.openapi.models.service_health_service_status import ServiceHealthServiceStatus
|
|
@@ -190,6 +193,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job import V1AgentJob
|
|
|
190
193
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job_artifact import V1AgentJobArtifact
|
|
191
194
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_multipart_url import V1AgentUploadMultipartUrl
|
|
192
195
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_part_response import V1AgentUploadPartResponse
|
|
196
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_alert_method import V1AlertMethod
|
|
197
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_alerts_config import V1AlertsConfig
|
|
193
198
|
from lightning_sdk.lightning_cloud.openapi.models.v1_api_pricing_spec import V1ApiPricingSpec
|
|
194
199
|
from lightning_sdk.lightning_cloud.openapi.models.v1_app_type import V1AppType
|
|
195
200
|
from lightning_sdk.lightning_cloud.openapi.models.v1_append_logger_metrics_response import V1AppendLoggerMetricsResponse
|
|
@@ -229,8 +234,10 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event
|
|
|
229
234
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event_type import V1CloudSpaceArtifactEventType
|
|
230
235
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version import V1CloudSpaceCodeVersion
|
|
231
236
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version_status import V1CloudSpaceCodeVersionStatus
|
|
237
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_cold_start_metrics import V1CloudSpaceColdStartMetrics
|
|
232
238
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_engagement_response import V1CloudSpaceEngagementResponse
|
|
233
239
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template import V1CloudSpaceEnvironmentTemplate
|
|
240
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template_config import V1CloudSpaceEnvironmentTemplateConfig
|
|
234
241
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_collab_status import V1CloudSpaceInstanceCollabStatus
|
|
235
242
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_config import V1CloudSpaceInstanceConfig
|
|
236
243
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_instance_startup_status import V1CloudSpaceInstanceStartupStatus
|
|
@@ -304,6 +311,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_create_organization_request
|
|
|
304
311
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_pipeline_template_request import V1CreatePipelineTemplateRequest
|
|
305
312
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_project_request import V1CreateProjectRequest
|
|
306
313
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_ssh_public_key_request import V1CreateSSHPublicKeyRequest
|
|
314
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_server_alert_response import V1CreateServerAlertResponse
|
|
307
315
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_shared_metrics_stream_request import V1CreateSharedMetricsStreamRequest
|
|
308
316
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_shared_metrics_stream_response import V1CreateSharedMetricsStreamResponse
|
|
309
317
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_snowflake_connection_response import V1CreateSnowflakeConnectionResponse
|
|
@@ -529,6 +537,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_re
|
|
|
529
537
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
|
|
530
538
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_assistants_response import V1ListAssistantsResponse
|
|
531
539
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_apps_response import V1ListCloudSpaceAppsResponse
|
|
540
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_cold_start_metrics_response import V1ListCloudSpaceColdStartMetricsResponse
|
|
532
541
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_environment_templates_response import V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
533
542
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_instances_response import V1ListCloudSpaceInstancesResponse
|
|
534
543
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_publications_response import V1ListCloudSpacePublicationsResponse
|
|
@@ -723,11 +732,13 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_request import V1Re
|
|
|
723
732
|
from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1RefreshResponse
|
|
724
733
|
from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
|
|
725
734
|
from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer import V1RegionalLoadBalancer
|
|
735
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_stop_at_response import V1ReportCloudSpaceInstanceStopAtResponse
|
|
726
736
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_logs_activity_response import V1ReportLogsActivityResponse
|
|
727
737
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_restart_timings_response import V1ReportRestartTimingsResponse
|
|
728
738
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
729
739
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
730
740
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
|
|
741
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
|
|
731
742
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
|
|
732
743
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
|
|
733
744
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resources import V1Resources
|
|
@@ -755,6 +766,10 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_search_users_response impor
|
|
|
755
766
|
from lightning_sdk.lightning_cloud.openapi.models.v1_secret import V1Secret
|
|
756
767
|
from lightning_sdk.lightning_cloud.openapi.models.v1_secret_type import V1SecretType
|
|
757
768
|
from lightning_sdk.lightning_cloud.openapi.models.v1_select import V1Select
|
|
769
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert import V1ServerAlert
|
|
770
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert_phase import V1ServerAlertPhase
|
|
771
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert_severity import V1ServerAlertSeverity
|
|
772
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert_type import V1ServerAlertType
|
|
758
773
|
from lightning_sdk.lightning_cloud.openapi.models.v1_server_check_in_response import V1ServerCheckInResponse
|
|
759
774
|
from lightning_sdk.lightning_cloud.openapi.models.v1_service_artifact import V1ServiceArtifact
|
|
760
775
|
from lightning_sdk.lightning_cloud.openapi.models.v1_service_execution import V1ServiceExecution
|
|
@@ -779,6 +794,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_storage_asset_type import V
|
|
|
779
794
|
from lightning_sdk.lightning_cloud.openapi.models.v1_storage_system_metrics import V1StorageSystemMetrics
|
|
780
795
|
from lightning_sdk.lightning_cloud.openapi.models.v1_studio_job import V1StudioJob
|
|
781
796
|
from lightning_sdk.lightning_cloud.openapi.models.v1_studio_job_app import V1StudioJobApp
|
|
797
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_subnet_spec import V1SubnetSpec
|
|
782
798
|
from lightning_sdk.lightning_cloud.openapi.models.v1_switch_cloud_space_instance_response import V1SwitchCloudSpaceInstanceResponse
|
|
783
799
|
from lightning_sdk.lightning_cloud.openapi.models.v1_system_info import V1SystemInfo
|
|
784
800
|
from lightning_sdk.lightning_cloud.openapi.models.v1_system_metrics import V1SystemMetrics
|