lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +79 -0
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/license_api.py +48 -0
  5. lightning_sdk/api/llm_api.py +73 -12
  6. lightning_sdk/api/studio_api.py +50 -1
  7. lightning_sdk/api/teamspace_api.py +127 -1
  8. lightning_sdk/api/utils.py +4 -0
  9. lightning_sdk/base_studio.py +83 -0
  10. lightning_sdk/cli/create.py +21 -1
  11. lightning_sdk/cli/delete.py +6 -8
  12. lightning_sdk/cli/deploy/__init__.py +0 -0
  13. lightning_sdk/cli/deploy/_auth.py +189 -0
  14. lightning_sdk/cli/deploy/devbox.py +157 -0
  15. lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
  16. lightning_sdk/cli/download.py +69 -16
  17. lightning_sdk/cli/entrypoint.py +1 -1
  18. lightning_sdk/cli/open.py +21 -2
  19. lightning_sdk/cli/start.py +12 -3
  20. lightning_sdk/cli/teamspace_menu.py +9 -1
  21. lightning_sdk/cli/upload.py +2 -5
  22. lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
  23. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  24. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
  25. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  26. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
  27. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  28. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  29. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
  30. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  31. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  32. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  33. lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
  34. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
  37. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
  38. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  42. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
  43. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  44. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
  47. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  62. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  74. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  82. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  84. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
  89. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  92. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  94. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  97. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
  98. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  100. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  101. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
  104. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  105. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  106. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  107. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  108. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
  109. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  110. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  111. lightning_sdk/llm/llm.py +132 -40
  112. lightning_sdk/services/__init__.py +1 -1
  113. lightning_sdk/services/license.py +236 -0
  114. lightning_sdk/studio.py +62 -1
  115. lightning_sdk/teamspace.py +68 -0
  116. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
  117. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
  118. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  119. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
  120. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
  121. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
  122. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
@@ -45,6 +45,7 @@ class V1ProjectMembership(object):
45
45
  'balance': 'float',
46
46
  'created_at': 'datetime',
47
47
  'creator_id': 'str',
48
+ 'current_storage_bytes': 'str',
48
49
  'datastore_count': 'str',
49
50
  'description': 'str',
50
51
  'display_name': 'str',
@@ -58,7 +59,7 @@ class V1ProjectMembership(object):
58
59
  'last_name': 'str',
59
60
  'membership_count': 'str',
60
61
  'name': 'str',
61
- 'next_free_credits_grant_at': 'datetime',
62
+ 'next_free_credits_grant': 'str',
62
63
  'organization': 'str',
63
64
  'owner_id': 'str',
64
65
  'owner_type': 'V1OwnerType',
@@ -75,6 +76,7 @@ class V1ProjectMembership(object):
75
76
  'balance': 'balance',
76
77
  'created_at': 'createdAt',
77
78
  'creator_id': 'creatorId',
79
+ 'current_storage_bytes': 'currentStorageBytes',
78
80
  'datastore_count': 'datastoreCount',
79
81
  'description': 'description',
80
82
  'display_name': 'displayName',
@@ -88,7 +90,7 @@ class V1ProjectMembership(object):
88
90
  'last_name': 'lastName',
89
91
  'membership_count': 'membershipCount',
90
92
  'name': 'name',
91
- 'next_free_credits_grant_at': 'nextFreeCreditsGrantAt',
93
+ 'next_free_credits_grant': 'nextFreeCreditsGrant',
92
94
  'organization': 'organization',
93
95
  'owner_id': 'ownerId',
94
96
  'owner_type': 'ownerType',
@@ -100,12 +102,13 @@ class V1ProjectMembership(object):
100
102
  'username': 'username'
101
103
  }
102
104
 
103
- def __init__(self, avatar_url: 'str' =None, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, email: 'str' =None, first_name: 'str' =None, free_credits_enabled: 'bool' =None, inactive: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, job_title: 'str' =None, last_name: 'str' =None, membership_count: 'str' =None, name: 'str' =None, next_free_credits_grant_at: 'datetime' =None, organization: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, project_id: 'str' =None, quotas: 'V1Quotas' =None, roles: 'list[V1Role]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, username: 'str' =None): # noqa: E501
105
+ def __init__(self, avatar_url: 'str' =None, balance: 'float' =None, created_at: 'datetime' =None, creator_id: 'str' =None, current_storage_bytes: 'str' =None, datastore_count: 'str' =None, description: 'str' =None, display_name: 'str' =None, email: 'str' =None, first_name: 'str' =None, free_credits_enabled: 'bool' =None, inactive: 'bool' =None, is_default: 'bool' =None, job_count: 'str' =None, job_title: 'str' =None, last_name: 'str' =None, membership_count: 'str' =None, name: 'str' =None, next_free_credits_grant: 'str' =None, organization: 'str' =None, owner_id: 'str' =None, owner_type: 'V1OwnerType' =None, project_id: 'str' =None, quotas: 'V1Quotas' =None, roles: 'list[V1Role]' =None, updated_at: 'datetime' =None, user_id: 'str' =None, username: 'str' =None): # noqa: E501
104
106
  """V1ProjectMembership - a model defined in Swagger""" # noqa: E501
105
107
  self._avatar_url = None
106
108
  self._balance = None
107
109
  self._created_at = None
108
110
  self._creator_id = None
111
+ self._current_storage_bytes = None
109
112
  self._datastore_count = None
110
113
  self._description = None
111
114
  self._display_name = None
@@ -119,7 +122,7 @@ class V1ProjectMembership(object):
119
122
  self._last_name = None
120
123
  self._membership_count = None
121
124
  self._name = None
122
- self._next_free_credits_grant_at = None
125
+ self._next_free_credits_grant = None
123
126
  self._organization = None
124
127
  self._owner_id = None
125
128
  self._owner_type = None
@@ -138,6 +141,8 @@ class V1ProjectMembership(object):
138
141
  self.created_at = created_at
139
142
  if creator_id is not None:
140
143
  self.creator_id = creator_id
144
+ if current_storage_bytes is not None:
145
+ self.current_storage_bytes = current_storage_bytes
141
146
  if datastore_count is not None:
142
147
  self.datastore_count = datastore_count
143
148
  if description is not None:
@@ -164,8 +169,8 @@ class V1ProjectMembership(object):
164
169
  self.membership_count = membership_count
165
170
  if name is not None:
166
171
  self.name = name
167
- if next_free_credits_grant_at is not None:
168
- self.next_free_credits_grant_at = next_free_credits_grant_at
172
+ if next_free_credits_grant is not None:
173
+ self.next_free_credits_grant = next_free_credits_grant
169
174
  if organization is not None:
170
175
  self.organization = organization
171
176
  if owner_id is not None:
@@ -269,6 +274,27 @@ class V1ProjectMembership(object):
269
274
 
270
275
  self._creator_id = creator_id
271
276
 
277
+ @property
278
+ def current_storage_bytes(self) -> 'str':
279
+ """Gets the current_storage_bytes of this V1ProjectMembership. # noqa: E501
280
+
281
+
282
+ :return: The current_storage_bytes of this V1ProjectMembership. # noqa: E501
283
+ :rtype: str
284
+ """
285
+ return self._current_storage_bytes
286
+
287
+ @current_storage_bytes.setter
288
+ def current_storage_bytes(self, current_storage_bytes: 'str'):
289
+ """Sets the current_storage_bytes of this V1ProjectMembership.
290
+
291
+
292
+ :param current_storage_bytes: The current_storage_bytes of this V1ProjectMembership. # noqa: E501
293
+ :type: str
294
+ """
295
+
296
+ self._current_storage_bytes = current_storage_bytes
297
+
272
298
  @property
273
299
  def datastore_count(self) -> 'str':
274
300
  """Gets the datastore_count of this V1ProjectMembership. # noqa: E501
@@ -543,25 +569,25 @@ class V1ProjectMembership(object):
543
569
  self._name = name
544
570
 
545
571
  @property
546
- def next_free_credits_grant_at(self) -> 'datetime':
547
- """Gets the next_free_credits_grant_at of this V1ProjectMembership. # noqa: E501
572
+ def next_free_credits_grant(self) -> 'str':
573
+ """Gets the next_free_credits_grant of this V1ProjectMembership. # noqa: E501
548
574
 
549
575
 
550
- :return: The next_free_credits_grant_at of this V1ProjectMembership. # noqa: E501
551
- :rtype: datetime
576
+ :return: The next_free_credits_grant of this V1ProjectMembership. # noqa: E501
577
+ :rtype: str
552
578
  """
553
- return self._next_free_credits_grant_at
579
+ return self._next_free_credits_grant
554
580
 
555
- @next_free_credits_grant_at.setter
556
- def next_free_credits_grant_at(self, next_free_credits_grant_at: 'datetime'):
557
- """Sets the next_free_credits_grant_at of this V1ProjectMembership.
581
+ @next_free_credits_grant.setter
582
+ def next_free_credits_grant(self, next_free_credits_grant: 'str'):
583
+ """Sets the next_free_credits_grant of this V1ProjectMembership.
558
584
 
559
585
 
560
- :param next_free_credits_grant_at: The next_free_credits_grant_at of this V1ProjectMembership. # noqa: E501
561
- :type: datetime
586
+ :param next_free_credits_grant: The next_free_credits_grant of this V1ProjectMembership. # noqa: E501
587
+ :type: str
562
588
  """
563
589
 
564
- self._next_free_credits_grant_at = next_free_credits_grant_at
590
+ self._next_free_credits_grant = next_free_credits_grant
565
591
 
566
592
  @property
567
593
  def organization(self) -> 'str':
@@ -42,41 +42,52 @@ 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',
52
55
  'preferred_deployment_provider': 'str',
53
56
  'preferred_studio_provider': 'str',
54
57
  'same_compute_on_resume': 'bool',
55
- 'start_studio_on_spot_instance': 'bool'
58
+ 'start_studio_on_spot_instance': 'bool',
59
+ 'switch_to_default_machine_on_idle': 'bool'
56
60
  }
57
61
 
58
62
  attribute_map = {
59
63
  'allow_aws_saas': 'allowAwsSaas',
64
+ 'allow_dgx_saas': 'allowDgxSaas',
60
65
  'allow_external_project_duplication': 'allowExternalProjectDuplication',
61
66
  'allow_gcp_saas': 'allowGcpSaas',
62
67
  'allow_lambda_saas': 'allowLambdaSaas',
68
+ 'allow_lightning_saas': 'allowLightningSaas',
63
69
  'allow_vultr_saas': 'allowVultrSaas',
70
+ 'auto_switch_machine': 'autoSwitchMachine',
64
71
  'default_machine_image_version': 'defaultMachineImageVersion',
65
72
  'default_machine_type': 'defaultMachineType',
66
73
  'preferred_cluster': 'preferredCluster',
67
74
  'preferred_deployment_provider': 'preferredDeploymentProvider',
68
75
  'preferred_studio_provider': 'preferredStudioProvider',
69
76
  'same_compute_on_resume': 'sameComputeOnResume',
70
- 'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
77
+ 'start_studio_on_spot_instance': 'startStudioOnSpotInstance',
78
+ 'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle'
71
79
  }
72
80
 
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
81
+ 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, switch_to_default_machine_on_idle: 'bool' =None): # noqa: E501
74
82
  """V1ProjectSettings - a model defined in Swagger""" # noqa: E501
75
83
  self._allow_aws_saas = None
84
+ self._allow_dgx_saas = None
76
85
  self._allow_external_project_duplication = None
77
86
  self._allow_gcp_saas = None
78
87
  self._allow_lambda_saas = None
88
+ self._allow_lightning_saas = None
79
89
  self._allow_vultr_saas = None
90
+ self._auto_switch_machine = None
80
91
  self._default_machine_image_version = None
81
92
  self._default_machine_type = None
82
93
  self._preferred_cluster = None
@@ -84,17 +95,24 @@ class V1ProjectSettings(object):
84
95
  self._preferred_studio_provider = None
85
96
  self._same_compute_on_resume = None
86
97
  self._start_studio_on_spot_instance = None
98
+ self._switch_to_default_machine_on_idle = None
87
99
  self.discriminator = None
88
100
  if allow_aws_saas is not None:
89
101
  self.allow_aws_saas = allow_aws_saas
102
+ if allow_dgx_saas is not None:
103
+ self.allow_dgx_saas = allow_dgx_saas
90
104
  if allow_external_project_duplication is not None:
91
105
  self.allow_external_project_duplication = allow_external_project_duplication
92
106
  if allow_gcp_saas is not None:
93
107
  self.allow_gcp_saas = allow_gcp_saas
94
108
  if allow_lambda_saas is not None:
95
109
  self.allow_lambda_saas = allow_lambda_saas
110
+ if allow_lightning_saas is not None:
111
+ self.allow_lightning_saas = allow_lightning_saas
96
112
  if allow_vultr_saas is not None:
97
113
  self.allow_vultr_saas = allow_vultr_saas
114
+ if auto_switch_machine is not None:
115
+ self.auto_switch_machine = auto_switch_machine
98
116
  if default_machine_image_version is not None:
99
117
  self.default_machine_image_version = default_machine_image_version
100
118
  if default_machine_type is not None:
@@ -109,6 +127,8 @@ class V1ProjectSettings(object):
109
127
  self.same_compute_on_resume = same_compute_on_resume
110
128
  if start_studio_on_spot_instance is not None:
111
129
  self.start_studio_on_spot_instance = start_studio_on_spot_instance
130
+ if switch_to_default_machine_on_idle is not None:
131
+ self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
112
132
 
113
133
  @property
114
134
  def allow_aws_saas(self) -> 'bool':
@@ -131,6 +151,27 @@ class V1ProjectSettings(object):
131
151
 
132
152
  self._allow_aws_saas = allow_aws_saas
133
153
 
154
+ @property
155
+ def allow_dgx_saas(self) -> 'bool':
156
+ """Gets the allow_dgx_saas of this V1ProjectSettings. # noqa: E501
157
+
158
+
159
+ :return: The allow_dgx_saas of this V1ProjectSettings. # noqa: E501
160
+ :rtype: bool
161
+ """
162
+ return self._allow_dgx_saas
163
+
164
+ @allow_dgx_saas.setter
165
+ def allow_dgx_saas(self, allow_dgx_saas: 'bool'):
166
+ """Sets the allow_dgx_saas of this V1ProjectSettings.
167
+
168
+
169
+ :param allow_dgx_saas: The allow_dgx_saas of this V1ProjectSettings. # noqa: E501
170
+ :type: bool
171
+ """
172
+
173
+ self._allow_dgx_saas = allow_dgx_saas
174
+
134
175
  @property
135
176
  def allow_external_project_duplication(self) -> 'bool':
136
177
  """Gets the allow_external_project_duplication of this V1ProjectSettings. # noqa: E501
@@ -196,6 +237,27 @@ class V1ProjectSettings(object):
196
237
 
197
238
  self._allow_lambda_saas = allow_lambda_saas
198
239
 
240
+ @property
241
+ def allow_lightning_saas(self) -> 'bool':
242
+ """Gets the allow_lightning_saas of this V1ProjectSettings. # noqa: E501
243
+
244
+
245
+ :return: The allow_lightning_saas of this V1ProjectSettings. # noqa: E501
246
+ :rtype: bool
247
+ """
248
+ return self._allow_lightning_saas
249
+
250
+ @allow_lightning_saas.setter
251
+ def allow_lightning_saas(self, allow_lightning_saas: 'bool'):
252
+ """Sets the allow_lightning_saas of this V1ProjectSettings.
253
+
254
+
255
+ :param allow_lightning_saas: The allow_lightning_saas of this V1ProjectSettings. # noqa: E501
256
+ :type: bool
257
+ """
258
+
259
+ self._allow_lightning_saas = allow_lightning_saas
260
+
199
261
  @property
200
262
  def allow_vultr_saas(self) -> 'bool':
201
263
  """Gets the allow_vultr_saas of this V1ProjectSettings. # noqa: E501
@@ -217,6 +279,27 @@ class V1ProjectSettings(object):
217
279
 
218
280
  self._allow_vultr_saas = allow_vultr_saas
219
281
 
282
+ @property
283
+ def auto_switch_machine(self) -> 'bool':
284
+ """Gets the auto_switch_machine of this V1ProjectSettings. # noqa: E501
285
+
286
+
287
+ :return: The auto_switch_machine of this V1ProjectSettings. # noqa: E501
288
+ :rtype: bool
289
+ """
290
+ return self._auto_switch_machine
291
+
292
+ @auto_switch_machine.setter
293
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
294
+ """Sets the auto_switch_machine of this V1ProjectSettings.
295
+
296
+
297
+ :param auto_switch_machine: The auto_switch_machine of this V1ProjectSettings. # noqa: E501
298
+ :type: bool
299
+ """
300
+
301
+ self._auto_switch_machine = auto_switch_machine
302
+
220
303
  @property
221
304
  def default_machine_image_version(self) -> 'str':
222
305
  """Gets the default_machine_image_version of this V1ProjectSettings. # noqa: E501
@@ -364,6 +447,27 @@ class V1ProjectSettings(object):
364
447
 
365
448
  self._start_studio_on_spot_instance = start_studio_on_spot_instance
366
449
 
450
+ @property
451
+ def switch_to_default_machine_on_idle(self) -> 'bool':
452
+ """Gets the switch_to_default_machine_on_idle of this V1ProjectSettings. # noqa: E501
453
+
454
+
455
+ :return: The switch_to_default_machine_on_idle of this V1ProjectSettings. # noqa: E501
456
+ :rtype: bool
457
+ """
458
+ return self._switch_to_default_machine_on_idle
459
+
460
+ @switch_to_default_machine_on_idle.setter
461
+ def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
462
+ """Sets the switch_to_default_machine_on_idle of this V1ProjectSettings.
463
+
464
+
465
+ :param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this V1ProjectSettings. # noqa: E501
466
+ :type: bool
467
+ """
468
+
469
+ self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
470
+
367
471
  def to_dict(self) -> dict:
368
472
  """Returns the model properties as a dict"""
369
473
  result = {}
@@ -41,35 +41,43 @@ class V1ProjectStorage(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'billable_bytes': 'str',
44
45
  'cloudspace_storage_bytes': 'str',
45
46
  'data_connection_storage_bytes': 'str',
46
47
  'display_name': 'str',
47
48
  'id': 'str',
48
49
  'job_storage_bytes': 'str',
50
+ 'total_billed_per_day': 'float',
49
51
  'total_storage_bytes': 'str',
50
52
  'upload_storage_bytes': 'str'
51
53
  }
52
54
 
53
55
  attribute_map = {
56
+ 'billable_bytes': 'billableBytes',
54
57
  'cloudspace_storage_bytes': 'cloudspaceStorageBytes',
55
58
  'data_connection_storage_bytes': 'dataConnectionStorageBytes',
56
59
  'display_name': 'displayName',
57
60
  'id': 'id',
58
61
  'job_storage_bytes': 'jobStorageBytes',
62
+ 'total_billed_per_day': 'totalBilledPerDay',
59
63
  'total_storage_bytes': 'totalStorageBytes',
60
64
  'upload_storage_bytes': 'uploadStorageBytes'
61
65
  }
62
66
 
63
- def __init__(self, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
67
+ def __init__(self, billable_bytes: 'str' =None, cloudspace_storage_bytes: 'str' =None, data_connection_storage_bytes: 'str' =None, display_name: 'str' =None, id: 'str' =None, job_storage_bytes: 'str' =None, total_billed_per_day: 'float' =None, total_storage_bytes: 'str' =None, upload_storage_bytes: 'str' =None): # noqa: E501
64
68
  """V1ProjectStorage - a model defined in Swagger""" # noqa: E501
69
+ self._billable_bytes = None
65
70
  self._cloudspace_storage_bytes = None
66
71
  self._data_connection_storage_bytes = None
67
72
  self._display_name = None
68
73
  self._id = None
69
74
  self._job_storage_bytes = None
75
+ self._total_billed_per_day = None
70
76
  self._total_storage_bytes = None
71
77
  self._upload_storage_bytes = None
72
78
  self.discriminator = None
79
+ if billable_bytes is not None:
80
+ self.billable_bytes = billable_bytes
73
81
  if cloudspace_storage_bytes is not None:
74
82
  self.cloudspace_storage_bytes = cloudspace_storage_bytes
75
83
  if data_connection_storage_bytes is not None:
@@ -80,11 +88,34 @@ class V1ProjectStorage(object):
80
88
  self.id = id
81
89
  if job_storage_bytes is not None:
82
90
  self.job_storage_bytes = job_storage_bytes
91
+ if total_billed_per_day is not None:
92
+ self.total_billed_per_day = total_billed_per_day
83
93
  if total_storage_bytes is not None:
84
94
  self.total_storage_bytes = total_storage_bytes
85
95
  if upload_storage_bytes is not None:
86
96
  self.upload_storage_bytes = upload_storage_bytes
87
97
 
98
+ @property
99
+ def billable_bytes(self) -> 'str':
100
+ """Gets the billable_bytes of this V1ProjectStorage. # noqa: E501
101
+
102
+
103
+ :return: The billable_bytes of this V1ProjectStorage. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._billable_bytes
107
+
108
+ @billable_bytes.setter
109
+ def billable_bytes(self, billable_bytes: 'str'):
110
+ """Sets the billable_bytes of this V1ProjectStorage.
111
+
112
+
113
+ :param billable_bytes: The billable_bytes of this V1ProjectStorage. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._billable_bytes = billable_bytes
118
+
88
119
  @property
89
120
  def cloudspace_storage_bytes(self) -> 'str':
90
121
  """Gets the cloudspace_storage_bytes of this V1ProjectStorage. # noqa: E501
@@ -190,6 +221,27 @@ class V1ProjectStorage(object):
190
221
 
191
222
  self._job_storage_bytes = job_storage_bytes
192
223
 
224
+ @property
225
+ def total_billed_per_day(self) -> 'float':
226
+ """Gets the total_billed_per_day of this V1ProjectStorage. # noqa: E501
227
+
228
+
229
+ :return: The total_billed_per_day of this V1ProjectStorage. # noqa: E501
230
+ :rtype: float
231
+ """
232
+ return self._total_billed_per_day
233
+
234
+ @total_billed_per_day.setter
235
+ def total_billed_per_day(self, total_billed_per_day: 'float'):
236
+ """Sets the total_billed_per_day of this V1ProjectStorage.
237
+
238
+
239
+ :param total_billed_per_day: The total_billed_per_day of this V1ProjectStorage. # noqa: E501
240
+ :type: float
241
+ """
242
+
243
+ self._total_billed_per_day = total_billed_per_day
244
+
193
245
  @property
194
246
  def total_storage_bytes(self) -> 'str':
195
247
  """Gets the total_storage_bytes of this V1ProjectStorage. # 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