lightning-sdk 0.1.56__py3-none-any.whl → 0.1.58__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 (41) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/api/lit_container_api.py +82 -20
  3. lightning_sdk/cli/ai_hub.py +61 -10
  4. lightning_sdk/cli/configure.py +110 -65
  5. lightning_sdk/cli/connect.py +32 -16
  6. lightning_sdk/cli/delete.py +81 -32
  7. lightning_sdk/cli/download.py +177 -90
  8. lightning_sdk/cli/entrypoint.py +44 -16
  9. lightning_sdk/cli/generate.py +48 -16
  10. lightning_sdk/cli/inspect.py +43 -3
  11. lightning_sdk/cli/list.py +130 -41
  12. lightning_sdk/cli/run.py +0 -6
  13. lightning_sdk/cli/teamspace_menu.py +1 -1
  14. lightning_sdk/cli/upload.py +13 -3
  15. lightning_sdk/helpers.py +20 -0
  16. lightning_sdk/job/job.py +1 -1
  17. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
  18. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +105 -0
  19. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  20. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
  21. lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
  22. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +105 -1
  23. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +29 -3
  24. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +149 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +29 -3
  29. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection_setup.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
  36. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/METADATA +2 -1
  37. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/RECORD +41 -36
  38. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/LICENSE +0 -0
  39. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/WHEEL +0 -0
  40. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/entry_points.txt +0 -0
  41. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.58.dist-info}/top_level.txt +0 -0
@@ -1534,7 +1534,7 @@ class LitLoggerServiceApi(object):
1534
1534
  _request_timeout=params.get('_request_timeout'),
1535
1535
  collection_formats=collection_formats)
1536
1536
 
1537
- def lit_logger_service_update_metrics_stream_visibility(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1537
+ def lit_logger_service_update_metrics_stream_visibility(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1538
1538
  """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1539
1539
 
1540
1540
  This method makes a synchronous HTTP request by default. To make an
@@ -1543,7 +1543,7 @@ class LitLoggerServiceApi(object):
1543
1543
  >>> result = thread.get()
1544
1544
 
1545
1545
  :param async_req bool
1546
- :param IdVisibilityBody body: (required)
1546
+ :param IdVisibilityBody1 body: (required)
1547
1547
  :param str project_id: (required)
1548
1548
  :param str id: (required)
1549
1549
  :return: V1UpdateMetricsStreamVisibilityResponse
@@ -1557,7 +1557,7 @@ class LitLoggerServiceApi(object):
1557
1557
  (data) = self.lit_logger_service_update_metrics_stream_visibility_with_http_info(body, project_id, id, **kwargs) # noqa: E501
1558
1558
  return data
1559
1559
 
1560
- def lit_logger_service_update_metrics_stream_visibility_with_http_info(self, body: 'IdVisibilityBody', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1560
+ def lit_logger_service_update_metrics_stream_visibility_with_http_info(self, body: 'IdVisibilityBody1', project_id: 'str', id: 'str', **kwargs) -> 'V1UpdateMetricsStreamVisibilityResponse': # noqa: E501
1561
1561
  """lit_logger_service_update_metrics_stream_visibility # noqa: E501
1562
1562
 
1563
1563
  This method makes a synchronous HTTP request by default. To make an
@@ -1566,7 +1566,7 @@ class LitLoggerServiceApi(object):
1566
1566
  >>> result = thread.get()
1567
1567
 
1568
1568
  :param async_req bool
1569
- :param IdVisibilityBody body: (required)
1569
+ :param IdVisibilityBody1 body: (required)
1570
1570
  :param str project_id: (required)
1571
1571
  :param str id: (required)
1572
1572
  :return: V1UpdateMetricsStreamVisibilityResponse
@@ -93,6 +93,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_storage_body import IdStora
93
93
  from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploadsBody
94
94
  from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body1 import IdUploadsBody1
95
95
  from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
96
+ from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body1 import IdVisibilityBody1
96
97
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
97
98
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
98
99
  from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body2 import JobsIdBody2
@@ -145,6 +146,7 @@ from lightning_sdk.lightning_cloud.openapi.models.servers_server_id_body import
145
146
  from lightning_sdk.lightning_cloud.openapi.models.service_artifact_artifact_kind import ServiceArtifactArtifactKind
146
147
  from lightning_sdk.lightning_cloud.openapi.models.service_health_service_status import ServiceHealthServiceStatus
147
148
  from lightning_sdk.lightning_cloud.openapi.models.serviceexecution_id_body import ServiceexecutionIdBody
149
+ from lightning_sdk.lightning_cloud.openapi.models.setup import Setup
148
150
  from lightning_sdk.lightning_cloud.openapi.models.slurm_jobs_body import SlurmJobsBody
149
151
  from lightning_sdk.lightning_cloud.openapi.models.snowflake_export_body import SnowflakeExportBody
150
152
  from lightning_sdk.lightning_cloud.openapi.models.snowflake_query_body import SnowflakeQueryBody
@@ -403,6 +405,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_gpu_system_metrics import V
403
405
  from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_app import V1GalleryApp
404
406
  from lightning_sdk.lightning_cloud.openapi.models.v1_gallery_component import V1GalleryComponent
405
407
  from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection import V1GcpDataConnection
408
+ from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_data_connection_setup import V1GcpDataConnectionSetup
406
409
  from lightning_sdk.lightning_cloud.openapi.models.v1_generate_ssh_key_pair_request import V1GenerateSSHKeyPairRequest
407
410
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response import V1GetAffiliateLinkResponse
408
411
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
@@ -700,6 +703,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_service_artifact import V1S
700
703
  from lightning_sdk.lightning_cloud.openapi.models.v1_service_execution import V1ServiceExecution
701
704
  from lightning_sdk.lightning_cloud.openapi.models.v1_service_health import V1ServiceHealth
702
705
  from lightning_sdk.lightning_cloud.openapi.models.v1_setup_confirmed_ssh_public_key_response import V1SetupConfirmedSSHPublicKeyResponse
706
+ from lightning_sdk.lightning_cloud.openapi.models.v1_setup_data_connection_response import V1SetupDataConnectionResponse
703
707
  from lightning_sdk.lightning_cloud.openapi.models.v1_should_start_syncing_response import V1ShouldStartSyncingResponse
704
708
  from lightning_sdk.lightning_cloud.openapi.models.v1_signed_url import V1SignedUrl
705
709
  from lightning_sdk.lightning_cloud.openapi.models.v1_slurm_node import V1SlurmNode
@@ -736,6 +740,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cloud_space_publicat
736
740
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_request import V1UpdateClusterAcceleratorsRequest
737
741
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_response import V1UpdateClusterAcceleratorsResponse
738
742
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
743
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_deployment_visibility_response import V1UpdateDeploymentVisibilityResponse
739
744
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
740
745
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_page_response import V1UpdateLitPageResponse
741
746
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_repository_response import V1UpdateLitRepositoryResponse
@@ -44,6 +44,9 @@ class AgentsIdBody(object):
44
44
  'cloudspace_id': 'str',
45
45
  'cluster_id': 'str',
46
46
  'created_at': 'datetime',
47
+ 'deployment_name': 'str',
48
+ 'deployment_org_name': 'str',
49
+ 'deployment_project_name': 'str',
47
50
  'description': 'str',
48
51
  'endpoint_id': 'str',
49
52
  'expected_cold_start_time': 'str',
@@ -51,6 +54,7 @@ class AgentsIdBody(object):
51
54
  'internal_assistant_name': 'str',
52
55
  'knowledge': 'str',
53
56
  'knowledge_configuration': 'V1KnowledgeConfiguration',
57
+ 'managed_endpoint_id': 'str',
54
58
  'model': 'str',
55
59
  'model_provider': 'str',
56
60
  'name': 'str',
@@ -68,6 +72,9 @@ class AgentsIdBody(object):
68
72
  'cloudspace_id': 'cloudspaceId',
69
73
  'cluster_id': 'clusterId',
70
74
  'created_at': 'createdAt',
75
+ 'deployment_name': 'deploymentName',
76
+ 'deployment_org_name': 'deploymentOrgName',
77
+ 'deployment_project_name': 'deploymentProjectName',
71
78
  'description': 'description',
72
79
  'endpoint_id': 'endpointId',
73
80
  'expected_cold_start_time': 'expectedColdStartTime',
@@ -75,6 +82,7 @@ class AgentsIdBody(object):
75
82
  'internal_assistant_name': 'internalAssistantName',
76
83
  'knowledge': 'knowledge',
77
84
  'knowledge_configuration': 'knowledgeConfiguration',
85
+ 'managed_endpoint_id': 'managedEndpointId',
78
86
  'model': 'model',
79
87
  'model_provider': 'modelProvider',
80
88
  'name': 'name',
@@ -88,11 +96,14 @@ class AgentsIdBody(object):
88
96
  'user_id': 'userId'
89
97
  }
90
98
 
91
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
99
+ def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, deployment_name: 'str' =None, deployment_org_name: 'str' =None, deployment_project_name: 'str' =None, description: 'str' =None, endpoint_id: 'str' =None, expected_cold_start_time: 'str' =None, file_uploads_enabled: 'bool' =None, internal_assistant_name: 'str' =None, knowledge: 'str' =None, knowledge_configuration: 'V1KnowledgeConfiguration' =None, managed_endpoint_id: 'str' =None, model: 'str' =None, model_provider: 'str' =None, name: 'str' =None, org_id: 'str' =None, prompt_suggestions: 'list[V1PromptSuggestion]' =None, prompt_template: 'str' =None, publish_status: 'str' =None, status: 'V1AssistantModelStatus' =None, thumbnail_url: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
92
100
  """AgentsIdBody - a model defined in Swagger""" # noqa: E501
93
101
  self._cloudspace_id = None
94
102
  self._cluster_id = None
95
103
  self._created_at = None
104
+ self._deployment_name = None
105
+ self._deployment_org_name = None
106
+ self._deployment_project_name = None
96
107
  self._description = None
97
108
  self._endpoint_id = None
98
109
  self._expected_cold_start_time = None
@@ -100,6 +111,7 @@ class AgentsIdBody(object):
100
111
  self._internal_assistant_name = None
101
112
  self._knowledge = None
102
113
  self._knowledge_configuration = None
114
+ self._managed_endpoint_id = None
103
115
  self._model = None
104
116
  self._model_provider = None
105
117
  self._name = None
@@ -118,6 +130,12 @@ class AgentsIdBody(object):
118
130
  self.cluster_id = cluster_id
119
131
  if created_at is not None:
120
132
  self.created_at = created_at
133
+ if deployment_name is not None:
134
+ self.deployment_name = deployment_name
135
+ if deployment_org_name is not None:
136
+ self.deployment_org_name = deployment_org_name
137
+ if deployment_project_name is not None:
138
+ self.deployment_project_name = deployment_project_name
121
139
  if description is not None:
122
140
  self.description = description
123
141
  if endpoint_id is not None:
@@ -132,6 +150,8 @@ class AgentsIdBody(object):
132
150
  self.knowledge = knowledge
133
151
  if knowledge_configuration is not None:
134
152
  self.knowledge_configuration = knowledge_configuration
153
+ if managed_endpoint_id is not None:
154
+ self.managed_endpoint_id = managed_endpoint_id
135
155
  if model is not None:
136
156
  self.model = model
137
157
  if model_provider is not None:
@@ -218,6 +238,69 @@ class AgentsIdBody(object):
218
238
 
219
239
  self._created_at = created_at
220
240
 
241
+ @property
242
+ def deployment_name(self) -> 'str':
243
+ """Gets the deployment_name of this AgentsIdBody. # noqa: E501
244
+
245
+
246
+ :return: The deployment_name of this AgentsIdBody. # noqa: E501
247
+ :rtype: str
248
+ """
249
+ return self._deployment_name
250
+
251
+ @deployment_name.setter
252
+ def deployment_name(self, deployment_name: 'str'):
253
+ """Sets the deployment_name of this AgentsIdBody.
254
+
255
+
256
+ :param deployment_name: The deployment_name of this AgentsIdBody. # noqa: E501
257
+ :type: str
258
+ """
259
+
260
+ self._deployment_name = deployment_name
261
+
262
+ @property
263
+ def deployment_org_name(self) -> 'str':
264
+ """Gets the deployment_org_name of this AgentsIdBody. # noqa: E501
265
+
266
+
267
+ :return: The deployment_org_name of this AgentsIdBody. # noqa: E501
268
+ :rtype: str
269
+ """
270
+ return self._deployment_org_name
271
+
272
+ @deployment_org_name.setter
273
+ def deployment_org_name(self, deployment_org_name: 'str'):
274
+ """Sets the deployment_org_name of this AgentsIdBody.
275
+
276
+
277
+ :param deployment_org_name: The deployment_org_name of this AgentsIdBody. # noqa: E501
278
+ :type: str
279
+ """
280
+
281
+ self._deployment_org_name = deployment_org_name
282
+
283
+ @property
284
+ def deployment_project_name(self) -> 'str':
285
+ """Gets the deployment_project_name of this AgentsIdBody. # noqa: E501
286
+
287
+
288
+ :return: The deployment_project_name of this AgentsIdBody. # noqa: E501
289
+ :rtype: str
290
+ """
291
+ return self._deployment_project_name
292
+
293
+ @deployment_project_name.setter
294
+ def deployment_project_name(self, deployment_project_name: 'str'):
295
+ """Sets the deployment_project_name of this AgentsIdBody.
296
+
297
+
298
+ :param deployment_project_name: The deployment_project_name of this AgentsIdBody. # noqa: E501
299
+ :type: str
300
+ """
301
+
302
+ self._deployment_project_name = deployment_project_name
303
+
221
304
  @property
222
305
  def description(self) -> 'str':
223
306
  """Gets the description of this AgentsIdBody. # noqa: E501
@@ -365,6 +448,27 @@ class AgentsIdBody(object):
365
448
 
366
449
  self._knowledge_configuration = knowledge_configuration
367
450
 
451
+ @property
452
+ def managed_endpoint_id(self) -> 'str':
453
+ """Gets the managed_endpoint_id of this AgentsIdBody. # noqa: E501
454
+
455
+
456
+ :return: The managed_endpoint_id of this AgentsIdBody. # noqa: E501
457
+ :rtype: str
458
+ """
459
+ return self._managed_endpoint_id
460
+
461
+ @managed_endpoint_id.setter
462
+ def managed_endpoint_id(self, managed_endpoint_id: 'str'):
463
+ """Sets the managed_endpoint_id of this AgentsIdBody.
464
+
465
+
466
+ :param managed_endpoint_id: The managed_endpoint_id of this AgentsIdBody. # noqa: E501
467
+ :type: str
468
+ """
469
+
470
+ self._managed_endpoint_id = managed_endpoint_id
471
+
368
472
  @property
369
473
  def model(self) -> 'str':
370
474
  """Gets the model of this AgentsIdBody. # noqa: E501
@@ -59,7 +59,8 @@ class DeploymentsIdBody(object):
59
59
  'template_id': 'str',
60
60
  'total_cost': 'float',
61
61
  'updated_at': 'datetime',
62
- 'user_id': 'str'
62
+ 'user_id': 'str',
63
+ 'visibility': 'V1ResourceVisibility'
63
64
  }
64
65
 
65
66
  attribute_map = {
@@ -81,10 +82,11 @@ class DeploymentsIdBody(object):
81
82
  'template_id': 'templateId',
82
83
  'total_cost': 'totalCost',
83
84
  'updated_at': 'updatedAt',
84
- 'user_id': 'userId'
85
+ 'user_id': 'userId',
86
+ 'visibility': 'visibility'
85
87
  }
86
88
 
87
- def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
89
+ def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
88
90
  """DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
89
91
  self._apis = None
90
92
  self._autoscaling = None
@@ -105,6 +107,7 @@ class DeploymentsIdBody(object):
105
107
  self._total_cost = None
106
108
  self._updated_at = None
107
109
  self._user_id = None
110
+ self._visibility = None
108
111
  self.discriminator = None
109
112
  if apis is not None:
110
113
  self.apis = apis
@@ -144,6 +147,8 @@ class DeploymentsIdBody(object):
144
147
  self.updated_at = updated_at
145
148
  if user_id is not None:
146
149
  self.user_id = user_id
150
+ if visibility is not None:
151
+ self.visibility = visibility
147
152
 
148
153
  @property
149
154
  def apis(self) -> 'list[V1DeploymentAPI]':
@@ -544,6 +549,27 @@ class DeploymentsIdBody(object):
544
549
 
545
550
  self._user_id = user_id
546
551
 
552
+ @property
553
+ def visibility(self) -> 'V1ResourceVisibility':
554
+ """Gets the visibility of this DeploymentsIdBody. # noqa: E501
555
+
556
+
557
+ :return: The visibility of this DeploymentsIdBody. # noqa: E501
558
+ :rtype: V1ResourceVisibility
559
+ """
560
+ return self._visibility
561
+
562
+ @visibility.setter
563
+ def visibility(self, visibility: 'V1ResourceVisibility'):
564
+ """Sets the visibility of this DeploymentsIdBody.
565
+
566
+
567
+ :param visibility: The visibility of this DeploymentsIdBody. # noqa: E501
568
+ :type: V1ResourceVisibility
569
+ """
570
+
571
+ self._visibility = visibility
572
+
547
573
  def to_dict(self) -> dict:
548
574
  """Returns the model properties as a dict"""
549
575
  result = {}
@@ -0,0 +1,149 @@
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 IdVisibilityBody1(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
+ 'emails': 'list[str]',
45
+ 'visibility': 'V1ResourceVisibility'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'emails': 'emails',
50
+ 'visibility': 'visibility'
51
+ }
52
+
53
+ def __init__(self, emails: 'list[str]' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
54
+ """IdVisibilityBody1 - a model defined in Swagger""" # noqa: E501
55
+ self._emails = None
56
+ self._visibility = None
57
+ self.discriminator = None
58
+ if emails is not None:
59
+ self.emails = emails
60
+ if visibility is not None:
61
+ self.visibility = visibility
62
+
63
+ @property
64
+ def emails(self) -> 'list[str]':
65
+ """Gets the emails of this IdVisibilityBody1. # noqa: E501
66
+
67
+
68
+ :return: The emails of this IdVisibilityBody1. # noqa: E501
69
+ :rtype: list[str]
70
+ """
71
+ return self._emails
72
+
73
+ @emails.setter
74
+ def emails(self, emails: 'list[str]'):
75
+ """Sets the emails of this IdVisibilityBody1.
76
+
77
+
78
+ :param emails: The emails of this IdVisibilityBody1. # noqa: E501
79
+ :type: list[str]
80
+ """
81
+
82
+ self._emails = emails
83
+
84
+ @property
85
+ def visibility(self) -> 'V1ResourceVisibility':
86
+ """Gets the visibility of this IdVisibilityBody1. # noqa: E501
87
+
88
+
89
+ :return: The visibility of this IdVisibilityBody1. # noqa: E501
90
+ :rtype: V1ResourceVisibility
91
+ """
92
+ return self._visibility
93
+
94
+ @visibility.setter
95
+ def visibility(self, visibility: 'V1ResourceVisibility'):
96
+ """Sets the visibility of this IdVisibilityBody1.
97
+
98
+
99
+ :param visibility: The visibility of this IdVisibilityBody1. # noqa: E501
100
+ :type: V1ResourceVisibility
101
+ """
102
+
103
+ self._visibility = visibility
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(IdVisibilityBody1, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'IdVisibilityBody1') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, IdVisibilityBody1):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'IdVisibilityBody1') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -41,20 +41,46 @@ class ModelIdVisibilityBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'emails': 'list[str]',
44
45
  'visibility': 'V1ResourceVisibility'
45
46
  }
46
47
 
47
48
  attribute_map = {
49
+ 'emails': 'emails',
48
50
  'visibility': 'visibility'
49
51
  }
50
52
 
51
- def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
53
+ def __init__(self, emails: 'list[str]' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
52
54
  """ModelIdVisibilityBody - a model defined in Swagger""" # noqa: E501
55
+ self._emails = None
53
56
  self._visibility = None
54
57
  self.discriminator = None
58
+ if emails is not None:
59
+ self.emails = emails
55
60
  if visibility is not None:
56
61
  self.visibility = visibility
57
62
 
63
+ @property
64
+ def emails(self) -> 'list[str]':
65
+ """Gets the emails of this ModelIdVisibilityBody. # noqa: E501
66
+
67
+
68
+ :return: The emails of this ModelIdVisibilityBody. # noqa: E501
69
+ :rtype: list[str]
70
+ """
71
+ return self._emails
72
+
73
+ @emails.setter
74
+ def emails(self, emails: 'list[str]'):
75
+ """Sets the emails of this ModelIdVisibilityBody.
76
+
77
+
78
+ :param emails: The emails of this ModelIdVisibilityBody. # noqa: E501
79
+ :type: list[str]
80
+ """
81
+
82
+ self._emails = emails
83
+
58
84
  @property
59
85
  def visibility(self) -> 'V1ResourceVisibility':
60
86
  """Gets the visibility of this ModelIdVisibilityBody. # noqa: E501
@@ -0,0 +1,149 @@
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 Setup(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
+ 'cluster_ids': 'list[str]',
45
+ 'gcp': 'V1GcpDataConnection'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'cluster_ids': 'clusterIds',
50
+ 'gcp': 'gcp'
51
+ }
52
+
53
+ def __init__(self, cluster_ids: 'list[str]' =None, gcp: 'V1GcpDataConnection' =None): # noqa: E501
54
+ """Setup - a model defined in Swagger""" # noqa: E501
55
+ self._cluster_ids = None
56
+ self._gcp = None
57
+ self.discriminator = None
58
+ if cluster_ids is not None:
59
+ self.cluster_ids = cluster_ids
60
+ if gcp is not None:
61
+ self.gcp = gcp
62
+
63
+ @property
64
+ def cluster_ids(self) -> 'list[str]':
65
+ """Gets the cluster_ids of this Setup. # noqa: E501
66
+
67
+
68
+ :return: The cluster_ids of this Setup. # noqa: E501
69
+ :rtype: list[str]
70
+ """
71
+ return self._cluster_ids
72
+
73
+ @cluster_ids.setter
74
+ def cluster_ids(self, cluster_ids: 'list[str]'):
75
+ """Sets the cluster_ids of this Setup.
76
+
77
+
78
+ :param cluster_ids: The cluster_ids of this Setup. # noqa: E501
79
+ :type: list[str]
80
+ """
81
+
82
+ self._cluster_ids = cluster_ids
83
+
84
+ @property
85
+ def gcp(self) -> 'V1GcpDataConnection':
86
+ """Gets the gcp of this Setup. # noqa: E501
87
+
88
+
89
+ :return: The gcp of this Setup. # noqa: E501
90
+ :rtype: V1GcpDataConnection
91
+ """
92
+ return self._gcp
93
+
94
+ @gcp.setter
95
+ def gcp(self, gcp: 'V1GcpDataConnection'):
96
+ """Sets the gcp of this Setup.
97
+
98
+
99
+ :param gcp: The gcp of this Setup. # noqa: E501
100
+ :type: V1GcpDataConnection
101
+ """
102
+
103
+ self._gcp = gcp
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(Setup, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'Setup') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, Setup):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'Setup') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other