lightning-sdk 0.2.6__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 +16 -29
- lightning_sdk/cli/upload.py +41 -6
- lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -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/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +27 -1
- 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_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
- 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_server_alert.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- lightning_sdk/lightning_cloud/rest_client.py +42 -44
- lightning_sdk/lit_container.py +19 -4
- lightning_sdk/models.py +1 -1
- lightning_sdk/serve.py +86 -17
- lightning_sdk/teamspace.py +32 -18
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +42 -34
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.6.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.6.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
|
|
|
@@ -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
|
|
@@ -191,6 +193,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job import V1AgentJob
|
|
|
191
193
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job_artifact import V1AgentJobArtifact
|
|
192
194
|
from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_multipart_url import V1AgentUploadMultipartUrl
|
|
193
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
|
|
194
198
|
from lightning_sdk.lightning_cloud.openapi.models.v1_api_pricing_spec import V1ApiPricingSpec
|
|
195
199
|
from lightning_sdk.lightning_cloud.openapi.models.v1_app_type import V1AppType
|
|
196
200
|
from lightning_sdk.lightning_cloud.openapi.models.v1_append_logger_metrics_response import V1AppendLoggerMetricsResponse
|
|
@@ -230,6 +234,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event
|
|
|
230
234
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_artifact_event_type import V1CloudSpaceArtifactEventType
|
|
231
235
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_code_version import V1CloudSpaceCodeVersion
|
|
232
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
|
|
233
238
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_engagement_response import V1CloudSpaceEngagementResponse
|
|
234
239
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template import V1CloudSpaceEnvironmentTemplate
|
|
235
240
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cloud_space_environment_template_config import V1CloudSpaceEnvironmentTemplateConfig
|
|
@@ -532,6 +537,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_re
|
|
|
532
537
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
|
|
533
538
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_assistants_response import V1ListAssistantsResponse
|
|
534
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
|
|
535
541
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_environment_templates_response import V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
536
542
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_instances_response import V1ListCloudSpaceInstancesResponse
|
|
537
543
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_publications_response import V1ListCloudSpacePublicationsResponse
|
|
@@ -726,6 +732,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_request import V1Re
|
|
|
726
732
|
from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1RefreshResponse
|
|
727
733
|
from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
|
|
728
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
|
|
729
736
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_logs_activity_response import V1ReportLogsActivityResponse
|
|
730
737
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_restart_timings_response import V1ReportRestartTimingsResponse
|
|
731
738
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
@@ -760,6 +767,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_secret import V1Secret
|
|
|
760
767
|
from lightning_sdk.lightning_cloud.openapi.models.v1_secret_type import V1SecretType
|
|
761
768
|
from lightning_sdk.lightning_cloud.openapi.models.v1_select import V1Select
|
|
762
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
|
|
763
771
|
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert_severity import V1ServerAlertSeverity
|
|
764
772
|
from lightning_sdk.lightning_cloud.openapi.models.v1_server_alert_type import V1ServerAlertType
|
|
765
773
|
from lightning_sdk.lightning_cloud.openapi.models.v1_server_check_in_response import V1ServerCheckInResponse
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class AlertsConfigBilling(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'auto_replenish': 'list[V1AlertMethod]',
|
|
45
|
+
'balance_threshold': 'int',
|
|
46
|
+
'low_balance': 'list[V1AlertMethod]'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'auto_replenish': 'autoReplenish',
|
|
51
|
+
'balance_threshold': 'balanceThreshold',
|
|
52
|
+
'low_balance': 'lowBalance'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, auto_replenish: 'list[V1AlertMethod]' =None, balance_threshold: 'int' =None, low_balance: 'list[V1AlertMethod]' =None): # noqa: E501
|
|
56
|
+
"""AlertsConfigBilling - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._auto_replenish = None
|
|
58
|
+
self._balance_threshold = None
|
|
59
|
+
self._low_balance = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if auto_replenish is not None:
|
|
62
|
+
self.auto_replenish = auto_replenish
|
|
63
|
+
if balance_threshold is not None:
|
|
64
|
+
self.balance_threshold = balance_threshold
|
|
65
|
+
if low_balance is not None:
|
|
66
|
+
self.low_balance = low_balance
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def auto_replenish(self) -> 'list[V1AlertMethod]':
|
|
70
|
+
"""Gets the auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
74
|
+
:rtype: list[V1AlertMethod]
|
|
75
|
+
"""
|
|
76
|
+
return self._auto_replenish
|
|
77
|
+
|
|
78
|
+
@auto_replenish.setter
|
|
79
|
+
def auto_replenish(self, auto_replenish: 'list[V1AlertMethod]'):
|
|
80
|
+
"""Sets the auto_replenish of this AlertsConfigBilling.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param auto_replenish: The auto_replenish of this AlertsConfigBilling. # noqa: E501
|
|
84
|
+
:type: list[V1AlertMethod]
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._auto_replenish = auto_replenish
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def balance_threshold(self) -> 'int':
|
|
91
|
+
"""Gets the balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._balance_threshold
|
|
98
|
+
|
|
99
|
+
@balance_threshold.setter
|
|
100
|
+
def balance_threshold(self, balance_threshold: 'int'):
|
|
101
|
+
"""Sets the balance_threshold of this AlertsConfigBilling.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param balance_threshold: The balance_threshold of this AlertsConfigBilling. # noqa: E501
|
|
105
|
+
:type: int
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._balance_threshold = balance_threshold
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def low_balance(self) -> 'list[V1AlertMethod]':
|
|
112
|
+
"""Gets the low_balance of this AlertsConfigBilling. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The low_balance of this AlertsConfigBilling. # noqa: E501
|
|
116
|
+
:rtype: list[V1AlertMethod]
|
|
117
|
+
"""
|
|
118
|
+
return self._low_balance
|
|
119
|
+
|
|
120
|
+
@low_balance.setter
|
|
121
|
+
def low_balance(self, low_balance: 'list[V1AlertMethod]'):
|
|
122
|
+
"""Sets the low_balance of this AlertsConfigBilling.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param low_balance: The low_balance of this AlertsConfigBilling. # noqa: E501
|
|
126
|
+
:type: list[V1AlertMethod]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._low_balance = low_balance
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(AlertsConfigBilling, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'AlertsConfigBilling') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, AlertsConfigBilling):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'AlertsConfigBilling') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class AlertsConfigStudios(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'internal_error': 'list[V1AlertMethod]',
|
|
45
|
+
'rehydration_error': 'list[V1AlertMethod]'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'internal_error': 'internalError',
|
|
50
|
+
'rehydration_error': 'rehydrationError'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, internal_error: 'list[V1AlertMethod]' =None, rehydration_error: 'list[V1AlertMethod]' =None): # noqa: E501
|
|
54
|
+
"""AlertsConfigStudios - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._internal_error = None
|
|
56
|
+
self._rehydration_error = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if internal_error is not None:
|
|
59
|
+
self.internal_error = internal_error
|
|
60
|
+
if rehydration_error is not None:
|
|
61
|
+
self.rehydration_error = rehydration_error
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def internal_error(self) -> 'list[V1AlertMethod]':
|
|
65
|
+
"""Gets the internal_error of this AlertsConfigStudios. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The internal_error of this AlertsConfigStudios. # noqa: E501
|
|
69
|
+
:rtype: list[V1AlertMethod]
|
|
70
|
+
"""
|
|
71
|
+
return self._internal_error
|
|
72
|
+
|
|
73
|
+
@internal_error.setter
|
|
74
|
+
def internal_error(self, internal_error: 'list[V1AlertMethod]'):
|
|
75
|
+
"""Sets the internal_error of this AlertsConfigStudios.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param internal_error: The internal_error of this AlertsConfigStudios. # noqa: E501
|
|
79
|
+
:type: list[V1AlertMethod]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._internal_error = internal_error
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def rehydration_error(self) -> 'list[V1AlertMethod]':
|
|
86
|
+
"""Gets the rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
90
|
+
:rtype: list[V1AlertMethod]
|
|
91
|
+
"""
|
|
92
|
+
return self._rehydration_error
|
|
93
|
+
|
|
94
|
+
@rehydration_error.setter
|
|
95
|
+
def rehydration_error(self, rehydration_error: 'list[V1AlertMethod]'):
|
|
96
|
+
"""Sets the rehydration_error of this AlertsConfigStudios.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param rehydration_error: The rehydration_error of this AlertsConfigStudios. # noqa: E501
|
|
100
|
+
:type: list[V1AlertMethod]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._rehydration_error = rehydration_error
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(AlertsConfigStudios, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'AlertsConfigStudios') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, AlertsConfigStudios):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'AlertsConfigStudios') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|