lightning-sdk 0.1.56__py3-none-any.whl → 0.1.57__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 (39) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/cli/ai_hub.py +61 -10
  3. lightning_sdk/cli/configure.py +110 -65
  4. lightning_sdk/cli/connect.py +32 -16
  5. lightning_sdk/cli/delete.py +81 -32
  6. lightning_sdk/cli/download.py +177 -90
  7. lightning_sdk/cli/entrypoint.py +44 -16
  8. lightning_sdk/cli/generate.py +48 -16
  9. lightning_sdk/cli/inspect.py +43 -3
  10. lightning_sdk/cli/list.py +130 -41
  11. lightning_sdk/cli/run.py +0 -6
  12. lightning_sdk/cli/teamspace_menu.py +1 -1
  13. lightning_sdk/helpers.py +20 -0
  14. lightning_sdk/job/job.py +1 -1
  15. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
  16. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +105 -0
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  18. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +4 -4
  19. lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
  20. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +105 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +29 -3
  22. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body1.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/setup.py +149 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +105 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +29 -3
  27. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_data_connection_setup.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_setup_data_connection_response.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_update_deployment_visibility_response.py +97 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_update_model_visibility_response.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
  34. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/METADATA +2 -1
  35. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/RECORD +39 -34
  36. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/LICENSE +0 -0
  37. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/WHEEL +0 -0
  38. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/entry_points.txt +0 -0
  39. {lightning_sdk-0.1.56.dist-info → lightning_sdk-0.1.57.dist-info}/top_level.txt +0 -0
@@ -44,6 +44,9 @@ class V1Assistant(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',
@@ -52,6 +55,7 @@ class V1Assistant(object):
52
55
  'internal_assistant_name': 'str',
53
56
  'knowledge': 'str',
54
57
  'knowledge_configuration': 'V1KnowledgeConfiguration',
58
+ 'managed_endpoint_id': 'str',
55
59
  'model': 'str',
56
60
  'model_provider': 'str',
57
61
  'name': 'str',
@@ -70,6 +74,9 @@ class V1Assistant(object):
70
74
  'cloudspace_id': 'cloudspaceId',
71
75
  'cluster_id': 'clusterId',
72
76
  'created_at': 'createdAt',
77
+ 'deployment_name': 'deploymentName',
78
+ 'deployment_org_name': 'deploymentOrgName',
79
+ 'deployment_project_name': 'deploymentProjectName',
73
80
  'description': 'description',
74
81
  'endpoint_id': 'endpointId',
75
82
  'expected_cold_start_time': 'expectedColdStartTime',
@@ -78,6 +85,7 @@ class V1Assistant(object):
78
85
  'internal_assistant_name': 'internalAssistantName',
79
86
  'knowledge': 'knowledge',
80
87
  'knowledge_configuration': 'knowledgeConfiguration',
88
+ 'managed_endpoint_id': 'managedEndpointId',
81
89
  'model': 'model',
82
90
  'model_provider': 'modelProvider',
83
91
  'name': 'name',
@@ -92,11 +100,14 @@ class V1Assistant(object):
92
100
  'user_id': 'userId'
93
101
  }
94
102
 
95
- 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, id: 'str' =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, project_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
103
+ 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, id: 'str' =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, project_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
96
104
  """V1Assistant - a model defined in Swagger""" # noqa: E501
97
105
  self._cloudspace_id = None
98
106
  self._cluster_id = None
99
107
  self._created_at = None
108
+ self._deployment_name = None
109
+ self._deployment_org_name = None
110
+ self._deployment_project_name = None
100
111
  self._description = None
101
112
  self._endpoint_id = None
102
113
  self._expected_cold_start_time = None
@@ -105,6 +116,7 @@ class V1Assistant(object):
105
116
  self._internal_assistant_name = None
106
117
  self._knowledge = None
107
118
  self._knowledge_configuration = None
119
+ self._managed_endpoint_id = None
108
120
  self._model = None
109
121
  self._model_provider = None
110
122
  self._name = None
@@ -124,6 +136,12 @@ class V1Assistant(object):
124
136
  self.cluster_id = cluster_id
125
137
  if created_at is not None:
126
138
  self.created_at = created_at
139
+ if deployment_name is not None:
140
+ self.deployment_name = deployment_name
141
+ if deployment_org_name is not None:
142
+ self.deployment_org_name = deployment_org_name
143
+ if deployment_project_name is not None:
144
+ self.deployment_project_name = deployment_project_name
127
145
  if description is not None:
128
146
  self.description = description
129
147
  if endpoint_id is not None:
@@ -140,6 +158,8 @@ class V1Assistant(object):
140
158
  self.knowledge = knowledge
141
159
  if knowledge_configuration is not None:
142
160
  self.knowledge_configuration = knowledge_configuration
161
+ if managed_endpoint_id is not None:
162
+ self.managed_endpoint_id = managed_endpoint_id
143
163
  if model is not None:
144
164
  self.model = model
145
165
  if model_provider is not None:
@@ -228,6 +248,69 @@ class V1Assistant(object):
228
248
 
229
249
  self._created_at = created_at
230
250
 
251
+ @property
252
+ def deployment_name(self) -> 'str':
253
+ """Gets the deployment_name of this V1Assistant. # noqa: E501
254
+
255
+
256
+ :return: The deployment_name of this V1Assistant. # noqa: E501
257
+ :rtype: str
258
+ """
259
+ return self._deployment_name
260
+
261
+ @deployment_name.setter
262
+ def deployment_name(self, deployment_name: 'str'):
263
+ """Sets the deployment_name of this V1Assistant.
264
+
265
+
266
+ :param deployment_name: The deployment_name of this V1Assistant. # noqa: E501
267
+ :type: str
268
+ """
269
+
270
+ self._deployment_name = deployment_name
271
+
272
+ @property
273
+ def deployment_org_name(self) -> 'str':
274
+ """Gets the deployment_org_name of this V1Assistant. # noqa: E501
275
+
276
+
277
+ :return: The deployment_org_name of this V1Assistant. # noqa: E501
278
+ :rtype: str
279
+ """
280
+ return self._deployment_org_name
281
+
282
+ @deployment_org_name.setter
283
+ def deployment_org_name(self, deployment_org_name: 'str'):
284
+ """Sets the deployment_org_name of this V1Assistant.
285
+
286
+
287
+ :param deployment_org_name: The deployment_org_name of this V1Assistant. # noqa: E501
288
+ :type: str
289
+ """
290
+
291
+ self._deployment_org_name = deployment_org_name
292
+
293
+ @property
294
+ def deployment_project_name(self) -> 'str':
295
+ """Gets the deployment_project_name of this V1Assistant. # noqa: E501
296
+
297
+
298
+ :return: The deployment_project_name of this V1Assistant. # noqa: E501
299
+ :rtype: str
300
+ """
301
+ return self._deployment_project_name
302
+
303
+ @deployment_project_name.setter
304
+ def deployment_project_name(self, deployment_project_name: 'str'):
305
+ """Sets the deployment_project_name of this V1Assistant.
306
+
307
+
308
+ :param deployment_project_name: The deployment_project_name of this V1Assistant. # noqa: E501
309
+ :type: str
310
+ """
311
+
312
+ self._deployment_project_name = deployment_project_name
313
+
231
314
  @property
232
315
  def description(self) -> 'str':
233
316
  """Gets the description of this V1Assistant. # noqa: E501
@@ -396,6 +479,27 @@ class V1Assistant(object):
396
479
 
397
480
  self._knowledge_configuration = knowledge_configuration
398
481
 
482
+ @property
483
+ def managed_endpoint_id(self) -> 'str':
484
+ """Gets the managed_endpoint_id of this V1Assistant. # noqa: E501
485
+
486
+
487
+ :return: The managed_endpoint_id of this V1Assistant. # noqa: E501
488
+ :rtype: str
489
+ """
490
+ return self._managed_endpoint_id
491
+
492
+ @managed_endpoint_id.setter
493
+ def managed_endpoint_id(self, managed_endpoint_id: 'str'):
494
+ """Sets the managed_endpoint_id of this V1Assistant.
495
+
496
+
497
+ :param managed_endpoint_id: The managed_endpoint_id of this V1Assistant. # noqa: E501
498
+ :type: str
499
+ """
500
+
501
+ self._managed_endpoint_id = managed_endpoint_id
502
+
399
503
  @property
400
504
  def model(self) -> 'str':
401
505
  """Gets the model of this V1Assistant. # noqa: E501
@@ -61,7 +61,8 @@ class V1Deployment(object):
61
61
  'template_id': 'str',
62
62
  'total_cost': 'float',
63
63
  'updated_at': 'datetime',
64
- 'user_id': 'str'
64
+ 'user_id': 'str',
65
+ 'visibility': 'V1ResourceVisibility'
65
66
  }
66
67
 
67
68
  attribute_map = {
@@ -85,10 +86,11 @@ class V1Deployment(object):
85
86
  'template_id': 'templateId',
86
87
  'total_cost': 'totalCost',
87
88
  'updated_at': 'updatedAt',
88
- 'user_id': 'userId'
89
+ 'user_id': 'userId',
90
+ 'visibility': 'visibility'
89
91
  }
90
92
 
91
- 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, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =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
93
+ 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, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =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
92
94
  """V1Deployment - a model defined in Swagger""" # noqa: E501
93
95
  self._apis = None
94
96
  self._autoscaling = None
@@ -111,6 +113,7 @@ class V1Deployment(object):
111
113
  self._total_cost = None
112
114
  self._updated_at = None
113
115
  self._user_id = None
116
+ self._visibility = None
114
117
  self.discriminator = None
115
118
  if apis is not None:
116
119
  self.apis = apis
@@ -154,6 +157,8 @@ class V1Deployment(object):
154
157
  self.updated_at = updated_at
155
158
  if user_id is not None:
156
159
  self.user_id = user_id
160
+ if visibility is not None:
161
+ self.visibility = visibility
157
162
 
158
163
  @property
159
164
  def apis(self) -> 'list[V1DeploymentAPI]':
@@ -596,6 +601,27 @@ class V1Deployment(object):
596
601
 
597
602
  self._user_id = user_id
598
603
 
604
+ @property
605
+ def visibility(self) -> 'V1ResourceVisibility':
606
+ """Gets the visibility of this V1Deployment. # noqa: E501
607
+
608
+
609
+ :return: The visibility of this V1Deployment. # noqa: E501
610
+ :rtype: V1ResourceVisibility
611
+ """
612
+ return self._visibility
613
+
614
+ @visibility.setter
615
+ def visibility(self, visibility: 'V1ResourceVisibility'):
616
+ """Sets the visibility of this V1Deployment.
617
+
618
+
619
+ :param visibility: The visibility of this V1Deployment. # noqa: E501
620
+ :type: V1ResourceVisibility
621
+ """
622
+
623
+ self._visibility = visibility
624
+
599
625
  def to_dict(self) -> dict:
600
626
  """Returns the model properties as a dict"""
601
627
  result = {}
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1GcpDataConnectionSetup(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
+ 'service_accounts': 'list[str]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'service_accounts': 'serviceAccounts'
49
+ }
50
+
51
+ def __init__(self, service_accounts: 'list[str]' =None): # noqa: E501
52
+ """V1GcpDataConnectionSetup - a model defined in Swagger""" # noqa: E501
53
+ self._service_accounts = None
54
+ self.discriminator = None
55
+ if service_accounts is not None:
56
+ self.service_accounts = service_accounts
57
+
58
+ @property
59
+ def service_accounts(self) -> 'list[str]':
60
+ """Gets the service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
61
+
62
+
63
+ :return: The service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
64
+ :rtype: list[str]
65
+ """
66
+ return self._service_accounts
67
+
68
+ @service_accounts.setter
69
+ def service_accounts(self, service_accounts: 'list[str]'):
70
+ """Sets the service_accounts of this V1GcpDataConnectionSetup.
71
+
72
+
73
+ :param service_accounts: The service_accounts of this V1GcpDataConnectionSetup. # noqa: E501
74
+ :type: list[str]
75
+ """
76
+
77
+ self._service_accounts = service_accounts
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1GcpDataConnectionSetup, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1GcpDataConnectionSetup') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1GcpDataConnectionSetup):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1GcpDataConnectionSetup') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -57,6 +57,7 @@ class V1JobSpec(object):
57
57
  'instance_type': 'str',
58
58
  'modified_volume': 'bool',
59
59
  'path_mappings': 'list[V1PathMapping]',
60
+ 'quantity': 'int',
60
61
  'readiness_probe': 'V1JobHealthCheckConfig',
61
62
  'regions': 'list[str]',
62
63
  'requested_run_duration_seconds': 'str',
@@ -84,6 +85,7 @@ class V1JobSpec(object):
84
85
  'instance_type': 'instanceType',
85
86
  'modified_volume': 'modifiedVolume',
86
87
  'path_mappings': 'pathMappings',
88
+ 'quantity': 'quantity',
87
89
  'readiness_probe': 'readinessProbe',
88
90
  'regions': 'regions',
89
91
  'requested_run_duration_seconds': 'requestedRunDurationSeconds',
@@ -94,7 +96,7 @@ class V1JobSpec(object):
94
96
  'volumes': 'volumes'
95
97
  }
96
98
 
97
- def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
99
+ def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, quantity: 'int' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
98
100
  """V1JobSpec - a model defined in Swagger""" # noqa: E501
99
101
  self._artifacts_destination = None
100
102
  self._artifacts_source = None
@@ -112,6 +114,7 @@ class V1JobSpec(object):
112
114
  self._instance_type = None
113
115
  self._modified_volume = None
114
116
  self._path_mappings = None
117
+ self._quantity = None
115
118
  self._readiness_probe = None
116
119
  self._regions = None
117
120
  self._requested_run_duration_seconds = None
@@ -153,6 +156,8 @@ class V1JobSpec(object):
153
156
  self.modified_volume = modified_volume
154
157
  if path_mappings is not None:
155
158
  self.path_mappings = path_mappings
159
+ if quantity is not None:
160
+ self.quantity = quantity
156
161
  if readiness_probe is not None:
157
162
  self.readiness_probe = readiness_probe
158
163
  if regions is not None:
@@ -506,6 +511,27 @@ class V1JobSpec(object):
506
511
 
507
512
  self._path_mappings = path_mappings
508
513
 
514
+ @property
515
+ def quantity(self) -> 'int':
516
+ """Gets the quantity of this V1JobSpec. # noqa: E501
517
+
518
+
519
+ :return: The quantity of this V1JobSpec. # noqa: E501
520
+ :rtype: int
521
+ """
522
+ return self._quantity
523
+
524
+ @quantity.setter
525
+ def quantity(self, quantity: 'int'):
526
+ """Sets the quantity of this V1JobSpec.
527
+
528
+
529
+ :param quantity: The quantity of this V1JobSpec. # noqa: E501
530
+ :type: int
531
+ """
532
+
533
+ self._quantity = quantity
534
+
509
535
  @property
510
536
  def readiness_probe(self) -> 'V1JobHealthCheckConfig':
511
537
  """Gets the readiness_probe of this V1JobSpec. # noqa: E501
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1SetupDataConnectionResponse(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
+ 'gcp_setup': 'V1GcpDataConnectionSetup'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'gcp_setup': 'gcpSetup'
49
+ }
50
+
51
+ def __init__(self, gcp_setup: 'V1GcpDataConnectionSetup' =None): # noqa: E501
52
+ """V1SetupDataConnectionResponse - a model defined in Swagger""" # noqa: E501
53
+ self._gcp_setup = None
54
+ self.discriminator = None
55
+ if gcp_setup is not None:
56
+ self.gcp_setup = gcp_setup
57
+
58
+ @property
59
+ def gcp_setup(self) -> 'V1GcpDataConnectionSetup':
60
+ """Gets the gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
61
+
62
+
63
+ :return: The gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
64
+ :rtype: V1GcpDataConnectionSetup
65
+ """
66
+ return self._gcp_setup
67
+
68
+ @gcp_setup.setter
69
+ def gcp_setup(self, gcp_setup: 'V1GcpDataConnectionSetup'):
70
+ """Sets the gcp_setup of this V1SetupDataConnectionResponse.
71
+
72
+
73
+ :param gcp_setup: The gcp_setup of this V1SetupDataConnectionResponse. # noqa: E501
74
+ :type: V1GcpDataConnectionSetup
75
+ """
76
+
77
+ self._gcp_setup = gcp_setup
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1SetupDataConnectionResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1SetupDataConnectionResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1SetupDataConnectionResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1SetupDataConnectionResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -0,0 +1,97 @@
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 V1UpdateDeploymentVisibilityResponse(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
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1UpdateDeploymentVisibilityResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1UpdateDeploymentVisibilityResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1UpdateDeploymentVisibilityResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1UpdateDeploymentVisibilityResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1UpdateDeploymentVisibilityResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other