lightning-sdk 0.2.18__py3-none-any.whl → 0.2.20__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/deployment_api.py +2 -0
- lightning_sdk/api/license_api.py +28 -6
- lightning_sdk/cli/deploy/_auth.py +11 -19
- lightning_sdk/cli/entrypoint.py +20 -2
- lightning_sdk/deployment/deployment.py +2 -0
- lightning_sdk/lightning_cloud/login.py +2 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +10 -2
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -2
- lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -157
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- 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 +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +157 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +237 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_blog_posts_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +261 -157
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +199 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +249 -145
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
- lightning_sdk/lightning_cloud/rest_client.py +13 -11
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
- lightning_sdk/serve.py +1 -0
- lightning_sdk/services/license.py +148 -27
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/RECORD +66 -58
- lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/top_level.txt +0 -0
|
@@ -4639,6 +4639,127 @@ class JobsServiceApi(object):
|
|
|
4639
4639
|
_request_timeout=params.get('_request_timeout'),
|
|
4640
4640
|
collection_formats=collection_formats)
|
|
4641
4641
|
|
|
4642
|
+
def jobs_service_update_deployment_alerting_event(self, body: 'AlertingeventsIdBody', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentAlertingEvent': # noqa: E501
|
|
4643
|
+
"""UpdateDeploymentAlertingEvent lists the deployment alert events # noqa: E501
|
|
4644
|
+
|
|
4645
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4646
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4647
|
+
>>> thread = api.jobs_service_update_deployment_alerting_event(body, project_id, deployment_id, id, async_req=True)
|
|
4648
|
+
>>> result = thread.get()
|
|
4649
|
+
|
|
4650
|
+
:param async_req bool
|
|
4651
|
+
:param AlertingeventsIdBody body: (required)
|
|
4652
|
+
:param str project_id: (required)
|
|
4653
|
+
:param str deployment_id: (required)
|
|
4654
|
+
:param str id: (required)
|
|
4655
|
+
:return: V1DeploymentAlertingEvent
|
|
4656
|
+
If the method is called asynchronously,
|
|
4657
|
+
returns the request thread.
|
|
4658
|
+
"""
|
|
4659
|
+
kwargs['_return_http_data_only'] = True
|
|
4660
|
+
if kwargs.get('async_req'):
|
|
4661
|
+
return self.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
4662
|
+
else:
|
|
4663
|
+
(data) = self.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, **kwargs) # noqa: E501
|
|
4664
|
+
return data
|
|
4665
|
+
|
|
4666
|
+
def jobs_service_update_deployment_alerting_event_with_http_info(self, body: 'AlertingeventsIdBody', project_id: 'str', deployment_id: 'str', id: 'str', **kwargs) -> 'V1DeploymentAlertingEvent': # noqa: E501
|
|
4667
|
+
"""UpdateDeploymentAlertingEvent lists the deployment alert events # noqa: E501
|
|
4668
|
+
|
|
4669
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4670
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4671
|
+
>>> thread = api.jobs_service_update_deployment_alerting_event_with_http_info(body, project_id, deployment_id, id, async_req=True)
|
|
4672
|
+
>>> result = thread.get()
|
|
4673
|
+
|
|
4674
|
+
:param async_req bool
|
|
4675
|
+
:param AlertingeventsIdBody body: (required)
|
|
4676
|
+
:param str project_id: (required)
|
|
4677
|
+
:param str deployment_id: (required)
|
|
4678
|
+
:param str id: (required)
|
|
4679
|
+
:return: V1DeploymentAlertingEvent
|
|
4680
|
+
If the method is called asynchronously,
|
|
4681
|
+
returns the request thread.
|
|
4682
|
+
"""
|
|
4683
|
+
|
|
4684
|
+
all_params = ['body', 'project_id', 'deployment_id', 'id'] # noqa: E501
|
|
4685
|
+
all_params.append('async_req')
|
|
4686
|
+
all_params.append('_return_http_data_only')
|
|
4687
|
+
all_params.append('_preload_content')
|
|
4688
|
+
all_params.append('_request_timeout')
|
|
4689
|
+
|
|
4690
|
+
params = locals()
|
|
4691
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4692
|
+
if key not in all_params:
|
|
4693
|
+
raise TypeError(
|
|
4694
|
+
"Got an unexpected keyword argument '%s'"
|
|
4695
|
+
" to method jobs_service_update_deployment_alerting_event" % key
|
|
4696
|
+
)
|
|
4697
|
+
params[key] = val
|
|
4698
|
+
del params['kwargs']
|
|
4699
|
+
# verify the required parameter 'body' is set
|
|
4700
|
+
if ('body' not in params or
|
|
4701
|
+
params['body'] is None):
|
|
4702
|
+
raise ValueError("Missing the required parameter `body` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
4703
|
+
# verify the required parameter 'project_id' is set
|
|
4704
|
+
if ('project_id' not in params or
|
|
4705
|
+
params['project_id'] is None):
|
|
4706
|
+
raise ValueError("Missing the required parameter `project_id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
4707
|
+
# verify the required parameter 'deployment_id' is set
|
|
4708
|
+
if ('deployment_id' not in params or
|
|
4709
|
+
params['deployment_id'] is None):
|
|
4710
|
+
raise ValueError("Missing the required parameter `deployment_id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
4711
|
+
# verify the required parameter 'id' is set
|
|
4712
|
+
if ('id' not in params or
|
|
4713
|
+
params['id'] is None):
|
|
4714
|
+
raise ValueError("Missing the required parameter `id` when calling `jobs_service_update_deployment_alerting_event`") # noqa: E501
|
|
4715
|
+
|
|
4716
|
+
collection_formats = {}
|
|
4717
|
+
|
|
4718
|
+
path_params = {}
|
|
4719
|
+
if 'project_id' in params:
|
|
4720
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
4721
|
+
if 'deployment_id' in params:
|
|
4722
|
+
path_params['deploymentId'] = params['deployment_id'] # noqa: E501
|
|
4723
|
+
if 'id' in params:
|
|
4724
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
4725
|
+
|
|
4726
|
+
query_params = []
|
|
4727
|
+
|
|
4728
|
+
header_params = {}
|
|
4729
|
+
|
|
4730
|
+
form_params = []
|
|
4731
|
+
local_var_files = {}
|
|
4732
|
+
|
|
4733
|
+
body_params = None
|
|
4734
|
+
if 'body' in params:
|
|
4735
|
+
body_params = params['body']
|
|
4736
|
+
# HTTP header `Accept`
|
|
4737
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4738
|
+
['application/json']) # noqa: E501
|
|
4739
|
+
|
|
4740
|
+
# HTTP header `Content-Type`
|
|
4741
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4742
|
+
['application/json']) # noqa: E501
|
|
4743
|
+
|
|
4744
|
+
# Authentication setting
|
|
4745
|
+
auth_settings = [] # noqa: E501
|
|
4746
|
+
|
|
4747
|
+
return self.api_client.call_api(
|
|
4748
|
+
'/v1/projects/{projectId}/deployments/{deploymentId}/alerting-events/{id}', 'PUT',
|
|
4749
|
+
path_params,
|
|
4750
|
+
query_params,
|
|
4751
|
+
header_params,
|
|
4752
|
+
body=body_params,
|
|
4753
|
+
post_params=form_params,
|
|
4754
|
+
files=local_var_files,
|
|
4755
|
+
response_type='V1DeploymentAlertingEvent', # noqa: E501
|
|
4756
|
+
auth_settings=auth_settings,
|
|
4757
|
+
async_req=params.get('async_req'),
|
|
4758
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4759
|
+
_preload_content=params.get('_preload_content', True),
|
|
4760
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4761
|
+
collection_formats=collection_formats)
|
|
4762
|
+
|
|
4642
4763
|
def jobs_service_update_deployment_alerting_policy(self, body: 'DeploymentIdAlertingpoliciesBody', project_id: 'str', deployment_id: 'str', **kwargs) -> 'V1DeploymentAlertingPolicy': # noqa: E501
|
|
4643
4764
|
"""jobs_service_update_deployment_alerting_policy # noqa: E501
|
|
4644
4765
|
|
|
@@ -24,6 +24,7 @@ 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.alertingevents_id_body import AlertingeventsIdBody
|
|
27
28
|
from lightning_sdk.lightning_cloud.openapi.models.alerts_config_billing import AlertsConfigBilling
|
|
28
29
|
from lightning_sdk.lightning_cloud.openapi.models.alerts_config_studios import AlertsConfigStudios
|
|
29
30
|
from lightning_sdk.lightning_cloud.openapi.models.app_id_works_body import AppIdWorksBody
|
|
@@ -35,6 +36,7 @@ from lightning_sdk.lightning_cloud.openapi.models.assistant_id_conversations_bod
|
|
|
35
36
|
from lightning_sdk.lightning_cloud.openapi.models.billing_checkout_body import BillingCheckoutBody
|
|
36
37
|
from lightning_sdk.lightning_cloud.openapi.models.billing_transfer_body import BillingTransferBody
|
|
37
38
|
from lightning_sdk.lightning_cloud.openapi.models.billing_transfer_body1 import BillingTransferBody1
|
|
39
|
+
from lightning_sdk.lightning_cloud.openapi.models.blogposts_id_body import BlogpostsIdBody
|
|
38
40
|
from lightning_sdk.lightning_cloud.openapi.models.captures_id_body import CapturesIdBody
|
|
39
41
|
from lightning_sdk.lightning_cloud.openapi.models.cloud_space_id_versionpublications_body import CloudSpaceIdVersionpublicationsBody
|
|
40
42
|
from lightning_sdk.lightning_cloud.openapi.models.cloud_space_id_versionpublications_body1 import CloudSpaceIdVersionpublicationsBody1
|
|
@@ -98,6 +100,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_reportlogsactivity_body imp
|
|
|
98
100
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportrestarttimings_body import IdReportrestarttimingsBody
|
|
99
101
|
from lightning_sdk.lightning_cloud.openapi.models.id_start_body import IdStartBody
|
|
100
102
|
from lightning_sdk.lightning_cloud.openapi.models.id_storage_body import IdStorageBody
|
|
103
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_transfer_body import IdTransferBody
|
|
101
104
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploadsBody
|
|
102
105
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body1 import IdUploadsBody1
|
|
103
106
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
|
|
@@ -209,6 +212,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_assistant import V1Assistan
|
|
|
209
212
|
from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_knowledge_item_status import V1AssistantKnowledgeItemStatus
|
|
210
213
|
from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_knowledge_status import V1AssistantKnowledgeStatus
|
|
211
214
|
from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_model_status import V1AssistantModelStatus
|
|
215
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_author import V1Author
|
|
212
216
|
from lightning_sdk.lightning_cloud.openapi.models.v1_auto_join_domain_validation import V1AutoJoinDomainValidation
|
|
213
217
|
from lightning_sdk.lightning_cloud.openapi.models.v1_auto_join_org_response import V1AutoJoinOrgResponse
|
|
214
218
|
from lightning_sdk.lightning_cloud.openapi.models.v1_autoscaling_spec import V1AutoscalingSpec
|
|
@@ -219,6 +223,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_billing_feature import V1Bi
|
|
|
219
223
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_period import V1BillingPeriod
|
|
220
224
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_subscription import V1BillingSubscription
|
|
221
225
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_tier import V1BillingTier
|
|
226
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_blog_post import V1BlogPost
|
|
222
227
|
from lightning_sdk.lightning_cloud.openapi.models.v1_body import V1Body
|
|
223
228
|
from lightning_sdk.lightning_cloud.openapi.models.v1_build_spec import V1BuildSpec
|
|
224
229
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cpu_system_metrics import V1CPUSystemMetrics
|
|
@@ -298,6 +303,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_respo
|
|
|
298
303
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_agent_multipart_upload_response import V1CreateAgentMultipartUploadResponse
|
|
299
304
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_request import V1CreateBillingPortalSessionRequest
|
|
300
305
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_response import V1CreateBillingPortalSessionResponse
|
|
306
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_blog_post_request import V1CreateBlogPostRequest
|
|
301
307
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_request import V1CreateCheckoutSessionRequest
|
|
302
308
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_response import V1CreateCheckoutSessionResponse
|
|
303
309
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_cloud_space_app_instance_response import V1CreateCloudSpaceAppInstanceResponse
|
|
@@ -339,6 +345,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_dataset import V1Dataset
|
|
|
339
345
|
from lightning_sdk.lightning_cloud.openapi.models.v1_dataset_type import V1DatasetType
|
|
340
346
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_affiliate_link_response import V1DeleteAffiliateLinkResponse
|
|
341
347
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_assistant_response import V1DeleteAssistantResponse
|
|
348
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_blog_post_response import V1DeleteBlogPostResponse
|
|
342
349
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_app_response import V1DeleteCloudSpaceAppResponse
|
|
343
350
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_environment_template_response import V1DeleteCloudSpaceEnvironmentTemplateResponse
|
|
344
351
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_response import V1DeleteCloudSpaceResponse
|
|
@@ -435,7 +442,6 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_drive_status import V1Drive
|
|
|
435
442
|
from lightning_sdk.lightning_cloud.openapi.models.v1_drive_type import V1DriveType
|
|
436
443
|
from lightning_sdk.lightning_cloud.openapi.models.v1_drive_type_spec import V1DriveTypeSpec
|
|
437
444
|
from lightning_sdk.lightning_cloud.openapi.models.v1_drive_type_status import V1DriveTypeStatus
|
|
438
|
-
from lightning_sdk.lightning_cloud.openapi.models.v1_ebs import V1Ebs
|
|
439
445
|
from lightning_sdk.lightning_cloud.openapi.models.v1_efs_config import V1EfsConfig
|
|
440
446
|
from lightning_sdk.lightning_cloud.openapi.models.v1_endpoint import V1Endpoint
|
|
441
447
|
from lightning_sdk.lightning_cloud.openapi.models.v1_endpoint_auth import V1EndpointAuth
|
|
@@ -566,6 +572,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_affiliate_links_respon
|
|
|
566
572
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_response import V1ListAgentJobArtifactsResponse
|
|
567
573
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
|
|
568
574
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_assistants_response import V1ListAssistantsResponse
|
|
575
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_blog_posts_response import V1ListBlogPostsResponse
|
|
569
576
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_apps_response import V1ListCloudSpaceAppsResponse
|
|
570
577
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_cold_start_metrics_response import V1ListCloudSpaceColdStartMetricsResponse
|
|
571
578
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_environment_templates_response import V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
@@ -780,7 +787,6 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_report_restart_timings_resp
|
|
|
780
787
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_request import V1RequestClusterAccessRequest
|
|
781
788
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
|
|
782
789
|
from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
|
|
783
|
-
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_billing_session import V1ReservationBillingSession
|
|
784
790
|
from lightning_sdk.lightning_cloud.openapi.models.v1_reservation_details import V1ReservationDetails
|
|
785
791
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
|
|
786
792
|
from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
|
|
@@ -848,6 +854,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_system_metrics_list import
|
|
|
848
854
|
from lightning_sdk.lightning_cloud.openapi.models.v1_telemetry import V1Telemetry
|
|
849
855
|
from lightning_sdk.lightning_cloud.openapi.models.v1_timestamp_code_telemetry import V1TimestampCodeTelemetry
|
|
850
856
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transaction import V1Transaction
|
|
857
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_cloud_space_response import V1TransferCloudSpaceResponse
|
|
851
858
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_org_balance_response import V1TransferOrgBalanceResponse
|
|
852
859
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_project_balance_response import V1TransferProjectBalanceResponse
|
|
853
860
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_user_balance_request import V1TransferUserBalanceRequest
|
|
@@ -0,0 +1,409 @@
|
|
|
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 AlertingeventsIdBody(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
|
+
'alerting_policy_id': 'str',
|
|
45
|
+
'created_at': 'datetime',
|
|
46
|
+
'description': 'str',
|
|
47
|
+
'frequency': 'V1DeploymentAlertingPolicyFrequency',
|
|
48
|
+
'limit': 'float',
|
|
49
|
+
'message': 'str',
|
|
50
|
+
'name': 'str',
|
|
51
|
+
'operation': 'V1DeploymentAlertingPolicyOperation',
|
|
52
|
+
'severity': 'V1DeploymentAlertingPolicySeverity',
|
|
53
|
+
'type': 'V1DeploymentAlertingPolicyType',
|
|
54
|
+
'value': 'float',
|
|
55
|
+
'viewed': 'bool'
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
attribute_map = {
|
|
59
|
+
'alerting_policy_id': 'alertingPolicyId',
|
|
60
|
+
'created_at': 'createdAt',
|
|
61
|
+
'description': 'description',
|
|
62
|
+
'frequency': 'frequency',
|
|
63
|
+
'limit': 'limit',
|
|
64
|
+
'message': 'message',
|
|
65
|
+
'name': 'name',
|
|
66
|
+
'operation': 'operation',
|
|
67
|
+
'severity': 'severity',
|
|
68
|
+
'type': 'type',
|
|
69
|
+
'value': 'value',
|
|
70
|
+
'viewed': 'viewed'
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
def __init__(self, alerting_policy_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, limit: 'float' =None, message: 'str' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None, viewed: 'bool' =None): # noqa: E501
|
|
74
|
+
"""AlertingeventsIdBody - a model defined in Swagger""" # noqa: E501
|
|
75
|
+
self._alerting_policy_id = None
|
|
76
|
+
self._created_at = None
|
|
77
|
+
self._description = None
|
|
78
|
+
self._frequency = None
|
|
79
|
+
self._limit = None
|
|
80
|
+
self._message = None
|
|
81
|
+
self._name = None
|
|
82
|
+
self._operation = None
|
|
83
|
+
self._severity = None
|
|
84
|
+
self._type = None
|
|
85
|
+
self._value = None
|
|
86
|
+
self._viewed = None
|
|
87
|
+
self.discriminator = None
|
|
88
|
+
if alerting_policy_id is not None:
|
|
89
|
+
self.alerting_policy_id = alerting_policy_id
|
|
90
|
+
if created_at is not None:
|
|
91
|
+
self.created_at = created_at
|
|
92
|
+
if description is not None:
|
|
93
|
+
self.description = description
|
|
94
|
+
if frequency is not None:
|
|
95
|
+
self.frequency = frequency
|
|
96
|
+
if limit is not None:
|
|
97
|
+
self.limit = limit
|
|
98
|
+
if message is not None:
|
|
99
|
+
self.message = message
|
|
100
|
+
if name is not None:
|
|
101
|
+
self.name = name
|
|
102
|
+
if operation is not None:
|
|
103
|
+
self.operation = operation
|
|
104
|
+
if severity is not None:
|
|
105
|
+
self.severity = severity
|
|
106
|
+
if type is not None:
|
|
107
|
+
self.type = type
|
|
108
|
+
if value is not None:
|
|
109
|
+
self.value = value
|
|
110
|
+
if viewed is not None:
|
|
111
|
+
self.viewed = viewed
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def alerting_policy_id(self) -> 'str':
|
|
115
|
+
"""Gets the alerting_policy_id of this AlertingeventsIdBody. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The alerting_policy_id of this AlertingeventsIdBody. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._alerting_policy_id
|
|
122
|
+
|
|
123
|
+
@alerting_policy_id.setter
|
|
124
|
+
def alerting_policy_id(self, alerting_policy_id: 'str'):
|
|
125
|
+
"""Sets the alerting_policy_id of this AlertingeventsIdBody.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param alerting_policy_id: The alerting_policy_id of this AlertingeventsIdBody. # noqa: E501
|
|
129
|
+
:type: str
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._alerting_policy_id = alerting_policy_id
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def created_at(self) -> 'datetime':
|
|
136
|
+
"""Gets the created_at of this AlertingeventsIdBody. # noqa: E501
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:return: The created_at of this AlertingeventsIdBody. # noqa: E501
|
|
140
|
+
:rtype: datetime
|
|
141
|
+
"""
|
|
142
|
+
return self._created_at
|
|
143
|
+
|
|
144
|
+
@created_at.setter
|
|
145
|
+
def created_at(self, created_at: 'datetime'):
|
|
146
|
+
"""Sets the created_at of this AlertingeventsIdBody.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:param created_at: The created_at of this AlertingeventsIdBody. # noqa: E501
|
|
150
|
+
:type: datetime
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._created_at = created_at
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def description(self) -> 'str':
|
|
157
|
+
"""Gets the description of this AlertingeventsIdBody. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The description of this AlertingeventsIdBody. # noqa: E501
|
|
161
|
+
:rtype: str
|
|
162
|
+
"""
|
|
163
|
+
return self._description
|
|
164
|
+
|
|
165
|
+
@description.setter
|
|
166
|
+
def description(self, description: 'str'):
|
|
167
|
+
"""Sets the description of this AlertingeventsIdBody.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param description: The description of this AlertingeventsIdBody. # noqa: E501
|
|
171
|
+
:type: str
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._description = description
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def frequency(self) -> 'V1DeploymentAlertingPolicyFrequency':
|
|
178
|
+
"""Gets the frequency of this AlertingeventsIdBody. # noqa: E501
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:return: The frequency of this AlertingeventsIdBody. # noqa: E501
|
|
182
|
+
:rtype: V1DeploymentAlertingPolicyFrequency
|
|
183
|
+
"""
|
|
184
|
+
return self._frequency
|
|
185
|
+
|
|
186
|
+
@frequency.setter
|
|
187
|
+
def frequency(self, frequency: 'V1DeploymentAlertingPolicyFrequency'):
|
|
188
|
+
"""Sets the frequency of this AlertingeventsIdBody.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param frequency: The frequency of this AlertingeventsIdBody. # noqa: E501
|
|
192
|
+
:type: V1DeploymentAlertingPolicyFrequency
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
self._frequency = frequency
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def limit(self) -> 'float':
|
|
199
|
+
"""Gets the limit of this AlertingeventsIdBody. # noqa: E501
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:return: The limit of this AlertingeventsIdBody. # noqa: E501
|
|
203
|
+
:rtype: float
|
|
204
|
+
"""
|
|
205
|
+
return self._limit
|
|
206
|
+
|
|
207
|
+
@limit.setter
|
|
208
|
+
def limit(self, limit: 'float'):
|
|
209
|
+
"""Sets the limit of this AlertingeventsIdBody.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param limit: The limit of this AlertingeventsIdBody. # noqa: E501
|
|
213
|
+
:type: float
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
self._limit = limit
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def message(self) -> 'str':
|
|
220
|
+
"""Gets the message of this AlertingeventsIdBody. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The message of this AlertingeventsIdBody. # noqa: E501
|
|
224
|
+
:rtype: str
|
|
225
|
+
"""
|
|
226
|
+
return self._message
|
|
227
|
+
|
|
228
|
+
@message.setter
|
|
229
|
+
def message(self, message: 'str'):
|
|
230
|
+
"""Sets the message of this AlertingeventsIdBody.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param message: The message of this AlertingeventsIdBody. # noqa: E501
|
|
234
|
+
:type: str
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._message = message
|
|
238
|
+
|
|
239
|
+
@property
|
|
240
|
+
def name(self) -> 'str':
|
|
241
|
+
"""Gets the name of this AlertingeventsIdBody. # noqa: E501
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:return: The name of this AlertingeventsIdBody. # noqa: E501
|
|
245
|
+
:rtype: str
|
|
246
|
+
"""
|
|
247
|
+
return self._name
|
|
248
|
+
|
|
249
|
+
@name.setter
|
|
250
|
+
def name(self, name: 'str'):
|
|
251
|
+
"""Sets the name of this AlertingeventsIdBody.
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:param name: The name of this AlertingeventsIdBody. # noqa: E501
|
|
255
|
+
:type: str
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._name = name
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def operation(self) -> 'V1DeploymentAlertingPolicyOperation':
|
|
262
|
+
"""Gets the operation of this AlertingeventsIdBody. # noqa: E501
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:return: The operation of this AlertingeventsIdBody. # noqa: E501
|
|
266
|
+
:rtype: V1DeploymentAlertingPolicyOperation
|
|
267
|
+
"""
|
|
268
|
+
return self._operation
|
|
269
|
+
|
|
270
|
+
@operation.setter
|
|
271
|
+
def operation(self, operation: 'V1DeploymentAlertingPolicyOperation'):
|
|
272
|
+
"""Sets the operation of this AlertingeventsIdBody.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:param operation: The operation of this AlertingeventsIdBody. # noqa: E501
|
|
276
|
+
:type: V1DeploymentAlertingPolicyOperation
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
self._operation = operation
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
def severity(self) -> 'V1DeploymentAlertingPolicySeverity':
|
|
283
|
+
"""Gets the severity of this AlertingeventsIdBody. # noqa: E501
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:return: The severity of this AlertingeventsIdBody. # noqa: E501
|
|
287
|
+
:rtype: V1DeploymentAlertingPolicySeverity
|
|
288
|
+
"""
|
|
289
|
+
return self._severity
|
|
290
|
+
|
|
291
|
+
@severity.setter
|
|
292
|
+
def severity(self, severity: 'V1DeploymentAlertingPolicySeverity'):
|
|
293
|
+
"""Sets the severity of this AlertingeventsIdBody.
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:param severity: The severity of this AlertingeventsIdBody. # noqa: E501
|
|
297
|
+
:type: V1DeploymentAlertingPolicySeverity
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
self._severity = severity
|
|
301
|
+
|
|
302
|
+
@property
|
|
303
|
+
def type(self) -> 'V1DeploymentAlertingPolicyType':
|
|
304
|
+
"""Gets the type of this AlertingeventsIdBody. # noqa: E501
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:return: The type of this AlertingeventsIdBody. # noqa: E501
|
|
308
|
+
:rtype: V1DeploymentAlertingPolicyType
|
|
309
|
+
"""
|
|
310
|
+
return self._type
|
|
311
|
+
|
|
312
|
+
@type.setter
|
|
313
|
+
def type(self, type: 'V1DeploymentAlertingPolicyType'):
|
|
314
|
+
"""Sets the type of this AlertingeventsIdBody.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param type: The type of this AlertingeventsIdBody. # noqa: E501
|
|
318
|
+
:type: V1DeploymentAlertingPolicyType
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
self._type = type
|
|
322
|
+
|
|
323
|
+
@property
|
|
324
|
+
def value(self) -> 'float':
|
|
325
|
+
"""Gets the value of this AlertingeventsIdBody. # noqa: E501
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:return: The value of this AlertingeventsIdBody. # noqa: E501
|
|
329
|
+
:rtype: float
|
|
330
|
+
"""
|
|
331
|
+
return self._value
|
|
332
|
+
|
|
333
|
+
@value.setter
|
|
334
|
+
def value(self, value: 'float'):
|
|
335
|
+
"""Sets the value of this AlertingeventsIdBody.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:param value: The value of this AlertingeventsIdBody. # noqa: E501
|
|
339
|
+
:type: float
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
self._value = value
|
|
343
|
+
|
|
344
|
+
@property
|
|
345
|
+
def viewed(self) -> 'bool':
|
|
346
|
+
"""Gets the viewed of this AlertingeventsIdBody. # noqa: E501
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
:return: The viewed of this AlertingeventsIdBody. # noqa: E501
|
|
350
|
+
:rtype: bool
|
|
351
|
+
"""
|
|
352
|
+
return self._viewed
|
|
353
|
+
|
|
354
|
+
@viewed.setter
|
|
355
|
+
def viewed(self, viewed: 'bool'):
|
|
356
|
+
"""Sets the viewed of this AlertingeventsIdBody.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:param viewed: The viewed of this AlertingeventsIdBody. # noqa: E501
|
|
360
|
+
:type: bool
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
self._viewed = viewed
|
|
364
|
+
|
|
365
|
+
def to_dict(self) -> dict:
|
|
366
|
+
"""Returns the model properties as a dict"""
|
|
367
|
+
result = {}
|
|
368
|
+
|
|
369
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
370
|
+
value = getattr(self, attr)
|
|
371
|
+
if isinstance(value, list):
|
|
372
|
+
result[attr] = list(map(
|
|
373
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
374
|
+
value
|
|
375
|
+
))
|
|
376
|
+
elif hasattr(value, "to_dict"):
|
|
377
|
+
result[attr] = value.to_dict()
|
|
378
|
+
elif isinstance(value, dict):
|
|
379
|
+
result[attr] = dict(map(
|
|
380
|
+
lambda item: (item[0], item[1].to_dict())
|
|
381
|
+
if hasattr(item[1], "to_dict") else item,
|
|
382
|
+
value.items()
|
|
383
|
+
))
|
|
384
|
+
else:
|
|
385
|
+
result[attr] = value
|
|
386
|
+
if issubclass(AlertingeventsIdBody, dict):
|
|
387
|
+
for key, value in self.items():
|
|
388
|
+
result[key] = value
|
|
389
|
+
|
|
390
|
+
return result
|
|
391
|
+
|
|
392
|
+
def to_str(self) -> str:
|
|
393
|
+
"""Returns the string representation of the model"""
|
|
394
|
+
return pprint.pformat(self.to_dict())
|
|
395
|
+
|
|
396
|
+
def __repr__(self) -> str:
|
|
397
|
+
"""For `print` and `pprint`"""
|
|
398
|
+
return self.to_str()
|
|
399
|
+
|
|
400
|
+
def __eq__(self, other: 'AlertingeventsIdBody') -> bool:
|
|
401
|
+
"""Returns true if both objects are equal"""
|
|
402
|
+
if not isinstance(other, AlertingeventsIdBody):
|
|
403
|
+
return False
|
|
404
|
+
|
|
405
|
+
return self.__dict__ == other.__dict__
|
|
406
|
+
|
|
407
|
+
def __ne__(self, other: 'AlertingeventsIdBody') -> bool:
|
|
408
|
+
"""Returns true if both objects are not equal"""
|
|
409
|
+
return not self == other
|