lightning-sdk 0.1.49__py3-none-any.whl → 0.1.51__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 (42) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/job_api.py +18 -13
  3. lightning_sdk/api/lit_container_api.py +41 -11
  4. lightning_sdk/api/mmt_api.py +18 -13
  5. lightning_sdk/api/utils.py +52 -0
  6. lightning_sdk/cli/download.py +20 -1
  7. lightning_sdk/cli/run.py +71 -21
  8. lightning_sdk/cli/serve.py +1 -5
  9. lightning_sdk/cli/upload.py +33 -15
  10. lightning_sdk/helpers.py +1 -1
  11. lightning_sdk/job/base.py +16 -5
  12. lightning_sdk/job/job.py +30 -27
  13. lightning_sdk/job/v1.py +9 -5
  14. lightning_sdk/job/v2.py +14 -14
  15. lightning_sdk/job/work.py +2 -2
  16. lightning_sdk/lightning_cloud/login.py +4 -1
  17. lightning_sdk/lightning_cloud/openapi/__init__.py +3 -0
  18. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  19. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +113 -0
  20. lightning_sdk/lightning_cloud/openapi/models/__init__.py +3 -0
  21. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/litregistry_lit_repo_name_body.py +123 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_path_mapping.py +175 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_repository_response.py +97 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -79
  30. lightning_sdk/lit_container.py +19 -0
  31. lightning_sdk/mmt/base.py +40 -30
  32. lightning_sdk/mmt/mmt.py +30 -26
  33. lightning_sdk/mmt/v1.py +6 -3
  34. lightning_sdk/mmt/v2.py +16 -15
  35. lightning_sdk/models.py +5 -4
  36. lightning_sdk/utils/resolve.py +7 -0
  37. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/METADATA +2 -2
  38. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/RECORD +42 -39
  39. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/LICENSE +0 -0
  40. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/WHEEL +0 -0
  41. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/entry_points.txt +0 -0
  42. {lightning_sdk-0.1.49.dist-info → lightning_sdk-0.1.51.dist-info}/top_level.txt +0 -0
@@ -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 LitregistryLitRepoNameBody(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
+ 'lit_repo_description': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'lit_repo_description': 'litRepoDescription'
49
+ }
50
+
51
+ def __init__(self, lit_repo_description: 'str' =None): # noqa: E501
52
+ """LitregistryLitRepoNameBody - a model defined in Swagger""" # noqa: E501
53
+ self._lit_repo_description = None
54
+ self.discriminator = None
55
+ if lit_repo_description is not None:
56
+ self.lit_repo_description = lit_repo_description
57
+
58
+ @property
59
+ def lit_repo_description(self) -> 'str':
60
+ """Gets the lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
61
+
62
+
63
+ :return: The lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._lit_repo_description
67
+
68
+ @lit_repo_description.setter
69
+ def lit_repo_description(self, lit_repo_description: 'str'):
70
+ """Sets the lit_repo_description of this LitregistryLitRepoNameBody.
71
+
72
+
73
+ :param lit_repo_description: The lit_repo_description of this LitregistryLitRepoNameBody. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._lit_repo_description = lit_repo_description
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(LitregistryLitRepoNameBody, 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: 'LitregistryLitRepoNameBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, LitregistryLitRepoNameBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'LitregistryLitRepoNameBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -51,6 +51,7 @@ class V1ClusterSpec(object):
51
51
  'google_cloud_v1': 'V1GoogleCloudDirectV1',
52
52
  'insurer_disabled': 'bool',
53
53
  'lambda_labs_v1': 'V1LambdaLabsDirectV1',
54
+ 'monitor_deletion_disabled': 'bool',
54
55
  'overprovisioning': 'list[V1InstanceOverprovisioningSpec]',
55
56
  'pause_automation': 'bool',
56
57
  'security_options': 'V1ClusterSecurityOptions',
@@ -71,6 +72,7 @@ class V1ClusterSpec(object):
71
72
  'google_cloud_v1': 'googleCloudV1',
72
73
  'insurer_disabled': 'insurerDisabled',
73
74
  'lambda_labs_v1': 'lambdaLabsV1',
75
+ 'monitor_deletion_disabled': 'monitorDeletionDisabled',
74
76
  'overprovisioning': 'overprovisioning',
75
77
  'pause_automation': 'pauseAutomation',
76
78
  'security_options': 'securityOptions',
@@ -80,7 +82,7 @@ class V1ClusterSpec(object):
80
82
  'vultr_v1': 'vultrV1'
81
83
  }
82
84
 
83
- def __init__(self, auth_token: 'str' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, pause_automation: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
85
+ def __init__(self, auth_token: 'str' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, pause_automation: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
84
86
  """V1ClusterSpec - a model defined in Swagger""" # noqa: E501
85
87
  self._auth_token = None
86
88
  self._aws_v1 = None
@@ -92,6 +94,7 @@ class V1ClusterSpec(object):
92
94
  self._google_cloud_v1 = None
93
95
  self._insurer_disabled = None
94
96
  self._lambda_labs_v1 = None
97
+ self._monitor_deletion_disabled = None
95
98
  self._overprovisioning = None
96
99
  self._pause_automation = None
97
100
  self._security_options = None
@@ -120,6 +123,8 @@ class V1ClusterSpec(object):
120
123
  self.insurer_disabled = insurer_disabled
121
124
  if lambda_labs_v1 is not None:
122
125
  self.lambda_labs_v1 = lambda_labs_v1
126
+ if monitor_deletion_disabled is not None:
127
+ self.monitor_deletion_disabled = monitor_deletion_disabled
123
128
  if overprovisioning is not None:
124
129
  self.overprovisioning = overprovisioning
125
130
  if pause_automation is not None:
@@ -347,6 +352,27 @@ class V1ClusterSpec(object):
347
352
 
348
353
  self._lambda_labs_v1 = lambda_labs_v1
349
354
 
355
+ @property
356
+ def monitor_deletion_disabled(self) -> 'bool':
357
+ """Gets the monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
358
+
359
+
360
+ :return: The monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
361
+ :rtype: bool
362
+ """
363
+ return self._monitor_deletion_disabled
364
+
365
+ @monitor_deletion_disabled.setter
366
+ def monitor_deletion_disabled(self, monitor_deletion_disabled: 'bool'):
367
+ """Sets the monitor_deletion_disabled of this V1ClusterSpec.
368
+
369
+
370
+ :param monitor_deletion_disabled: The monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
371
+ :type: bool
372
+ """
373
+
374
+ self._monitor_deletion_disabled = monitor_deletion_disabled
375
+
350
376
  @property
351
377
  def overprovisioning(self) -> 'list[V1InstanceOverprovisioningSpec]':
352
378
  """Gets the overprovisioning of this V1ClusterSpec. # noqa: E501
@@ -45,6 +45,7 @@ class V1Deployment(object):
45
45
  'autoscaling': 'V1AutoscalingSpec',
46
46
  'cloudspace_id': 'str',
47
47
  'created_at': 'datetime',
48
+ 'debug': 'bool',
48
49
  'desired_state': 'V1DeploymentState',
49
50
  'endpoint': 'V1Endpoint',
50
51
  'id': 'str',
@@ -68,6 +69,7 @@ class V1Deployment(object):
68
69
  'autoscaling': 'autoscaling',
69
70
  'cloudspace_id': 'cloudspaceId',
70
71
  'created_at': 'createdAt',
72
+ 'debug': 'debug',
71
73
  'desired_state': 'desiredState',
72
74
  'endpoint': 'endpoint',
73
75
  'id': 'id',
@@ -86,12 +88,13 @@ class V1Deployment(object):
86
88
  'user_id': 'userId'
87
89
  }
88
90
 
89
- def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =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
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
90
92
  """V1Deployment - a model defined in Swagger""" # noqa: E501
91
93
  self._apis = None
92
94
  self._autoscaling = None
93
95
  self._cloudspace_id = None
94
96
  self._created_at = None
97
+ self._debug = None
95
98
  self._desired_state = None
96
99
  self._endpoint = None
97
100
  self._id = None
@@ -117,6 +120,8 @@ class V1Deployment(object):
117
120
  self.cloudspace_id = cloudspace_id
118
121
  if created_at is not None:
119
122
  self.created_at = created_at
123
+ if debug is not None:
124
+ self.debug = debug
120
125
  if desired_state is not None:
121
126
  self.desired_state = desired_state
122
127
  if endpoint is not None:
@@ -234,6 +239,27 @@ class V1Deployment(object):
234
239
 
235
240
  self._created_at = created_at
236
241
 
242
+ @property
243
+ def debug(self) -> 'bool':
244
+ """Gets the debug of this V1Deployment. # noqa: E501
245
+
246
+
247
+ :return: The debug of this V1Deployment. # noqa: E501
248
+ :rtype: bool
249
+ """
250
+ return self._debug
251
+
252
+ @debug.setter
253
+ def debug(self, debug: 'bool'):
254
+ """Sets the debug of this V1Deployment.
255
+
256
+
257
+ :param debug: The debug of this V1Deployment. # noqa: E501
258
+ :type: bool
259
+ """
260
+
261
+ self._debug = debug
262
+
237
263
  @property
238
264
  def desired_state(self) -> 'V1DeploymentState':
239
265
  """Gets the desired_state of this V1Deployment. # noqa: E501
@@ -42,6 +42,7 @@ class V1DeploymentAPI(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'body': 'V1Body',
45
+ 'description': 'str',
45
46
  'headers': 'list[V1Header]',
46
47
  'method': 'str',
47
48
  'name': 'str',
@@ -51,6 +52,7 @@ class V1DeploymentAPI(object):
51
52
 
52
53
  attribute_map = {
53
54
  'body': 'body',
55
+ 'description': 'description',
54
56
  'headers': 'headers',
55
57
  'method': 'method',
56
58
  'name': 'name',
@@ -58,9 +60,10 @@ class V1DeploymentAPI(object):
58
60
  '_query_params': 'queryParams'
59
61
  }
60
62
 
61
- def __init__(self, body: 'V1Body' =None, headers: 'list[V1Header]' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
63
+ def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
62
64
  """V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
63
65
  self._body = None
66
+ self._description = None
64
67
  self._headers = None
65
68
  self._method = None
66
69
  self._name = None
@@ -69,6 +72,8 @@ class V1DeploymentAPI(object):
69
72
  self.discriminator = None
70
73
  if body is not None:
71
74
  self.body = body
75
+ if description is not None:
76
+ self.description = description
72
77
  if headers is not None:
73
78
  self.headers = headers
74
79
  if method is not None:
@@ -101,6 +106,27 @@ class V1DeploymentAPI(object):
101
106
 
102
107
  self._body = body
103
108
 
109
+ @property
110
+ def description(self) -> 'str':
111
+ """Gets the description of this V1DeploymentAPI. # noqa: E501
112
+
113
+
114
+ :return: The description of this V1DeploymentAPI. # noqa: E501
115
+ :rtype: str
116
+ """
117
+ return self._description
118
+
119
+ @description.setter
120
+ def description(self, description: 'str'):
121
+ """Sets the description of this V1DeploymentAPI.
122
+
123
+
124
+ :param description: The description of this V1DeploymentAPI. # noqa: E501
125
+ :type: str
126
+ """
127
+
128
+ self._description = description
129
+
104
130
  @property
105
131
  def headers(self) -> 'list[V1Header]':
106
132
  """Gets the headers of this V1DeploymentAPI. # noqa: E501
@@ -56,6 +56,7 @@ class V1JobSpec(object):
56
56
  'instance_name': 'str',
57
57
  'instance_type': 'str',
58
58
  'modified_volume': 'bool',
59
+ 'path_mappings': 'list[V1PathMapping]',
59
60
  'readiness_probe': 'V1JobHealthCheckConfig',
60
61
  'regions': 'list[str]',
61
62
  'resources': 'V1Resources',
@@ -81,6 +82,7 @@ class V1JobSpec(object):
81
82
  'instance_name': 'instanceName',
82
83
  'instance_type': 'instanceType',
83
84
  'modified_volume': 'modifiedVolume',
85
+ 'path_mappings': 'pathMappings',
84
86
  'readiness_probe': 'readinessProbe',
85
87
  'regions': 'regions',
86
88
  'resources': 'resources',
@@ -90,7 +92,7 @@ class V1JobSpec(object):
90
92
  'volumes': 'volumes'
91
93
  }
92
94
 
93
- 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, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
95
+ 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, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
94
96
  """V1JobSpec - a model defined in Swagger""" # noqa: E501
95
97
  self._artifacts_destination = None
96
98
  self._artifacts_source = None
@@ -107,6 +109,7 @@ class V1JobSpec(object):
107
109
  self._instance_name = None
108
110
  self._instance_type = None
109
111
  self._modified_volume = None
112
+ self._path_mappings = None
110
113
  self._readiness_probe = None
111
114
  self._regions = None
112
115
  self._resources = None
@@ -145,6 +148,8 @@ class V1JobSpec(object):
145
148
  self.instance_type = instance_type
146
149
  if modified_volume is not None:
147
150
  self.modified_volume = modified_volume
151
+ if path_mappings is not None:
152
+ self.path_mappings = path_mappings
148
153
  if readiness_probe is not None:
149
154
  self.readiness_probe = readiness_probe
150
155
  if regions is not None:
@@ -475,6 +480,27 @@ class V1JobSpec(object):
475
480
 
476
481
  self._modified_volume = modified_volume
477
482
 
483
+ @property
484
+ def path_mappings(self) -> 'list[V1PathMapping]':
485
+ """Gets the path_mappings of this V1JobSpec. # noqa: E501
486
+
487
+
488
+ :return: The path_mappings of this V1JobSpec. # noqa: E501
489
+ :rtype: list[V1PathMapping]
490
+ """
491
+ return self._path_mappings
492
+
493
+ @path_mappings.setter
494
+ def path_mappings(self, path_mappings: 'list[V1PathMapping]'):
495
+ """Sets the path_mappings of this V1JobSpec.
496
+
497
+
498
+ :param path_mappings: The path_mappings of this V1JobSpec. # noqa: E501
499
+ :type: list[V1PathMapping]
500
+ """
501
+
502
+ self._path_mappings = path_mappings
503
+
478
504
  @property
479
505
  def readiness_probe(self) -> 'V1JobHealthCheckConfig':
480
506
  """Gets the readiness_probe of this V1JobSpec. # 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 V1PathMapping(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
+ 'connection_name': 'str',
45
+ 'connection_path': 'str',
46
+ 'container_path': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'connection_name': 'connectionName',
51
+ 'connection_path': 'connectionPath',
52
+ 'container_path': 'containerPath'
53
+ }
54
+
55
+ def __init__(self, connection_name: 'str' =None, connection_path: 'str' =None, container_path: 'str' =None): # noqa: E501
56
+ """V1PathMapping - a model defined in Swagger""" # noqa: E501
57
+ self._connection_name = None
58
+ self._connection_path = None
59
+ self._container_path = None
60
+ self.discriminator = None
61
+ if connection_name is not None:
62
+ self.connection_name = connection_name
63
+ if connection_path is not None:
64
+ self.connection_path = connection_path
65
+ if container_path is not None:
66
+ self.container_path = container_path
67
+
68
+ @property
69
+ def connection_name(self) -> 'str':
70
+ """Gets the connection_name of this V1PathMapping. # noqa: E501
71
+
72
+
73
+ :return: The connection_name of this V1PathMapping. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._connection_name
77
+
78
+ @connection_name.setter
79
+ def connection_name(self, connection_name: 'str'):
80
+ """Sets the connection_name of this V1PathMapping.
81
+
82
+
83
+ :param connection_name: The connection_name of this V1PathMapping. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._connection_name = connection_name
88
+
89
+ @property
90
+ def connection_path(self) -> 'str':
91
+ """Gets the connection_path of this V1PathMapping. # noqa: E501
92
+
93
+
94
+ :return: The connection_path of this V1PathMapping. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._connection_path
98
+
99
+ @connection_path.setter
100
+ def connection_path(self, connection_path: 'str'):
101
+ """Sets the connection_path of this V1PathMapping.
102
+
103
+
104
+ :param connection_path: The connection_path of this V1PathMapping. # noqa: E501
105
+ :type: str
106
+ """
107
+
108
+ self._connection_path = connection_path
109
+
110
+ @property
111
+ def container_path(self) -> 'str':
112
+ """Gets the container_path of this V1PathMapping. # noqa: E501
113
+
114
+
115
+ :return: The container_path of this V1PathMapping. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._container_path
119
+
120
+ @container_path.setter
121
+ def container_path(self, container_path: 'str'):
122
+ """Sets the container_path of this V1PathMapping.
123
+
124
+
125
+ :param container_path: The container_path of this V1PathMapping. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._container_path = container_path
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(V1PathMapping, 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: 'V1PathMapping') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1PathMapping):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1PathMapping') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ 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 V1UpdateLitRepositoryResponse(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
+ """V1UpdateLitRepositoryResponse - 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(V1UpdateLitRepositoryResponse, 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: 'V1UpdateLitRepositoryResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1UpdateLitRepositoryResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1UpdateLitRepositoryResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other