lightning-sdk 0.2.4__py3-none-any.whl → 0.2.6__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 (123) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +3 -1
  3. lightning_sdk/api/ai_hub_api.py +15 -0
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/cli/serve.py +29 -9
  6. lightning_sdk/deployment/deployment.py +32 -4
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +57 -1
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +115 -6
  11. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  12. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +20 -4
  13. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  14. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  17. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +53 -1
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +253 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +95 -69
  25. lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  27. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  29. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  32. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  33. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  34. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  35. lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  37. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  38. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  40. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +279 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +157 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  57. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  66. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
  72. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  73. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  78. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  79. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  81. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  83. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  84. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  87. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  88. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  90. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  91. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
  92. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  95. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
  96. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
  98. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  99. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  100. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  101. lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
  102. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  103. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  104. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -171
  105. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  106. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  107. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
  108. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  109. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  110. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  111. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  112. lightning_sdk/lightning_cloud/rest_client.py +44 -40
  113. lightning_sdk/pipeline/types.py +28 -2
  114. lightning_sdk/pipeline/utils.py +1 -1
  115. lightning_sdk/plugin.py +0 -6
  116. lightning_sdk/serve.py +5 -3
  117. lightning_sdk/utils/resolve.py +1 -0
  118. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
  119. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +123 -67
  120. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +1 -1
  121. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
  122. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
  123. {lightning_sdk-0.2.4.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
@@ -41,20 +41,46 @@ class V1ValidateManagedEndpointResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'lai_resource_status': 'V1AssistantModelStatus',
44
45
  'valid': 'bool'
45
46
  }
46
47
 
47
48
  attribute_map = {
49
+ 'lai_resource_status': 'laiResourceStatus',
48
50
  'valid': 'valid'
49
51
  }
50
52
 
51
- def __init__(self, valid: 'bool' =None): # noqa: E501
53
+ def __init__(self, lai_resource_status: 'V1AssistantModelStatus' =None, valid: 'bool' =None): # noqa: E501
52
54
  """V1ValidateManagedEndpointResponse - a model defined in Swagger""" # noqa: E501
55
+ self._lai_resource_status = None
53
56
  self._valid = None
54
57
  self.discriminator = None
58
+ if lai_resource_status is not None:
59
+ self.lai_resource_status = lai_resource_status
55
60
  if valid is not None:
56
61
  self.valid = valid
57
62
 
63
+ @property
64
+ def lai_resource_status(self) -> 'V1AssistantModelStatus':
65
+ """Gets the lai_resource_status of this V1ValidateManagedEndpointResponse. # noqa: E501
66
+
67
+
68
+ :return: The lai_resource_status of this V1ValidateManagedEndpointResponse. # noqa: E501
69
+ :rtype: V1AssistantModelStatus
70
+ """
71
+ return self._lai_resource_status
72
+
73
+ @lai_resource_status.setter
74
+ def lai_resource_status(self, lai_resource_status: 'V1AssistantModelStatus'):
75
+ """Sets the lai_resource_status of this V1ValidateManagedEndpointResponse.
76
+
77
+
78
+ :param lai_resource_status: The lai_resource_status of this V1ValidateManagedEndpointResponse. # noqa: E501
79
+ :type: V1AssistantModelStatus
80
+ """
81
+
82
+ self._lai_resource_status = lai_resource_status
83
+
58
84
  @property
59
85
  def valid(self) -> 'bool':
60
86
  """Gets the valid of this V1ValidateManagedEndpointResponse. # noqa: E501
@@ -0,0 +1,203 @@
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 V1VoltageParkDirectV1(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
+ 'credentials_secret_id': 'str',
45
+ 'primary_region': 'str',
46
+ 'regions': 'list[str]',
47
+ 'reserved_instance_ids': 'list[str]'
48
+ }
49
+
50
+ attribute_map = {
51
+ 'credentials_secret_id': 'credentialsSecretId',
52
+ 'primary_region': 'primaryRegion',
53
+ 'regions': 'regions',
54
+ 'reserved_instance_ids': 'reservedInstanceIds'
55
+ }
56
+
57
+ def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None, reserved_instance_ids: 'list[str]' =None): # noqa: E501
58
+ """V1VoltageParkDirectV1 - a model defined in Swagger""" # noqa: E501
59
+ self._credentials_secret_id = None
60
+ self._primary_region = None
61
+ self._regions = None
62
+ self._reserved_instance_ids = None
63
+ self.discriminator = None
64
+ if credentials_secret_id is not None:
65
+ self.credentials_secret_id = credentials_secret_id
66
+ if primary_region is not None:
67
+ self.primary_region = primary_region
68
+ if regions is not None:
69
+ self.regions = regions
70
+ if reserved_instance_ids is not None:
71
+ self.reserved_instance_ids = reserved_instance_ids
72
+
73
+ @property
74
+ def credentials_secret_id(self) -> 'str':
75
+ """Gets the credentials_secret_id of this V1VoltageParkDirectV1. # noqa: E501
76
+
77
+ ID of the secret that contains the Vultr API key. # noqa: E501
78
+
79
+ :return: The credentials_secret_id of this V1VoltageParkDirectV1. # noqa: E501
80
+ :rtype: str
81
+ """
82
+ return self._credentials_secret_id
83
+
84
+ @credentials_secret_id.setter
85
+ def credentials_secret_id(self, credentials_secret_id: 'str'):
86
+ """Sets the credentials_secret_id of this V1VoltageParkDirectV1.
87
+
88
+ ID of the secret that contains the Vultr API key. # noqa: E501
89
+
90
+ :param credentials_secret_id: The credentials_secret_id of this V1VoltageParkDirectV1. # noqa: E501
91
+ :type: str
92
+ """
93
+
94
+ self._credentials_secret_id = credentials_secret_id
95
+
96
+ @property
97
+ def primary_region(self) -> 'str':
98
+ """Gets the primary_region of this V1VoltageParkDirectV1. # noqa: E501
99
+
100
+
101
+ :return: The primary_region of this V1VoltageParkDirectV1. # noqa: E501
102
+ :rtype: str
103
+ """
104
+ return self._primary_region
105
+
106
+ @primary_region.setter
107
+ def primary_region(self, primary_region: 'str'):
108
+ """Sets the primary_region of this V1VoltageParkDirectV1.
109
+
110
+
111
+ :param primary_region: The primary_region of this V1VoltageParkDirectV1. # noqa: E501
112
+ :type: str
113
+ """
114
+
115
+ self._primary_region = primary_region
116
+
117
+ @property
118
+ def regions(self) -> 'list[str]':
119
+ """Gets the regions of this V1VoltageParkDirectV1. # noqa: E501
120
+
121
+
122
+ :return: The regions of this V1VoltageParkDirectV1. # noqa: E501
123
+ :rtype: list[str]
124
+ """
125
+ return self._regions
126
+
127
+ @regions.setter
128
+ def regions(self, regions: 'list[str]'):
129
+ """Sets the regions of this V1VoltageParkDirectV1.
130
+
131
+
132
+ :param regions: The regions of this V1VoltageParkDirectV1. # noqa: E501
133
+ :type: list[str]
134
+ """
135
+
136
+ self._regions = regions
137
+
138
+ @property
139
+ def reserved_instance_ids(self) -> 'list[str]':
140
+ """Gets the reserved_instance_ids of this V1VoltageParkDirectV1. # noqa: E501
141
+
142
+
143
+ :return: The reserved_instance_ids of this V1VoltageParkDirectV1. # noqa: E501
144
+ :rtype: list[str]
145
+ """
146
+ return self._reserved_instance_ids
147
+
148
+ @reserved_instance_ids.setter
149
+ def reserved_instance_ids(self, reserved_instance_ids: 'list[str]'):
150
+ """Sets the reserved_instance_ids of this V1VoltageParkDirectV1.
151
+
152
+
153
+ :param reserved_instance_ids: The reserved_instance_ids of this V1VoltageParkDirectV1. # noqa: E501
154
+ :type: list[str]
155
+ """
156
+
157
+ self._reserved_instance_ids = reserved_instance_ids
158
+
159
+ def to_dict(self) -> dict:
160
+ """Returns the model properties as a dict"""
161
+ result = {}
162
+
163
+ for attr, _ in six.iteritems(self.swagger_types):
164
+ value = getattr(self, attr)
165
+ if isinstance(value, list):
166
+ result[attr] = list(map(
167
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
168
+ value
169
+ ))
170
+ elif hasattr(value, "to_dict"):
171
+ result[attr] = value.to_dict()
172
+ elif isinstance(value, dict):
173
+ result[attr] = dict(map(
174
+ lambda item: (item[0], item[1].to_dict())
175
+ if hasattr(item[1], "to_dict") else item,
176
+ value.items()
177
+ ))
178
+ else:
179
+ result[attr] = value
180
+ if issubclass(V1VoltageParkDirectV1, dict):
181
+ for key, value in self.items():
182
+ result[key] = value
183
+
184
+ return result
185
+
186
+ def to_str(self) -> str:
187
+ """Returns the string representation of the model"""
188
+ return pprint.pformat(self.to_dict())
189
+
190
+ def __repr__(self) -> str:
191
+ """For `print` and `pprint`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other: 'V1VoltageParkDirectV1') -> bool:
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, V1VoltageParkDirectV1):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other: 'V1VoltageParkDirectV1') -> bool:
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other
@@ -42,29 +42,24 @@ class V1VultrDirectV1(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'credentials_secret_id': 'str',
45
- 'parent_cluster_id': 'str',
46
45
  'primary_region': 'str',
47
46
  'regions': 'list[str]'
48
47
  }
49
48
 
50
49
  attribute_map = {
51
50
  'credentials_secret_id': 'credentialsSecretId',
52
- 'parent_cluster_id': 'parentClusterId',
53
51
  'primary_region': 'primaryRegion',
54
52
  'regions': 'regions'
55
53
  }
56
54
 
57
- def __init__(self, credentials_secret_id: 'str' =None, parent_cluster_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
55
+ def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
58
56
  """V1VultrDirectV1 - a model defined in Swagger""" # noqa: E501
59
57
  self._credentials_secret_id = None
60
- self._parent_cluster_id = None
61
58
  self._primary_region = None
62
59
  self._regions = None
63
60
  self.discriminator = None
64
61
  if credentials_secret_id is not None:
65
62
  self.credentials_secret_id = credentials_secret_id
66
- if parent_cluster_id is not None:
67
- self.parent_cluster_id = parent_cluster_id
68
63
  if primary_region is not None:
69
64
  self.primary_region = primary_region
70
65
  if regions is not None:
@@ -93,27 +88,6 @@ class V1VultrDirectV1(object):
93
88
 
94
89
  self._credentials_secret_id = credentials_secret_id
95
90
 
96
- @property
97
- def parent_cluster_id(self) -> 'str':
98
- """Gets the parent_cluster_id of this V1VultrDirectV1. # noqa: E501
99
-
100
-
101
- :return: The parent_cluster_id of this V1VultrDirectV1. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._parent_cluster_id
105
-
106
- @parent_cluster_id.setter
107
- def parent_cluster_id(self, parent_cluster_id: 'str'):
108
- """Sets the parent_cluster_id of this V1VultrDirectV1.
109
-
110
-
111
- :param parent_cluster_id: The parent_cluster_id of this V1VultrDirectV1. # noqa: E501
112
- :type: str
113
- """
114
-
115
- self._parent_cluster_id = parent_cluster_id
116
-
117
91
  @property
118
92
  def primary_region(self) -> 'str':
119
93
  """Gets the primary_region of this V1VultrDirectV1. # noqa: E501
@@ -41,24 +41,45 @@ class VersionDefaultBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'index': 'int',
45
- 'model_name': 'str'
44
+ 'dataset_name': 'str',
45
+ 'index': 'int'
46
46
  }
47
47
 
48
48
  attribute_map = {
49
- 'index': 'index',
50
- 'model_name': 'modelName'
49
+ 'dataset_name': 'datasetName',
50
+ 'index': 'index'
51
51
  }
52
52
 
53
- def __init__(self, index: 'int' =None, model_name: 'str' =None): # noqa: E501
53
+ def __init__(self, dataset_name: 'str' =None, index: 'int' =None): # noqa: E501
54
54
  """VersionDefaultBody - a model defined in Swagger""" # noqa: E501
55
+ self._dataset_name = None
55
56
  self._index = None
56
- self._model_name = None
57
57
  self.discriminator = None
58
+ if dataset_name is not None:
59
+ self.dataset_name = dataset_name
58
60
  if index is not None:
59
61
  self.index = index
60
- if model_name is not None:
61
- self.model_name = model_name
62
+
63
+ @property
64
+ def dataset_name(self) -> 'str':
65
+ """Gets the dataset_name of this VersionDefaultBody. # noqa: E501
66
+
67
+
68
+ :return: The dataset_name of this VersionDefaultBody. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._dataset_name
72
+
73
+ @dataset_name.setter
74
+ def dataset_name(self, dataset_name: 'str'):
75
+ """Sets the dataset_name of this VersionDefaultBody.
76
+
77
+
78
+ :param dataset_name: The dataset_name of this VersionDefaultBody. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._dataset_name = dataset_name
62
83
 
63
84
  @property
64
85
  def index(self) -> 'int':
@@ -81,27 +102,6 @@ class VersionDefaultBody(object):
81
102
 
82
103
  self._index = index
83
104
 
84
- @property
85
- def model_name(self) -> 'str':
86
- """Gets the model_name of this VersionDefaultBody. # noqa: E501
87
-
88
-
89
- :return: The model_name of this VersionDefaultBody. # noqa: E501
90
- :rtype: str
91
- """
92
- return self._model_name
93
-
94
- @model_name.setter
95
- def model_name(self, model_name: 'str'):
96
- """Sets the model_name of this VersionDefaultBody.
97
-
98
-
99
- :param model_name: The model_name of this VersionDefaultBody. # noqa: E501
100
- :type: str
101
- """
102
-
103
- self._model_name = model_name
104
-
105
105
  def to_dict(self) -> dict:
106
106
  """Returns the model properties as a dict"""
107
107
  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 VersionDefaultBody1(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
+ 'index': 'int',
45
+ 'model_name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'index': 'index',
50
+ 'model_name': 'modelName'
51
+ }
52
+
53
+ def __init__(self, index: 'int' =None, model_name: 'str' =None): # noqa: E501
54
+ """VersionDefaultBody1 - a model defined in Swagger""" # noqa: E501
55
+ self._index = None
56
+ self._model_name = None
57
+ self.discriminator = None
58
+ if index is not None:
59
+ self.index = index
60
+ if model_name is not None:
61
+ self.model_name = model_name
62
+
63
+ @property
64
+ def index(self) -> 'int':
65
+ """Gets the index of this VersionDefaultBody1. # noqa: E501
66
+
67
+
68
+ :return: The index of this VersionDefaultBody1. # noqa: E501
69
+ :rtype: int
70
+ """
71
+ return self._index
72
+
73
+ @index.setter
74
+ def index(self, index: 'int'):
75
+ """Sets the index of this VersionDefaultBody1.
76
+
77
+
78
+ :param index: The index of this VersionDefaultBody1. # noqa: E501
79
+ :type: int
80
+ """
81
+
82
+ self._index = index
83
+
84
+ @property
85
+ def model_name(self) -> 'str':
86
+ """Gets the model_name of this VersionDefaultBody1. # noqa: E501
87
+
88
+
89
+ :return: The model_name of this VersionDefaultBody1. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._model_name
93
+
94
+ @model_name.setter
95
+ def model_name(self, model_name: 'str'):
96
+ """Sets the model_name of this VersionDefaultBody1.
97
+
98
+
99
+ :param model_name: The model_name of this VersionDefaultBody1. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._model_name = model_name
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(VersionDefaultBody1, 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: 'VersionDefaultBody1') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, VersionDefaultBody1):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'VersionDefaultBody1') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -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 VersionUploadsBody1(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
+ 'filepath': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'filepath': 'filepath'
49
+ }
50
+
51
+ def __init__(self, filepath: 'str' =None): # noqa: E501
52
+ """VersionUploadsBody1 - a model defined in Swagger""" # noqa: E501
53
+ self._filepath = None
54
+ self.discriminator = None
55
+ if filepath is not None:
56
+ self.filepath = filepath
57
+
58
+ @property
59
+ def filepath(self) -> 'str':
60
+ """Gets the filepath of this VersionUploadsBody1. # noqa: E501
61
+
62
+
63
+ :return: The filepath of this VersionUploadsBody1. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._filepath
67
+
68
+ @filepath.setter
69
+ def filepath(self, filepath: 'str'):
70
+ """Sets the filepath of this VersionUploadsBody1.
71
+
72
+
73
+ :param filepath: The filepath of this VersionUploadsBody1. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._filepath = filepath
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(VersionUploadsBody1, 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: 'VersionUploadsBody1') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, VersionUploadsBody1):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'VersionUploadsBody1') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other