lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__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 +73 -0
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +50 -8
- lightning_sdk/api/studio_api.py +47 -1
- lightning_sdk/base_studio.py +70 -0
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/download.py +25 -0
- lightning_sdk/cli/serve.py +82 -30
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +0 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_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/orgs_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- 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 +27 -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_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_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_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 +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -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 +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -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_membership.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- 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 +295 -113
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +88 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +30 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
|
@@ -41,6 +41,7 @@ class StorageCompleteBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'allow_multicloud': 'bool',
|
|
44
45
|
'cluster_id': 'str',
|
|
45
46
|
'filename': 'str',
|
|
46
47
|
'parts': 'list[V1CompleteUpload]',
|
|
@@ -49,6 +50,7 @@ class StorageCompleteBody(object):
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
attribute_map = {
|
|
53
|
+
'allow_multicloud': 'allowMulticloud',
|
|
52
54
|
'cluster_id': 'clusterId',
|
|
53
55
|
'filename': 'filename',
|
|
54
56
|
'parts': 'parts',
|
|
@@ -56,14 +58,17 @@ class StorageCompleteBody(object):
|
|
|
56
58
|
'upload_id': 'uploadId'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, suppress_reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, allow_multicloud: 'bool' =None, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[V1CompleteUpload]' =None, suppress_reindex: 'bool' =None, upload_id: 'str' =None): # noqa: E501
|
|
60
62
|
"""StorageCompleteBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._allow_multicloud = None
|
|
61
64
|
self._cluster_id = None
|
|
62
65
|
self._filename = None
|
|
63
66
|
self._parts = None
|
|
64
67
|
self._suppress_reindex = None
|
|
65
68
|
self._upload_id = None
|
|
66
69
|
self.discriminator = None
|
|
70
|
+
if allow_multicloud is not None:
|
|
71
|
+
self.allow_multicloud = allow_multicloud
|
|
67
72
|
if cluster_id is not None:
|
|
68
73
|
self.cluster_id = cluster_id
|
|
69
74
|
if filename is not None:
|
|
@@ -75,6 +80,27 @@ class StorageCompleteBody(object):
|
|
|
75
80
|
if upload_id is not None:
|
|
76
81
|
self.upload_id = upload_id
|
|
77
82
|
|
|
83
|
+
@property
|
|
84
|
+
def allow_multicloud(self) -> 'bool':
|
|
85
|
+
"""Gets the allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
89
|
+
:rtype: bool
|
|
90
|
+
"""
|
|
91
|
+
return self._allow_multicloud
|
|
92
|
+
|
|
93
|
+
@allow_multicloud.setter
|
|
94
|
+
def allow_multicloud(self, allow_multicloud: 'bool'):
|
|
95
|
+
"""Sets the allow_multicloud of this StorageCompleteBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param allow_multicloud: The allow_multicloud of this StorageCompleteBody. # noqa: E501
|
|
99
|
+
:type: bool
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._allow_multicloud = allow_multicloud
|
|
103
|
+
|
|
78
104
|
@property
|
|
79
105
|
def cluster_id(self) -> 'str':
|
|
80
106
|
"""Gets the cluster_id of this StorageCompleteBody. # noqa: E501
|
|
@@ -41,7 +41,10 @@ class Update(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',
|
|
44
46
|
'disabled': 'bool',
|
|
47
|
+
'environment_type': 'V1CloudSpaceEnvironmentType',
|
|
45
48
|
'machine_image_version': 'str',
|
|
46
49
|
'name': 'str',
|
|
47
50
|
'org_id': 'str',
|
|
@@ -49,23 +52,35 @@ class Update(object):
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
attribute_map = {
|
|
55
|
+
'allowed_machines': 'allowedMachines',
|
|
56
|
+
'default_machine': 'defaultMachine',
|
|
52
57
|
'disabled': 'disabled',
|
|
58
|
+
'environment_type': 'environmentType',
|
|
53
59
|
'machine_image_version': 'machineImageVersion',
|
|
54
60
|
'name': 'name',
|
|
55
61
|
'org_id': 'orgId',
|
|
56
62
|
'setup_script_text': 'setupScriptText'
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
def __init__(self, disabled: 'bool' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
65
|
+
def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, disabled: 'bool' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
60
66
|
"""Update - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
self._allowed_machines = None
|
|
68
|
+
self._default_machine = None
|
|
61
69
|
self._disabled = None
|
|
70
|
+
self._environment_type = None
|
|
62
71
|
self._machine_image_version = None
|
|
63
72
|
self._name = None
|
|
64
73
|
self._org_id = None
|
|
65
74
|
self._setup_script_text = None
|
|
66
75
|
self.discriminator = None
|
|
76
|
+
if allowed_machines is not None:
|
|
77
|
+
self.allowed_machines = allowed_machines
|
|
78
|
+
if default_machine is not None:
|
|
79
|
+
self.default_machine = default_machine
|
|
67
80
|
if disabled is not None:
|
|
68
81
|
self.disabled = disabled
|
|
82
|
+
if environment_type is not None:
|
|
83
|
+
self.environment_type = environment_type
|
|
69
84
|
if machine_image_version is not None:
|
|
70
85
|
self.machine_image_version = machine_image_version
|
|
71
86
|
if name is not None:
|
|
@@ -75,6 +90,48 @@ class Update(object):
|
|
|
75
90
|
if setup_script_text is not None:
|
|
76
91
|
self.setup_script_text = setup_script_text
|
|
77
92
|
|
|
93
|
+
@property
|
|
94
|
+
def allowed_machines(self) -> 'list[str]':
|
|
95
|
+
"""Gets the allowed_machines of this Update. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The allowed_machines of this Update. # noqa: E501
|
|
99
|
+
:rtype: list[str]
|
|
100
|
+
"""
|
|
101
|
+
return self._allowed_machines
|
|
102
|
+
|
|
103
|
+
@allowed_machines.setter
|
|
104
|
+
def allowed_machines(self, allowed_machines: 'list[str]'):
|
|
105
|
+
"""Sets the allowed_machines of this Update.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param allowed_machines: The allowed_machines of this Update. # noqa: E501
|
|
109
|
+
:type: list[str]
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
self._allowed_machines = allowed_machines
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def default_machine(self) -> 'str':
|
|
116
|
+
"""Gets the default_machine of this Update. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The default_machine of this Update. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._default_machine
|
|
123
|
+
|
|
124
|
+
@default_machine.setter
|
|
125
|
+
def default_machine(self, default_machine: 'str'):
|
|
126
|
+
"""Sets the default_machine of this Update.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param default_machine: The default_machine of this Update. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._default_machine = default_machine
|
|
134
|
+
|
|
78
135
|
@property
|
|
79
136
|
def disabled(self) -> 'bool':
|
|
80
137
|
"""Gets the disabled of this Update. # noqa: E501
|
|
@@ -96,6 +153,27 @@ class Update(object):
|
|
|
96
153
|
|
|
97
154
|
self._disabled = disabled
|
|
98
155
|
|
|
156
|
+
@property
|
|
157
|
+
def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
|
|
158
|
+
"""Gets the environment_type of this Update. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The environment_type of this Update. # noqa: E501
|
|
162
|
+
:rtype: V1CloudSpaceEnvironmentType
|
|
163
|
+
"""
|
|
164
|
+
return self._environment_type
|
|
165
|
+
|
|
166
|
+
@environment_type.setter
|
|
167
|
+
def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
|
|
168
|
+
"""Sets the environment_type of this Update.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param environment_type: The environment_type of this Update. # noqa: E501
|
|
172
|
+
:type: V1CloudSpaceEnvironmentType
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._environment_type = environment_type
|
|
176
|
+
|
|
99
177
|
@property
|
|
100
178
|
def machine_image_version(self) -> 'str':
|
|
101
179
|
"""Gets the machine_image_version of this Update. # noqa: E501
|
|
@@ -41,29 +41,60 @@ class UploadsUploadIdBody1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'allow_multicloud': 'bool',
|
|
44
45
|
'cluster_id': 'str',
|
|
45
46
|
'filename': 'str',
|
|
46
|
-
'parts': 'list[str]'
|
|
47
|
+
'parts': 'list[str]',
|
|
48
|
+
'uploads': 'list[V1ClusterUpload]'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
attribute_map = {
|
|
52
|
+
'allow_multicloud': 'allowMulticloud',
|
|
50
53
|
'cluster_id': 'clusterId',
|
|
51
54
|
'filename': 'filename',
|
|
52
|
-
'parts': 'parts'
|
|
55
|
+
'parts': 'parts',
|
|
56
|
+
'uploads': 'uploads'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None): # noqa: E501
|
|
59
|
+
def __init__(self, allow_multicloud: 'bool' =None, cluster_id: 'str' =None, filename: 'str' =None, parts: 'list[str]' =None, uploads: 'list[V1ClusterUpload]' =None): # noqa: E501
|
|
56
60
|
"""UploadsUploadIdBody1 - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._allow_multicloud = None
|
|
57
62
|
self._cluster_id = None
|
|
58
63
|
self._filename = None
|
|
59
64
|
self._parts = None
|
|
65
|
+
self._uploads = None
|
|
60
66
|
self.discriminator = None
|
|
67
|
+
if allow_multicloud is not None:
|
|
68
|
+
self.allow_multicloud = allow_multicloud
|
|
61
69
|
if cluster_id is not None:
|
|
62
70
|
self.cluster_id = cluster_id
|
|
63
71
|
if filename is not None:
|
|
64
72
|
self.filename = filename
|
|
65
73
|
if parts is not None:
|
|
66
74
|
self.parts = parts
|
|
75
|
+
if uploads is not None:
|
|
76
|
+
self.uploads = uploads
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def allow_multicloud(self) -> 'bool':
|
|
80
|
+
"""Gets the allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
84
|
+
:rtype: bool
|
|
85
|
+
"""
|
|
86
|
+
return self._allow_multicloud
|
|
87
|
+
|
|
88
|
+
@allow_multicloud.setter
|
|
89
|
+
def allow_multicloud(self, allow_multicloud: 'bool'):
|
|
90
|
+
"""Sets the allow_multicloud of this UploadsUploadIdBody1.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param allow_multicloud: The allow_multicloud of this UploadsUploadIdBody1. # noqa: E501
|
|
94
|
+
:type: bool
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._allow_multicloud = allow_multicloud
|
|
67
98
|
|
|
68
99
|
@property
|
|
69
100
|
def cluster_id(self) -> 'str':
|
|
@@ -128,6 +159,27 @@ class UploadsUploadIdBody1(object):
|
|
|
128
159
|
|
|
129
160
|
self._parts = parts
|
|
130
161
|
|
|
162
|
+
@property
|
|
163
|
+
def uploads(self) -> 'list[V1ClusterUpload]':
|
|
164
|
+
"""Gets the uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
168
|
+
:rtype: list[V1ClusterUpload]
|
|
169
|
+
"""
|
|
170
|
+
return self._uploads
|
|
171
|
+
|
|
172
|
+
@uploads.setter
|
|
173
|
+
def uploads(self, uploads: 'list[V1ClusterUpload]'):
|
|
174
|
+
"""Sets the uploads of this UploadsUploadIdBody1.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param uploads: The uploads of this UploadsUploadIdBody1. # noqa: E501
|
|
178
|
+
:type: list[V1ClusterUpload]
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._uploads = uploads
|
|
182
|
+
|
|
131
183
|
def to_dict(self) -> dict:
|
|
132
184
|
"""Returns the model properties as a dict"""
|
|
133
185
|
result = {}
|
|
@@ -47,6 +47,8 @@ class V1AWSDirectV1(object):
|
|
|
47
47
|
'cloud_formation_disabled': 'bool',
|
|
48
48
|
'efs_enabled': 'bool',
|
|
49
49
|
'external_id': 'str',
|
|
50
|
+
'inventory_database': 'str',
|
|
51
|
+
'inventory_table': 'str',
|
|
50
52
|
'primary_region': 'str',
|
|
51
53
|
'regional_load_balancers': 'list[V1RegionalLoadBalancer]',
|
|
52
54
|
'regions': 'list[str]',
|
|
@@ -62,6 +64,8 @@ class V1AWSDirectV1(object):
|
|
|
62
64
|
'cloud_formation_disabled': 'cloudFormationDisabled',
|
|
63
65
|
'efs_enabled': 'efsEnabled',
|
|
64
66
|
'external_id': 'externalId',
|
|
67
|
+
'inventory_database': 'inventoryDatabase',
|
|
68
|
+
'inventory_table': 'inventoryTable',
|
|
65
69
|
'primary_region': 'primaryRegion',
|
|
66
70
|
'regional_load_balancers': 'regionalLoadBalancers',
|
|
67
71
|
'regions': 'regions',
|
|
@@ -70,7 +74,7 @@ class V1AWSDirectV1(object):
|
|
|
70
74
|
'use_launch_templates': 'useLaunchTemplates'
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
def __init__(self, ami_owner_id: 'str' =None, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, cloud_formation_disabled: 'bool' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
|
|
77
|
+
def __init__(self, ami_owner_id: 'str' =None, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, cloud_formation_disabled: 'bool' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, inventory_database: 'str' =None, inventory_table: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
|
|
74
78
|
"""V1AWSDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
75
79
|
self._ami_owner_id = None
|
|
76
80
|
self._bucket_endpoint = None
|
|
@@ -78,6 +82,8 @@ class V1AWSDirectV1(object):
|
|
|
78
82
|
self._cloud_formation_disabled = None
|
|
79
83
|
self._efs_enabled = None
|
|
80
84
|
self._external_id = None
|
|
85
|
+
self._inventory_database = None
|
|
86
|
+
self._inventory_table = None
|
|
81
87
|
self._primary_region = None
|
|
82
88
|
self._regional_load_balancers = None
|
|
83
89
|
self._regions = None
|
|
@@ -97,6 +103,10 @@ class V1AWSDirectV1(object):
|
|
|
97
103
|
self.efs_enabled = efs_enabled
|
|
98
104
|
if external_id is not None:
|
|
99
105
|
self.external_id = external_id
|
|
106
|
+
if inventory_database is not None:
|
|
107
|
+
self.inventory_database = inventory_database
|
|
108
|
+
if inventory_table is not None:
|
|
109
|
+
self.inventory_table = inventory_table
|
|
100
110
|
if primary_region is not None:
|
|
101
111
|
self.primary_region = primary_region
|
|
102
112
|
if regional_load_balancers is not None:
|
|
@@ -236,6 +246,48 @@ class V1AWSDirectV1(object):
|
|
|
236
246
|
|
|
237
247
|
self._external_id = external_id
|
|
238
248
|
|
|
249
|
+
@property
|
|
250
|
+
def inventory_database(self) -> 'str':
|
|
251
|
+
"""Gets the inventory_database of this V1AWSDirectV1. # noqa: E501
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:return: The inventory_database of this V1AWSDirectV1. # noqa: E501
|
|
255
|
+
:rtype: str
|
|
256
|
+
"""
|
|
257
|
+
return self._inventory_database
|
|
258
|
+
|
|
259
|
+
@inventory_database.setter
|
|
260
|
+
def inventory_database(self, inventory_database: 'str'):
|
|
261
|
+
"""Sets the inventory_database of this V1AWSDirectV1.
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
:param inventory_database: The inventory_database of this V1AWSDirectV1. # noqa: E501
|
|
265
|
+
:type: str
|
|
266
|
+
"""
|
|
267
|
+
|
|
268
|
+
self._inventory_database = inventory_database
|
|
269
|
+
|
|
270
|
+
@property
|
|
271
|
+
def inventory_table(self) -> 'str':
|
|
272
|
+
"""Gets the inventory_table of this V1AWSDirectV1. # noqa: E501
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:return: The inventory_table of this V1AWSDirectV1. # noqa: E501
|
|
276
|
+
:rtype: str
|
|
277
|
+
"""
|
|
278
|
+
return self._inventory_table
|
|
279
|
+
|
|
280
|
+
@inventory_table.setter
|
|
281
|
+
def inventory_table(self, inventory_table: 'str'):
|
|
282
|
+
"""Sets the inventory_table of this V1AWSDirectV1.
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:param inventory_table: The inventory_table of this V1AWSDirectV1. # noqa: E501
|
|
286
|
+
:type: str
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
self._inventory_table = inventory_table
|
|
290
|
+
|
|
239
291
|
@property
|
|
240
292
|
def primary_region(self) -> 'str':
|
|
241
293
|
"""Gets the primary_region of this V1AWSDirectV1. # noqa: E501
|
|
@@ -52,6 +52,7 @@ class V1CloudSpace(object):
|
|
|
52
52
|
'display_name': 'str',
|
|
53
53
|
'engagement_counts': 'dict(str, str)',
|
|
54
54
|
'env': 'list[V1EnvVar]',
|
|
55
|
+
'environment_config': 'V1CloudSpaceEnvironmentConfig',
|
|
55
56
|
'environment_template_id': 'str',
|
|
56
57
|
'featured': 'bool',
|
|
57
58
|
'hide_files': 'bool',
|
|
@@ -105,6 +106,7 @@ class V1CloudSpace(object):
|
|
|
105
106
|
'display_name': 'displayName',
|
|
106
107
|
'engagement_counts': 'engagementCounts',
|
|
107
108
|
'env': 'env',
|
|
109
|
+
'environment_config': 'environmentConfig',
|
|
108
110
|
'environment_template_id': 'environmentTemplateId',
|
|
109
111
|
'featured': 'featured',
|
|
110
112
|
'hide_files': 'hideFiles',
|
|
@@ -146,7 +148,7 @@ class V1CloudSpace(object):
|
|
|
146
148
|
'web_path': 'webPath'
|
|
147
149
|
}
|
|
148
150
|
|
|
149
|
-
def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
151
|
+
def __init__(self, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
|
|
150
152
|
"""V1CloudSpace - a model defined in Swagger""" # noqa: E501
|
|
151
153
|
self._can_download_source_code = None
|
|
152
154
|
self._cluster_id = None
|
|
@@ -159,6 +161,7 @@ class V1CloudSpace(object):
|
|
|
159
161
|
self._display_name = None
|
|
160
162
|
self._engagement_counts = None
|
|
161
163
|
self._env = None
|
|
164
|
+
self._environment_config = None
|
|
162
165
|
self._environment_template_id = None
|
|
163
166
|
self._featured = None
|
|
164
167
|
self._hide_files = None
|
|
@@ -221,6 +224,8 @@ class V1CloudSpace(object):
|
|
|
221
224
|
self.engagement_counts = engagement_counts
|
|
222
225
|
if env is not None:
|
|
223
226
|
self.env = env
|
|
227
|
+
if environment_config is not None:
|
|
228
|
+
self.environment_config = environment_config
|
|
224
229
|
if environment_template_id is not None:
|
|
225
230
|
self.environment_template_id = environment_template_id
|
|
226
231
|
if featured is not None:
|
|
@@ -531,6 +536,27 @@ class V1CloudSpace(object):
|
|
|
531
536
|
|
|
532
537
|
self._env = env
|
|
533
538
|
|
|
539
|
+
@property
|
|
540
|
+
def environment_config(self) -> 'V1CloudSpaceEnvironmentConfig':
|
|
541
|
+
"""Gets the environment_config of this V1CloudSpace. # noqa: E501
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
:return: The environment_config of this V1CloudSpace. # noqa: E501
|
|
545
|
+
:rtype: V1CloudSpaceEnvironmentConfig
|
|
546
|
+
"""
|
|
547
|
+
return self._environment_config
|
|
548
|
+
|
|
549
|
+
@environment_config.setter
|
|
550
|
+
def environment_config(self, environment_config: 'V1CloudSpaceEnvironmentConfig'):
|
|
551
|
+
"""Sets the environment_config of this V1CloudSpace.
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
:param environment_config: The environment_config of this V1CloudSpace. # noqa: E501
|
|
555
|
+
:type: V1CloudSpaceEnvironmentConfig
|
|
556
|
+
"""
|
|
557
|
+
|
|
558
|
+
self._environment_config = environment_config
|
|
559
|
+
|
|
534
560
|
@property
|
|
535
561
|
def environment_template_id(self) -> 'str':
|
|
536
562
|
"""Gets the environment_template_id of this V1CloudSpace. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1CloudSpaceEnvironmentConfig(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
|
+
'environment_type': 'V1CloudSpaceEnvironmentType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'environment_type': 'environmentType'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, environment_type: 'V1CloudSpaceEnvironmentType' =None): # noqa: E501
|
|
52
|
+
"""V1CloudSpaceEnvironmentConfig - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._environment_type = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if environment_type is not None:
|
|
56
|
+
self.environment_type = environment_type
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
|
|
60
|
+
"""Gets the environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
|
|
64
|
+
:rtype: V1CloudSpaceEnvironmentType
|
|
65
|
+
"""
|
|
66
|
+
return self._environment_type
|
|
67
|
+
|
|
68
|
+
@environment_type.setter
|
|
69
|
+
def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
|
|
70
|
+
"""Sets the environment_type of this V1CloudSpaceEnvironmentConfig.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param environment_type: The environment_type of this V1CloudSpaceEnvironmentConfig. # noqa: E501
|
|
74
|
+
:type: V1CloudSpaceEnvironmentType
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._environment_type = environment_type
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1CloudSpaceEnvironmentConfig, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1CloudSpaceEnvironmentConfig') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1CloudSpaceEnvironmentConfig):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1CloudSpaceEnvironmentConfig') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|