lightning-sdk 0.1.33__py3-none-any.whl → 0.1.35__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/ai_hub.py +61 -3
- lightning_sdk/api/ai_hub_api.py +14 -0
- lightning_sdk/cli/ai_hub.py +49 -0
- lightning_sdk/cli/download.py +3 -3
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/lightning_cloud/login.py +5 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_block_offering.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_version.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_status.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_details.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -1
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/RECORD +34 -32
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.33.dist-info → lightning_sdk-0.1.35.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1Checkbox(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
|
+
'false_value': 'str',
|
|
45
|
+
'is_checked': 'bool',
|
|
46
|
+
'true_value': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'false_value': 'falseValue',
|
|
51
|
+
'is_checked': 'isChecked',
|
|
52
|
+
'true_value': 'trueValue'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1Checkbox - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._false_value = None
|
|
58
|
+
self._is_checked = None
|
|
59
|
+
self._true_value = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if false_value is not None:
|
|
62
|
+
self.false_value = false_value
|
|
63
|
+
if is_checked is not None:
|
|
64
|
+
self.is_checked = is_checked
|
|
65
|
+
if true_value is not None:
|
|
66
|
+
self.true_value = true_value
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def false_value(self) -> 'str':
|
|
70
|
+
"""Gets the false_value of this V1Checkbox. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The false_value of this V1Checkbox. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._false_value
|
|
77
|
+
|
|
78
|
+
@false_value.setter
|
|
79
|
+
def false_value(self, false_value: 'str'):
|
|
80
|
+
"""Sets the false_value of this V1Checkbox.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param false_value: The false_value of this V1Checkbox. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._false_value = false_value
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def is_checked(self) -> 'bool':
|
|
91
|
+
"""Gets the is_checked of this V1Checkbox. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The is_checked of this V1Checkbox. # noqa: E501
|
|
95
|
+
:rtype: bool
|
|
96
|
+
"""
|
|
97
|
+
return self._is_checked
|
|
98
|
+
|
|
99
|
+
@is_checked.setter
|
|
100
|
+
def is_checked(self, is_checked: 'bool'):
|
|
101
|
+
"""Sets the is_checked of this V1Checkbox.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param is_checked: The is_checked of this V1Checkbox. # noqa: E501
|
|
105
|
+
:type: bool
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._is_checked = is_checked
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def true_value(self) -> 'str':
|
|
112
|
+
"""Gets the true_value of this V1Checkbox. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The true_value of this V1Checkbox. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._true_value
|
|
119
|
+
|
|
120
|
+
@true_value.setter
|
|
121
|
+
def true_value(self, true_value: 'str'):
|
|
122
|
+
"""Sets the true_value of this V1Checkbox.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param true_value: The true_value of this V1Checkbox. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._true_value = true_value
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1Checkbox, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1Checkbox') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1Checkbox):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1Checkbox') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -49,6 +49,7 @@ class V1CloudSpaceVersion(object):
|
|
|
49
49
|
'created_at': 'datetime',
|
|
50
50
|
'description': 'str',
|
|
51
51
|
'draft': 'bool',
|
|
52
|
+
'globally_visible': 'bool',
|
|
52
53
|
'hide_files': 'bool',
|
|
53
54
|
'id': 'str',
|
|
54
55
|
'license': 'str',
|
|
@@ -58,6 +59,7 @@ class V1CloudSpaceVersion(object):
|
|
|
58
59
|
'paper_org_avatar_url': 'str',
|
|
59
60
|
'paper_url': 'str',
|
|
60
61
|
'project_id': 'str',
|
|
62
|
+
'unpublished': 'bool',
|
|
61
63
|
'updated_at': 'datetime',
|
|
62
64
|
'user_id': 'str',
|
|
63
65
|
'version_name': 'str'
|
|
@@ -72,6 +74,7 @@ class V1CloudSpaceVersion(object):
|
|
|
72
74
|
'created_at': 'createdAt',
|
|
73
75
|
'description': 'description',
|
|
74
76
|
'draft': 'draft',
|
|
77
|
+
'globally_visible': 'globallyVisible',
|
|
75
78
|
'hide_files': 'hideFiles',
|
|
76
79
|
'id': 'id',
|
|
77
80
|
'license': 'license',
|
|
@@ -81,12 +84,13 @@ class V1CloudSpaceVersion(object):
|
|
|
81
84
|
'paper_org_avatar_url': 'paperOrgAvatarUrl',
|
|
82
85
|
'paper_url': 'paperUrl',
|
|
83
86
|
'project_id': 'projectId',
|
|
87
|
+
'unpublished': 'unpublished',
|
|
84
88
|
'updated_at': 'updatedAt',
|
|
85
89
|
'user_id': 'userId',
|
|
86
90
|
'version_name': 'versionName'
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, cloud_space_id: 'str' =None, code_url: 'str' =None, code_version: 'V1CloudSpaceCodeVersion' =None, created_at: 'datetime' =None, description: 'str' =None, draft: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, license: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version_name: 'str' =None): # noqa: E501
|
|
93
|
+
def __init__(self, about_page_content: 'str' =None, about_page_id: 'str' =None, cloud_space_id: 'str' =None, code_url: 'str' =None, code_version: 'V1CloudSpaceCodeVersion' =None, created_at: 'datetime' =None, description: 'str' =None, draft: 'bool' =None, globally_visible: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, license: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, unpublished: 'bool' =None, updated_at: 'datetime' =None, user_id: 'str' =None, version_name: 'str' =None): # noqa: E501
|
|
90
94
|
"""V1CloudSpaceVersion - a model defined in Swagger""" # noqa: E501
|
|
91
95
|
self._about_page_content = None
|
|
92
96
|
self._about_page_id = None
|
|
@@ -96,6 +100,7 @@ class V1CloudSpaceVersion(object):
|
|
|
96
100
|
self._created_at = None
|
|
97
101
|
self._description = None
|
|
98
102
|
self._draft = None
|
|
103
|
+
self._globally_visible = None
|
|
99
104
|
self._hide_files = None
|
|
100
105
|
self._id = None
|
|
101
106
|
self._license = None
|
|
@@ -105,6 +110,7 @@ class V1CloudSpaceVersion(object):
|
|
|
105
110
|
self._paper_org_avatar_url = None
|
|
106
111
|
self._paper_url = None
|
|
107
112
|
self._project_id = None
|
|
113
|
+
self._unpublished = None
|
|
108
114
|
self._updated_at = None
|
|
109
115
|
self._user_id = None
|
|
110
116
|
self._version_name = None
|
|
@@ -125,6 +131,8 @@ class V1CloudSpaceVersion(object):
|
|
|
125
131
|
self.description = description
|
|
126
132
|
if draft is not None:
|
|
127
133
|
self.draft = draft
|
|
134
|
+
if globally_visible is not None:
|
|
135
|
+
self.globally_visible = globally_visible
|
|
128
136
|
if hide_files is not None:
|
|
129
137
|
self.hide_files = hide_files
|
|
130
138
|
if id is not None:
|
|
@@ -143,6 +151,8 @@ class V1CloudSpaceVersion(object):
|
|
|
143
151
|
self.paper_url = paper_url
|
|
144
152
|
if project_id is not None:
|
|
145
153
|
self.project_id = project_id
|
|
154
|
+
if unpublished is not None:
|
|
155
|
+
self.unpublished = unpublished
|
|
146
156
|
if updated_at is not None:
|
|
147
157
|
self.updated_at = updated_at
|
|
148
158
|
if user_id is not None:
|
|
@@ -318,6 +328,27 @@ class V1CloudSpaceVersion(object):
|
|
|
318
328
|
|
|
319
329
|
self._draft = draft
|
|
320
330
|
|
|
331
|
+
@property
|
|
332
|
+
def globally_visible(self) -> 'bool':
|
|
333
|
+
"""Gets the globally_visible of this V1CloudSpaceVersion. # noqa: E501
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
:return: The globally_visible of this V1CloudSpaceVersion. # noqa: E501
|
|
337
|
+
:rtype: bool
|
|
338
|
+
"""
|
|
339
|
+
return self._globally_visible
|
|
340
|
+
|
|
341
|
+
@globally_visible.setter
|
|
342
|
+
def globally_visible(self, globally_visible: 'bool'):
|
|
343
|
+
"""Sets the globally_visible of this V1CloudSpaceVersion.
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
:param globally_visible: The globally_visible of this V1CloudSpaceVersion. # noqa: E501
|
|
347
|
+
:type: bool
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
self._globally_visible = globally_visible
|
|
351
|
+
|
|
321
352
|
@property
|
|
322
353
|
def hide_files(self) -> 'bool':
|
|
323
354
|
"""Gets the hide_files of this V1CloudSpaceVersion. # noqa: E501
|
|
@@ -507,6 +538,27 @@ class V1CloudSpaceVersion(object):
|
|
|
507
538
|
|
|
508
539
|
self._project_id = project_id
|
|
509
540
|
|
|
541
|
+
@property
|
|
542
|
+
def unpublished(self) -> 'bool':
|
|
543
|
+
"""Gets the unpublished of this V1CloudSpaceVersion. # noqa: E501
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
:return: The unpublished of this V1CloudSpaceVersion. # noqa: E501
|
|
547
|
+
:rtype: bool
|
|
548
|
+
"""
|
|
549
|
+
return self._unpublished
|
|
550
|
+
|
|
551
|
+
@unpublished.setter
|
|
552
|
+
def unpublished(self, unpublished: 'bool'):
|
|
553
|
+
"""Sets the unpublished of this V1CloudSpaceVersion.
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
:param unpublished: The unpublished of this V1CloudSpaceVersion. # noqa: E501
|
|
557
|
+
:type: bool
|
|
558
|
+
"""
|
|
559
|
+
|
|
560
|
+
self._unpublished = unpublished
|
|
561
|
+
|
|
510
562
|
@property
|
|
511
563
|
def updated_at(self) -> 'datetime':
|
|
512
564
|
"""Gets the updated_at of this V1CloudSpaceVersion. # noqa: E501
|
|
@@ -56,6 +56,7 @@ class V1ClusterAccelerator(object):
|
|
|
56
56
|
'device_card': 'str',
|
|
57
57
|
'device_info': 'str',
|
|
58
58
|
'display_name': 'str',
|
|
59
|
+
'dws_only': 'bool',
|
|
59
60
|
'enabled': 'bool',
|
|
60
61
|
'family': 'str',
|
|
61
62
|
'instance_id': 'str',
|
|
@@ -95,6 +96,7 @@ class V1ClusterAccelerator(object):
|
|
|
95
96
|
'device_card': 'deviceCard',
|
|
96
97
|
'device_info': 'deviceInfo',
|
|
97
98
|
'display_name': 'displayName',
|
|
99
|
+
'dws_only': 'dwsOnly',
|
|
98
100
|
'enabled': 'enabled',
|
|
99
101
|
'family': 'family',
|
|
100
102
|
'instance_id': 'instanceId',
|
|
@@ -118,7 +120,7 @@ class V1ClusterAccelerator(object):
|
|
|
118
120
|
'spot_price': 'spotPrice'
|
|
119
121
|
}
|
|
120
122
|
|
|
121
|
-
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
|
|
123
|
+
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, resources: 'V1Resources' =None, slug: 'str' =None, spot_price: 'float' =None): # noqa: E501
|
|
122
124
|
"""V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
|
|
123
125
|
self._accelerator_type = None
|
|
124
126
|
self._allowed_resources = None
|
|
@@ -135,6 +137,7 @@ class V1ClusterAccelerator(object):
|
|
|
135
137
|
self._device_card = None
|
|
136
138
|
self._device_info = None
|
|
137
139
|
self._display_name = None
|
|
140
|
+
self._dws_only = None
|
|
138
141
|
self._enabled = None
|
|
139
142
|
self._family = None
|
|
140
143
|
self._instance_id = None
|
|
@@ -187,6 +190,8 @@ class V1ClusterAccelerator(object):
|
|
|
187
190
|
self.device_info = device_info
|
|
188
191
|
if display_name is not None:
|
|
189
192
|
self.display_name = display_name
|
|
193
|
+
if dws_only is not None:
|
|
194
|
+
self.dws_only = dws_only
|
|
190
195
|
if enabled is not None:
|
|
191
196
|
self.enabled = enabled
|
|
192
197
|
if family is not None:
|
|
@@ -545,6 +550,27 @@ class V1ClusterAccelerator(object):
|
|
|
545
550
|
|
|
546
551
|
self._display_name = display_name
|
|
547
552
|
|
|
553
|
+
@property
|
|
554
|
+
def dws_only(self) -> 'bool':
|
|
555
|
+
"""Gets the dws_only of this V1ClusterAccelerator. # noqa: E501
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
:return: The dws_only of this V1ClusterAccelerator. # noqa: E501
|
|
559
|
+
:rtype: bool
|
|
560
|
+
"""
|
|
561
|
+
return self._dws_only
|
|
562
|
+
|
|
563
|
+
@dws_only.setter
|
|
564
|
+
def dws_only(self, dws_only: 'bool'):
|
|
565
|
+
"""Sets the dws_only of this V1ClusterAccelerator.
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
:param dws_only: The dws_only of this V1ClusterAccelerator. # noqa: E501
|
|
569
|
+
:type: bool
|
|
570
|
+
"""
|
|
571
|
+
|
|
572
|
+
self._dws_only = dws_only
|
|
573
|
+
|
|
548
574
|
@property
|
|
549
575
|
def enabled(self) -> 'bool':
|
|
550
576
|
"""Gets the enabled of this V1ClusterAccelerator. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class V1Deployment(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'autoscaling': 'V1AutoscalingSpec',
|
|
45
|
+
'cloudspace_id': 'str',
|
|
45
46
|
'created_at': 'datetime',
|
|
46
47
|
'desired_state': 'V1DeploymentState',
|
|
47
48
|
'endpoint': 'V1Endpoint',
|
|
@@ -61,6 +62,7 @@ class V1Deployment(object):
|
|
|
61
62
|
|
|
62
63
|
attribute_map = {
|
|
63
64
|
'autoscaling': 'autoscaling',
|
|
65
|
+
'cloudspace_id': 'cloudspaceId',
|
|
64
66
|
'created_at': 'createdAt',
|
|
65
67
|
'desired_state': 'desiredState',
|
|
66
68
|
'endpoint': 'endpoint',
|
|
@@ -78,9 +80,10 @@ class V1Deployment(object):
|
|
|
78
80
|
'user_id': 'userId'
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
def __init__(self, autoscaling: 'V1AutoscalingSpec' =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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
83
|
+
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, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
82
84
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
83
85
|
self._autoscaling = None
|
|
86
|
+
self._cloudspace_id = None
|
|
84
87
|
self._created_at = None
|
|
85
88
|
self._desired_state = None
|
|
86
89
|
self._endpoint = None
|
|
@@ -99,6 +102,8 @@ class V1Deployment(object):
|
|
|
99
102
|
self.discriminator = None
|
|
100
103
|
if autoscaling is not None:
|
|
101
104
|
self.autoscaling = autoscaling
|
|
105
|
+
if cloudspace_id is not None:
|
|
106
|
+
self.cloudspace_id = cloudspace_id
|
|
102
107
|
if created_at is not None:
|
|
103
108
|
self.created_at = created_at
|
|
104
109
|
if desired_state is not None:
|
|
@@ -151,6 +156,27 @@ class V1Deployment(object):
|
|
|
151
156
|
|
|
152
157
|
self._autoscaling = autoscaling
|
|
153
158
|
|
|
159
|
+
@property
|
|
160
|
+
def cloudspace_id(self) -> 'str':
|
|
161
|
+
"""Gets the cloudspace_id of this V1Deployment. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The cloudspace_id of this V1Deployment. # noqa: E501
|
|
165
|
+
:rtype: str
|
|
166
|
+
"""
|
|
167
|
+
return self._cloudspace_id
|
|
168
|
+
|
|
169
|
+
@cloudspace_id.setter
|
|
170
|
+
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
171
|
+
"""Sets the cloudspace_id of this V1Deployment.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param cloudspace_id: The cloudspace_id of this V1Deployment. # noqa: E501
|
|
175
|
+
:type: str
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._cloudspace_id = cloudspace_id
|
|
179
|
+
|
|
154
180
|
@property
|
|
155
181
|
def created_at(self) -> 'datetime':
|
|
156
182
|
"""Gets the created_at of this V1Deployment. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class V1DeploymentTemplateParameter(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'checkbox': 'V1Checkbox',
|
|
44
45
|
'data_path': 'V1DataPath',
|
|
45
46
|
'display_name': 'str',
|
|
46
47
|
'input': 'V1Input',
|
|
@@ -55,6 +56,7 @@ class V1DeploymentTemplateParameter(object):
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
attribute_map = {
|
|
59
|
+
'checkbox': 'checkbox',
|
|
58
60
|
'data_path': 'dataPath',
|
|
59
61
|
'display_name': 'displayName',
|
|
60
62
|
'input': 'input',
|
|
@@ -68,8 +70,9 @@ class V1DeploymentTemplateParameter(object):
|
|
|
68
70
|
'type': 'type'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, data_path: 'V1DataPath' =None, display_name: 'str' =None, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placements: 'list[V1DeploymentTemplateParameterPlacement]' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
|
|
73
|
+
def __init__(self, checkbox: 'V1Checkbox' =None, data_path: 'V1DataPath' =None, display_name: 'str' =None, input: 'V1Input' =None, long_description: 'str' =None, name: 'str' =None, placements: 'list[V1DeploymentTemplateParameterPlacement]' =None, readonly: 'bool' =None, required: 'bool' =None, select: 'V1Select' =None, short_description: 'str' =None, type: 'V1DeploymentTemplateParameterType' =None): # noqa: E501
|
|
72
74
|
"""V1DeploymentTemplateParameter - a model defined in Swagger""" # noqa: E501
|
|
75
|
+
self._checkbox = None
|
|
73
76
|
self._data_path = None
|
|
74
77
|
self._display_name = None
|
|
75
78
|
self._input = None
|
|
@@ -82,6 +85,8 @@ class V1DeploymentTemplateParameter(object):
|
|
|
82
85
|
self._short_description = None
|
|
83
86
|
self._type = None
|
|
84
87
|
self.discriminator = None
|
|
88
|
+
if checkbox is not None:
|
|
89
|
+
self.checkbox = checkbox
|
|
85
90
|
if data_path is not None:
|
|
86
91
|
self.data_path = data_path
|
|
87
92
|
if display_name is not None:
|
|
@@ -105,6 +110,27 @@ class V1DeploymentTemplateParameter(object):
|
|
|
105
110
|
if type is not None:
|
|
106
111
|
self.type = type
|
|
107
112
|
|
|
113
|
+
@property
|
|
114
|
+
def checkbox(self) -> 'V1Checkbox':
|
|
115
|
+
"""Gets the checkbox of this V1DeploymentTemplateParameter. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The checkbox of this V1DeploymentTemplateParameter. # noqa: E501
|
|
119
|
+
:rtype: V1Checkbox
|
|
120
|
+
"""
|
|
121
|
+
return self._checkbox
|
|
122
|
+
|
|
123
|
+
@checkbox.setter
|
|
124
|
+
def checkbox(self, checkbox: 'V1Checkbox'):
|
|
125
|
+
"""Sets the checkbox of this V1DeploymentTemplateParameter.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param checkbox: The checkbox of this V1DeploymentTemplateParameter. # noqa: E501
|
|
129
|
+
:type: V1Checkbox
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._checkbox = checkbox
|
|
133
|
+
|
|
108
134
|
@property
|
|
109
135
|
def data_path(self) -> 'V1DataPath':
|
|
110
136
|
"""Gets the data_path of this V1DeploymentTemplateParameter. # noqa: E501
|
|
@@ -40,6 +40,7 @@ class V1DeploymentTemplateParameterType(object):
|
|
|
40
40
|
SELECT = "DEPLOYMENT_TEMPLATE_SELECT"
|
|
41
41
|
INPUT = "DEPLOYMENT_TEMPLATE_INPUT"
|
|
42
42
|
DATA_PATH = "DEPLOYMENT_TEMPLATE_DATA_PATH"
|
|
43
|
+
CHECKBOX = "DEPLOYMENT_TEMPLATE_CHECKBOX"
|
|
43
44
|
"""
|
|
44
45
|
Attributes:
|
|
45
46
|
swagger_types (dict): The key is attribute name
|
|
@@ -56,6 +56,7 @@ class V1GetUserResponse(object):
|
|
|
56
56
|
'opted_in_marketing_emails': 'bool',
|
|
57
57
|
'organization': 'str',
|
|
58
58
|
'organizations': 'list[V1Organization]',
|
|
59
|
+
'phone_number': 'str',
|
|
59
60
|
'picture_url': 'str',
|
|
60
61
|
'preferred_color_scheme': 'str',
|
|
61
62
|
'preferred_ide': 'str',
|
|
@@ -90,6 +91,7 @@ class V1GetUserResponse(object):
|
|
|
90
91
|
'opted_in_marketing_emails': 'optedInMarketingEmails',
|
|
91
92
|
'organization': 'organization',
|
|
92
93
|
'organizations': 'organizations',
|
|
94
|
+
'phone_number': 'phoneNumber',
|
|
93
95
|
'picture_url': 'pictureUrl',
|
|
94
96
|
'preferred_color_scheme': 'preferredColorScheme',
|
|
95
97
|
'preferred_ide': 'preferredIde',
|
|
@@ -108,7 +110,7 @@ class V1GetUserResponse(object):
|
|
|
108
110
|
'website': 'website'
|
|
109
111
|
}
|
|
110
112
|
|
|
111
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, email: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
113
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, email: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
112
114
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
113
115
|
self._agree_to_terms_and_conditions = None
|
|
114
116
|
self._api_key = None
|
|
@@ -125,6 +127,7 @@ class V1GetUserResponse(object):
|
|
|
125
127
|
self._opted_in_marketing_emails = None
|
|
126
128
|
self._organization = None
|
|
127
129
|
self._organizations = None
|
|
130
|
+
self._phone_number = None
|
|
128
131
|
self._picture_url = None
|
|
129
132
|
self._preferred_color_scheme = None
|
|
130
133
|
self._preferred_ide = None
|
|
@@ -172,6 +175,8 @@ class V1GetUserResponse(object):
|
|
|
172
175
|
self.organization = organization
|
|
173
176
|
if organizations is not None:
|
|
174
177
|
self.organizations = organizations
|
|
178
|
+
if phone_number is not None:
|
|
179
|
+
self.phone_number = phone_number
|
|
175
180
|
if picture_url is not None:
|
|
176
181
|
self.picture_url = picture_url
|
|
177
182
|
if preferred_color_scheme is not None:
|
|
@@ -520,6 +525,27 @@ class V1GetUserResponse(object):
|
|
|
520
525
|
|
|
521
526
|
self._organizations = organizations
|
|
522
527
|
|
|
528
|
+
@property
|
|
529
|
+
def phone_number(self) -> 'str':
|
|
530
|
+
"""Gets the phone_number of this V1GetUserResponse. # noqa: E501
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
:return: The phone_number of this V1GetUserResponse. # noqa: E501
|
|
534
|
+
:rtype: str
|
|
535
|
+
"""
|
|
536
|
+
return self._phone_number
|
|
537
|
+
|
|
538
|
+
@phone_number.setter
|
|
539
|
+
def phone_number(self, phone_number: 'str'):
|
|
540
|
+
"""Sets the phone_number of this V1GetUserResponse.
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
:param phone_number: The phone_number of this V1GetUserResponse. # noqa: E501
|
|
544
|
+
:type: str
|
|
545
|
+
"""
|
|
546
|
+
|
|
547
|
+
self._phone_number = phone_number
|
|
548
|
+
|
|
523
549
|
@property
|
|
524
550
|
def picture_url(self) -> 'str':
|
|
525
551
|
"""Gets the picture_url of this V1GetUserResponse. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
44
44
|
'bucket_name': 'str',
|
|
45
45
|
'credentials_secret_id': 'str',
|
|
46
46
|
'credentials_service_account_email': 'str',
|
|
47
|
+
'dws_enabled': 'bool',
|
|
47
48
|
'primary_region': 'str',
|
|
48
49
|
'project_id': 'str',
|
|
49
50
|
'regions': 'list[str]',
|
|
@@ -55,6 +56,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
55
56
|
'bucket_name': 'bucketName',
|
|
56
57
|
'credentials_secret_id': 'credentialsSecretId',
|
|
57
58
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
59
|
+
'dws_enabled': 'dwsEnabled',
|
|
58
60
|
'primary_region': 'primaryRegion',
|
|
59
61
|
'project_id': 'projectId',
|
|
60
62
|
'regions': 'regions',
|
|
@@ -62,11 +64,12 @@ class V1GoogleCloudDirectV1(object):
|
|
|
62
64
|
'source_cidr_ips': 'sourceCidrIps'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, bucket_name: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
67
|
+
def __init__(self, bucket_name: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, dws_enabled: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
66
68
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._bucket_name = None
|
|
68
70
|
self._credentials_secret_id = None
|
|
69
71
|
self._credentials_service_account_email = None
|
|
72
|
+
self._dws_enabled = None
|
|
70
73
|
self._primary_region = None
|
|
71
74
|
self._project_id = None
|
|
72
75
|
self._regions = None
|
|
@@ -79,6 +82,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
79
82
|
self.credentials_secret_id = credentials_secret_id
|
|
80
83
|
if credentials_service_account_email is not None:
|
|
81
84
|
self.credentials_service_account_email = credentials_service_account_email
|
|
85
|
+
if dws_enabled is not None:
|
|
86
|
+
self.dws_enabled = dws_enabled
|
|
82
87
|
if primary_region is not None:
|
|
83
88
|
self.primary_region = primary_region
|
|
84
89
|
if project_id is not None:
|
|
@@ -155,6 +160,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
155
160
|
|
|
156
161
|
self._credentials_service_account_email = credentials_service_account_email
|
|
157
162
|
|
|
163
|
+
@property
|
|
164
|
+
def dws_enabled(self) -> 'bool':
|
|
165
|
+
"""Gets the dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:return: The dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
169
|
+
:rtype: bool
|
|
170
|
+
"""
|
|
171
|
+
return self._dws_enabled
|
|
172
|
+
|
|
173
|
+
@dws_enabled.setter
|
|
174
|
+
def dws_enabled(self, dws_enabled: 'bool'):
|
|
175
|
+
"""Sets the dws_enabled of this V1GoogleCloudDirectV1.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
:param dws_enabled: The dws_enabled of this V1GoogleCloudDirectV1. # noqa: E501
|
|
179
|
+
:type: bool
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
self._dws_enabled = dws_enabled
|
|
183
|
+
|
|
158
184
|
@property
|
|
159
185
|
def primary_region(self) -> 'str':
|
|
160
186
|
"""Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
|