lightning-sdk 0.2.17__py3-none-any.whl → 0.2.19__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/deployment_api.py +2 -0
- lightning_sdk/api/llm_api.py +3 -2
- lightning_sdk/deployment/deployment.py +2 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +7 -0
- lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -157
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +133 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_list_blog_posts_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -157
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +41 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +223 -67
- lightning_sdk/llm/llm.py +0 -2
- lightning_sdk/serve.py +1 -0
- lightning_sdk/services/license.py +87 -22
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/RECORD +48 -40
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.17.dist-info → lightning_sdk-0.2.19.dist-info}/top_level.txt +0 -0
|
@@ -7737,6 +7737,119 @@ class CloudSpaceServiceApi(object):
|
|
|
7737
7737
|
_request_timeout=params.get('_request_timeout'),
|
|
7738
7738
|
collection_formats=collection_formats)
|
|
7739
7739
|
|
|
7740
|
+
def cloud_space_service_transfer_cloud_space(self, body: 'IdTransferBody', project_id: 'str', id: 'str', **kwargs) -> 'V1TransferCloudSpaceResponse': # noqa: E501
|
|
7741
|
+
"""cloud_space_service_transfer_cloud_space # noqa: E501
|
|
7742
|
+
|
|
7743
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
7744
|
+
asynchronous HTTP request, please pass async_req=True
|
|
7745
|
+
>>> thread = api.cloud_space_service_transfer_cloud_space(body, project_id, id, async_req=True)
|
|
7746
|
+
>>> result = thread.get()
|
|
7747
|
+
|
|
7748
|
+
:param async_req bool
|
|
7749
|
+
:param IdTransferBody body: (required)
|
|
7750
|
+
:param str project_id: (required)
|
|
7751
|
+
:param str id: (required)
|
|
7752
|
+
:return: V1TransferCloudSpaceResponse
|
|
7753
|
+
If the method is called asynchronously,
|
|
7754
|
+
returns the request thread.
|
|
7755
|
+
"""
|
|
7756
|
+
kwargs['_return_http_data_only'] = True
|
|
7757
|
+
if kwargs.get('async_req'):
|
|
7758
|
+
return self.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
7759
|
+
else:
|
|
7760
|
+
(data) = self.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, **kwargs) # noqa: E501
|
|
7761
|
+
return data
|
|
7762
|
+
|
|
7763
|
+
def cloud_space_service_transfer_cloud_space_with_http_info(self, body: 'IdTransferBody', project_id: 'str', id: 'str', **kwargs) -> 'V1TransferCloudSpaceResponse': # noqa: E501
|
|
7764
|
+
"""cloud_space_service_transfer_cloud_space # noqa: E501
|
|
7765
|
+
|
|
7766
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
7767
|
+
asynchronous HTTP request, please pass async_req=True
|
|
7768
|
+
>>> thread = api.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, async_req=True)
|
|
7769
|
+
>>> result = thread.get()
|
|
7770
|
+
|
|
7771
|
+
:param async_req bool
|
|
7772
|
+
:param IdTransferBody body: (required)
|
|
7773
|
+
:param str project_id: (required)
|
|
7774
|
+
:param str id: (required)
|
|
7775
|
+
:return: V1TransferCloudSpaceResponse
|
|
7776
|
+
If the method is called asynchronously,
|
|
7777
|
+
returns the request thread.
|
|
7778
|
+
"""
|
|
7779
|
+
|
|
7780
|
+
all_params = ['body', 'project_id', 'id'] # noqa: E501
|
|
7781
|
+
all_params.append('async_req')
|
|
7782
|
+
all_params.append('_return_http_data_only')
|
|
7783
|
+
all_params.append('_preload_content')
|
|
7784
|
+
all_params.append('_request_timeout')
|
|
7785
|
+
|
|
7786
|
+
params = locals()
|
|
7787
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
7788
|
+
if key not in all_params:
|
|
7789
|
+
raise TypeError(
|
|
7790
|
+
"Got an unexpected keyword argument '%s'"
|
|
7791
|
+
" to method cloud_space_service_transfer_cloud_space" % key
|
|
7792
|
+
)
|
|
7793
|
+
params[key] = val
|
|
7794
|
+
del params['kwargs']
|
|
7795
|
+
# verify the required parameter 'body' is set
|
|
7796
|
+
if ('body' not in params or
|
|
7797
|
+
params['body'] is None):
|
|
7798
|
+
raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
|
|
7799
|
+
# verify the required parameter 'project_id' is set
|
|
7800
|
+
if ('project_id' not in params or
|
|
7801
|
+
params['project_id'] is None):
|
|
7802
|
+
raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
|
|
7803
|
+
# verify the required parameter 'id' is set
|
|
7804
|
+
if ('id' not in params or
|
|
7805
|
+
params['id'] is None):
|
|
7806
|
+
raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
|
|
7807
|
+
|
|
7808
|
+
collection_formats = {}
|
|
7809
|
+
|
|
7810
|
+
path_params = {}
|
|
7811
|
+
if 'project_id' in params:
|
|
7812
|
+
path_params['projectId'] = params['project_id'] # noqa: E501
|
|
7813
|
+
if 'id' in params:
|
|
7814
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
7815
|
+
|
|
7816
|
+
query_params = []
|
|
7817
|
+
|
|
7818
|
+
header_params = {}
|
|
7819
|
+
|
|
7820
|
+
form_params = []
|
|
7821
|
+
local_var_files = {}
|
|
7822
|
+
|
|
7823
|
+
body_params = None
|
|
7824
|
+
if 'body' in params:
|
|
7825
|
+
body_params = params['body']
|
|
7826
|
+
# HTTP header `Accept`
|
|
7827
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
7828
|
+
['application/json']) # noqa: E501
|
|
7829
|
+
|
|
7830
|
+
# HTTP header `Content-Type`
|
|
7831
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
7832
|
+
['application/json']) # noqa: E501
|
|
7833
|
+
|
|
7834
|
+
# Authentication setting
|
|
7835
|
+
auth_settings = [] # noqa: E501
|
|
7836
|
+
|
|
7837
|
+
return self.api_client.call_api(
|
|
7838
|
+
'/v1/projects/{projectId}/cloudspaces/{id}/transfer', 'PUT',
|
|
7839
|
+
path_params,
|
|
7840
|
+
query_params,
|
|
7841
|
+
header_params,
|
|
7842
|
+
body=body_params,
|
|
7843
|
+
post_params=form_params,
|
|
7844
|
+
files=local_var_files,
|
|
7845
|
+
response_type='V1TransferCloudSpaceResponse', # noqa: E501
|
|
7846
|
+
auth_settings=auth_settings,
|
|
7847
|
+
async_req=params.get('async_req'),
|
|
7848
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
7849
|
+
_preload_content=params.get('_preload_content', True),
|
|
7850
|
+
_request_timeout=params.get('_request_timeout'),
|
|
7851
|
+
collection_formats=collection_formats)
|
|
7852
|
+
|
|
7740
7853
|
def cloud_space_service_uninstall_plugin(self, project_id: 'str', id: 'str', plugin_id: 'str', **kwargs) -> 'V1Plugin': # noqa: E501
|
|
7741
7854
|
"""cloud_space_service_uninstall_plugin # noqa: E501
|
|
7742
7855
|
|
|
@@ -35,6 +35,7 @@ from lightning_sdk.lightning_cloud.openapi.models.assistant_id_conversations_bod
|
|
|
35
35
|
from lightning_sdk.lightning_cloud.openapi.models.billing_checkout_body import BillingCheckoutBody
|
|
36
36
|
from lightning_sdk.lightning_cloud.openapi.models.billing_transfer_body import BillingTransferBody
|
|
37
37
|
from lightning_sdk.lightning_cloud.openapi.models.billing_transfer_body1 import BillingTransferBody1
|
|
38
|
+
from lightning_sdk.lightning_cloud.openapi.models.blogposts_id_body import BlogpostsIdBody
|
|
38
39
|
from lightning_sdk.lightning_cloud.openapi.models.captures_id_body import CapturesIdBody
|
|
39
40
|
from lightning_sdk.lightning_cloud.openapi.models.cloud_space_id_versionpublications_body import CloudSpaceIdVersionpublicationsBody
|
|
40
41
|
from lightning_sdk.lightning_cloud.openapi.models.cloud_space_id_versionpublications_body1 import CloudSpaceIdVersionpublicationsBody1
|
|
@@ -98,6 +99,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_reportlogsactivity_body imp
|
|
|
98
99
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportrestarttimings_body import IdReportrestarttimingsBody
|
|
99
100
|
from lightning_sdk.lightning_cloud.openapi.models.id_start_body import IdStartBody
|
|
100
101
|
from lightning_sdk.lightning_cloud.openapi.models.id_storage_body import IdStorageBody
|
|
102
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_transfer_body import IdTransferBody
|
|
101
103
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body import IdUploadsBody
|
|
102
104
|
from lightning_sdk.lightning_cloud.openapi.models.id_uploads_body1 import IdUploadsBody1
|
|
103
105
|
from lightning_sdk.lightning_cloud.openapi.models.id_visibility_body import IdVisibilityBody
|
|
@@ -219,6 +221,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_billing_feature import V1Bi
|
|
|
219
221
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_period import V1BillingPeriod
|
|
220
222
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_subscription import V1BillingSubscription
|
|
221
223
|
from lightning_sdk.lightning_cloud.openapi.models.v1_billing_tier import V1BillingTier
|
|
224
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_blog_post import V1BlogPost
|
|
222
225
|
from lightning_sdk.lightning_cloud.openapi.models.v1_body import V1Body
|
|
223
226
|
from lightning_sdk.lightning_cloud.openapi.models.v1_build_spec import V1BuildSpec
|
|
224
227
|
from lightning_sdk.lightning_cloud.openapi.models.v1_cpu_system_metrics import V1CPUSystemMetrics
|
|
@@ -298,6 +301,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_respo
|
|
|
298
301
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_agent_multipart_upload_response import V1CreateAgentMultipartUploadResponse
|
|
299
302
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_request import V1CreateBillingPortalSessionRequest
|
|
300
303
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_response import V1CreateBillingPortalSessionResponse
|
|
304
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_create_blog_post_request import V1CreateBlogPostRequest
|
|
301
305
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_request import V1CreateCheckoutSessionRequest
|
|
302
306
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_response import V1CreateCheckoutSessionResponse
|
|
303
307
|
from lightning_sdk.lightning_cloud.openapi.models.v1_create_cloud_space_app_instance_response import V1CreateCloudSpaceAppInstanceResponse
|
|
@@ -339,6 +343,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_dataset import V1Dataset
|
|
|
339
343
|
from lightning_sdk.lightning_cloud.openapi.models.v1_dataset_type import V1DatasetType
|
|
340
344
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_affiliate_link_response import V1DeleteAffiliateLinkResponse
|
|
341
345
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_assistant_response import V1DeleteAssistantResponse
|
|
346
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_blog_post_response import V1DeleteBlogPostResponse
|
|
342
347
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_app_response import V1DeleteCloudSpaceAppResponse
|
|
343
348
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_environment_template_response import V1DeleteCloudSpaceEnvironmentTemplateResponse
|
|
344
349
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_cloud_space_response import V1DeleteCloudSpaceResponse
|
|
@@ -566,6 +571,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_affiliate_links_respon
|
|
|
566
571
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_response import V1ListAgentJobArtifactsResponse
|
|
567
572
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
|
|
568
573
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_assistants_response import V1ListAssistantsResponse
|
|
574
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_blog_posts_response import V1ListBlogPostsResponse
|
|
569
575
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_apps_response import V1ListCloudSpaceAppsResponse
|
|
570
576
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_cold_start_metrics_response import V1ListCloudSpaceColdStartMetricsResponse
|
|
571
577
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_cloud_space_environment_templates_response import V1ListCloudSpaceEnvironmentTemplatesResponse
|
|
@@ -848,6 +854,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_system_metrics_list import
|
|
|
848
854
|
from lightning_sdk.lightning_cloud.openapi.models.v1_telemetry import V1Telemetry
|
|
849
855
|
from lightning_sdk.lightning_cloud.openapi.models.v1_timestamp_code_telemetry import V1TimestampCodeTelemetry
|
|
850
856
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transaction import V1Transaction
|
|
857
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_cloud_space_response import V1TransferCloudSpaceResponse
|
|
851
858
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_org_balance_response import V1TransferOrgBalanceResponse
|
|
852
859
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_project_balance_response import V1TransferProjectBalanceResponse
|
|
853
860
|
from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_user_balance_request import V1TransferUserBalanceRequest
|
|
@@ -0,0 +1,253 @@
|
|
|
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 BlogpostsIdBody(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
|
+
'author_id': 'str',
|
|
45
|
+
'category': 'str',
|
|
46
|
+
'description': 'str',
|
|
47
|
+
'image_url': 'str',
|
|
48
|
+
'lit_page_id': 'str',
|
|
49
|
+
'title': 'str'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
'author_id': 'authorId',
|
|
54
|
+
'category': 'category',
|
|
55
|
+
'description': 'description',
|
|
56
|
+
'image_url': 'imageUrl',
|
|
57
|
+
'lit_page_id': 'litPageId',
|
|
58
|
+
'title': 'title'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
|
|
62
|
+
"""BlogpostsIdBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._author_id = None
|
|
64
|
+
self._category = None
|
|
65
|
+
self._description = None
|
|
66
|
+
self._image_url = None
|
|
67
|
+
self._lit_page_id = None
|
|
68
|
+
self._title = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
if author_id is not None:
|
|
71
|
+
self.author_id = author_id
|
|
72
|
+
if category is not None:
|
|
73
|
+
self.category = category
|
|
74
|
+
if description is not None:
|
|
75
|
+
self.description = description
|
|
76
|
+
if image_url is not None:
|
|
77
|
+
self.image_url = image_url
|
|
78
|
+
if lit_page_id is not None:
|
|
79
|
+
self.lit_page_id = lit_page_id
|
|
80
|
+
if title is not None:
|
|
81
|
+
self.title = title
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def author_id(self) -> 'str':
|
|
85
|
+
"""Gets the author_id of this BlogpostsIdBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The author_id of this BlogpostsIdBody. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._author_id
|
|
92
|
+
|
|
93
|
+
@author_id.setter
|
|
94
|
+
def author_id(self, author_id: 'str'):
|
|
95
|
+
"""Sets the author_id of this BlogpostsIdBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param author_id: The author_id of this BlogpostsIdBody. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._author_id = author_id
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def category(self) -> 'str':
|
|
106
|
+
"""Gets the category of this BlogpostsIdBody. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The category of this BlogpostsIdBody. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._category
|
|
113
|
+
|
|
114
|
+
@category.setter
|
|
115
|
+
def category(self, category: 'str'):
|
|
116
|
+
"""Sets the category of this BlogpostsIdBody.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param category: The category of this BlogpostsIdBody. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._category = category
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def description(self) -> 'str':
|
|
127
|
+
"""Gets the description of this BlogpostsIdBody. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The description of this BlogpostsIdBody. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._description
|
|
134
|
+
|
|
135
|
+
@description.setter
|
|
136
|
+
def description(self, description: 'str'):
|
|
137
|
+
"""Sets the description of this BlogpostsIdBody.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param description: The description of this BlogpostsIdBody. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._description = description
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def image_url(self) -> 'str':
|
|
148
|
+
"""Gets the image_url of this BlogpostsIdBody. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The image_url of this BlogpostsIdBody. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._image_url
|
|
155
|
+
|
|
156
|
+
@image_url.setter
|
|
157
|
+
def image_url(self, image_url: 'str'):
|
|
158
|
+
"""Sets the image_url of this BlogpostsIdBody.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param image_url: The image_url of this BlogpostsIdBody. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._image_url = image_url
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def lit_page_id(self) -> 'str':
|
|
169
|
+
"""Gets the lit_page_id of this BlogpostsIdBody. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The lit_page_id of this BlogpostsIdBody. # noqa: E501
|
|
173
|
+
:rtype: str
|
|
174
|
+
"""
|
|
175
|
+
return self._lit_page_id
|
|
176
|
+
|
|
177
|
+
@lit_page_id.setter
|
|
178
|
+
def lit_page_id(self, lit_page_id: 'str'):
|
|
179
|
+
"""Sets the lit_page_id of this BlogpostsIdBody.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param lit_page_id: The lit_page_id of this BlogpostsIdBody. # noqa: E501
|
|
183
|
+
:type: str
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._lit_page_id = lit_page_id
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def title(self) -> 'str':
|
|
190
|
+
"""Gets the title of this BlogpostsIdBody. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The title of this BlogpostsIdBody. # noqa: E501
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._title
|
|
197
|
+
|
|
198
|
+
@title.setter
|
|
199
|
+
def title(self, title: 'str'):
|
|
200
|
+
"""Sets the title of this BlogpostsIdBody.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param title: The title of this BlogpostsIdBody. # noqa: E501
|
|
204
|
+
:type: str
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._title = title
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(BlogpostsIdBody, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self) -> str:
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other: 'BlogpostsIdBody') -> bool:
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, BlogpostsIdBody):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.__dict__ == other.__dict__
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other: 'BlogpostsIdBody') -> bool:
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
return not self == other
|
|
@@ -41,6 +41,7 @@ class DeploymentsIdBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'source': 'str',
|
|
44
45
|
'api_standard': 'str',
|
|
45
46
|
'apis': 'list[V1DeploymentAPI]',
|
|
46
47
|
'assistant_id': 'str',
|
|
@@ -72,6 +73,7 @@ class DeploymentsIdBody(object):
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
attribute_map = {
|
|
76
|
+
'source': 'Source',
|
|
75
77
|
'api_standard': 'apiStandard',
|
|
76
78
|
'apis': 'apis',
|
|
77
79
|
'assistant_id': 'assistantId',
|
|
@@ -102,8 +104,9 @@ class DeploymentsIdBody(object):
|
|
|
102
104
|
'visibility': 'visibility'
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
107
|
+
def __init__(self, source: 'str' =None, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
|
|
106
108
|
"""DeploymentsIdBody - a model defined in Swagger""" # noqa: E501
|
|
109
|
+
self._source = None
|
|
107
110
|
self._api_standard = None
|
|
108
111
|
self._apis = None
|
|
109
112
|
self._assistant_id = None
|
|
@@ -133,6 +136,8 @@ class DeploymentsIdBody(object):
|
|
|
133
136
|
self._user_id = None
|
|
134
137
|
self._visibility = None
|
|
135
138
|
self.discriminator = None
|
|
139
|
+
if source is not None:
|
|
140
|
+
self.source = source
|
|
136
141
|
if api_standard is not None:
|
|
137
142
|
self.api_standard = api_standard
|
|
138
143
|
if apis is not None:
|
|
@@ -190,6 +195,27 @@ class DeploymentsIdBody(object):
|
|
|
190
195
|
if visibility is not None:
|
|
191
196
|
self.visibility = visibility
|
|
192
197
|
|
|
198
|
+
@property
|
|
199
|
+
def source(self) -> 'str':
|
|
200
|
+
"""Gets the source of this DeploymentsIdBody. # noqa: E501
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:return: The source of this DeploymentsIdBody. # noqa: E501
|
|
204
|
+
:rtype: str
|
|
205
|
+
"""
|
|
206
|
+
return self._source
|
|
207
|
+
|
|
208
|
+
@source.setter
|
|
209
|
+
def source(self, source: 'str'):
|
|
210
|
+
"""Sets the source of this DeploymentsIdBody.
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:param source: The source of this DeploymentsIdBody. # noqa: E501
|
|
214
|
+
:type: str
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
self._source = source
|
|
218
|
+
|
|
193
219
|
@property
|
|
194
220
|
def api_standard(self) -> 'str':
|
|
195
221
|
"""Gets the api_standard 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 IdTransferBody(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
|
+
'target_cluster_id': 'str'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'target_cluster_id': 'targetClusterId'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, target_cluster_id: 'str' =None): # noqa: E501
|
|
52
|
+
"""IdTransferBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._target_cluster_id = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if target_cluster_id is not None:
|
|
56
|
+
self.target_cluster_id = target_cluster_id
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def target_cluster_id(self) -> 'str':
|
|
60
|
+
"""Gets the target_cluster_id of this IdTransferBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The target_cluster_id of this IdTransferBody. # noqa: E501
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._target_cluster_id
|
|
67
|
+
|
|
68
|
+
@target_cluster_id.setter
|
|
69
|
+
def target_cluster_id(self, target_cluster_id: 'str'):
|
|
70
|
+
"""Sets the target_cluster_id of this IdTransferBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param target_cluster_id: The target_cluster_id of this IdTransferBody. # noqa: E501
|
|
74
|
+
:type: str
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._target_cluster_id = target_cluster_id
|
|
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(IdTransferBody, 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: 'IdTransferBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, IdTransferBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'IdTransferBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|