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
@@ -44,10 +44,13 @@ class V1Organization(object):
44
44
  'alerts_config': 'V1AlertsConfig',
45
45
  'allow_aws_saas': 'bool',
46
46
  'allow_budgeting': 'bool',
47
+ 'allow_credits_auto_replenish': 'bool',
48
+ 'allow_dgx_saas': 'bool',
47
49
  'allow_external_project_duplication': 'bool',
48
50
  'allow_gcp_saas': 'bool',
49
51
  'allow_guest': 'bool',
50
52
  'allow_lambda_saas': 'bool',
53
+ 'allow_lightning_saas': 'bool',
51
54
  'allow_marketplace': 'bool',
52
55
  'allow_member_invitations': 'bool',
53
56
  'allow_member_teamspace_creation': 'bool',
@@ -55,6 +58,9 @@ class V1Organization(object):
55
58
  'auto_invite_by_domain': 'bool',
56
59
  'auto_join_domain_validations': 'dict(str, V1AutoJoinDomainValidation)',
57
60
  'auto_join_domains': 'list[str]',
61
+ 'auto_replenish_amount': 'float',
62
+ 'auto_replenish_threshold': 'float',
63
+ 'auto_switch_machine': 'bool',
58
64
  'created_at': 'datetime',
59
65
  'default_machine_image_version': 'str',
60
66
  'default_machine_type': 'str',
@@ -73,6 +79,7 @@ class V1Organization(object):
73
79
  'preferred_deployment_provider': 'str',
74
80
  'preferred_studio_provider': 'str',
75
81
  'start_studios_on_spot_instance': 'bool',
82
+ 'switch_to_default_machine_on_idle': 'bool',
76
83
  'teamspace_default_credits': 'float',
77
84
  'twitter_username': 'str',
78
85
  'updated_at': 'datetime',
@@ -83,10 +90,13 @@ class V1Organization(object):
83
90
  'alerts_config': 'alertsConfig',
84
91
  'allow_aws_saas': 'allowAwsSaas',
85
92
  'allow_budgeting': 'allowBudgeting',
93
+ 'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
94
+ 'allow_dgx_saas': 'allowDgxSaas',
86
95
  'allow_external_project_duplication': 'allowExternalProjectDuplication',
87
96
  'allow_gcp_saas': 'allowGcpSaas',
88
97
  'allow_guest': 'allowGuest',
89
98
  'allow_lambda_saas': 'allowLambdaSaas',
99
+ 'allow_lightning_saas': 'allowLightningSaas',
90
100
  'allow_marketplace': 'allowMarketplace',
91
101
  'allow_member_invitations': 'allowMemberInvitations',
92
102
  'allow_member_teamspace_creation': 'allowMemberTeamspaceCreation',
@@ -94,6 +104,9 @@ class V1Organization(object):
94
104
  'auto_invite_by_domain': 'autoInviteByDomain',
95
105
  'auto_join_domain_validations': 'autoJoinDomainValidations',
96
106
  'auto_join_domains': 'autoJoinDomains',
107
+ 'auto_replenish_amount': 'autoReplenishAmount',
108
+ 'auto_replenish_threshold': 'autoReplenishThreshold',
109
+ 'auto_switch_machine': 'autoSwitchMachine',
97
110
  'created_at': 'createdAt',
98
111
  'default_machine_image_version': 'defaultMachineImageVersion',
99
112
  'default_machine_type': 'defaultMachineType',
@@ -112,21 +125,25 @@ class V1Organization(object):
112
125
  'preferred_deployment_provider': 'preferredDeploymentProvider',
113
126
  'preferred_studio_provider': 'preferredStudioProvider',
114
127
  'start_studios_on_spot_instance': 'startStudiosOnSpotInstance',
128
+ 'switch_to_default_machine_on_idle': 'switchToDefaultMachineOnIdle',
115
129
  'teamspace_default_credits': 'teamspaceDefaultCredits',
116
130
  'twitter_username': 'twitterUsername',
117
131
  'updated_at': 'updatedAt',
118
132
  'workload_max_run_duration': 'workloadMaxRunDuration'
119
133
  }
120
134
 
121
- def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_budgeting: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
135
+ def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
122
136
  """V1Organization - a model defined in Swagger""" # noqa: E501
123
137
  self._alerts_config = None
124
138
  self._allow_aws_saas = None
125
139
  self._allow_budgeting = None
140
+ self._allow_credits_auto_replenish = None
141
+ self._allow_dgx_saas = None
126
142
  self._allow_external_project_duplication = None
127
143
  self._allow_gcp_saas = None
128
144
  self._allow_guest = None
129
145
  self._allow_lambda_saas = None
146
+ self._allow_lightning_saas = None
130
147
  self._allow_marketplace = None
131
148
  self._allow_member_invitations = None
132
149
  self._allow_member_teamspace_creation = None
@@ -134,6 +151,9 @@ class V1Organization(object):
134
151
  self._auto_invite_by_domain = None
135
152
  self._auto_join_domain_validations = None
136
153
  self._auto_join_domains = None
154
+ self._auto_replenish_amount = None
155
+ self._auto_replenish_threshold = None
156
+ self._auto_switch_machine = None
137
157
  self._created_at = None
138
158
  self._default_machine_image_version = None
139
159
  self._default_machine_type = None
@@ -152,6 +172,7 @@ class V1Organization(object):
152
172
  self._preferred_deployment_provider = None
153
173
  self._preferred_studio_provider = None
154
174
  self._start_studios_on_spot_instance = None
175
+ self._switch_to_default_machine_on_idle = None
155
176
  self._teamspace_default_credits = None
156
177
  self._twitter_username = None
157
178
  self._updated_at = None
@@ -163,6 +184,10 @@ class V1Organization(object):
163
184
  self.allow_aws_saas = allow_aws_saas
164
185
  if allow_budgeting is not None:
165
186
  self.allow_budgeting = allow_budgeting
187
+ if allow_credits_auto_replenish is not None:
188
+ self.allow_credits_auto_replenish = allow_credits_auto_replenish
189
+ if allow_dgx_saas is not None:
190
+ self.allow_dgx_saas = allow_dgx_saas
166
191
  if allow_external_project_duplication is not None:
167
192
  self.allow_external_project_duplication = allow_external_project_duplication
168
193
  if allow_gcp_saas is not None:
@@ -171,6 +196,8 @@ class V1Organization(object):
171
196
  self.allow_guest = allow_guest
172
197
  if allow_lambda_saas is not None:
173
198
  self.allow_lambda_saas = allow_lambda_saas
199
+ if allow_lightning_saas is not None:
200
+ self.allow_lightning_saas = allow_lightning_saas
174
201
  if allow_marketplace is not None:
175
202
  self.allow_marketplace = allow_marketplace
176
203
  if allow_member_invitations is not None:
@@ -185,6 +212,12 @@ class V1Organization(object):
185
212
  self.auto_join_domain_validations = auto_join_domain_validations
186
213
  if auto_join_domains is not None:
187
214
  self.auto_join_domains = auto_join_domains
215
+ if auto_replenish_amount is not None:
216
+ self.auto_replenish_amount = auto_replenish_amount
217
+ if auto_replenish_threshold is not None:
218
+ self.auto_replenish_threshold = auto_replenish_threshold
219
+ if auto_switch_machine is not None:
220
+ self.auto_switch_machine = auto_switch_machine
188
221
  if created_at is not None:
189
222
  self.created_at = created_at
190
223
  if default_machine_image_version is not None:
@@ -221,6 +254,8 @@ class V1Organization(object):
221
254
  self.preferred_studio_provider = preferred_studio_provider
222
255
  if start_studios_on_spot_instance is not None:
223
256
  self.start_studios_on_spot_instance = start_studios_on_spot_instance
257
+ if switch_to_default_machine_on_idle is not None:
258
+ self.switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
224
259
  if teamspace_default_credits is not None:
225
260
  self.teamspace_default_credits = teamspace_default_credits
226
261
  if twitter_username is not None:
@@ -293,6 +328,48 @@ class V1Organization(object):
293
328
 
294
329
  self._allow_budgeting = allow_budgeting
295
330
 
331
+ @property
332
+ def allow_credits_auto_replenish(self) -> 'bool':
333
+ """Gets the allow_credits_auto_replenish of this V1Organization. # noqa: E501
334
+
335
+
336
+ :return: The allow_credits_auto_replenish of this V1Organization. # noqa: E501
337
+ :rtype: bool
338
+ """
339
+ return self._allow_credits_auto_replenish
340
+
341
+ @allow_credits_auto_replenish.setter
342
+ def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
343
+ """Sets the allow_credits_auto_replenish of this V1Organization.
344
+
345
+
346
+ :param allow_credits_auto_replenish: The allow_credits_auto_replenish of this V1Organization. # noqa: E501
347
+ :type: bool
348
+ """
349
+
350
+ self._allow_credits_auto_replenish = allow_credits_auto_replenish
351
+
352
+ @property
353
+ def allow_dgx_saas(self) -> 'bool':
354
+ """Gets the allow_dgx_saas of this V1Organization. # noqa: E501
355
+
356
+
357
+ :return: The allow_dgx_saas of this V1Organization. # noqa: E501
358
+ :rtype: bool
359
+ """
360
+ return self._allow_dgx_saas
361
+
362
+ @allow_dgx_saas.setter
363
+ def allow_dgx_saas(self, allow_dgx_saas: 'bool'):
364
+ """Sets the allow_dgx_saas of this V1Organization.
365
+
366
+
367
+ :param allow_dgx_saas: The allow_dgx_saas of this V1Organization. # noqa: E501
368
+ :type: bool
369
+ """
370
+
371
+ self._allow_dgx_saas = allow_dgx_saas
372
+
296
373
  @property
297
374
  def allow_external_project_duplication(self) -> 'bool':
298
375
  """Gets the allow_external_project_duplication of this V1Organization. # noqa: E501
@@ -379,6 +456,27 @@ class V1Organization(object):
379
456
 
380
457
  self._allow_lambda_saas = allow_lambda_saas
381
458
 
459
+ @property
460
+ def allow_lightning_saas(self) -> 'bool':
461
+ """Gets the allow_lightning_saas of this V1Organization. # noqa: E501
462
+
463
+
464
+ :return: The allow_lightning_saas of this V1Organization. # noqa: E501
465
+ :rtype: bool
466
+ """
467
+ return self._allow_lightning_saas
468
+
469
+ @allow_lightning_saas.setter
470
+ def allow_lightning_saas(self, allow_lightning_saas: 'bool'):
471
+ """Sets the allow_lightning_saas of this V1Organization.
472
+
473
+
474
+ :param allow_lightning_saas: The allow_lightning_saas of this V1Organization. # noqa: E501
475
+ :type: bool
476
+ """
477
+
478
+ self._allow_lightning_saas = allow_lightning_saas
479
+
382
480
  @property
383
481
  def allow_marketplace(self) -> 'bool':
384
482
  """Gets the allow_marketplace of this V1Organization. # noqa: E501
@@ -526,6 +624,69 @@ class V1Organization(object):
526
624
 
527
625
  self._auto_join_domains = auto_join_domains
528
626
 
627
+ @property
628
+ def auto_replenish_amount(self) -> 'float':
629
+ """Gets the auto_replenish_amount of this V1Organization. # noqa: E501
630
+
631
+
632
+ :return: The auto_replenish_amount of this V1Organization. # noqa: E501
633
+ :rtype: float
634
+ """
635
+ return self._auto_replenish_amount
636
+
637
+ @auto_replenish_amount.setter
638
+ def auto_replenish_amount(self, auto_replenish_amount: 'float'):
639
+ """Sets the auto_replenish_amount of this V1Organization.
640
+
641
+
642
+ :param auto_replenish_amount: The auto_replenish_amount of this V1Organization. # noqa: E501
643
+ :type: float
644
+ """
645
+
646
+ self._auto_replenish_amount = auto_replenish_amount
647
+
648
+ @property
649
+ def auto_replenish_threshold(self) -> 'float':
650
+ """Gets the auto_replenish_threshold of this V1Organization. # noqa: E501
651
+
652
+
653
+ :return: The auto_replenish_threshold of this V1Organization. # noqa: E501
654
+ :rtype: float
655
+ """
656
+ return self._auto_replenish_threshold
657
+
658
+ @auto_replenish_threshold.setter
659
+ def auto_replenish_threshold(self, auto_replenish_threshold: 'float'):
660
+ """Sets the auto_replenish_threshold of this V1Organization.
661
+
662
+
663
+ :param auto_replenish_threshold: The auto_replenish_threshold of this V1Organization. # noqa: E501
664
+ :type: float
665
+ """
666
+
667
+ self._auto_replenish_threshold = auto_replenish_threshold
668
+
669
+ @property
670
+ def auto_switch_machine(self) -> 'bool':
671
+ """Gets the auto_switch_machine of this V1Organization. # noqa: E501
672
+
673
+
674
+ :return: The auto_switch_machine of this V1Organization. # noqa: E501
675
+ :rtype: bool
676
+ """
677
+ return self._auto_switch_machine
678
+
679
+ @auto_switch_machine.setter
680
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
681
+ """Sets the auto_switch_machine of this V1Organization.
682
+
683
+
684
+ :param auto_switch_machine: The auto_switch_machine of this V1Organization. # noqa: E501
685
+ :type: bool
686
+ """
687
+
688
+ self._auto_switch_machine = auto_switch_machine
689
+
529
690
  @property
530
691
  def created_at(self) -> 'datetime':
531
692
  """Gets the created_at of this V1Organization. # noqa: E501
@@ -904,6 +1065,27 @@ class V1Organization(object):
904
1065
 
905
1066
  self._start_studios_on_spot_instance = start_studios_on_spot_instance
906
1067
 
1068
+ @property
1069
+ def switch_to_default_machine_on_idle(self) -> 'bool':
1070
+ """Gets the switch_to_default_machine_on_idle of this V1Organization. # noqa: E501
1071
+
1072
+
1073
+ :return: The switch_to_default_machine_on_idle of this V1Organization. # noqa: E501
1074
+ :rtype: bool
1075
+ """
1076
+ return self._switch_to_default_machine_on_idle
1077
+
1078
+ @switch_to_default_machine_on_idle.setter
1079
+ def switch_to_default_machine_on_idle(self, switch_to_default_machine_on_idle: 'bool'):
1080
+ """Sets the switch_to_default_machine_on_idle of this V1Organization.
1081
+
1082
+
1083
+ :param switch_to_default_machine_on_idle: The switch_to_default_machine_on_idle of this V1Organization. # noqa: E501
1084
+ :type: bool
1085
+ """
1086
+
1087
+ self._switch_to_default_machine_on_idle = switch_to_default_machine_on_idle
1088
+
907
1089
  @property
908
1090
  def teamspace_default_credits(self) -> 'float':
909
1091
  """Gets the teamspace_default_credits of this V1Organization. # noqa: E501
@@ -54,7 +54,7 @@ class V1Pipeline(object):
54
54
  'project_id': 'str',
55
55
  'schedule_id': 'str',
56
56
  'shared_filesystem': 'V1SharedFilesystem',
57
- 'state': 'str',
57
+ 'state': 'V1PipelineState',
58
58
  'statuses': 'list[V1PipelineStepStatus]',
59
59
  'steps': 'list[V1PipelineStep]',
60
60
  'updated_at': 'datetime',
@@ -82,7 +82,7 @@ class V1Pipeline(object):
82
82
  'user_id': 'userId'
83
83
  }
84
84
 
85
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, id: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, project_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
85
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, id: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, project_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'V1PipelineState' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
86
86
  """V1Pipeline - a model defined in Swagger""" # noqa: E501
87
87
  self._cluster_id = None
88
88
  self._created_at = None
@@ -414,22 +414,22 @@ class V1Pipeline(object):
414
414
  self._shared_filesystem = shared_filesystem
415
415
 
416
416
  @property
417
- def state(self) -> 'str':
417
+ def state(self) -> 'V1PipelineState':
418
418
  """Gets the state of this V1Pipeline. # noqa: E501
419
419
 
420
420
 
421
421
  :return: The state of this V1Pipeline. # noqa: E501
422
- :rtype: str
422
+ :rtype: V1PipelineState
423
423
  """
424
424
  return self._state
425
425
 
426
426
  @state.setter
427
- def state(self, state: 'str'):
427
+ def state(self, state: 'V1PipelineState'):
428
428
  """Sets the state of this V1Pipeline.
429
429
 
430
430
 
431
431
  :param state: The state of this V1Pipeline. # noqa: E501
432
- :type: str
432
+ :type: V1PipelineState
433
433
  """
434
434
 
435
435
  self._state = state
@@ -0,0 +1,111 @@
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 V1PipelineState(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
+ """
38
+ allowed enum values
39
+ """
40
+ UNSPECIFIED = "PIPELINE_STATE_UNSPECIFIED"
41
+ PENDING = "PIPELINE_STATE_PENDING"
42
+ RUNNING = "PIPELINE_STATE_RUNNING"
43
+ FAILED = "PIPELINE_STATE_FAILED"
44
+ DELETED = "PIPELINE_STATE_DELETED"
45
+ STOPPED = "PIPELINE_STATE_STOPPED"
46
+ SUSPENDED = "PIPELINE_STATE_SUSPENDED"
47
+ COMPLETED = "PIPELINE_STATE_COMPLETED"
48
+ STOP = "PIPELINE_STATE_STOP"
49
+ DELETE = "PIPELINE_STATE_DELETE"
50
+ """
51
+ Attributes:
52
+ swagger_types (dict): The key is attribute name
53
+ and the value is attribute type.
54
+ attribute_map (dict): The key is attribute name
55
+ and the value is json key in definition.
56
+ """
57
+ swagger_types = {
58
+ }
59
+
60
+ attribute_map = {
61
+ }
62
+
63
+ def __init__(self): # noqa: E501
64
+ """V1PipelineState - a model defined in Swagger""" # noqa: E501
65
+ self.discriminator = None
66
+
67
+ def to_dict(self) -> dict:
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.swagger_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ result[attr] = value
88
+ if issubclass(V1PipelineState, dict):
89
+ for key, value in self.items():
90
+ result[key] = value
91
+
92
+ return result
93
+
94
+ def to_str(self) -> str:
95
+ """Returns the string representation of the model"""
96
+ return pprint.pformat(self.to_dict())
97
+
98
+ def __repr__(self) -> str:
99
+ """For `print` and `pprint`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other: 'V1PipelineState') -> bool:
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, V1PipelineState):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other: 'V1PipelineState') -> bool:
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -41,25 +41,56 @@ class V1PresignedUrl(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'cluster_id': 'str',
44
45
  'part_number': 'str',
46
+ 'upload_id': 'str',
45
47
  'url': 'str'
46
48
  }
47
49
 
48
50
  attribute_map = {
51
+ 'cluster_id': 'clusterId',
49
52
  'part_number': 'partNumber',
53
+ 'upload_id': 'uploadId',
50
54
  'url': 'url'
51
55
  }
52
56
 
53
- def __init__(self, part_number: 'str' =None, url: 'str' =None): # noqa: E501
57
+ def __init__(self, cluster_id: 'str' =None, part_number: 'str' =None, upload_id: 'str' =None, url: 'str' =None): # noqa: E501
54
58
  """V1PresignedUrl - a model defined in Swagger""" # noqa: E501
59
+ self._cluster_id = None
55
60
  self._part_number = None
61
+ self._upload_id = None
56
62
  self._url = None
57
63
  self.discriminator = None
64
+ if cluster_id is not None:
65
+ self.cluster_id = cluster_id
58
66
  if part_number is not None:
59
67
  self.part_number = part_number
68
+ if upload_id is not None:
69
+ self.upload_id = upload_id
60
70
  if url is not None:
61
71
  self.url = url
62
72
 
73
+ @property
74
+ def cluster_id(self) -> 'str':
75
+ """Gets the cluster_id of this V1PresignedUrl. # noqa: E501
76
+
77
+
78
+ :return: The cluster_id of this V1PresignedUrl. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._cluster_id
82
+
83
+ @cluster_id.setter
84
+ def cluster_id(self, cluster_id: 'str'):
85
+ """Sets the cluster_id of this V1PresignedUrl.
86
+
87
+
88
+ :param cluster_id: The cluster_id of this V1PresignedUrl. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._cluster_id = cluster_id
93
+
63
94
  @property
64
95
  def part_number(self) -> 'str':
65
96
  """Gets the part_number of this V1PresignedUrl. # noqa: E501
@@ -81,6 +112,27 @@ class V1PresignedUrl(object):
81
112
 
82
113
  self._part_number = part_number
83
114
 
115
+ @property
116
+ def upload_id(self) -> 'str':
117
+ """Gets the upload_id of this V1PresignedUrl. # noqa: E501
118
+
119
+
120
+ :return: The upload_id of this V1PresignedUrl. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._upload_id
124
+
125
+ @upload_id.setter
126
+ def upload_id(self, upload_id: 'str'):
127
+ """Sets the upload_id of this V1PresignedUrl.
128
+
129
+
130
+ :param upload_id: The upload_id of this V1PresignedUrl. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._upload_id = upload_id
135
+
84
136
  @property
85
137
  def url(self) -> 'str':
86
138
  """Gets the url of this V1PresignedUrl. # noqa: E501