lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__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/base_studio_api.py +79 -0
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +73 -12
- lightning_sdk/api/studio_api.py +50 -1
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +83 -0
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
- lightning_sdk/cli/download.py +69 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +2 -5
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +132 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +62 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -41,24 +41,55 @@ class V1CompleteUpload(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'cluster_id': 'str',
|
|
44
45
|
'etag': 'str',
|
|
45
|
-
'part_number': 'str'
|
|
46
|
+
'part_number': 'str',
|
|
47
|
+
'upload_id': 'str'
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
attribute_map = {
|
|
51
|
+
'cluster_id': 'clusterId',
|
|
49
52
|
'etag': 'etag',
|
|
50
|
-
'part_number': 'partNumber'
|
|
53
|
+
'part_number': 'partNumber',
|
|
54
|
+
'upload_id': 'uploadId'
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
def __init__(self, etag: 'str' =None, part_number: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, cluster_id: 'str' =None, etag: 'str' =None, part_number: 'str' =None, upload_id: 'str' =None): # noqa: E501
|
|
54
58
|
"""V1CompleteUpload - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._cluster_id = None
|
|
55
60
|
self._etag = None
|
|
56
61
|
self._part_number = None
|
|
62
|
+
self._upload_id = None
|
|
57
63
|
self.discriminator = None
|
|
64
|
+
if cluster_id is not None:
|
|
65
|
+
self.cluster_id = cluster_id
|
|
58
66
|
if etag is not None:
|
|
59
67
|
self.etag = etag
|
|
60
68
|
if part_number is not None:
|
|
61
69
|
self.part_number = part_number
|
|
70
|
+
if upload_id is not None:
|
|
71
|
+
self.upload_id = upload_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def cluster_id(self) -> 'str':
|
|
75
|
+
"""Gets the cluster_id of this V1CompleteUpload. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The cluster_id of this V1CompleteUpload. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._cluster_id
|
|
82
|
+
|
|
83
|
+
@cluster_id.setter
|
|
84
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
85
|
+
"""Sets the cluster_id of this V1CompleteUpload.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param cluster_id: The cluster_id of this V1CompleteUpload. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._cluster_id = cluster_id
|
|
62
93
|
|
|
63
94
|
@property
|
|
64
95
|
def etag(self) -> 'str':
|
|
@@ -102,6 +133,27 @@ class V1CompleteUpload(object):
|
|
|
102
133
|
|
|
103
134
|
self._part_number = part_number
|
|
104
135
|
|
|
136
|
+
@property
|
|
137
|
+
def upload_id(self) -> 'str':
|
|
138
|
+
"""Gets the upload_id of this V1CompleteUpload. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The upload_id of this V1CompleteUpload. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._upload_id
|
|
145
|
+
|
|
146
|
+
@upload_id.setter
|
|
147
|
+
def upload_id(self, upload_id: 'str'):
|
|
148
|
+
"""Sets the upload_id of this V1CompleteUpload.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param upload_id: The upload_id of this V1CompleteUpload. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._upload_id = upload_id
|
|
156
|
+
|
|
105
157
|
def to_dict(self) -> dict:
|
|
106
158
|
"""Returns the model properties as a dict"""
|
|
107
159
|
result = {}
|
|
@@ -45,6 +45,7 @@ class V1Conversation(object):
|
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'id': 'str',
|
|
47
47
|
'messages': 'list[V1Message]',
|
|
48
|
+
'name': 'str',
|
|
48
49
|
'project_id': 'str',
|
|
49
50
|
'title': 'str',
|
|
50
51
|
'updated_at': 'datetime',
|
|
@@ -56,18 +57,20 @@ class V1Conversation(object):
|
|
|
56
57
|
'created_at': 'createdAt',
|
|
57
58
|
'id': 'id',
|
|
58
59
|
'messages': 'messages',
|
|
60
|
+
'name': 'name',
|
|
59
61
|
'project_id': 'projectId',
|
|
60
62
|
'title': 'title',
|
|
61
63
|
'updated_at': 'updatedAt',
|
|
62
64
|
'user_id': 'userId'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, messages: 'list[V1Message]' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, messages: 'list[V1Message]' =None, name: 'str' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
66
68
|
"""V1Conversation - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._assistant_id = None
|
|
68
70
|
self._created_at = None
|
|
69
71
|
self._id = None
|
|
70
72
|
self._messages = None
|
|
73
|
+
self._name = None
|
|
71
74
|
self._project_id = None
|
|
72
75
|
self._title = None
|
|
73
76
|
self._updated_at = None
|
|
@@ -81,6 +84,8 @@ class V1Conversation(object):
|
|
|
81
84
|
self.id = id
|
|
82
85
|
if messages is not None:
|
|
83
86
|
self.messages = messages
|
|
87
|
+
if name is not None:
|
|
88
|
+
self.name = name
|
|
84
89
|
if project_id is not None:
|
|
85
90
|
self.project_id = project_id
|
|
86
91
|
if title is not None:
|
|
@@ -174,6 +179,27 @@ class V1Conversation(object):
|
|
|
174
179
|
|
|
175
180
|
self._messages = messages
|
|
176
181
|
|
|
182
|
+
@property
|
|
183
|
+
def name(self) -> 'str':
|
|
184
|
+
"""Gets the name of this V1Conversation. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The name of this V1Conversation. # noqa: E501
|
|
188
|
+
:rtype: str
|
|
189
|
+
"""
|
|
190
|
+
return self._name
|
|
191
|
+
|
|
192
|
+
@name.setter
|
|
193
|
+
def name(self, name: 'str'):
|
|
194
|
+
"""Sets the name of this V1Conversation.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param name: The name of this V1Conversation. # noqa: E501
|
|
198
|
+
:type: str
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._name = name
|
|
202
|
+
|
|
177
203
|
@property
|
|
178
204
|
def project_id(self) -> 'str':
|
|
179
205
|
"""Gets the project_id of this V1Conversation. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py
CHANGED
|
@@ -41,6 +41,9 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'allowed_machines': 'list[str]',
|
|
45
|
+
'default_machine': 'str',
|
|
46
|
+
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
44
47
|
'machine_image_version': 'str',
|
|
45
48
|
'name': 'str',
|
|
46
49
|
'org_id': 'str',
|
|
@@ -48,19 +51,31 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
attribute_map = {
|
|
54
|
+
'allowed_machines': 'allowedMachines',
|
|
55
|
+
'default_machine': 'defaultMachine',
|
|
56
|
+
'environment_type': 'environmentType',
|
|
51
57
|
'machine_image_version': 'machineImageVersion',
|
|
52
58
|
'name': 'name',
|
|
53
59
|
'org_id': 'orgId',
|
|
54
60
|
'setup_script_text': 'setupScriptText'
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
63
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
58
64
|
"""V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
65
|
+
self._allowed_machines = None
|
|
66
|
+
self._default_machine = None
|
|
67
|
+
self._environment_type = None
|
|
59
68
|
self._machine_image_version = None
|
|
60
69
|
self._name = None
|
|
61
70
|
self._org_id = None
|
|
62
71
|
self._setup_script_text = None
|
|
63
72
|
self.discriminator = None
|
|
73
|
+
if allowed_machines is not None:
|
|
74
|
+
self.allowed_machines = allowed_machines
|
|
75
|
+
if default_machine is not None:
|
|
76
|
+
self.default_machine = default_machine
|
|
77
|
+
if environment_type is not None:
|
|
78
|
+
self.environment_type = environment_type
|
|
64
79
|
if machine_image_version is not None:
|
|
65
80
|
self.machine_image_version = machine_image_version
|
|
66
81
|
if name is not None:
|
|
@@ -70,6 +85,69 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
70
85
|
if setup_script_text is not None:
|
|
71
86
|
self.setup_script_text = setup_script_text
|
|
72
87
|
|
|
88
|
+
@property
|
|
89
|
+
def allowed_machines(self) -> 'list[str]':
|
|
90
|
+
"""Gets the allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
94
|
+
:rtype: list[str]
|
|
95
|
+
"""
|
|
96
|
+
return self._allowed_machines
|
|
97
|
+
|
|
98
|
+
@allowed_machines.setter
|
|
99
|
+
def allowed_machines(self, allowed_machines: 'list[str]'):
|
|
100
|
+
"""Sets the allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param allowed_machines: The allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
104
|
+
:type: list[str]
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._allowed_machines = allowed_machines
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def default_machine(self) -> 'str':
|
|
111
|
+
"""Gets the default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:return: The default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._default_machine
|
|
118
|
+
|
|
119
|
+
@default_machine.setter
|
|
120
|
+
def default_machine(self, default_machine: 'str'):
|
|
121
|
+
"""Sets the default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param default_machine: The default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
125
|
+
:type: str
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._default_machine = default_machine
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
|
|
132
|
+
"""Gets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:return: The environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
136
|
+
:rtype: V1CloudSpaceEnvironmentType
|
|
137
|
+
"""
|
|
138
|
+
return self._environment_type
|
|
139
|
+
|
|
140
|
+
@environment_type.setter
|
|
141
|
+
def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
|
|
142
|
+
"""Sets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param environment_type: The environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
146
|
+
:type: V1CloudSpaceEnvironmentType
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
self._environment_type = environment_type
|
|
150
|
+
|
|
73
151
|
@property
|
|
74
152
|
def machine_image_version(self) -> 'str':
|
|
75
153
|
"""Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
@@ -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 V1DeleteDeploymentAlertingPolicyResponse(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
|
+
'deployment_id': 'str',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'project_id': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'deployment_id': 'deploymentId',
|
|
51
|
+
'id': 'id',
|
|
52
|
+
'project_id': 'projectId'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, deployment_id: 'str' =None, id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1DeleteDeploymentAlertingPolicyResponse - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._deployment_id = None
|
|
58
|
+
self._id = None
|
|
59
|
+
self._project_id = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if deployment_id is not None:
|
|
62
|
+
self.deployment_id = deployment_id
|
|
63
|
+
if id is not None:
|
|
64
|
+
self.id = id
|
|
65
|
+
if project_id is not None:
|
|
66
|
+
self.project_id = project_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def deployment_id(self) -> 'str':
|
|
70
|
+
"""Gets the deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._deployment_id
|
|
77
|
+
|
|
78
|
+
@deployment_id.setter
|
|
79
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
80
|
+
"""Sets the deployment_id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param deployment_id: The deployment_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._deployment_id = deployment_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def id(self) -> 'str':
|
|
91
|
+
"""Gets the id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._id
|
|
98
|
+
|
|
99
|
+
@id.setter
|
|
100
|
+
def id(self, id: 'str'):
|
|
101
|
+
"""Sets the id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param id: The id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._id = id
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def project_id(self) -> 'str':
|
|
112
|
+
"""Gets the project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._project_id
|
|
119
|
+
|
|
120
|
+
@project_id.setter
|
|
121
|
+
def project_id(self, project_id: 'str'):
|
|
122
|
+
"""Sets the project_id of this V1DeleteDeploymentAlertingPolicyResponse.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param project_id: The project_id of this V1DeleteDeploymentAlertingPolicyResponse. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._project_id = project_id
|
|
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(V1DeleteDeploymentAlertingPolicyResponse, 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: 'V1DeleteDeploymentAlertingPolicyResponse') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1DeleteDeploymentAlertingPolicyResponse):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1DeleteDeploymentAlertingPolicyResponse') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -53,8 +53,10 @@ class V1Deployment(object):
|
|
|
53
53
|
'endpoint': 'V1Endpoint',
|
|
54
54
|
'id': 'str',
|
|
55
55
|
'is_published': 'bool',
|
|
56
|
+
'managed': 'bool',
|
|
56
57
|
'managed_endpoint_id': 'str',
|
|
57
58
|
'name': 'str',
|
|
59
|
+
'oncall_notification': 'bool',
|
|
58
60
|
'parameter_spec': 'V1ParameterizationSpec',
|
|
59
61
|
'pipeline_id': 'str',
|
|
60
62
|
'project_id': 'str',
|
|
@@ -83,8 +85,10 @@ class V1Deployment(object):
|
|
|
83
85
|
'endpoint': 'endpoint',
|
|
84
86
|
'id': 'id',
|
|
85
87
|
'is_published': 'isPublished',
|
|
88
|
+
'managed': 'managed',
|
|
86
89
|
'managed_endpoint_id': 'managedEndpointId',
|
|
87
90
|
'name': 'name',
|
|
91
|
+
'oncall_notification': 'oncallNotification',
|
|
88
92
|
'parameter_spec': 'parameterSpec',
|
|
89
93
|
'pipeline_id': 'pipelineId',
|
|
90
94
|
'project_id': 'projectId',
|
|
@@ -100,7 +104,7 @@ class V1Deployment(object):
|
|
|
100
104
|
'visibility': 'visibility'
|
|
101
105
|
}
|
|
102
106
|
|
|
103
|
-
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
107
|
+
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
104
108
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
105
109
|
self._api_standard = None
|
|
106
110
|
self._apis = None
|
|
@@ -114,8 +118,10 @@ class V1Deployment(object):
|
|
|
114
118
|
self._endpoint = None
|
|
115
119
|
self._id = None
|
|
116
120
|
self._is_published = None
|
|
121
|
+
self._managed = None
|
|
117
122
|
self._managed_endpoint_id = None
|
|
118
123
|
self._name = None
|
|
124
|
+
self._oncall_notification = None
|
|
119
125
|
self._parameter_spec = None
|
|
120
126
|
self._pipeline_id = None
|
|
121
127
|
self._project_id = None
|
|
@@ -154,10 +160,14 @@ class V1Deployment(object):
|
|
|
154
160
|
self.id = id
|
|
155
161
|
if is_published is not None:
|
|
156
162
|
self.is_published = is_published
|
|
163
|
+
if managed is not None:
|
|
164
|
+
self.managed = managed
|
|
157
165
|
if managed_endpoint_id is not None:
|
|
158
166
|
self.managed_endpoint_id = managed_endpoint_id
|
|
159
167
|
if name is not None:
|
|
160
168
|
self.name = name
|
|
169
|
+
if oncall_notification is not None:
|
|
170
|
+
self.oncall_notification = oncall_notification
|
|
161
171
|
if parameter_spec is not None:
|
|
162
172
|
self.parameter_spec = parameter_spec
|
|
163
173
|
if pipeline_id is not None:
|
|
@@ -437,6 +447,27 @@ class V1Deployment(object):
|
|
|
437
447
|
|
|
438
448
|
self._is_published = is_published
|
|
439
449
|
|
|
450
|
+
@property
|
|
451
|
+
def managed(self) -> 'bool':
|
|
452
|
+
"""Gets the managed of this V1Deployment. # noqa: E501
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
:return: The managed of this V1Deployment. # noqa: E501
|
|
456
|
+
:rtype: bool
|
|
457
|
+
"""
|
|
458
|
+
return self._managed
|
|
459
|
+
|
|
460
|
+
@managed.setter
|
|
461
|
+
def managed(self, managed: 'bool'):
|
|
462
|
+
"""Sets the managed of this V1Deployment.
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
:param managed: The managed of this V1Deployment. # noqa: E501
|
|
466
|
+
:type: bool
|
|
467
|
+
"""
|
|
468
|
+
|
|
469
|
+
self._managed = managed
|
|
470
|
+
|
|
440
471
|
@property
|
|
441
472
|
def managed_endpoint_id(self) -> 'str':
|
|
442
473
|
"""Gets the managed_endpoint_id of this V1Deployment. # noqa: E501
|
|
@@ -479,6 +510,27 @@ class V1Deployment(object):
|
|
|
479
510
|
|
|
480
511
|
self._name = name
|
|
481
512
|
|
|
513
|
+
@property
|
|
514
|
+
def oncall_notification(self) -> 'bool':
|
|
515
|
+
"""Gets the oncall_notification of this V1Deployment. # noqa: E501
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
:return: The oncall_notification of this V1Deployment. # noqa: E501
|
|
519
|
+
:rtype: bool
|
|
520
|
+
"""
|
|
521
|
+
return self._oncall_notification
|
|
522
|
+
|
|
523
|
+
@oncall_notification.setter
|
|
524
|
+
def oncall_notification(self, oncall_notification: 'bool'):
|
|
525
|
+
"""Sets the oncall_notification of this V1Deployment.
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
:param oncall_notification: The oncall_notification of this V1Deployment. # noqa: E501
|
|
529
|
+
:type: bool
|
|
530
|
+
"""
|
|
531
|
+
|
|
532
|
+
self._oncall_notification = oncall_notification
|
|
533
|
+
|
|
482
534
|
@property
|
|
483
535
|
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
484
536
|
"""Gets the parameter_spec of this V1Deployment. # noqa: E501
|