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.
Files changed (83) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +73 -0
  3. lightning_sdk/api/license_api.py +48 -0
  4. lightning_sdk/api/llm_api.py +50 -8
  5. lightning_sdk/api/studio_api.py +47 -1
  6. lightning_sdk/base_studio.py +70 -0
  7. lightning_sdk/cli/delete.py +6 -8
  8. lightning_sdk/cli/download.py +25 -0
  9. lightning_sdk/cli/serve.py +82 -30
  10. lightning_sdk/cli/teamspace_menu.py +9 -1
  11. lightning_sdk/cli/upload.py +0 -1
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
  16. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
  18. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  19. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  20. lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
  21. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  22. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  28. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  41. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  45. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
  55. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  58. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
  72. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  73. lightning_sdk/llm/llm.py +88 -40
  74. lightning_sdk/services/__init__.py +1 -1
  75. lightning_sdk/services/license.py +236 -0
  76. lightning_sdk/studio.py +30 -0
  77. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
  78. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
  79. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  80. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
  81. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
  82. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
  83. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
@@ -42,10 +42,13 @@ class V1ProjectSettings(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'allow_aws_saas': 'bool',
45
+ 'allow_dgx_saas': 'bool',
45
46
  'allow_external_project_duplication': 'bool',
46
47
  'allow_gcp_saas': 'bool',
47
48
  'allow_lambda_saas': 'bool',
49
+ 'allow_lightning_saas': 'bool',
48
50
  'allow_vultr_saas': 'bool',
51
+ 'auto_switch_machine': 'bool',
49
52
  'default_machine_image_version': 'str',
50
53
  'default_machine_type': 'str',
51
54
  'preferred_cluster': 'str',
@@ -57,10 +60,13 @@ class V1ProjectSettings(object):
57
60
 
58
61
  attribute_map = {
59
62
  'allow_aws_saas': 'allowAwsSaas',
63
+ 'allow_dgx_saas': 'allowDgxSaas',
60
64
  'allow_external_project_duplication': 'allowExternalProjectDuplication',
61
65
  'allow_gcp_saas': 'allowGcpSaas',
62
66
  'allow_lambda_saas': 'allowLambdaSaas',
67
+ 'allow_lightning_saas': 'allowLightningSaas',
63
68
  'allow_vultr_saas': 'allowVultrSaas',
69
+ 'auto_switch_machine': 'autoSwitchMachine',
64
70
  'default_machine_image_version': 'defaultMachineImageVersion',
65
71
  'default_machine_type': 'defaultMachineType',
66
72
  'preferred_cluster': 'preferredCluster',
@@ -70,13 +76,16 @@ class V1ProjectSettings(object):
70
76
  'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
71
77
  }
72
78
 
73
- def __init__(self, allow_aws_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
79
+ def __init__(self, allow_aws_saas: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_switch_machine: 'bool' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
74
80
  """V1ProjectSettings - a model defined in Swagger""" # noqa: E501
75
81
  self._allow_aws_saas = None
82
+ self._allow_dgx_saas = None
76
83
  self._allow_external_project_duplication = None
77
84
  self._allow_gcp_saas = None
78
85
  self._allow_lambda_saas = None
86
+ self._allow_lightning_saas = None
79
87
  self._allow_vultr_saas = None
88
+ self._auto_switch_machine = None
80
89
  self._default_machine_image_version = None
81
90
  self._default_machine_type = None
82
91
  self._preferred_cluster = None
@@ -87,14 +96,20 @@ class V1ProjectSettings(object):
87
96
  self.discriminator = None
88
97
  if allow_aws_saas is not None:
89
98
  self.allow_aws_saas = allow_aws_saas
99
+ if allow_dgx_saas is not None:
100
+ self.allow_dgx_saas = allow_dgx_saas
90
101
  if allow_external_project_duplication is not None:
91
102
  self.allow_external_project_duplication = allow_external_project_duplication
92
103
  if allow_gcp_saas is not None:
93
104
  self.allow_gcp_saas = allow_gcp_saas
94
105
  if allow_lambda_saas is not None:
95
106
  self.allow_lambda_saas = allow_lambda_saas
107
+ if allow_lightning_saas is not None:
108
+ self.allow_lightning_saas = allow_lightning_saas
96
109
  if allow_vultr_saas is not None:
97
110
  self.allow_vultr_saas = allow_vultr_saas
111
+ if auto_switch_machine is not None:
112
+ self.auto_switch_machine = auto_switch_machine
98
113
  if default_machine_image_version is not None:
99
114
  self.default_machine_image_version = default_machine_image_version
100
115
  if default_machine_type is not None:
@@ -131,6 +146,27 @@ class V1ProjectSettings(object):
131
146
 
132
147
  self._allow_aws_saas = allow_aws_saas
133
148
 
149
+ @property
150
+ def allow_dgx_saas(self) -> 'bool':
151
+ """Gets the allow_dgx_saas of this V1ProjectSettings. # noqa: E501
152
+
153
+
154
+ :return: The allow_dgx_saas of this V1ProjectSettings. # noqa: E501
155
+ :rtype: bool
156
+ """
157
+ return self._allow_dgx_saas
158
+
159
+ @allow_dgx_saas.setter
160
+ def allow_dgx_saas(self, allow_dgx_saas: 'bool'):
161
+ """Sets the allow_dgx_saas of this V1ProjectSettings.
162
+
163
+
164
+ :param allow_dgx_saas: The allow_dgx_saas of this V1ProjectSettings. # noqa: E501
165
+ :type: bool
166
+ """
167
+
168
+ self._allow_dgx_saas = allow_dgx_saas
169
+
134
170
  @property
135
171
  def allow_external_project_duplication(self) -> 'bool':
136
172
  """Gets the allow_external_project_duplication of this V1ProjectSettings. # noqa: E501
@@ -196,6 +232,27 @@ class V1ProjectSettings(object):
196
232
 
197
233
  self._allow_lambda_saas = allow_lambda_saas
198
234
 
235
+ @property
236
+ def allow_lightning_saas(self) -> 'bool':
237
+ """Gets the allow_lightning_saas of this V1ProjectSettings. # noqa: E501
238
+
239
+
240
+ :return: The allow_lightning_saas of this V1ProjectSettings. # noqa: E501
241
+ :rtype: bool
242
+ """
243
+ return self._allow_lightning_saas
244
+
245
+ @allow_lightning_saas.setter
246
+ def allow_lightning_saas(self, allow_lightning_saas: 'bool'):
247
+ """Sets the allow_lightning_saas of this V1ProjectSettings.
248
+
249
+
250
+ :param allow_lightning_saas: The allow_lightning_saas of this V1ProjectSettings. # noqa: E501
251
+ :type: bool
252
+ """
253
+
254
+ self._allow_lightning_saas = allow_lightning_saas
255
+
199
256
  @property
200
257
  def allow_vultr_saas(self) -> 'bool':
201
258
  """Gets the allow_vultr_saas of this V1ProjectSettings. # noqa: E501
@@ -217,6 +274,27 @@ class V1ProjectSettings(object):
217
274
 
218
275
  self._allow_vultr_saas = allow_vultr_saas
219
276
 
277
+ @property
278
+ def auto_switch_machine(self) -> 'bool':
279
+ """Gets the auto_switch_machine of this V1ProjectSettings. # noqa: E501
280
+
281
+
282
+ :return: The auto_switch_machine of this V1ProjectSettings. # noqa: E501
283
+ :rtype: bool
284
+ """
285
+ return self._auto_switch_machine
286
+
287
+ @auto_switch_machine.setter
288
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
289
+ """Sets the auto_switch_machine of this V1ProjectSettings.
290
+
291
+
292
+ :param auto_switch_machine: The auto_switch_machine of this V1ProjectSettings. # noqa: E501
293
+ :type: bool
294
+ """
295
+
296
+ self._auto_switch_machine = auto_switch_machine
297
+
220
298
  @property
221
299
  def default_machine_image_version(self) -> 'str':
222
300
  """Gets the default_machine_image_version of this V1ProjectSettings. # noqa: E501
@@ -41,8 +41,10 @@ class V1R2DataConnection(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'access_key_id': 'str',
44
45
  'account_id': 'str',
45
46
  'credential_id': 'str',
47
+ 'endpoint': 'str',
46
48
  'name': 'str',
47
49
  'secret_access_key': 'str',
48
50
  'source': 'str',
@@ -50,27 +52,35 @@ class V1R2DataConnection(object):
50
52
  }
51
53
 
52
54
  attribute_map = {
55
+ 'access_key_id': 'accessKeyId',
53
56
  'account_id': 'accountId',
54
57
  'credential_id': 'credentialId',
58
+ 'endpoint': 'endpoint',
55
59
  'name': 'name',
56
60
  'secret_access_key': 'secretAccessKey',
57
61
  'source': 'source',
58
62
  'token_value': 'tokenValue'
59
63
  }
60
64
 
61
- def __init__(self, account_id: 'str' =None, credential_id: 'str' =None, name: 'str' =None, secret_access_key: 'str' =None, source: 'str' =None, token_value: 'str' =None): # noqa: E501
65
+ def __init__(self, access_key_id: 'str' =None, account_id: 'str' =None, credential_id: 'str' =None, endpoint: 'str' =None, name: 'str' =None, secret_access_key: 'str' =None, source: 'str' =None, token_value: 'str' =None): # noqa: E501
62
66
  """V1R2DataConnection - a model defined in Swagger""" # noqa: E501
67
+ self._access_key_id = None
63
68
  self._account_id = None
64
69
  self._credential_id = None
70
+ self._endpoint = None
65
71
  self._name = None
66
72
  self._secret_access_key = None
67
73
  self._source = None
68
74
  self._token_value = None
69
75
  self.discriminator = None
76
+ if access_key_id is not None:
77
+ self.access_key_id = access_key_id
70
78
  if account_id is not None:
71
79
  self.account_id = account_id
72
80
  if credential_id is not None:
73
81
  self.credential_id = credential_id
82
+ if endpoint is not None:
83
+ self.endpoint = endpoint
74
84
  if name is not None:
75
85
  self.name = name
76
86
  if secret_access_key is not None:
@@ -80,6 +90,27 @@ class V1R2DataConnection(object):
80
90
  if token_value is not None:
81
91
  self.token_value = token_value
82
92
 
93
+ @property
94
+ def access_key_id(self) -> 'str':
95
+ """Gets the access_key_id of this V1R2DataConnection. # noqa: E501
96
+
97
+
98
+ :return: The access_key_id of this V1R2DataConnection. # noqa: E501
99
+ :rtype: str
100
+ """
101
+ return self._access_key_id
102
+
103
+ @access_key_id.setter
104
+ def access_key_id(self, access_key_id: 'str'):
105
+ """Sets the access_key_id of this V1R2DataConnection.
106
+
107
+
108
+ :param access_key_id: The access_key_id of this V1R2DataConnection. # noqa: E501
109
+ :type: str
110
+ """
111
+
112
+ self._access_key_id = access_key_id
113
+
83
114
  @property
84
115
  def account_id(self) -> 'str':
85
116
  """Gets the account_id of this V1R2DataConnection. # noqa: E501
@@ -122,6 +153,27 @@ class V1R2DataConnection(object):
122
153
 
123
154
  self._credential_id = credential_id
124
155
 
156
+ @property
157
+ def endpoint(self) -> 'str':
158
+ """Gets the endpoint of this V1R2DataConnection. # noqa: E501
159
+
160
+
161
+ :return: The endpoint of this V1R2DataConnection. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._endpoint
165
+
166
+ @endpoint.setter
167
+ def endpoint(self, endpoint: 'str'):
168
+ """Sets the endpoint of this V1R2DataConnection.
169
+
170
+
171
+ :param endpoint: The endpoint of this V1R2DataConnection. # noqa: E501
172
+ :type: str
173
+ """
174
+
175
+ self._endpoint = endpoint
176
+
125
177
  @property
126
178
  def name(self) -> 'str':
127
179
  """Gets the name of this V1R2DataConnection. # noqa: E501
@@ -41,6 +41,7 @@ class V1SecretType(object):
41
41
  DOCKER_REGISTRY = "SECRET_TYPE_DOCKER_REGISTRY"
42
42
  GCP_CREDENTIALS = "SECRET_TYPE_GCP_CREDENTIALS"
43
43
  SNOWFLAKE_CREDENTIALS = "SECRET_TYPE_SNOWFLAKE_CREDENTIALS"
44
+ R2_CREDENTIALS = "SECRET_TYPE_R2_CREDENTIALS"
44
45
  """
45
46
  Attributes:
46
47
  swagger_types (dict): The key is attribute name
@@ -41,6 +41,7 @@ class V1ServerAlertType(object):
41
41
  APT_RESTORE = "SERVER_ALERT_TYPE_APT_RESTORE"
42
42
  CONDA_RESTORE = "SERVER_ALERT_TYPE_CONDA_RESTORE"
43
43
  SETTINGS_RESTORE = "SERVER_ALERT_TYPE_SETTINGS_RESTORE"
44
+ BASE_STUDIO_SETUP = "SERVER_ALERT_TYPE_BASE_STUDIO_SETUP"
44
45
  """
45
46
  Attributes:
46
47
  swagger_types (dict): The key is attribute name
@@ -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 V1TriggerFilesystemUpgradeResponse(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
+ 'trigger_upgrade': 'bool'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'trigger_upgrade': 'triggerUpgrade'
49
+ }
50
+
51
+ def __init__(self, trigger_upgrade: 'bool' =None): # noqa: E501
52
+ """V1TriggerFilesystemUpgradeResponse - a model defined in Swagger""" # noqa: E501
53
+ self._trigger_upgrade = None
54
+ self.discriminator = None
55
+ if trigger_upgrade is not None:
56
+ self.trigger_upgrade = trigger_upgrade
57
+
58
+ @property
59
+ def trigger_upgrade(self) -> 'bool':
60
+ """Gets the trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
61
+
62
+
63
+ :return: The trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
64
+ :rtype: bool
65
+ """
66
+ return self._trigger_upgrade
67
+
68
+ @trigger_upgrade.setter
69
+ def trigger_upgrade(self, trigger_upgrade: 'bool'):
70
+ """Sets the trigger_upgrade of this V1TriggerFilesystemUpgradeResponse.
71
+
72
+
73
+ :param trigger_upgrade: The trigger_upgrade of this V1TriggerFilesystemUpgradeResponse. # noqa: E501
74
+ :type: bool
75
+ """
76
+
77
+ self._trigger_upgrade = trigger_upgrade
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(V1TriggerFilesystemUpgradeResponse, 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: 'V1TriggerFilesystemUpgradeResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1TriggerFilesystemUpgradeResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1TriggerFilesystemUpgradeResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -42,6 +42,7 @@ class V1UpdateUserRequest(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'agree_to_terms_and_conditions': 'bool',
45
+ 'auto_switch_machine': 'bool',
45
46
  'complete_sign_up': 'bool',
46
47
  'completed_project_onboarding': 'bool',
47
48
  'country': 'str',
@@ -69,6 +70,7 @@ class V1UpdateUserRequest(object):
69
70
 
70
71
  attribute_map = {
71
72
  'agree_to_terms_and_conditions': 'agreeToTermsAndConditions',
73
+ 'auto_switch_machine': 'autoSwitchMachine',
72
74
  'complete_sign_up': 'completeSignUp',
73
75
  'completed_project_onboarding': 'completedProjectOnboarding',
74
76
  'country': 'country',
@@ -94,9 +96,10 @@ class V1UpdateUserRequest(object):
94
96
  'website': 'website'
95
97
  }
96
98
 
97
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
99
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, auto_switch_machine: 'bool' =None, complete_sign_up: 'bool' =None, completed_project_onboarding: 'bool' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, website: 'str' =None): # noqa: E501
98
100
  """V1UpdateUserRequest - a model defined in Swagger""" # noqa: E501
99
101
  self._agree_to_terms_and_conditions = None
102
+ self._auto_switch_machine = None
100
103
  self._complete_sign_up = None
101
104
  self._completed_project_onboarding = None
102
105
  self._country = None
@@ -123,6 +126,8 @@ class V1UpdateUserRequest(object):
123
126
  self.discriminator = None
124
127
  if agree_to_terms_and_conditions is not None:
125
128
  self.agree_to_terms_and_conditions = agree_to_terms_and_conditions
129
+ if auto_switch_machine is not None:
130
+ self.auto_switch_machine = auto_switch_machine
126
131
  if complete_sign_up is not None:
127
132
  self.complete_sign_up = complete_sign_up
128
133
  if completed_project_onboarding is not None:
@@ -191,6 +196,27 @@ class V1UpdateUserRequest(object):
191
196
 
192
197
  self._agree_to_terms_and_conditions = agree_to_terms_and_conditions
193
198
 
199
+ @property
200
+ def auto_switch_machine(self) -> 'bool':
201
+ """Gets the auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
202
+
203
+
204
+ :return: The auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
205
+ :rtype: bool
206
+ """
207
+ return self._auto_switch_machine
208
+
209
+ @auto_switch_machine.setter
210
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
211
+ """Sets the auto_switch_machine of this V1UpdateUserRequest.
212
+
213
+
214
+ :param auto_switch_machine: The auto_switch_machine of this V1UpdateUserRequest. # noqa: E501
215
+ :type: bool
216
+ """
217
+
218
+ self._auto_switch_machine = auto_switch_machine
219
+
194
220
  @property
195
221
  def complete_sign_up(self) -> 'bool':
196
222
  """Gets the complete_sign_up of this V1UpdateUserRequest. # noqa: E501
@@ -42,21 +42,26 @@ class V1UploadProjectArtifactResponse(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'upload_id': 'str',
45
+ 'uploads': 'list[V1ClusterUpload]',
45
46
  'urls': 'list[V1PresignedUrl]'
46
47
  }
47
48
 
48
49
  attribute_map = {
49
50
  'upload_id': 'uploadId',
51
+ 'uploads': 'uploads',
50
52
  'urls': 'urls'
51
53
  }
52
54
 
53
- def __init__(self, upload_id: 'str' =None, urls: 'list[V1PresignedUrl]' =None): # noqa: E501
55
+ def __init__(self, upload_id: 'str' =None, uploads: 'list[V1ClusterUpload]' =None, urls: 'list[V1PresignedUrl]' =None): # noqa: E501
54
56
  """V1UploadProjectArtifactResponse - a model defined in Swagger""" # noqa: E501
55
57
  self._upload_id = None
58
+ self._uploads = None
56
59
  self._urls = None
57
60
  self.discriminator = None
58
61
  if upload_id is not None:
59
62
  self.upload_id = upload_id
63
+ if uploads is not None:
64
+ self.uploads = uploads
60
65
  if urls is not None:
61
66
  self.urls = urls
62
67
 
@@ -81,6 +86,27 @@ class V1UploadProjectArtifactResponse(object):
81
86
 
82
87
  self._upload_id = upload_id
83
88
 
89
+ @property
90
+ def uploads(self) -> 'list[V1ClusterUpload]':
91
+ """Gets the uploads of this V1UploadProjectArtifactResponse. # noqa: E501
92
+
93
+
94
+ :return: The uploads of this V1UploadProjectArtifactResponse. # noqa: E501
95
+ :rtype: list[V1ClusterUpload]
96
+ """
97
+ return self._uploads
98
+
99
+ @uploads.setter
100
+ def uploads(self, uploads: 'list[V1ClusterUpload]'):
101
+ """Sets the uploads of this V1UploadProjectArtifactResponse.
102
+
103
+
104
+ :param uploads: The uploads of this V1UploadProjectArtifactResponse. # noqa: E501
105
+ :type: list[V1ClusterUpload]
106
+ """
107
+
108
+ self._uploads = uploads
109
+
84
110
  @property
85
111
  def urls(self) -> 'list[V1PresignedUrl]':
86
112
  """Gets the urls of this V1UploadProjectArtifactResponse. # noqa: E501
@@ -42,31 +42,46 @@ class V1UsageReport(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'daily_usage': 'list[V1DailyUsage]',
45
+ 'has_more': 'bool',
46
+ 'search_after': 'datetime',
45
47
  'total_cost': 'float',
46
48
  'total_saved_cost': 'float',
49
+ 'total_users': 'int',
47
50
  'usage': 'list[V1Usage]'
48
51
  }
49
52
 
50
53
  attribute_map = {
51
54
  'daily_usage': 'dailyUsage',
55
+ 'has_more': 'hasMore',
56
+ 'search_after': 'searchAfter',
52
57
  'total_cost': 'totalCost',
53
58
  'total_saved_cost': 'totalSavedCost',
59
+ 'total_users': 'totalUsers',
54
60
  'usage': 'usage'
55
61
  }
56
62
 
57
- def __init__(self, daily_usage: 'list[V1DailyUsage]' =None, total_cost: 'float' =None, total_saved_cost: 'float' =None, usage: 'list[V1Usage]' =None): # noqa: E501
63
+ def __init__(self, daily_usage: 'list[V1DailyUsage]' =None, has_more: 'bool' =None, search_after: 'datetime' =None, total_cost: 'float' =None, total_saved_cost: 'float' =None, total_users: 'int' =None, usage: 'list[V1Usage]' =None): # noqa: E501
58
64
  """V1UsageReport - a model defined in Swagger""" # noqa: E501
59
65
  self._daily_usage = None
66
+ self._has_more = None
67
+ self._search_after = None
60
68
  self._total_cost = None
61
69
  self._total_saved_cost = None
70
+ self._total_users = None
62
71
  self._usage = None
63
72
  self.discriminator = None
64
73
  if daily_usage is not None:
65
74
  self.daily_usage = daily_usage
75
+ if has_more is not None:
76
+ self.has_more = has_more
77
+ if search_after is not None:
78
+ self.search_after = search_after
66
79
  if total_cost is not None:
67
80
  self.total_cost = total_cost
68
81
  if total_saved_cost is not None:
69
82
  self.total_saved_cost = total_saved_cost
83
+ if total_users is not None:
84
+ self.total_users = total_users
70
85
  if usage is not None:
71
86
  self.usage = usage
72
87
 
@@ -91,6 +106,48 @@ class V1UsageReport(object):
91
106
 
92
107
  self._daily_usage = daily_usage
93
108
 
109
+ @property
110
+ def has_more(self) -> 'bool':
111
+ """Gets the has_more of this V1UsageReport. # noqa: E501
112
+
113
+
114
+ :return: The has_more of this V1UsageReport. # noqa: E501
115
+ :rtype: bool
116
+ """
117
+ return self._has_more
118
+
119
+ @has_more.setter
120
+ def has_more(self, has_more: 'bool'):
121
+ """Sets the has_more of this V1UsageReport.
122
+
123
+
124
+ :param has_more: The has_more of this V1UsageReport. # noqa: E501
125
+ :type: bool
126
+ """
127
+
128
+ self._has_more = has_more
129
+
130
+ @property
131
+ def search_after(self) -> 'datetime':
132
+ """Gets the search_after of this V1UsageReport. # noqa: E501
133
+
134
+
135
+ :return: The search_after of this V1UsageReport. # noqa: E501
136
+ :rtype: datetime
137
+ """
138
+ return self._search_after
139
+
140
+ @search_after.setter
141
+ def search_after(self, search_after: 'datetime'):
142
+ """Sets the search_after of this V1UsageReport.
143
+
144
+
145
+ :param search_after: The search_after of this V1UsageReport. # noqa: E501
146
+ :type: datetime
147
+ """
148
+
149
+ self._search_after = search_after
150
+
94
151
  @property
95
152
  def total_cost(self) -> 'float':
96
153
  """Gets the total_cost of this V1UsageReport. # noqa: E501
@@ -133,6 +190,27 @@ class V1UsageReport(object):
133
190
 
134
191
  self._total_saved_cost = total_saved_cost
135
192
 
193
+ @property
194
+ def total_users(self) -> 'int':
195
+ """Gets the total_users of this V1UsageReport. # noqa: E501
196
+
197
+
198
+ :return: The total_users of this V1UsageReport. # noqa: E501
199
+ :rtype: int
200
+ """
201
+ return self._total_users
202
+
203
+ @total_users.setter
204
+ def total_users(self, total_users: 'int'):
205
+ """Sets the total_users of this V1UsageReport.
206
+
207
+
208
+ :param total_users: The total_users of this V1UsageReport. # noqa: E501
209
+ :type: int
210
+ """
211
+
212
+ self._total_users = total_users
213
+
136
214
  @property
137
215
  def usage(self) -> 'list[V1Usage]':
138
216
  """Gets the usage of this V1UsageReport. # noqa: E501