lightning-sdk 0.1.39__py3-none-any.whl → 0.1.40__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 (40) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/_mmt/__init__.py +3 -0
  3. lightning_sdk/_mmt/base.py +180 -0
  4. lightning_sdk/_mmt/mmt.py +161 -0
  5. lightning_sdk/_mmt/v1.py +69 -0
  6. lightning_sdk/_mmt/v2.py +141 -0
  7. lightning_sdk/api/mmt_api.py +147 -0
  8. lightning_sdk/api/teamspace_api.py +0 -9
  9. lightning_sdk/cli/mmt.py +137 -0
  10. lightning_sdk/job/base.py +2 -3
  11. lightning_sdk/job/v1.py +2 -1
  12. lightning_sdk/job/v2.py +6 -9
  13. lightning_sdk/lightning_cloud/openapi/__init__.py +7 -3
  14. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +90 -284
  15. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  16. lightning_sdk/lightning_cloud/openapi/models/__init__.py +7 -3
  17. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/{project_id_agentmanagedmodels_body.py → v1_body.py} +21 -47
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +201 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +29 -3
  27. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +1 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
  30. lightning_sdk/lightning_cloud/openapi/models/{v1_list_managed_models_response.py → v1_resource_visibility.py} +23 -23
  31. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_managed_model_response.py → v1_update_model_visibility_response.py} +6 -6
  32. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -1
  33. lightning_sdk/models.py +29 -8
  34. lightning_sdk/teamspace.py +12 -9
  35. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/METADATA +1 -1
  36. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/RECORD +40 -29
  37. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/entry_points.txt +1 -0
  38. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/LICENSE +0 -0
  39. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/WHEEL +0 -0
  40. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.40.dist-info}/top_level.txt +0 -0
@@ -1199,6 +1199,7 @@ class ModelsStoreApi(object):
1199
1199
  :param str project_id:
1200
1200
  :param str project_name:
1201
1201
  :param str project_owner_name:
1202
+ :param str id:
1202
1203
  :return: V1GetModelFilesResponse
1203
1204
  If the method is called asynchronously,
1204
1205
  returns the request thread.
@@ -1224,12 +1225,13 @@ class ModelsStoreApi(object):
1224
1225
  :param str project_id:
1225
1226
  :param str project_name:
1226
1227
  :param str project_owner_name:
1228
+ :param str id:
1227
1229
  :return: V1GetModelFilesResponse
1228
1230
  If the method is called asynchronously,
1229
1231
  returns the request thread.
1230
1232
  """
1231
1233
 
1232
- all_params = ['name', 'version', 'project_id', 'project_name', 'project_owner_name'] # noqa: E501
1234
+ all_params = ['name', 'version', 'project_id', 'project_name', 'project_owner_name', 'id'] # noqa: E501
1233
1235
  all_params.append('async_req')
1234
1236
  all_params.append('_return_http_data_only')
1235
1237
  all_params.append('_preload_content')
@@ -1260,6 +1262,8 @@ class ModelsStoreApi(object):
1260
1262
  query_params.append(('projectName', params['project_name'])) # noqa: E501
1261
1263
  if 'project_owner_name' in params:
1262
1264
  query_params.append(('projectOwnerName', params['project_owner_name'])) # noqa: E501
1265
+ if 'id' in params:
1266
+ query_params.append(('id', params['id'])) # noqa: E501
1263
1267
 
1264
1268
  header_params = {}
1265
1269
 
@@ -1709,3 +1713,116 @@ class ModelsStoreApi(object):
1709
1713
  _preload_content=params.get('_preload_content', True),
1710
1714
  _request_timeout=params.get('_request_timeout'),
1711
1715
  collection_formats=collection_formats)
1716
+
1717
+ def models_store_update_model_visibility(self, body: 'ModelIdVisibilityBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1UpdateModelVisibilityResponse': # noqa: E501
1718
+ """models_store_update_model_visibility # noqa: E501
1719
+
1720
+ This method makes a synchronous HTTP request by default. To make an
1721
+ asynchronous HTTP request, please pass async_req=True
1722
+ >>> thread = api.models_store_update_model_visibility(body, project_id, model_id, async_req=True)
1723
+ >>> result = thread.get()
1724
+
1725
+ :param async_req bool
1726
+ :param ModelIdVisibilityBody body: (required)
1727
+ :param str project_id: (required)
1728
+ :param str model_id: (required)
1729
+ :return: V1UpdateModelVisibilityResponse
1730
+ If the method is called asynchronously,
1731
+ returns the request thread.
1732
+ """
1733
+ kwargs['_return_http_data_only'] = True
1734
+ if kwargs.get('async_req'):
1735
+ return self.models_store_update_model_visibility_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
1736
+ else:
1737
+ (data) = self.models_store_update_model_visibility_with_http_info(body, project_id, model_id, **kwargs) # noqa: E501
1738
+ return data
1739
+
1740
+ def models_store_update_model_visibility_with_http_info(self, body: 'ModelIdVisibilityBody', project_id: 'str', model_id: 'str', **kwargs) -> 'V1UpdateModelVisibilityResponse': # noqa: E501
1741
+ """models_store_update_model_visibility # noqa: E501
1742
+
1743
+ This method makes a synchronous HTTP request by default. To make an
1744
+ asynchronous HTTP request, please pass async_req=True
1745
+ >>> thread = api.models_store_update_model_visibility_with_http_info(body, project_id, model_id, async_req=True)
1746
+ >>> result = thread.get()
1747
+
1748
+ :param async_req bool
1749
+ :param ModelIdVisibilityBody body: (required)
1750
+ :param str project_id: (required)
1751
+ :param str model_id: (required)
1752
+ :return: V1UpdateModelVisibilityResponse
1753
+ If the method is called asynchronously,
1754
+ returns the request thread.
1755
+ """
1756
+
1757
+ all_params = ['body', 'project_id', 'model_id'] # noqa: E501
1758
+ all_params.append('async_req')
1759
+ all_params.append('_return_http_data_only')
1760
+ all_params.append('_preload_content')
1761
+ all_params.append('_request_timeout')
1762
+
1763
+ params = locals()
1764
+ for key, val in six.iteritems(params['kwargs']):
1765
+ if key not in all_params:
1766
+ raise TypeError(
1767
+ "Got an unexpected keyword argument '%s'"
1768
+ " to method models_store_update_model_visibility" % key
1769
+ )
1770
+ params[key] = val
1771
+ del params['kwargs']
1772
+ # verify the required parameter 'body' is set
1773
+ if ('body' not in params or
1774
+ params['body'] is None):
1775
+ raise ValueError("Missing the required parameter `body` when calling `models_store_update_model_visibility`") # noqa: E501
1776
+ # verify the required parameter 'project_id' is set
1777
+ if ('project_id' not in params or
1778
+ params['project_id'] is None):
1779
+ raise ValueError("Missing the required parameter `project_id` when calling `models_store_update_model_visibility`") # noqa: E501
1780
+ # verify the required parameter 'model_id' is set
1781
+ if ('model_id' not in params or
1782
+ params['model_id'] is None):
1783
+ raise ValueError("Missing the required parameter `model_id` when calling `models_store_update_model_visibility`") # noqa: E501
1784
+
1785
+ collection_formats = {}
1786
+
1787
+ path_params = {}
1788
+ if 'project_id' in params:
1789
+ path_params['projectId'] = params['project_id'] # noqa: E501
1790
+ if 'model_id' in params:
1791
+ path_params['modelId'] = params['model_id'] # noqa: E501
1792
+
1793
+ query_params = []
1794
+
1795
+ header_params = {}
1796
+
1797
+ form_params = []
1798
+ local_var_files = {}
1799
+
1800
+ body_params = None
1801
+ if 'body' in params:
1802
+ body_params = params['body']
1803
+ # HTTP header `Accept`
1804
+ header_params['Accept'] = self.api_client.select_header_accept(
1805
+ ['application/json']) # noqa: E501
1806
+
1807
+ # HTTP header `Content-Type`
1808
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1809
+ ['application/json']) # noqa: E501
1810
+
1811
+ # Authentication setting
1812
+ auth_settings = [] # noqa: E501
1813
+
1814
+ return self.api_client.call_api(
1815
+ '/v1/projects/{projectId}/models/{modelId}/visibility', 'PUT',
1816
+ path_params,
1817
+ query_params,
1818
+ header_params,
1819
+ body=body_params,
1820
+ post_params=form_params,
1821
+ files=local_var_files,
1822
+ response_type='V1UpdateModelVisibilityResponse', # noqa: E501
1823
+ auth_settings=auth_settings,
1824
+ async_req=params.get('async_req'),
1825
+ _return_http_data_only=params.get('_return_http_data_only'),
1826
+ _preload_content=params.get('_preload_content', True),
1827
+ _request_timeout=params.get('_request_timeout'),
1828
+ collection_formats=collection_formats)
@@ -101,6 +101,7 @@ from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body impo
101
101
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
102
102
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_id_body import MetricsstreamIdBody
103
103
  from lightning_sdk.lightning_cloud.openapi.models.model_id_versions_body import ModelIdVersionsBody
104
+ from lightning_sdk.lightning_cloud.openapi.models.model_id_visibility_body import ModelIdVisibilityBody
104
105
  from lightning_sdk.lightning_cloud.openapi.models.models_model_id_body import ModelsModelIdBody
105
106
  from lightning_sdk.lightning_cloud.openapi.models.multimachinejobs_id_body import MultimachinejobsIdBody
106
107
  from lightning_sdk.lightning_cloud.openapi.models.multipartuploads_upload_id_body import MultipartuploadsUploadIdBody
@@ -110,7 +111,6 @@ from lightning_sdk.lightning_cloud.openapi.models.orgs_id_body import OrgsIdBody
110
111
  from lightning_sdk.lightning_cloud.openapi.models.profiler_captures_body import ProfilerCapturesBody
111
112
  from lightning_sdk.lightning_cloud.openapi.models.profiler_enabled_body import ProfilerEnabledBody
112
113
  from lightning_sdk.lightning_cloud.openapi.models.project_id_agentmanagedendpoints_body import ProjectIdAgentmanagedendpointsBody
113
- from lightning_sdk.lightning_cloud.openapi.models.project_id_agentmanagedmodels_body import ProjectIdAgentmanagedmodelsBody
114
114
  from lightning_sdk.lightning_cloud.openapi.models.project_id_agents_body import ProjectIdAgentsBody
115
115
  from lightning_sdk.lightning_cloud.openapi.models.project_id_cloudspaces_body import ProjectIdCloudspacesBody
116
116
  from lightning_sdk.lightning_cloud.openapi.models.project_id_clusters_body import ProjectIdClustersBody
@@ -186,6 +186,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_billing_feature import V1Bi
186
186
  from lightning_sdk.lightning_cloud.openapi.models.v1_billing_period import V1BillingPeriod
187
187
  from lightning_sdk.lightning_cloud.openapi.models.v1_billing_subscription import V1BillingSubscription
188
188
  from lightning_sdk.lightning_cloud.openapi.models.v1_billing_tier import V1BillingTier
189
+ from lightning_sdk.lightning_cloud.openapi.models.v1_body import V1Body
189
190
  from lightning_sdk.lightning_cloud.openapi.models.v1_build_spec import V1BuildSpec
190
191
  from lightning_sdk.lightning_cloud.openapi.models.v1_cpu_system_metrics import V1CPUSystemMetrics
191
192
  from lightning_sdk.lightning_cloud.openapi.models.v1_cancel_cloud_space_instance_switch_response import V1CancelCloudSpaceInstanceSwitchResponse
@@ -303,7 +304,6 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningwork_respon
303
304
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lit_page_response import V1DeleteLitPageResponse
304
305
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_logger_artifact_response import V1DeleteLoggerArtifactResponse
305
306
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_managed_endpoint_response import V1DeleteManagedEndpointResponse
306
- from lightning_sdk.lightning_cloud.openapi.models.v1_delete_managed_model_response import V1DeleteManagedModelResponse
307
307
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_metrics_stream_response import V1DeleteMetricsStreamResponse
308
308
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_model_response import V1DeleteModelResponse
309
309
  from lightning_sdk.lightning_cloud.openapi.models.v1_delete_model_version_response import V1DeleteModelVersionResponse
@@ -329,6 +329,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_user_slurm_job_respo
329
329
  from lightning_sdk.lightning_cloud.openapi.models.v1_dependency_cache_state import V1DependencyCacheState
330
330
  from lightning_sdk.lightning_cloud.openapi.models.v1_dependency_file_info import V1DependencyFileInfo
331
331
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment import V1Deployment
332
+ from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_api import V1DeploymentAPI
332
333
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_event import V1DeploymentEvent
333
334
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_event_type import V1DeploymentEventType
334
335
  from lightning_sdk.lightning_cloud.openapi.models.v1_deployment_metrics import V1DeploymentMetrics
@@ -516,7 +517,6 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningwork_response
516
517
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lit_pages_response import V1ListLitPagesResponse
517
518
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_logger_artifact_response import V1ListLoggerArtifactResponse
518
519
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_managed_endpoints_response import V1ListManagedEndpointsResponse
519
- from lightning_sdk.lightning_cloud.openapi.models.v1_list_managed_models_response import V1ListManagedModelsResponse
520
520
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_memberships_response import V1ListMembershipsResponse
521
521
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_metrics_streams_response import V1ListMetricsStreamsResponse
522
522
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_model_versions_response import V1ListModelVersionsResponse
@@ -562,6 +562,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_request im
562
562
  from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_response import V1MagicLinkLoginResponse
563
563
  from lightning_sdk.lightning_cloud.openapi.models.v1_managed_endpoint import V1ManagedEndpoint
564
564
  from lightning_sdk.lightning_cloud.openapi.models.v1_managed_model import V1ManagedModel
565
+ from lightning_sdk.lightning_cloud.openapi.models.v1_managed_model_abilities import V1ManagedModelAbilities
565
566
  from lightning_sdk.lightning_cloud.openapi.models.v1_membership import V1Membership
566
567
  from lightning_sdk.lightning_cloud.openapi.models.v1_message import V1Message
567
568
  from lightning_sdk.lightning_cloud.openapi.models.v1_message_author import V1MessageAuthor
@@ -617,6 +618,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_publish_cloud_space_respons
617
618
  from lightning_sdk.lightning_cloud.openapi.models.v1_published_cloud_space_response import V1PublishedCloudSpaceResponse
618
619
  from lightning_sdk.lightning_cloud.openapi.models.v1_purchase_capacity_block_response import V1PurchaseCapacityBlockResponse
619
620
  from lightning_sdk.lightning_cloud.openapi.models.v1_python_dependency_info import V1PythonDependencyInfo
621
+ from lightning_sdk.lightning_cloud.openapi.models.v1_query_param import V1QueryParam
620
622
  from lightning_sdk.lightning_cloud.openapi.models.v1_query_result import V1QueryResult
621
623
  from lightning_sdk.lightning_cloud.openapi.models.v1_query_result_row import V1QueryResultRow
622
624
  from lightning_sdk.lightning_cloud.openapi.models.v1_quest import V1Quest
@@ -635,6 +637,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_requ
635
637
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
636
638
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
637
639
  from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
640
+ from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
638
641
  from lightning_sdk.lightning_cloud.openapi.models.v1_resources import V1Resources
639
642
  from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice import V1ResponseChoice
640
643
  from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice_delta import V1ResponseChoiceDelta
@@ -700,6 +703,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators
700
703
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
701
704
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
702
705
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_page_response import V1UpdateLitPageResponse
706
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_model_visibility_response import V1UpdateModelVisibilityResponse
703
707
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_project_cluster_accelerators_response import V1UpdateProjectClusterAcceleratorsResponse
704
708
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_shared_metrics_stream_response import V1UpdateSharedMetricsStreamResponse
705
709
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_snowflake_query_response import V1UpdateSnowflakeQueryResponse
@@ -41,6 +41,7 @@ class DeploymentsIdBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'apis': 'list[V1DeploymentAPI]',
44
45
  'autoscaling': 'V1AutoscalingSpec',
45
46
  'cloudspace_id': 'str',
46
47
  'created_at': 'datetime',
@@ -60,6 +61,7 @@ class DeploymentsIdBody(object):
60
61
  }
61
62
 
62
63
  attribute_map = {
64
+ 'apis': 'apis',
63
65
  'autoscaling': 'autoscaling',
64
66
  'cloudspace_id': 'cloudspaceId',
65
67
  'created_at': 'createdAt',
@@ -78,8 +80,9 @@ class DeploymentsIdBody(object):
78
80
  'user_id': 'userId'
79
81
  }
80
82
 
81
- def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
83
+ 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, 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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
82
84
  """DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
85
+ self._apis = None
83
86
  self._autoscaling = None
84
87
  self._cloudspace_id = None
85
88
  self._created_at = None
@@ -97,6 +100,8 @@ class DeploymentsIdBody(object):
97
100
  self._updated_at = None
98
101
  self._user_id = None
99
102
  self.discriminator = None
103
+ if apis is not None:
104
+ self.apis = apis
100
105
  if autoscaling is not None:
101
106
  self.autoscaling = autoscaling
102
107
  if cloudspace_id is not None:
@@ -130,6 +135,27 @@ class DeploymentsIdBody(object):
130
135
  if user_id is not None:
131
136
  self.user_id = user_id
132
137
 
138
+ @property
139
+ def apis(self) -> 'list[V1DeploymentAPI]':
140
+ """Gets the apis of this DeploymentsIdBody. # noqa: E501
141
+
142
+
143
+ :return: The apis of this DeploymentsIdBody. # noqa: E501
144
+ :rtype: list[V1DeploymentAPI]
145
+ """
146
+ return self._apis
147
+
148
+ @apis.setter
149
+ def apis(self, apis: 'list[V1DeploymentAPI]'):
150
+ """Sets the apis of this DeploymentsIdBody.
151
+
152
+
153
+ :param apis: The apis of this DeploymentsIdBody. # noqa: E501
154
+ :type: list[V1DeploymentAPI]
155
+ """
156
+
157
+ self._apis = apis
158
+
133
159
  @property
134
160
  def autoscaling(self) -> 'V1AutoscalingSpec':
135
161
  """Gets the autoscaling of this DeploymentsIdBody. # 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 ModelIdVisibilityBody(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
+ 'visibility': 'V1ResourceVisibility'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'visibility': 'visibility'
49
+ }
50
+
51
+ def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
52
+ """ModelIdVisibilityBody - a model defined in Swagger""" # noqa: E501
53
+ self._visibility = None
54
+ self.discriminator = None
55
+ if visibility is not None:
56
+ self.visibility = visibility
57
+
58
+ @property
59
+ def visibility(self) -> 'V1ResourceVisibility':
60
+ """Gets the visibility of this ModelIdVisibilityBody. # noqa: E501
61
+
62
+
63
+ :return: The visibility of this ModelIdVisibilityBody. # noqa: E501
64
+ :rtype: V1ResourceVisibility
65
+ """
66
+ return self._visibility
67
+
68
+ @visibility.setter
69
+ def visibility(self, visibility: 'V1ResourceVisibility'):
70
+ """Sets the visibility of this ModelIdVisibilityBody.
71
+
72
+
73
+ :param visibility: The visibility of this ModelIdVisibilityBody. # noqa: E501
74
+ :type: V1ResourceVisibility
75
+ """
76
+
77
+ self._visibility = visibility
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(ModelIdVisibilityBody, 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: 'ModelIdVisibilityBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, ModelIdVisibilityBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'ModelIdVisibilityBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -43,6 +43,7 @@ class V1AWSDirectV1(object):
43
43
  swagger_types = {
44
44
  'bucket_endpoint': 'str',
45
45
  'bucket_name': 'str',
46
+ 'cloud_formation_disabled': 'bool',
46
47
  'efs_enabled': 'bool',
47
48
  'external_id': 'str',
48
49
  'primary_region': 'str',
@@ -56,6 +57,7 @@ class V1AWSDirectV1(object):
56
57
  attribute_map = {
57
58
  'bucket_endpoint': 'bucketEndpoint',
58
59
  'bucket_name': 'bucketName',
60
+ 'cloud_formation_disabled': 'cloudFormationDisabled',
59
61
  'efs_enabled': 'efsEnabled',
60
62
  'external_id': 'externalId',
61
63
  'primary_region': 'primaryRegion',
@@ -66,10 +68,11 @@ class V1AWSDirectV1(object):
66
68
  'use_launch_templates': 'useLaunchTemplates'
67
69
  }
68
70
 
69
- def __init__(self, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
71
+ def __init__(self, bucket_endpoint: 'str' =None, bucket_name: 'str' =None, cloud_formation_disabled: 'bool' =None, efs_enabled: 'bool' =None, external_id: 'str' =None, primary_region: 'str' =None, regional_load_balancers: 'list[V1RegionalLoadBalancer]' =None, regions: 'list[str]' =None, role_arn: 'str' =None, source_cidr_ips: 'list[str]' =None, use_launch_templates: 'bool' =None): # noqa: E501
70
72
  """V1AWSDirectV1 - a model defined in Swagger""" # noqa: E501
71
73
  self._bucket_endpoint = None
72
74
  self._bucket_name = None
75
+ self._cloud_formation_disabled = None
73
76
  self._efs_enabled = None
74
77
  self._external_id = None
75
78
  self._primary_region = None
@@ -83,6 +86,8 @@ class V1AWSDirectV1(object):
83
86
  self.bucket_endpoint = bucket_endpoint
84
87
  if bucket_name is not None:
85
88
  self.bucket_name = bucket_name
89
+ if cloud_formation_disabled is not None:
90
+ self.cloud_formation_disabled = cloud_formation_disabled
86
91
  if efs_enabled is not None:
87
92
  self.efs_enabled = efs_enabled
88
93
  if external_id is not None:
@@ -142,6 +147,27 @@ class V1AWSDirectV1(object):
142
147
 
143
148
  self._bucket_name = bucket_name
144
149
 
150
+ @property
151
+ def cloud_formation_disabled(self) -> 'bool':
152
+ """Gets the cloud_formation_disabled of this V1AWSDirectV1. # noqa: E501
153
+
154
+
155
+ :return: The cloud_formation_disabled of this V1AWSDirectV1. # noqa: E501
156
+ :rtype: bool
157
+ """
158
+ return self._cloud_formation_disabled
159
+
160
+ @cloud_formation_disabled.setter
161
+ def cloud_formation_disabled(self, cloud_formation_disabled: 'bool'):
162
+ """Sets the cloud_formation_disabled of this V1AWSDirectV1.
163
+
164
+
165
+ :param cloud_formation_disabled: The cloud_formation_disabled of this V1AWSDirectV1. # noqa: E501
166
+ :type: bool
167
+ """
168
+
169
+ self._cloud_formation_disabled = cloud_formation_disabled
170
+
145
171
  @property
146
172
  def efs_enabled(self) -> 'bool':
147
173
  """Gets the efs_enabled of this V1AWSDirectV1. # noqa: E501
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class ProjectIdAgentmanagedmodelsBody(object):
31
+ class V1Body(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -41,66 +41,40 @@ class ProjectIdAgentmanagedmodelsBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'model': 'V1ManagedModel',
45
- 'org_id': 'str'
44
+ 'raw_json': 'str'
46
45
  }
47
46
 
48
47
  attribute_map = {
49
- 'model': 'model',
50
- 'org_id': 'orgId'
48
+ 'raw_json': 'rawJson'
51
49
  }
52
50
 
53
- def __init__(self, model: 'V1ManagedModel' =None, org_id: 'str' =None): # noqa: E501
54
- """ProjectIdAgentmanagedmodelsBody - a model defined in Swagger""" # noqa: E501
55
- self._model = None
56
- self._org_id = None
51
+ def __init__(self, raw_json: 'str' =None): # noqa: E501
52
+ """V1Body - a model defined in Swagger""" # noqa: E501
53
+ self._raw_json = None
57
54
  self.discriminator = None
58
- if model is not None:
59
- self.model = model
60
- if org_id is not None:
61
- self.org_id = org_id
55
+ if raw_json is not None:
56
+ self.raw_json = raw_json
62
57
 
63
58
  @property
64
- def model(self) -> 'V1ManagedModel':
65
- """Gets the model of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
59
+ def raw_json(self) -> 'str':
60
+ """Gets the raw_json of this V1Body. # noqa: E501
66
61
 
67
62
 
68
- :return: The model of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
69
- :rtype: V1ManagedModel
70
- """
71
- return self._model
72
-
73
- @model.setter
74
- def model(self, model: 'V1ManagedModel'):
75
- """Sets the model of this ProjectIdAgentmanagedmodelsBody.
76
-
77
-
78
- :param model: The model of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
79
- :type: V1ManagedModel
80
- """
81
-
82
- self._model = model
83
-
84
- @property
85
- def org_id(self) -> 'str':
86
- """Gets the org_id of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
87
-
88
-
89
- :return: The org_id of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
63
+ :return: The raw_json of this V1Body. # noqa: E501
90
64
  :rtype: str
91
65
  """
92
- return self._org_id
66
+ return self._raw_json
93
67
 
94
- @org_id.setter
95
- def org_id(self, org_id: 'str'):
96
- """Sets the org_id of this ProjectIdAgentmanagedmodelsBody.
68
+ @raw_json.setter
69
+ def raw_json(self, raw_json: 'str'):
70
+ """Sets the raw_json of this V1Body.
97
71
 
98
72
 
99
- :param org_id: The org_id of this ProjectIdAgentmanagedmodelsBody. # noqa: E501
73
+ :param raw_json: The raw_json of this V1Body. # noqa: E501
100
74
  :type: str
101
75
  """
102
76
 
103
- self._org_id = org_id
77
+ self._raw_json = raw_json
104
78
 
105
79
  def to_dict(self) -> dict:
106
80
  """Returns the model properties as a dict"""
@@ -123,7 +97,7 @@ class ProjectIdAgentmanagedmodelsBody(object):
123
97
  ))
124
98
  else:
125
99
  result[attr] = value
126
- if issubclass(ProjectIdAgentmanagedmodelsBody, dict):
100
+ if issubclass(V1Body, dict):
127
101
  for key, value in self.items():
128
102
  result[key] = value
129
103
 
@@ -137,13 +111,13 @@ class ProjectIdAgentmanagedmodelsBody(object):
137
111
  """For `print` and `pprint`"""
138
112
  return self.to_str()
139
113
 
140
- def __eq__(self, other: 'ProjectIdAgentmanagedmodelsBody') -> bool:
114
+ def __eq__(self, other: 'V1Body') -> bool:
141
115
  """Returns true if both objects are equal"""
142
- if not isinstance(other, ProjectIdAgentmanagedmodelsBody):
116
+ if not isinstance(other, V1Body):
143
117
  return False
144
118
 
145
119
  return self.__dict__ == other.__dict__
146
120
 
147
- def __ne__(self, other: 'ProjectIdAgentmanagedmodelsBody') -> bool:
121
+ def __ne__(self, other: 'V1Body') -> bool:
148
122
  """Returns true if both objects are not equal"""
149
123
  return not self == other
@@ -41,6 +41,7 @@ class V1Deployment(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'apis': 'list[V1DeploymentAPI]',
44
45
  'autoscaling': 'V1AutoscalingSpec',
45
46
  'cloudspace_id': 'str',
46
47
  'created_at': 'datetime',
@@ -62,6 +63,7 @@ class V1Deployment(object):
62
63
  }
63
64
 
64
65
  attribute_map = {
66
+ 'apis': 'apis',
65
67
  'autoscaling': 'autoscaling',
66
68
  'cloudspace_id': 'cloudspaceId',
67
69
  'created_at': 'createdAt',
@@ -82,8 +84,9 @@ class V1Deployment(object):
82
84
  'user_id': 'userId'
83
85
  }
84
86
 
85
- def __init__(self, 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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
87
+ 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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
86
88
  """V1Deployment - a model defined in Swagger""" # noqa: E501
89
+ self._apis = None
87
90
  self._autoscaling = None
88
91
  self._cloudspace_id = None
89
92
  self._created_at = None
@@ -103,6 +106,8 @@ class V1Deployment(object):
103
106
  self._updated_at = None
104
107
  self._user_id = None
105
108
  self.discriminator = None
109
+ if apis is not None:
110
+ self.apis = apis
106
111
  if autoscaling is not None:
107
112
  self.autoscaling = autoscaling
108
113
  if cloudspace_id is not None:
@@ -140,6 +145,27 @@ class V1Deployment(object):
140
145
  if user_id is not None:
141
146
  self.user_id = user_id
142
147
 
148
+ @property
149
+ def apis(self) -> 'list[V1DeploymentAPI]':
150
+ """Gets the apis of this V1Deployment. # noqa: E501
151
+
152
+
153
+ :return: The apis of this V1Deployment. # noqa: E501
154
+ :rtype: list[V1DeploymentAPI]
155
+ """
156
+ return self._apis
157
+
158
+ @apis.setter
159
+ def apis(self, apis: 'list[V1DeploymentAPI]'):
160
+ """Sets the apis of this V1Deployment.
161
+
162
+
163
+ :param apis: The apis of this V1Deployment. # noqa: E501
164
+ :type: list[V1DeploymentAPI]
165
+ """
166
+
167
+ self._apis = apis
168
+
143
169
  @property
144
170
  def autoscaling(self) -> 'V1AutoscalingSpec':
145
171
  """Gets the autoscaling of this V1Deployment. # noqa: E501