lightning-sdk 0.1.39__py3-none-any.whl → 0.1.41__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 (48) 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 +148 -0
  8. lightning_sdk/api/teamspace_api.py +0 -9
  9. lightning_sdk/api/utils.py +2 -1
  10. lightning_sdk/cli/mmt.py +137 -0
  11. lightning_sdk/job/base.py +2 -3
  12. lightning_sdk/job/v1.py +2 -1
  13. lightning_sdk/job/v2.py +6 -9
  14. lightning_sdk/lightning_cloud/openapi/__init__.py +8 -3
  15. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +90 -284
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/api/secret_service_api.py +5 -1
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -3
  19. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/model_id_visibility_body.py +123 -0
  22. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/{project_id_agentmanagedmodels_body.py → v1_body.py} +21 -47
  24. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +227 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_spec.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_header.py +175 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +55 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model_abilities.py +175 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +29 -3
  33. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_state.py +1 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_query_param.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/{v1_list_managed_models_response.py → v1_resource_visibility.py} +23 -23
  37. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  39. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_managed_model_response.py → v1_update_model_visibility_response.py} +6 -6
  40. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +41 -15
  41. lightning_sdk/models.py +29 -8
  42. lightning_sdk/teamspace.py +17 -15
  43. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.dist-info}/METADATA +1 -1
  44. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.dist-info}/RECORD +48 -36
  45. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.dist-info}/entry_points.txt +1 -0
  46. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.dist-info}/LICENSE +0 -0
  47. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.dist-info}/WHEEL +0 -0
  48. {lightning_sdk-0.1.39.dist-info → lightning_sdk-0.1.41.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)
@@ -643,6 +643,7 @@ class SecretServiceApi(object):
643
643
 
644
644
  :param async_req bool
645
645
  :param str project_id: (required)
646
+ :param str type:
646
647
  :return: V1ListSecretsResponse
647
648
  If the method is called asynchronously,
648
649
  returns the request thread.
@@ -664,12 +665,13 @@ class SecretServiceApi(object):
664
665
 
665
666
  :param async_req bool
666
667
  :param str project_id: (required)
668
+ :param str type:
667
669
  :return: V1ListSecretsResponse
668
670
  If the method is called asynchronously,
669
671
  returns the request thread.
670
672
  """
671
673
 
672
- all_params = ['project_id'] # noqa: E501
674
+ all_params = ['project_id', 'type'] # noqa: E501
673
675
  all_params.append('async_req')
674
676
  all_params.append('_return_http_data_only')
675
677
  all_params.append('_preload_content')
@@ -696,6 +698,8 @@ class SecretServiceApi(object):
696
698
  path_params['projectId'] = params['project_id'] # noqa: E501
697
699
 
698
700
  query_params = []
701
+ if 'type' in params:
702
+ query_params.append(('type', params['type'])) # noqa: E501
699
703
 
700
704
  header_params = {}
701
705
 
@@ -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
@@ -423,6 +424,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_storage_breakdown_
423
424
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_user_storage_response import V1GetUserStorageResponse
424
425
  from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1 import V1GoogleCloudDirectV1
425
426
  from lightning_sdk.lightning_cloud.openapi.models.v1_google_cloud_direct_v1_status import V1GoogleCloudDirectV1Status
427
+ from lightning_sdk.lightning_cloud.openapi.models.v1_header import V1Header
426
428
  from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_exec import V1HealthCheckExec
427
429
  from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get import V1HealthCheckHttpGet
428
430
  from lightning_sdk.lightning_cloud.openapi.models.v1_ids_logger_metrics import V1IdsLoggerMetrics
@@ -516,7 +518,6 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningwork_response
516
518
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_lit_pages_response import V1ListLitPagesResponse
517
519
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_logger_artifact_response import V1ListLoggerArtifactResponse
518
520
  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
521
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_memberships_response import V1ListMembershipsResponse
521
522
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_metrics_streams_response import V1ListMetricsStreamsResponse
522
523
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_model_versions_response import V1ListModelVersionsResponse
@@ -562,6 +563,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_request im
562
563
  from lightning_sdk.lightning_cloud.openapi.models.v1_magic_link_login_response import V1MagicLinkLoginResponse
563
564
  from lightning_sdk.lightning_cloud.openapi.models.v1_managed_endpoint import V1ManagedEndpoint
564
565
  from lightning_sdk.lightning_cloud.openapi.models.v1_managed_model import V1ManagedModel
566
+ from lightning_sdk.lightning_cloud.openapi.models.v1_managed_model_abilities import V1ManagedModelAbilities
565
567
  from lightning_sdk.lightning_cloud.openapi.models.v1_membership import V1Membership
566
568
  from lightning_sdk.lightning_cloud.openapi.models.v1_message import V1Message
567
569
  from lightning_sdk.lightning_cloud.openapi.models.v1_message_author import V1MessageAuthor
@@ -617,6 +619,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_publish_cloud_space_respons
617
619
  from lightning_sdk.lightning_cloud.openapi.models.v1_published_cloud_space_response import V1PublishedCloudSpaceResponse
618
620
  from lightning_sdk.lightning_cloud.openapi.models.v1_purchase_capacity_block_response import V1PurchaseCapacityBlockResponse
619
621
  from lightning_sdk.lightning_cloud.openapi.models.v1_python_dependency_info import V1PythonDependencyInfo
622
+ from lightning_sdk.lightning_cloud.openapi.models.v1_query_param import V1QueryParam
620
623
  from lightning_sdk.lightning_cloud.openapi.models.v1_query_result import V1QueryResult
621
624
  from lightning_sdk.lightning_cloud.openapi.models.v1_query_result_row import V1QueryResultRow
622
625
  from lightning_sdk.lightning_cloud.openapi.models.v1_quest import V1Quest
@@ -635,6 +638,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_requ
635
638
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_cluster_access_response import V1RequestClusterAccessResponse
636
639
  from lightning_sdk.lightning_cloud.openapi.models.v1_request_verification_code_response import V1RequestVerificationCodeResponse
637
640
  from lightning_sdk.lightning_cloud.openapi.models.v1_resource_tag import V1ResourceTag
641
+ from lightning_sdk.lightning_cloud.openapi.models.v1_resource_visibility import V1ResourceVisibility
638
642
  from lightning_sdk.lightning_cloud.openapi.models.v1_resources import V1Resources
639
643
  from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice import V1ResponseChoice
640
644
  from lightning_sdk.lightning_cloud.openapi.models.v1_response_choice_delta import V1ResponseChoiceDelta
@@ -700,6 +704,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators
700
704
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
701
705
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
702
706
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_lit_page_response import V1UpdateLitPageResponse
707
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_model_visibility_response import V1UpdateModelVisibilityResponse
703
708
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_project_cluster_accelerators_response import V1UpdateProjectClusterAcceleratorsResponse
704
709
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_shared_metrics_stream_response import V1UpdateSharedMetricsStreamResponse
705
710
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_snowflake_query_response import V1UpdateSnowflakeQueryResponse
@@ -41,6 +41,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
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
  'cluster_id': 'str',
@@ -54,6 +55,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
54
55
  }
55
56
 
56
57
  attribute_map = {
58
+ 'apis': 'apis',
57
59
  'autoscaling': 'autoscaling',
58
60
  'cloudspace_id': 'cloudspaceId',
59
61
  'cluster_id': 'clusterId',
@@ -66,8 +68,9 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
66
68
  'strategy': 'strategy'
67
69
  }
68
70
 
69
- def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
71
+ def __init__(self, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
70
72
  """CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs - a model defined in Swagger""" # noqa: E501
73
+ self._apis = None
71
74
  self._autoscaling = None
72
75
  self._cloudspace_id = None
73
76
  self._cluster_id = None
@@ -79,6 +82,8 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
79
82
  self._spec = None
80
83
  self._strategy = None
81
84
  self.discriminator = None
85
+ if apis is not None:
86
+ self.apis = apis
82
87
  if autoscaling is not None:
83
88
  self.autoscaling = autoscaling
84
89
  if cloudspace_id is not None:
@@ -100,6 +105,27 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
100
105
  if strategy is not None:
101
106
  self.strategy = strategy
102
107
 
108
+ @property
109
+ def apis(self) -> 'list[V1DeploymentAPI]':
110
+ """Gets the apis of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
111
+
112
+
113
+ :return: The apis of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
114
+ :rtype: list[V1DeploymentAPI]
115
+ """
116
+ return self._apis
117
+
118
+ @apis.setter
119
+ def apis(self, apis: 'list[V1DeploymentAPI]'):
120
+ """Sets the apis of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs.
121
+
122
+
123
+ :param apis: The apis of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
124
+ :type: list[V1DeploymentAPI]
125
+ """
126
+
127
+ self._apis = apis
128
+
103
129
  @property
104
130
  def autoscaling(self) -> 'V1AutoscalingSpec':
105
131
  """Gets the autoscaling of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
@@ -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