lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +9 -2
- lightning_sdk/api/deployment_api.py +9 -9
- lightning_sdk/api/license_api.py +2 -2
- lightning_sdk/api/llm_api.py +7 -11
- lightning_sdk/api/pipeline_api.py +31 -10
- lightning_sdk/api/studio_api.py +6 -0
- lightning_sdk/base_studio.py +22 -6
- lightning_sdk/cli/entrypoint.py +15 -13
- lightning_sdk/cli/start.py +5 -2
- lightning_sdk/deployment/deployment.py +17 -7
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
- lightning_sdk/llm/llm.py +113 -115
- lightning_sdk/llm/public_assistants.json +8 -0
- lightning_sdk/pipeline/__init__.py +11 -2
- lightning_sdk/pipeline/pipeline.py +54 -14
- lightning_sdk/pipeline/printer.py +36 -16
- lightning_sdk/pipeline/schedule.py +2 -1
- lightning_sdk/pipeline/{types.py → steps.py} +77 -56
- lightning_sdk/pipeline/utils.py +65 -3
- lightning_sdk/sandbox.py +157 -0
- lightning_sdk/services/license.py +12 -6
- lightning_sdk/studio.py +10 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
|
@@ -43,25 +43,30 @@ class V1MagicLinkLoginResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'auth_start_url': 'str',
|
|
45
45
|
'sso_enabled': 'bool',
|
|
46
|
+
'verified': 'bool',
|
|
46
47
|
'waitlisted': 'bool'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'auth_start_url': 'authStartUrl',
|
|
51
52
|
'sso_enabled': 'ssoEnabled',
|
|
53
|
+
'verified': 'verified',
|
|
52
54
|
'waitlisted': 'waitlisted'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, auth_start_url: 'str' =None, sso_enabled: 'bool' =None, waitlisted: 'bool' =None): # noqa: E501
|
|
57
|
+
def __init__(self, auth_start_url: 'str' =None, sso_enabled: 'bool' =None, verified: 'bool' =None, waitlisted: 'bool' =None): # noqa: E501
|
|
56
58
|
"""V1MagicLinkLoginResponse - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._auth_start_url = None
|
|
58
60
|
self._sso_enabled = None
|
|
61
|
+
self._verified = None
|
|
59
62
|
self._waitlisted = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if auth_start_url is not None:
|
|
62
65
|
self.auth_start_url = auth_start_url
|
|
63
66
|
if sso_enabled is not None:
|
|
64
67
|
self.sso_enabled = sso_enabled
|
|
68
|
+
if verified is not None:
|
|
69
|
+
self.verified = verified
|
|
65
70
|
if waitlisted is not None:
|
|
66
71
|
self.waitlisted = waitlisted
|
|
67
72
|
|
|
@@ -107,6 +112,27 @@ class V1MagicLinkLoginResponse(object):
|
|
|
107
112
|
|
|
108
113
|
self._sso_enabled = sso_enabled
|
|
109
114
|
|
|
115
|
+
@property
|
|
116
|
+
def verified(self) -> 'bool':
|
|
117
|
+
"""Gets the verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
121
|
+
:rtype: bool
|
|
122
|
+
"""
|
|
123
|
+
return self._verified
|
|
124
|
+
|
|
125
|
+
@verified.setter
|
|
126
|
+
def verified(self, verified: 'bool'):
|
|
127
|
+
"""Sets the verified of this V1MagicLinkLoginResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param verified: The verified of this V1MagicLinkLoginResponse. # noqa: E501
|
|
131
|
+
:type: bool
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._verified = verified
|
|
135
|
+
|
|
110
136
|
@property
|
|
111
137
|
def waitlisted(self) -> 'bool':
|
|
112
138
|
"""Gets the waitlisted of this V1MagicLinkLoginResponse. # noqa: E501
|
|
@@ -46,6 +46,7 @@ class V1MetricsStream(object):
|
|
|
46
46
|
'cluster_id': 'str',
|
|
47
47
|
'created_at': 'datetime',
|
|
48
48
|
'dark_color': 'str',
|
|
49
|
+
'experiment_project_name': 'str',
|
|
49
50
|
'id': 'str',
|
|
50
51
|
'job_id': 'str',
|
|
51
52
|
'job_name': 'str',
|
|
@@ -77,6 +78,7 @@ class V1MetricsStream(object):
|
|
|
77
78
|
'cluster_id': 'clusterId',
|
|
78
79
|
'created_at': 'createdAt',
|
|
79
80
|
'dark_color': 'darkColor',
|
|
81
|
+
'experiment_project_name': 'experimentProjectName',
|
|
80
82
|
'id': 'id',
|
|
81
83
|
'job_id': 'jobId',
|
|
82
84
|
'job_name': 'jobName',
|
|
@@ -102,13 +104,14 @@ class V1MetricsStream(object):
|
|
|
102
104
|
'work_id': 'workId'
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, id: 'str' =None, job_id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
107
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, id: 'str' =None, job_id: 'str' =None, job_name: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, plugin_id: 'str' =None, project_id: 'str' =None, source_id: 'str' =None, stopped_at: 'datetime' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, trackers: 'dict(str, V1MetricsTracker)' =None, updated_at: 'datetime' =None, updates_counter: 'int' =None, user_id: 'str' =None, version: 'datetime' =None, version_number: 'int' =None, visibility: 'V1ResourceVisibility' =None, work_id: 'str' =None): # noqa: E501
|
|
106
108
|
"""V1MetricsStream - a model defined in Swagger""" # noqa: E501
|
|
107
109
|
self._app_id = None
|
|
108
110
|
self._cloudspace_id = None
|
|
109
111
|
self._cluster_id = None
|
|
110
112
|
self._created_at = None
|
|
111
113
|
self._dark_color = None
|
|
114
|
+
self._experiment_project_name = None
|
|
112
115
|
self._id = None
|
|
113
116
|
self._job_id = None
|
|
114
117
|
self._job_name = None
|
|
@@ -143,6 +146,8 @@ class V1MetricsStream(object):
|
|
|
143
146
|
self.created_at = created_at
|
|
144
147
|
if dark_color is not None:
|
|
145
148
|
self.dark_color = dark_color
|
|
149
|
+
if experiment_project_name is not None:
|
|
150
|
+
self.experiment_project_name = experiment_project_name
|
|
146
151
|
if id is not None:
|
|
147
152
|
self.id = id
|
|
148
153
|
if job_id is not None:
|
|
@@ -295,6 +300,27 @@ class V1MetricsStream(object):
|
|
|
295
300
|
|
|
296
301
|
self._dark_color = dark_color
|
|
297
302
|
|
|
303
|
+
@property
|
|
304
|
+
def experiment_project_name(self) -> 'str':
|
|
305
|
+
"""Gets the experiment_project_name of this V1MetricsStream. # noqa: E501
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
:return: The experiment_project_name of this V1MetricsStream. # noqa: E501
|
|
309
|
+
:rtype: str
|
|
310
|
+
"""
|
|
311
|
+
return self._experiment_project_name
|
|
312
|
+
|
|
313
|
+
@experiment_project_name.setter
|
|
314
|
+
def experiment_project_name(self, experiment_project_name: 'str'):
|
|
315
|
+
"""Sets the experiment_project_name of this V1MetricsStream.
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
:param experiment_project_name: The experiment_project_name of this V1MetricsStream. # noqa: E501
|
|
319
|
+
:type: str
|
|
320
|
+
"""
|
|
321
|
+
|
|
322
|
+
self._experiment_project_name = experiment_project_name
|
|
323
|
+
|
|
298
324
|
@property
|
|
299
325
|
def id(self) -> 'str':
|
|
300
326
|
"""Gets the id of this V1MetricsStream. # noqa: E501
|
|
@@ -58,6 +58,7 @@ class V1Organization(object):
|
|
|
58
58
|
'created_at': 'datetime',
|
|
59
59
|
'default_machine_image_version': 'str',
|
|
60
60
|
'default_machine_type': 'str',
|
|
61
|
+
'default_project_id': 'str',
|
|
61
62
|
'description': 'str',
|
|
62
63
|
'disallow_aws_saas': 'bool',
|
|
63
64
|
'disallow_dgx_saas': 'bool',
|
|
@@ -108,6 +109,7 @@ class V1Organization(object):
|
|
|
108
109
|
'created_at': 'createdAt',
|
|
109
110
|
'default_machine_image_version': 'defaultMachineImageVersion',
|
|
110
111
|
'default_machine_type': 'defaultMachineType',
|
|
112
|
+
'default_project_id': 'defaultProjectId',
|
|
111
113
|
'description': 'description',
|
|
112
114
|
'disallow_aws_saas': 'disallowAwsSaas',
|
|
113
115
|
'disallow_dgx_saas': 'disallowDgxSaas',
|
|
@@ -140,7 +142,7 @@ class V1Organization(object):
|
|
|
140
142
|
'workload_max_run_duration': 'workloadMaxRunDuration'
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: '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, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =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, last_storage_overuse_notification_sent_at: 'datetime' =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, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =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
|
|
145
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: '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, default_project_id: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =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, last_storage_overuse_notification_sent_at: 'datetime' =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, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =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
|
|
144
146
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
145
147
|
self._alerts_config = None
|
|
146
148
|
self._allow_budgeting = None
|
|
@@ -159,6 +161,7 @@ class V1Organization(object):
|
|
|
159
161
|
self._created_at = None
|
|
160
162
|
self._default_machine_image_version = None
|
|
161
163
|
self._default_machine_type = None
|
|
164
|
+
self._default_project_id = None
|
|
162
165
|
self._description = None
|
|
163
166
|
self._disallow_aws_saas = None
|
|
164
167
|
self._disallow_dgx_saas = None
|
|
@@ -224,6 +227,8 @@ class V1Organization(object):
|
|
|
224
227
|
self.default_machine_image_version = default_machine_image_version
|
|
225
228
|
if default_machine_type is not None:
|
|
226
229
|
self.default_machine_type = default_machine_type
|
|
230
|
+
if default_project_id is not None:
|
|
231
|
+
self.default_project_id = default_project_id
|
|
227
232
|
if description is not None:
|
|
228
233
|
self.description = description
|
|
229
234
|
if disallow_aws_saas is not None:
|
|
@@ -644,6 +649,27 @@ class V1Organization(object):
|
|
|
644
649
|
|
|
645
650
|
self._default_machine_type = default_machine_type
|
|
646
651
|
|
|
652
|
+
@property
|
|
653
|
+
def default_project_id(self) -> 'str':
|
|
654
|
+
"""Gets the default_project_id of this V1Organization. # noqa: E501
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
:return: The default_project_id of this V1Organization. # noqa: E501
|
|
658
|
+
:rtype: str
|
|
659
|
+
"""
|
|
660
|
+
return self._default_project_id
|
|
661
|
+
|
|
662
|
+
@default_project_id.setter
|
|
663
|
+
def default_project_id(self, default_project_id: 'str'):
|
|
664
|
+
"""Sets the default_project_id of this V1Organization.
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
:param default_project_id: The default_project_id of this V1Organization. # noqa: E501
|
|
668
|
+
:type: str
|
|
669
|
+
"""
|
|
670
|
+
|
|
671
|
+
self._default_project_id = default_project_id
|
|
672
|
+
|
|
647
673
|
@property
|
|
648
674
|
def description(self) -> 'str':
|
|
649
675
|
"""Gets the description of this V1Organization. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1Pipeline(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cluster_id': 'str',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
|
+
'created_from_ui': 'bool',
|
|
46
47
|
'display_name': 'str',
|
|
47
48
|
'error': 'str',
|
|
48
49
|
'id': 'str',
|
|
@@ -64,6 +65,7 @@ class V1Pipeline(object):
|
|
|
64
65
|
attribute_map = {
|
|
65
66
|
'cluster_id': 'clusterId',
|
|
66
67
|
'created_at': 'createdAt',
|
|
68
|
+
'created_from_ui': 'createdFromUi',
|
|
67
69
|
'display_name': 'displayName',
|
|
68
70
|
'error': 'error',
|
|
69
71
|
'id': 'id',
|
|
@@ -82,10 +84,11 @@ class V1Pipeline(object):
|
|
|
82
84
|
'user_id': 'userId'
|
|
83
85
|
}
|
|
84
86
|
|
|
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
|
|
87
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, created_from_ui: 'bool' =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
88
|
"""V1Pipeline - a model defined in Swagger""" # noqa: E501
|
|
87
89
|
self._cluster_id = None
|
|
88
90
|
self._created_at = None
|
|
91
|
+
self._created_from_ui = None
|
|
89
92
|
self._display_name = None
|
|
90
93
|
self._error = None
|
|
91
94
|
self._id = None
|
|
@@ -107,6 +110,8 @@ class V1Pipeline(object):
|
|
|
107
110
|
self.cluster_id = cluster_id
|
|
108
111
|
if created_at is not None:
|
|
109
112
|
self.created_at = created_at
|
|
113
|
+
if created_from_ui is not None:
|
|
114
|
+
self.created_from_ui = created_from_ui
|
|
110
115
|
if display_name is not None:
|
|
111
116
|
self.display_name = display_name
|
|
112
117
|
if error is not None:
|
|
@@ -182,6 +187,27 @@ class V1Pipeline(object):
|
|
|
182
187
|
|
|
183
188
|
self._created_at = created_at
|
|
184
189
|
|
|
190
|
+
@property
|
|
191
|
+
def created_from_ui(self) -> 'bool':
|
|
192
|
+
"""Gets the created_from_ui of this V1Pipeline. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The created_from_ui of this V1Pipeline. # noqa: E501
|
|
196
|
+
:rtype: bool
|
|
197
|
+
"""
|
|
198
|
+
return self._created_from_ui
|
|
199
|
+
|
|
200
|
+
@created_from_ui.setter
|
|
201
|
+
def created_from_ui(self, created_from_ui: 'bool'):
|
|
202
|
+
"""Sets the created_from_ui of this V1Pipeline.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param created_from_ui: The created_from_ui of this V1Pipeline. # noqa: E501
|
|
206
|
+
:type: bool
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._created_from_ui = created_from_ui
|
|
210
|
+
|
|
185
211
|
@property
|
|
186
212
|
def display_name(self) -> 'str':
|
|
187
213
|
"""Gets the display_name of this V1Pipeline. # noqa: E501
|
|
@@ -41,35 +41,81 @@ class V1SharedFilesystem(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'efs': 'bool',
|
|
44
45
|
'enabled': 'bool',
|
|
46
|
+
'filestore': 'bool',
|
|
47
|
+
'gcs_folder': 'bool',
|
|
48
|
+
'r2_folder': 'bool',
|
|
45
49
|
'resource_id': 'str',
|
|
46
50
|
'resource_name': 'str',
|
|
51
|
+
's3_folder': 'bool',
|
|
47
52
|
'state': 'str'
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
attribute_map = {
|
|
56
|
+
'efs': 'efs',
|
|
51
57
|
'enabled': 'enabled',
|
|
58
|
+
'filestore': 'filestore',
|
|
59
|
+
'gcs_folder': 'gcsFolder',
|
|
60
|
+
'r2_folder': 'r2Folder',
|
|
52
61
|
'resource_id': 'resourceId',
|
|
53
62
|
'resource_name': 'resourceName',
|
|
63
|
+
's3_folder': 's3Folder',
|
|
54
64
|
'state': 'state'
|
|
55
65
|
}
|
|
56
66
|
|
|
57
|
-
def __init__(self, enabled: 'bool' =None, resource_id: 'str' =None, resource_name: 'str' =None, state: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, efs: 'bool' =None, enabled: 'bool' =None, filestore: 'bool' =None, gcs_folder: 'bool' =None, r2_folder: 'bool' =None, resource_id: 'str' =None, resource_name: 'str' =None, s3_folder: 'bool' =None, state: 'str' =None): # noqa: E501
|
|
58
68
|
"""V1SharedFilesystem - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
self._efs = None
|
|
59
70
|
self._enabled = None
|
|
71
|
+
self._filestore = None
|
|
72
|
+
self._gcs_folder = None
|
|
73
|
+
self._r2_folder = None
|
|
60
74
|
self._resource_id = None
|
|
61
75
|
self._resource_name = None
|
|
76
|
+
self._s3_folder = None
|
|
62
77
|
self._state = None
|
|
63
78
|
self.discriminator = None
|
|
79
|
+
if efs is not None:
|
|
80
|
+
self.efs = efs
|
|
64
81
|
if enabled is not None:
|
|
65
82
|
self.enabled = enabled
|
|
83
|
+
if filestore is not None:
|
|
84
|
+
self.filestore = filestore
|
|
85
|
+
if gcs_folder is not None:
|
|
86
|
+
self.gcs_folder = gcs_folder
|
|
87
|
+
if r2_folder is not None:
|
|
88
|
+
self.r2_folder = r2_folder
|
|
66
89
|
if resource_id is not None:
|
|
67
90
|
self.resource_id = resource_id
|
|
68
91
|
if resource_name is not None:
|
|
69
92
|
self.resource_name = resource_name
|
|
93
|
+
if s3_folder is not None:
|
|
94
|
+
self.s3_folder = s3_folder
|
|
70
95
|
if state is not None:
|
|
71
96
|
self.state = state
|
|
72
97
|
|
|
98
|
+
@property
|
|
99
|
+
def efs(self) -> 'bool':
|
|
100
|
+
"""Gets the efs of this V1SharedFilesystem. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The efs of this V1SharedFilesystem. # noqa: E501
|
|
104
|
+
:rtype: bool
|
|
105
|
+
"""
|
|
106
|
+
return self._efs
|
|
107
|
+
|
|
108
|
+
@efs.setter
|
|
109
|
+
def efs(self, efs: 'bool'):
|
|
110
|
+
"""Sets the efs of this V1SharedFilesystem.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param efs: The efs of this V1SharedFilesystem. # noqa: E501
|
|
114
|
+
:type: bool
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._efs = efs
|
|
118
|
+
|
|
73
119
|
@property
|
|
74
120
|
def enabled(self) -> 'bool':
|
|
75
121
|
"""Gets the enabled of this V1SharedFilesystem. # noqa: E501
|
|
@@ -91,6 +137,69 @@ class V1SharedFilesystem(object):
|
|
|
91
137
|
|
|
92
138
|
self._enabled = enabled
|
|
93
139
|
|
|
140
|
+
@property
|
|
141
|
+
def filestore(self) -> 'bool':
|
|
142
|
+
"""Gets the filestore of this V1SharedFilesystem. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The filestore of this V1SharedFilesystem. # noqa: E501
|
|
146
|
+
:rtype: bool
|
|
147
|
+
"""
|
|
148
|
+
return self._filestore
|
|
149
|
+
|
|
150
|
+
@filestore.setter
|
|
151
|
+
def filestore(self, filestore: 'bool'):
|
|
152
|
+
"""Sets the filestore of this V1SharedFilesystem.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param filestore: The filestore of this V1SharedFilesystem. # noqa: E501
|
|
156
|
+
:type: bool
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._filestore = filestore
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def gcs_folder(self) -> 'bool':
|
|
163
|
+
"""Gets the gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:return: The gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
167
|
+
:rtype: bool
|
|
168
|
+
"""
|
|
169
|
+
return self._gcs_folder
|
|
170
|
+
|
|
171
|
+
@gcs_folder.setter
|
|
172
|
+
def gcs_folder(self, gcs_folder: 'bool'):
|
|
173
|
+
"""Sets the gcs_folder of this V1SharedFilesystem.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param gcs_folder: The gcs_folder of this V1SharedFilesystem. # noqa: E501
|
|
177
|
+
:type: bool
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
self._gcs_folder = gcs_folder
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def r2_folder(self) -> 'bool':
|
|
184
|
+
"""Gets the r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
188
|
+
:rtype: bool
|
|
189
|
+
"""
|
|
190
|
+
return self._r2_folder
|
|
191
|
+
|
|
192
|
+
@r2_folder.setter
|
|
193
|
+
def r2_folder(self, r2_folder: 'bool'):
|
|
194
|
+
"""Sets the r2_folder of this V1SharedFilesystem.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param r2_folder: The r2_folder of this V1SharedFilesystem. # noqa: E501
|
|
198
|
+
:type: bool
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._r2_folder = r2_folder
|
|
202
|
+
|
|
94
203
|
@property
|
|
95
204
|
def resource_id(self) -> 'str':
|
|
96
205
|
"""Gets the resource_id of this V1SharedFilesystem. # noqa: E501
|
|
@@ -133,6 +242,27 @@ class V1SharedFilesystem(object):
|
|
|
133
242
|
|
|
134
243
|
self._resource_name = resource_name
|
|
135
244
|
|
|
245
|
+
@property
|
|
246
|
+
def s3_folder(self) -> 'bool':
|
|
247
|
+
"""Gets the s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
:return: The s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
251
|
+
:rtype: bool
|
|
252
|
+
"""
|
|
253
|
+
return self._s3_folder
|
|
254
|
+
|
|
255
|
+
@s3_folder.setter
|
|
256
|
+
def s3_folder(self, s3_folder: 'bool'):
|
|
257
|
+
"""Sets the s3_folder of this V1SharedFilesystem.
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:param s3_folder: The s3_folder of this V1SharedFilesystem. # noqa: E501
|
|
261
|
+
:type: bool
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
self._s3_folder = s3_folder
|
|
265
|
+
|
|
136
266
|
@property
|
|
137
267
|
def state(self) -> 'str':
|
|
138
268
|
"""Gets the state of this V1SharedFilesystem. # noqa: E501
|
|
@@ -0,0 +1,175 @@
|
|
|
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 V1TokenUsage(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
|
+
'completion_tokens': 'str',
|
|
45
|
+
'prompt_tokens': 'str',
|
|
46
|
+
'total_tokens': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'completion_tokens': 'completionTokens',
|
|
51
|
+
'prompt_tokens': 'promptTokens',
|
|
52
|
+
'total_tokens': 'totalTokens'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, completion_tokens: 'str' =None, prompt_tokens: 'str' =None, total_tokens: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1TokenUsage - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._completion_tokens = None
|
|
58
|
+
self._prompt_tokens = None
|
|
59
|
+
self._total_tokens = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if completion_tokens is not None:
|
|
62
|
+
self.completion_tokens = completion_tokens
|
|
63
|
+
if prompt_tokens is not None:
|
|
64
|
+
self.prompt_tokens = prompt_tokens
|
|
65
|
+
if total_tokens is not None:
|
|
66
|
+
self.total_tokens = total_tokens
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def completion_tokens(self) -> 'str':
|
|
70
|
+
"""Gets the completion_tokens of this V1TokenUsage. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The completion_tokens of this V1TokenUsage. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._completion_tokens
|
|
77
|
+
|
|
78
|
+
@completion_tokens.setter
|
|
79
|
+
def completion_tokens(self, completion_tokens: 'str'):
|
|
80
|
+
"""Sets the completion_tokens of this V1TokenUsage.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param completion_tokens: The completion_tokens of this V1TokenUsage. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._completion_tokens = completion_tokens
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def prompt_tokens(self) -> 'str':
|
|
91
|
+
"""Gets the prompt_tokens of this V1TokenUsage. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The prompt_tokens of this V1TokenUsage. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._prompt_tokens
|
|
98
|
+
|
|
99
|
+
@prompt_tokens.setter
|
|
100
|
+
def prompt_tokens(self, prompt_tokens: 'str'):
|
|
101
|
+
"""Sets the prompt_tokens of this V1TokenUsage.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param prompt_tokens: The prompt_tokens of this V1TokenUsage. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._prompt_tokens = prompt_tokens
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def total_tokens(self) -> 'str':
|
|
112
|
+
"""Gets the total_tokens of this V1TokenUsage. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The total_tokens of this V1TokenUsage. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._total_tokens
|
|
119
|
+
|
|
120
|
+
@total_tokens.setter
|
|
121
|
+
def total_tokens(self, total_tokens: 'str'):
|
|
122
|
+
"""Sets the total_tokens of this V1TokenUsage.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param total_tokens: The total_tokens of this V1TokenUsage. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._total_tokens = total_tokens
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1TokenUsage, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1TokenUsage') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1TokenUsage):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1TokenUsage') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|