lightning-sdk 0.1.34__py3-none-any.whl → 0.1.36__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.
Files changed (40) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +67 -8
  3. lightning_sdk/api/ai_hub_api.py +60 -19
  4. lightning_sdk/api/utils.py +1 -0
  5. lightning_sdk/cli/ai_hub.py +11 -0
  6. lightning_sdk/cli/download.py +3 -3
  7. lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
  8. lightning_sdk/lightning_cloud/login.py +5 -2
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +10 -2
  10. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  11. lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
  12. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  13. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  14. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +27 -1
  16. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +1 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +53 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +1 -27
  29. lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -1
  33. lightning_sdk/lightning_cloud/rest_client.py +1 -4
  34. lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
  35. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/METADATA +1 -2
  36. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/RECORD +40 -40
  37. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/LICENSE +0 -0
  38. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/WHEEL +0 -0
  39. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/entry_points.txt +0 -0
  40. {lightning_sdk-0.1.34.dist-info → lightning_sdk-0.1.36.dist-info}/top_level.txt +0 -0
@@ -54,6 +54,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
54
54
  'instance_url': 'str',
55
55
  'jupyterlab_url': 'str',
56
56
  'phase': 'V1CloudSpaceInstanceState',
57
+ 'price': 'float',
57
58
  'ssh_host': 'str',
58
59
  'ssh_port': 'int',
59
60
  'ssh_username': 'str',
@@ -84,6 +85,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
84
85
  'instance_url': 'instanceUrl',
85
86
  'jupyterlab_url': 'jupyterlabUrl',
86
87
  'phase': 'phase',
88
+ 'price': 'price',
87
89
  'ssh_host': 'sshHost',
88
90
  'ssh_port': 'sshPort',
89
91
  'ssh_username': 'sshUsername',
@@ -100,7 +102,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
100
102
  'vscode_url': 'vscodeUrl'
101
103
  }
102
104
 
103
- def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_eta_seconds: 'str' =None, sync_in_progress: 'bool' =None, sync_percentage: 'str' =None, vscode_url: 'str' =None): # noqa: E501
105
+ def __init__(self, app_url: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_eta_seconds: 'str' =None, sync_in_progress: 'bool' =None, sync_percentage: 'str' =None, vscode_url: 'str' =None): # noqa: E501
104
106
  """Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
105
107
  self._app_url = None
106
108
  self._cloud_space_id = None
@@ -115,6 +117,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
115
117
  self._instance_url = None
116
118
  self._jupyterlab_url = None
117
119
  self._phase = None
120
+ self._price = None
118
121
  self._ssh_host = None
119
122
  self._ssh_port = None
120
123
  self._ssh_username = None
@@ -156,6 +159,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
156
159
  self.jupyterlab_url = jupyterlab_url
157
160
  if phase is not None:
158
161
  self.phase = phase
162
+ if price is not None:
163
+ self.price = price
159
164
  if ssh_host is not None:
160
165
  self.ssh_host = ssh_host
161
166
  if ssh_port is not None:
@@ -458,6 +463,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
458
463
 
459
464
  self._phase = phase
460
465
 
466
+ @property
467
+ def price(self) -> 'float':
468
+ """Gets the price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
469
+
470
+
471
+ :return: The price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
472
+ :rtype: float
473
+ """
474
+ return self._price
475
+
476
+ @price.setter
477
+ def price(self, price: 'float'):
478
+ """Sets the price of this Externalv1CloudSpaceInstanceStatus.
479
+
480
+
481
+ :param price: The price of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
482
+ :type: float
483
+ """
484
+
485
+ self._price = price
486
+
461
487
  @property
462
488
  def ssh_host(self) -> 'str':
463
489
  """Gets the ssh_host of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
@@ -46,6 +46,7 @@ class SnowflakeExportBody(object):
46
46
  'compress': 'bool',
47
47
  'connection_id': 'str',
48
48
  'format': 'str',
49
+ 'include_header': 'bool',
49
50
  'password': 'str',
50
51
  'query': 'str',
51
52
  'query_name': 'str',
@@ -58,19 +59,21 @@ class SnowflakeExportBody(object):
58
59
  'compress': 'compress',
59
60
  'connection_id': 'connectionId',
60
61
  'format': 'format',
62
+ 'include_header': 'includeHeader',
61
63
  'password': 'password',
62
64
  'query': 'query',
63
65
  'query_name': 'queryName',
64
66
  'username': 'username'
65
67
  }
66
68
 
67
- def __init__(self, account: 'str' =None, cluster_id: 'str' =None, compress: 'bool' =None, connection_id: 'str' =None, format: 'str' =None, password: 'str' =None, query: 'str' =None, query_name: 'str' =None, username: 'str' =None): # noqa: E501
69
+ def __init__(self, account: 'str' =None, cluster_id: 'str' =None, compress: 'bool' =None, connection_id: 'str' =None, format: 'str' =None, include_header: 'bool' =None, password: 'str' =None, query: 'str' =None, query_name: 'str' =None, username: 'str' =None): # noqa: E501
68
70
  """SnowflakeExportBody - a model defined in Swagger""" # noqa: E501
69
71
  self._account = None
70
72
  self._cluster_id = None
71
73
  self._compress = None
72
74
  self._connection_id = None
73
75
  self._format = None
76
+ self._include_header = None
74
77
  self._password = None
75
78
  self._query = None
76
79
  self._query_name = None
@@ -86,6 +89,8 @@ class SnowflakeExportBody(object):
86
89
  self.connection_id = connection_id
87
90
  if format is not None:
88
91
  self.format = format
92
+ if include_header is not None:
93
+ self.include_header = include_header
89
94
  if password is not None:
90
95
  self.password = password
91
96
  if query is not None:
@@ -200,6 +205,27 @@ class SnowflakeExportBody(object):
200
205
 
201
206
  self._format = format
202
207
 
208
+ @property
209
+ def include_header(self) -> 'bool':
210
+ """Gets the include_header of this SnowflakeExportBody. # noqa: E501
211
+
212
+
213
+ :return: The include_header of this SnowflakeExportBody. # noqa: E501
214
+ :rtype: bool
215
+ """
216
+ return self._include_header
217
+
218
+ @include_header.setter
219
+ def include_header(self, include_header: 'bool'):
220
+ """Sets the include_header of this SnowflakeExportBody.
221
+
222
+
223
+ :param include_header: The include_header of this SnowflakeExportBody. # noqa: E501
224
+ :type: bool
225
+ """
226
+
227
+ self._include_header = include_header
228
+
203
229
  @property
204
230
  def password(self) -> 'str':
205
231
  """Gets the password of this SnowflakeExportBody. # noqa: E501
@@ -53,6 +53,7 @@ class V1Assistant(object):
53
53
  'knowledge': 'str',
54
54
  'knowledge_configuration': 'V1KnowledgeConfiguration',
55
55
  'model': 'str',
56
+ 'model_provider': 'str',
56
57
  'name': 'str',
57
58
  'org_id': 'str',
58
59
  'project_id': 'str',
@@ -78,6 +79,7 @@ class V1Assistant(object):
78
79
  'knowledge': 'knowledge',
79
80
  'knowledge_configuration': 'knowledgeConfiguration',
80
81
  'model': 'model',
82
+ 'model_provider': 'modelProvider',
81
83
  'name': 'name',
82
84
  'org_id': 'orgId',
83
85
  'project_id': 'projectId',
@@ -90,7 +92,7 @@ class V1Assistant(object):
90
92
  'user_id': 'userId'
91
93
  }
92
94
 
93
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
95
+ def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, id: 'str' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
94
96
  """V1Assistant - a model defined in Swagger""" # noqa: E501
95
97
  self._cloudspace_id = None
96
98
  self._cluster_id = None
@@ -104,6 +106,7 @@ class V1Assistant(object):
104
106
  self._knowledge = None
105
107
  self._knowledge_configuration = None
106
108
  self._model = None
109
+ self._model_provider = None
107
110
  self._name = None
108
111
  self._org_id = None
109
112
  self._project_id = None
@@ -139,6 +142,8 @@ class V1Assistant(object):
139
142
  self.knowledge_configuration = knowledge_configuration
140
143
  if model is not None:
141
144
  self.model = model
145
+ if model_provider is not None:
146
+ self.model_provider = model_provider
142
147
  if name is not None:
143
148
  self.name = name
144
149
  if org_id is not None:
@@ -412,6 +417,27 @@ class V1Assistant(object):
412
417
 
413
418
  self._model = model
414
419
 
420
+ @property
421
+ def model_provider(self) -> 'str':
422
+ """Gets the model_provider of this V1Assistant. # noqa: E501
423
+
424
+
425
+ :return: The model_provider of this V1Assistant. # noqa: E501
426
+ :rtype: str
427
+ """
428
+ return self._model_provider
429
+
430
+ @model_provider.setter
431
+ def model_provider(self, model_provider: 'str'):
432
+ """Sets the model_provider of this V1Assistant.
433
+
434
+
435
+ :param model_provider: The model_provider of this V1Assistant. # noqa: E501
436
+ :type: str
437
+ """
438
+
439
+ self._model_provider = model_provider
440
+
415
441
  @property
416
442
  def name(self) -> 'str':
417
443
  """Gets the name of this V1Assistant. # noqa: E501
@@ -48,6 +48,7 @@ class V1CapacityBlockOffering(object):
48
48
  'fee': 'float',
49
49
  'instance_count': 'int',
50
50
  'instance_type': 'str',
51
+ 'provider_fee': 'float',
51
52
  'region': 'str',
52
53
  'start_date': 'datetime',
53
54
  'upfront_fee': 'float'
@@ -61,12 +62,13 @@ class V1CapacityBlockOffering(object):
61
62
  'fee': 'fee',
62
63
  'instance_count': 'instanceCount',
63
64
  'instance_type': 'instanceType',
65
+ 'provider_fee': 'providerFee',
64
66
  'region': 'region',
65
67
  'start_date': 'startDate',
66
68
  'upfront_fee': 'upfrontFee'
67
69
  }
68
70
 
69
- def __init__(self, capacity_block_duration_hours: 'int' =None, capacity_block_offering_id: 'str' =None, currency_code: 'str' =None, end_date: 'datetime' =None, fee: 'float' =None, instance_count: 'int' =None, instance_type: 'str' =None, region: 'str' =None, start_date: 'datetime' =None, upfront_fee: 'float' =None): # noqa: E501
71
+ def __init__(self, capacity_block_duration_hours: 'int' =None, capacity_block_offering_id: 'str' =None, currency_code: 'str' =None, end_date: 'datetime' =None, fee: 'float' =None, instance_count: 'int' =None, instance_type: 'str' =None, provider_fee: 'float' =None, region: 'str' =None, start_date: 'datetime' =None, upfront_fee: 'float' =None): # noqa: E501
70
72
  """V1CapacityBlockOffering - a model defined in Swagger""" # noqa: E501
71
73
  self._capacity_block_duration_hours = None
72
74
  self._capacity_block_offering_id = None
@@ -75,6 +77,7 @@ class V1CapacityBlockOffering(object):
75
77
  self._fee = None
76
78
  self._instance_count = None
77
79
  self._instance_type = None
80
+ self._provider_fee = None
78
81
  self._region = None
79
82
  self._start_date = None
80
83
  self._upfront_fee = None
@@ -93,6 +96,8 @@ class V1CapacityBlockOffering(object):
93
96
  self.instance_count = instance_count
94
97
  if instance_type is not None:
95
98
  self.instance_type = instance_type
99
+ if provider_fee is not None:
100
+ self.provider_fee = provider_fee
96
101
  if region is not None:
97
102
  self.region = region
98
103
  if start_date is not None:
@@ -247,6 +252,27 @@ class V1CapacityBlockOffering(object):
247
252
 
248
253
  self._instance_type = instance_type
249
254
 
255
+ @property
256
+ def provider_fee(self) -> 'float':
257
+ """Gets the provider_fee of this V1CapacityBlockOffering. # noqa: E501
258
+
259
+
260
+ :return: The provider_fee of this V1CapacityBlockOffering. # noqa: E501
261
+ :rtype: float
262
+ """
263
+ return self._provider_fee
264
+
265
+ @provider_fee.setter
266
+ def provider_fee(self, provider_fee: 'float'):
267
+ """Sets the provider_fee of this V1CapacityBlockOffering.
268
+
269
+
270
+ :param provider_fee: The provider_fee of this V1CapacityBlockOffering. # noqa: E501
271
+ :type: float
272
+ """
273
+
274
+ self._provider_fee = provider_fee
275
+
250
276
  @property
251
277
  def region(self) -> 'str':
252
278
  """Gets the region of this V1CapacityBlockOffering. # noqa: E501
@@ -49,6 +49,7 @@ class V1CloudSpaceVersion(object):
49
49
  'created_at': 'datetime',
50
50
  'description': 'str',
51
51
  'draft': 'bool',
52
+ 'globally_visible': 'bool',
52
53
  'hide_files': 'bool',
53
54
  'id': 'str',
54
55
  'license': 'str',
@@ -58,6 +59,7 @@ class V1CloudSpaceVersion(object):
58
59
  'paper_org_avatar_url': 'str',
59
60
  'paper_url': 'str',
60
61
  'project_id': 'str',
62
+ 'unpublished': 'bool',
61
63
  'updated_at': 'datetime',
62
64
  'user_id': 'str',
63
65
  'version_name': 'str'
@@ -72,6 +74,7 @@ class V1CloudSpaceVersion(object):
72
74
  'created_at': 'createdAt',
73
75
  'description': 'description',
74
76
  'draft': 'draft',
77
+ 'globally_visible': 'globallyVisible',
75
78
  'hide_files': 'hideFiles',
76
79
  'id': 'id',
77
80
  'license': 'license',
@@ -81,12 +84,13 @@ class V1CloudSpaceVersion(object):
81
84
  'paper_org_avatar_url': 'paperOrgAvatarUrl',
82
85
  'paper_url': 'paperUrl',
83
86
  'project_id': 'projectId',
87
+ 'unpublished': 'unpublished',
84
88
  'updated_at': 'updatedAt',
85
89
  'user_id': 'userId',
86
90
  'version_name': 'versionName'
87
91
  }
88
92
 
89
- def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, cloud_space_id: 'str' =None, code_url: 'str' =None, code_version: 'V1CloudSpaceCodeVersion' =None, created_at: 'datetime' =None, description: 'str' =None, draft: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, license: '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, updated_at: 'datetime' =None, user_id: 'str' =None, version_name: 'str' =None): # noqa: E501
93
+ def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, cloud_space_id: 'str' =None, code_url: 'str' =None, code_version: 'V1CloudSpaceCodeVersion' =None, created_at: 'datetime' =None, description: 'str' =None, draft: 'bool' =None, globally_visible: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, license: '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, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version_name: 'str' =None): # noqa: E501
90
94
  """V1CloudSpaceVersion - a model defined in Swagger""" # noqa: E501
91
95
  self._about_page_content = None
92
96
  self._about_page_id = None
@@ -96,6 +100,7 @@ class V1CloudSpaceVersion(object):
96
100
  self._created_at = None
97
101
  self._description = None
98
102
  self._draft = None
103
+ self._globally_visible = None
99
104
  self._hide_files = None
100
105
  self._id = None
101
106
  self._license = None
@@ -105,6 +110,7 @@ class V1CloudSpaceVersion(object):
105
110
  self._paper_org_avatar_url = None
106
111
  self._paper_url = None
107
112
  self._project_id = None
113
+ self._unpublished = None
108
114
  self._updated_at = None
109
115
  self._user_id = None
110
116
  self._version_name = None
@@ -125,6 +131,8 @@ class V1CloudSpaceVersion(object):
125
131
  self.description = description
126
132
  if draft is not None:
127
133
  self.draft = draft
134
+ if globally_visible is not None:
135
+ self.globally_visible = globally_visible
128
136
  if hide_files is not None:
129
137
  self.hide_files = hide_files
130
138
  if id is not None:
@@ -143,6 +151,8 @@ class V1CloudSpaceVersion(object):
143
151
  self.paper_url = paper_url
144
152
  if project_id is not None:
145
153
  self.project_id = project_id
154
+ if unpublished is not None:
155
+ self.unpublished = unpublished
146
156
  if updated_at is not None:
147
157
  self.updated_at = updated_at
148
158
  if user_id is not None:
@@ -318,6 +328,27 @@ class V1CloudSpaceVersion(object):
318
328
 
319
329
  self._draft = draft
320
330
 
331
+ @property
332
+ def globally_visible(self) -> 'bool':
333
+ """Gets the globally_visible of this V1CloudSpaceVersion. # noqa: E501
334
+
335
+
336
+ :return: The globally_visible of this V1CloudSpaceVersion. # noqa: E501
337
+ :rtype: bool
338
+ """
339
+ return self._globally_visible
340
+
341
+ @globally_visible.setter
342
+ def globally_visible(self, globally_visible: 'bool'):
343
+ """Sets the globally_visible of this V1CloudSpaceVersion.
344
+
345
+
346
+ :param globally_visible: The globally_visible of this V1CloudSpaceVersion. # noqa: E501
347
+ :type: bool
348
+ """
349
+
350
+ self._globally_visible = globally_visible
351
+
321
352
  @property
322
353
  def hide_files(self) -> 'bool':
323
354
  """Gets the hide_files of this V1CloudSpaceVersion. # noqa: E501
@@ -507,6 +538,27 @@ class V1CloudSpaceVersion(object):
507
538
 
508
539
  self._project_id = project_id
509
540
 
541
+ @property
542
+ def unpublished(self) -> 'bool':
543
+ """Gets the unpublished of this V1CloudSpaceVersion. # noqa: E501
544
+
545
+
546
+ :return: The unpublished of this V1CloudSpaceVersion. # noqa: E501
547
+ :rtype: bool
548
+ """
549
+ return self._unpublished
550
+
551
+ @unpublished.setter
552
+ def unpublished(self, unpublished: 'bool'):
553
+ """Sets the unpublished of this V1CloudSpaceVersion.
554
+
555
+
556
+ :param unpublished: The unpublished of this V1CloudSpaceVersion. # noqa: E501
557
+ :type: bool
558
+ """
559
+
560
+ self._unpublished = unpublished
561
+
510
562
  @property
511
563
  def updated_at(self) -> 'datetime':
512
564
  """Gets the updated_at of this V1CloudSpaceVersion. # noqa: E501
@@ -56,6 +56,7 @@ class V1ClusterAccelerator(object):
56
56
  'device_card': 'str',
57
57
  'device_info': 'str',
58
58
  'display_name': 'str',
59
+ 'dws_only': 'bool',
59
60
  'enabled': 'bool',
60
61
  'family': 'str',
61
62
  'instance_id': 'str',
@@ -95,6 +96,7 @@ class V1ClusterAccelerator(object):
95
96
  'device_card': 'deviceCard',
96
97
  'device_info': 'deviceInfo',
97
98
  'display_name': 'displayName',
99
+ 'dws_only': 'dwsOnly',
98
100
  'enabled': 'enabled',
99
101
  'family': 'family',
100
102
  'instance_id': 'instanceId',
@@ -118,7 +120,7 @@ class V1ClusterAccelerator(object):
118
120
  'spot_price': 'spotPrice'
119
121
  }
120
122
 
121
- def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
123
+ def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
122
124
  """V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
123
125
  self._accelerator_type = None
124
126
  self._allowed_resources = None
@@ -135,6 +137,7 @@ class V1ClusterAccelerator(object):
135
137
  self._device_card = None
136
138
  self._device_info = None
137
139
  self._display_name = None
140
+ self._dws_only = None
138
141
  self._enabled = None
139
142
  self._family = None
140
143
  self._instance_id = None
@@ -187,6 +190,8 @@ class V1ClusterAccelerator(object):
187
190
  self.device_info = device_info
188
191
  if display_name is not None:
189
192
  self.display_name = display_name
193
+ if dws_only is not None:
194
+ self.dws_only = dws_only
190
195
  if enabled is not None:
191
196
  self.enabled = enabled
192
197
  if family is not None:
@@ -545,6 +550,27 @@ class V1ClusterAccelerator(object):
545
550
 
546
551
  self._display_name = display_name
547
552
 
553
+ @property
554
+ def dws_only(self) -> 'bool':
555
+ """Gets the dws_only of this V1ClusterAccelerator. # noqa: E501
556
+
557
+
558
+ :return: The dws_only of this V1ClusterAccelerator. # noqa: E501
559
+ :rtype: bool
560
+ """
561
+ return self._dws_only
562
+
563
+ @dws_only.setter
564
+ def dws_only(self, dws_only: 'bool'):
565
+ """Sets the dws_only of this V1ClusterAccelerator.
566
+
567
+
568
+ :param dws_only: The dws_only of this V1ClusterAccelerator. # noqa: E501
569
+ :type: bool
570
+ """
571
+
572
+ self._dws_only = dws_only
573
+
548
574
  @property
549
575
  def enabled(self) -> 'bool':
550
576
  """Gets the enabled of this V1ClusterAccelerator. # noqa: E501
@@ -42,6 +42,7 @@ class V1Deployment(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'autoscaling': 'V1AutoscalingSpec',
45
+ 'cloudspace_id': 'str',
45
46
  'created_at': 'datetime',
46
47
  'desired_state': 'V1DeploymentState',
47
48
  'endpoint': 'V1Endpoint',
@@ -61,6 +62,7 @@ class V1Deployment(object):
61
62
 
62
63
  attribute_map = {
63
64
  'autoscaling': 'autoscaling',
65
+ 'cloudspace_id': 'cloudspaceId',
64
66
  'created_at': 'createdAt',
65
67
  'desired_state': 'desiredState',
66
68
  'endpoint': 'endpoint',
@@ -78,9 +80,10 @@ class V1Deployment(object):
78
80
  'user_id': 'userId'
79
81
  }
80
82
 
81
- def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
83
+ def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
82
84
  """V1Deployment - a model defined in Swagger""" # noqa: E501
83
85
  self._autoscaling = None
86
+ self._cloudspace_id = None
84
87
  self._created_at = None
85
88
  self._desired_state = None
86
89
  self._endpoint = None
@@ -99,6 +102,8 @@ class V1Deployment(object):
99
102
  self.discriminator = None
100
103
  if autoscaling is not None:
101
104
  self.autoscaling = autoscaling
105
+ if cloudspace_id is not None:
106
+ self.cloudspace_id = cloudspace_id
102
107
  if created_at is not None:
103
108
  self.created_at = created_at
104
109
  if desired_state is not None:
@@ -151,6 +156,27 @@ class V1Deployment(object):
151
156
 
152
157
  self._autoscaling = autoscaling
153
158
 
159
+ @property
160
+ def cloudspace_id(self) -> 'str':
161
+ """Gets the cloudspace_id of this V1Deployment. # noqa: E501
162
+
163
+
164
+ :return: The cloudspace_id of this V1Deployment. # noqa: E501
165
+ :rtype: str
166
+ """
167
+ return self._cloudspace_id
168
+
169
+ @cloudspace_id.setter
170
+ def cloudspace_id(self, cloudspace_id: 'str'):
171
+ """Sets the cloudspace_id of this V1Deployment.
172
+
173
+
174
+ :param cloudspace_id: The cloudspace_id of this V1Deployment. # noqa: E501
175
+ :type: str
176
+ """
177
+
178
+ self._cloudspace_id = cloudspace_id
179
+
154
180
  @property
155
181
  def created_at(self) -> 'datetime':
156
182
  """Gets the created_at of this V1Deployment. # noqa: E501
@@ -43,6 +43,7 @@ class V1DeploymentRelease(object):
43
43
  swagger_types = {
44
44
  'archived': 'bool',
45
45
  'created_at': 'datetime',
46
+ 'first_job_state': 'str',
46
47
  'id': 'str',
47
48
  'project_id': 'str',
48
49
  'replicas': 'int',
@@ -54,6 +55,7 @@ class V1DeploymentRelease(object):
54
55
  attribute_map = {
55
56
  'archived': 'archived',
56
57
  'created_at': 'createdAt',
58
+ 'first_job_state': 'firstJobState',
57
59
  'id': 'id',
58
60
  'project_id': 'projectId',
59
61
  'replicas': 'replicas',
@@ -62,10 +64,11 @@ class V1DeploymentRelease(object):
62
64
  'version': 'version'
63
65
  }
64
66
 
65
- def __init__(self, archived: 'bool' =None, created_at: 'datetime' =None, id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, user_id: 'str' =None, version: 'int' =None): # noqa: E501
67
+ def __init__(self, archived: 'bool' =None, created_at: 'datetime' =None, first_job_state: 'str' =None, id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, user_id: 'str' =None, version: 'int' =None): # noqa: E501
66
68
  """V1DeploymentRelease - a model defined in Swagger""" # noqa: E501
67
69
  self._archived = None
68
70
  self._created_at = None
71
+ self._first_job_state = None
69
72
  self._id = None
70
73
  self._project_id = None
71
74
  self._replicas = None
@@ -77,6 +80,8 @@ class V1DeploymentRelease(object):
77
80
  self.archived = archived
78
81
  if created_at is not None:
79
82
  self.created_at = created_at
83
+ if first_job_state is not None:
84
+ self.first_job_state = first_job_state
80
85
  if id is not None:
81
86
  self.id = id
82
87
  if project_id is not None:
@@ -132,6 +137,27 @@ class V1DeploymentRelease(object):
132
137
 
133
138
  self._created_at = created_at
134
139
 
140
+ @property
141
+ def first_job_state(self) -> 'str':
142
+ """Gets the first_job_state of this V1DeploymentRelease. # noqa: E501
143
+
144
+
145
+ :return: The first_job_state of this V1DeploymentRelease. # noqa: E501
146
+ :rtype: str
147
+ """
148
+ return self._first_job_state
149
+
150
+ @first_job_state.setter
151
+ def first_job_state(self, first_job_state: 'str'):
152
+ """Sets the first_job_state of this V1DeploymentRelease.
153
+
154
+
155
+ :param first_job_state: The first_job_state of this V1DeploymentRelease. # noqa: E501
156
+ :type: str
157
+ """
158
+
159
+ self._first_job_state = first_job_state
160
+
135
161
  @property
136
162
  def id(self) -> 'str':
137
163
  """Gets the id of this V1DeploymentRelease. # noqa: E501
@@ -40,6 +40,7 @@ class V1DeploymentState(object):
40
40
  UNSPECIFIED = "DEPLOYMENT_STATE_UNSPECIFIED"
41
41
  RUNNING = "DEPLOYMENT_STATE_RUNNING"
42
42
  DELETED = "DEPLOYMENT_STATE_DELETED"
43
+ FAILED = "DEPLOYMENT_STATE_FAILED"
43
44
  """
44
45
  Attributes:
45
46
  swagger_types (dict): The key is attribute name