lightning-sdk 0.1.35__py3-none-any.whl → 0.1.37__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 +27 -13
- lightning_sdk/api/ai_hub_api.py +49 -19
- lightning_sdk/api/utils.py +1 -0
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/models.py +45 -15
- lightning_sdk/cli/run.py +72 -0
- lightning_sdk/job/base.py +48 -20
- lightning_sdk/job/job.py +21 -11
- lightning_sdk/job/v1.py +9 -9
- lightning_sdk/job/v2.py +6 -6
- lightning_sdk/lightning_cloud/cli/__main__.py +15 -13
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_id_versionpublications_body1.py +27 -1
- 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/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_checkbox.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_release.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +27 -1
- 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 +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metric_value.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_select.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -1
- lightning_sdk/lightning_cloud/rest_client.py +1 -4
- lightning_sdk/lightning_cloud/source_code/tar.py +1 -3
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/METADATA +1 -2
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/RECORD +43 -42
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.35.dist-info → lightning_sdk-0.1.37.dist-info}/top_level.txt +0 -0
|
@@ -43,6 +43,7 @@ class V1DeploymentStatus(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'deleting_replicas': 'str',
|
|
45
45
|
'failing_replicas': 'str',
|
|
46
|
+
'first_job_state_current_release': 'str',
|
|
46
47
|
'message': 'str',
|
|
47
48
|
'pending_replicas': 'str',
|
|
48
49
|
'ready_replicas': 'str',
|
|
@@ -52,16 +53,18 @@ class V1DeploymentStatus(object):
|
|
|
52
53
|
attribute_map = {
|
|
53
54
|
'deleting_replicas': 'deletingReplicas',
|
|
54
55
|
'failing_replicas': 'failingReplicas',
|
|
56
|
+
'first_job_state_current_release': 'firstJobStateCurrentRelease',
|
|
55
57
|
'message': 'message',
|
|
56
58
|
'pending_replicas': 'pendingReplicas',
|
|
57
59
|
'ready_replicas': 'readyReplicas',
|
|
58
60
|
'urls': 'urls'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, deleting_replicas: 'str' =None, failing_replicas: 'str' =None, message: 'str' =None, pending_replicas: 'str' =None, ready_replicas: 'str' =None, urls: 'list[str]' =None): # noqa: E501
|
|
63
|
+
def __init__(self, deleting_replicas: 'str' =None, failing_replicas: 'str' =None, first_job_state_current_release: 'str' =None, message: 'str' =None, pending_replicas: 'str' =None, ready_replicas: 'str' =None, urls: 'list[str]' =None): # noqa: E501
|
|
62
64
|
"""V1DeploymentStatus - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
self._deleting_replicas = None
|
|
64
66
|
self._failing_replicas = None
|
|
67
|
+
self._first_job_state_current_release = None
|
|
65
68
|
self._message = None
|
|
66
69
|
self._pending_replicas = None
|
|
67
70
|
self._ready_replicas = None
|
|
@@ -71,6 +74,8 @@ class V1DeploymentStatus(object):
|
|
|
71
74
|
self.deleting_replicas = deleting_replicas
|
|
72
75
|
if failing_replicas is not None:
|
|
73
76
|
self.failing_replicas = failing_replicas
|
|
77
|
+
if first_job_state_current_release is not None:
|
|
78
|
+
self.first_job_state_current_release = first_job_state_current_release
|
|
74
79
|
if message is not None:
|
|
75
80
|
self.message = message
|
|
76
81
|
if pending_replicas is not None:
|
|
@@ -122,6 +127,27 @@ class V1DeploymentStatus(object):
|
|
|
122
127
|
|
|
123
128
|
self._failing_replicas = failing_replicas
|
|
124
129
|
|
|
130
|
+
@property
|
|
131
|
+
def first_job_state_current_release(self) -> 'str':
|
|
132
|
+
"""Gets the first_job_state_current_release of this V1DeploymentStatus. # noqa: E501
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:return: The first_job_state_current_release of this V1DeploymentStatus. # noqa: E501
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._first_job_state_current_release
|
|
139
|
+
|
|
140
|
+
@first_job_state_current_release.setter
|
|
141
|
+
def first_job_state_current_release(self, first_job_state_current_release: 'str'):
|
|
142
|
+
"""Sets the first_job_state_current_release of this V1DeploymentStatus.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param first_job_state_current_release: The first_job_state_current_release of this V1DeploymentStatus. # noqa: E501
|
|
146
|
+
:type: str
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
self._first_job_state_current_release = first_job_state_current_release
|
|
150
|
+
|
|
125
151
|
@property
|
|
126
152
|
def message(self) -> 'str':
|
|
127
153
|
"""Gets the message of this V1DeploymentStatus. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1GetModelFilesResponse(object):
|
|
|
44
44
|
'filepaths': 'list[str]',
|
|
45
45
|
'model_id': 'str',
|
|
46
46
|
'project_id': 'str',
|
|
47
|
+
'size_bytes': 'str',
|
|
47
48
|
'version': 'str'
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -51,14 +52,16 @@ class V1GetModelFilesResponse(object):
|
|
|
51
52
|
'filepaths': 'filepaths',
|
|
52
53
|
'model_id': 'modelId',
|
|
53
54
|
'project_id': 'projectId',
|
|
55
|
+
'size_bytes': 'sizeBytes',
|
|
54
56
|
'version': 'version'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, version: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, filepaths: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, version: 'str' =None): # noqa: E501
|
|
58
60
|
"""V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._filepaths = None
|
|
60
62
|
self._model_id = None
|
|
61
63
|
self._project_id = None
|
|
64
|
+
self._size_bytes = None
|
|
62
65
|
self._version = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if filepaths is not None:
|
|
@@ -67,6 +70,8 @@ class V1GetModelFilesResponse(object):
|
|
|
67
70
|
self.model_id = model_id
|
|
68
71
|
if project_id is not None:
|
|
69
72
|
self.project_id = project_id
|
|
73
|
+
if size_bytes is not None:
|
|
74
|
+
self.size_bytes = size_bytes
|
|
70
75
|
if version is not None:
|
|
71
76
|
self.version = version
|
|
72
77
|
|
|
@@ -133,6 +138,27 @@ class V1GetModelFilesResponse(object):
|
|
|
133
138
|
|
|
134
139
|
self._project_id = project_id
|
|
135
140
|
|
|
141
|
+
@property
|
|
142
|
+
def size_bytes(self) -> 'str':
|
|
143
|
+
"""Gets the size_bytes of this V1GetModelFilesResponse. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The size_bytes of this V1GetModelFilesResponse. # noqa: E501
|
|
147
|
+
:rtype: str
|
|
148
|
+
"""
|
|
149
|
+
return self._size_bytes
|
|
150
|
+
|
|
151
|
+
@size_bytes.setter
|
|
152
|
+
def size_bytes(self, size_bytes: 'str'):
|
|
153
|
+
"""Sets the size_bytes of this V1GetModelFilesResponse.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param size_bytes: The size_bytes of this V1GetModelFilesResponse. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._size_bytes = size_bytes
|
|
161
|
+
|
|
136
162
|
@property
|
|
137
163
|
def version(self) -> 'str':
|
|
138
164
|
"""Gets the version of this V1GetModelFilesResponse. # noqa: E501
|
|
@@ -45,6 +45,7 @@ class V1GetUserResponse(object):
|
|
|
45
45
|
'api_key': 'str',
|
|
46
46
|
'country': 'str',
|
|
47
47
|
'email': 'str',
|
|
48
|
+
'experimentation_id': 'str',
|
|
48
49
|
'features': 'V1UserFeatures',
|
|
49
50
|
'first_name': 'str',
|
|
50
51
|
'general_audience_mode': 'bool',
|
|
@@ -80,6 +81,7 @@ class V1GetUserResponse(object):
|
|
|
80
81
|
'api_key': 'apiKey',
|
|
81
82
|
'country': 'country',
|
|
82
83
|
'email': 'email',
|
|
84
|
+
'experimentation_id': 'experimentationId',
|
|
83
85
|
'features': 'features',
|
|
84
86
|
'first_name': 'firstName',
|
|
85
87
|
'general_audience_mode': 'generalAudienceMode',
|
|
@@ -110,12 +112,13 @@ class V1GetUserResponse(object):
|
|
|
110
112
|
'website': 'website'
|
|
111
113
|
}
|
|
112
114
|
|
|
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
|
|
115
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, email: 'str' =None, experimentation_id: '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
|
|
114
116
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
115
117
|
self._agree_to_terms_and_conditions = None
|
|
116
118
|
self._api_key = None
|
|
117
119
|
self._country = None
|
|
118
120
|
self._email = None
|
|
121
|
+
self._experimentation_id = None
|
|
119
122
|
self._features = None
|
|
120
123
|
self._first_name = None
|
|
121
124
|
self._general_audience_mode = None
|
|
@@ -153,6 +156,8 @@ class V1GetUserResponse(object):
|
|
|
153
156
|
self.country = country
|
|
154
157
|
if email is not None:
|
|
155
158
|
self.email = email
|
|
159
|
+
if experimentation_id is not None:
|
|
160
|
+
self.experimentation_id = experimentation_id
|
|
156
161
|
if features is not None:
|
|
157
162
|
self.features = features
|
|
158
163
|
if first_name is not None:
|
|
@@ -294,6 +299,27 @@ class V1GetUserResponse(object):
|
|
|
294
299
|
|
|
295
300
|
self._email = email
|
|
296
301
|
|
|
302
|
+
@property
|
|
303
|
+
def experimentation_id(self) -> 'str':
|
|
304
|
+
"""Gets the experimentation_id of this V1GetUserResponse. # noqa: E501
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:return: The experimentation_id of this V1GetUserResponse. # noqa: E501
|
|
308
|
+
:rtype: str
|
|
309
|
+
"""
|
|
310
|
+
return self._experimentation_id
|
|
311
|
+
|
|
312
|
+
@experimentation_id.setter
|
|
313
|
+
def experimentation_id(self, experimentation_id: 'str'):
|
|
314
|
+
"""Sets the experimentation_id of this V1GetUserResponse.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param experimentation_id: The experimentation_id of this V1GetUserResponse. # noqa: E501
|
|
318
|
+
:type: str
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
self._experimentation_id = experimentation_id
|
|
322
|
+
|
|
297
323
|
@property
|
|
298
324
|
def features(self) -> 'V1UserFeatures':
|
|
299
325
|
"""Gets the features of this V1GetUserResponse. # noqa: E501
|
|
@@ -44,7 +44,6 @@ 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',
|
|
48
47
|
'primary_region': 'str',
|
|
49
48
|
'project_id': 'str',
|
|
50
49
|
'regions': 'list[str]',
|
|
@@ -56,7 +55,6 @@ class V1GoogleCloudDirectV1(object):
|
|
|
56
55
|
'bucket_name': 'bucketName',
|
|
57
56
|
'credentials_secret_id': 'credentialsSecretId',
|
|
58
57
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
59
|
-
'dws_enabled': 'dwsEnabled',
|
|
60
58
|
'primary_region': 'primaryRegion',
|
|
61
59
|
'project_id': 'projectId',
|
|
62
60
|
'regions': 'regions',
|
|
@@ -64,12 +62,11 @@ class V1GoogleCloudDirectV1(object):
|
|
|
64
62
|
'source_cidr_ips': 'sourceCidrIps'
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
def __init__(self, bucket_name: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None,
|
|
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
|
|
68
66
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
69
67
|
self._bucket_name = None
|
|
70
68
|
self._credentials_secret_id = None
|
|
71
69
|
self._credentials_service_account_email = None
|
|
72
|
-
self._dws_enabled = None
|
|
73
70
|
self._primary_region = None
|
|
74
71
|
self._project_id = None
|
|
75
72
|
self._regions = None
|
|
@@ -82,8 +79,6 @@ class V1GoogleCloudDirectV1(object):
|
|
|
82
79
|
self.credentials_secret_id = credentials_secret_id
|
|
83
80
|
if credentials_service_account_email is not None:
|
|
84
81
|
self.credentials_service_account_email = credentials_service_account_email
|
|
85
|
-
if dws_enabled is not None:
|
|
86
|
-
self.dws_enabled = dws_enabled
|
|
87
82
|
if primary_region is not None:
|
|
88
83
|
self.primary_region = primary_region
|
|
89
84
|
if project_id is not None:
|
|
@@ -160,27 +155,6 @@ class V1GoogleCloudDirectV1(object):
|
|
|
160
155
|
|
|
161
156
|
self._credentials_service_account_email = credentials_service_account_email
|
|
162
157
|
|
|
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
|
-
|
|
184
158
|
@property
|
|
185
159
|
def primary_region(self) -> 'str':
|
|
186
160
|
"""Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -42,23 +42,28 @@ class V1Input(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'default_value': 'str',
|
|
45
|
-
'placeholder': 'str'
|
|
45
|
+
'placeholder': 'str',
|
|
46
|
+
'value': 'str'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
49
50
|
'default_value': 'defaultValue',
|
|
50
|
-
'placeholder': 'placeholder'
|
|
51
|
+
'placeholder': 'placeholder',
|
|
52
|
+
'value': 'value'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, default_value: 'str' =None, placeholder: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, default_value: 'str' =None, placeholder: 'str' =None, value: 'str' =None): # noqa: E501
|
|
54
56
|
"""V1Input - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
self._default_value = None
|
|
56
58
|
self._placeholder = None
|
|
59
|
+
self._value = None
|
|
57
60
|
self.discriminator = None
|
|
58
61
|
if default_value is not None:
|
|
59
62
|
self.default_value = default_value
|
|
60
63
|
if placeholder is not None:
|
|
61
64
|
self.placeholder = placeholder
|
|
65
|
+
if value is not None:
|
|
66
|
+
self.value = value
|
|
62
67
|
|
|
63
68
|
@property
|
|
64
69
|
def default_value(self) -> 'str':
|
|
@@ -102,6 +107,27 @@ class V1Input(object):
|
|
|
102
107
|
|
|
103
108
|
self._placeholder = placeholder
|
|
104
109
|
|
|
110
|
+
@property
|
|
111
|
+
def value(self) -> 'str':
|
|
112
|
+
"""Gets the value of this V1Input. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The value of this V1Input. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._value
|
|
119
|
+
|
|
120
|
+
@value.setter
|
|
121
|
+
def value(self, value: 'str'):
|
|
122
|
+
"""Sets the value of this V1Input.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param value: The value of this V1Input. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._value = value
|
|
130
|
+
|
|
105
131
|
def to_dict(self) -> dict:
|
|
106
132
|
"""Returns the model properties as a dict"""
|
|
107
133
|
result = {}
|
|
@@ -59,6 +59,7 @@ class V1Job(object):
|
|
|
59
59
|
'stopped_at': 'datetime',
|
|
60
60
|
'timings': 'dict(str, V1JobTiming)',
|
|
61
61
|
'total_cost': 'float',
|
|
62
|
+
'total_size_bytes': 'str',
|
|
62
63
|
'updated_at': 'datetime',
|
|
63
64
|
'urls': 'list[str]',
|
|
64
65
|
'user_id': 'str',
|
|
@@ -84,13 +85,14 @@ class V1Job(object):
|
|
|
84
85
|
'stopped_at': 'stoppedAt',
|
|
85
86
|
'timings': 'timings',
|
|
86
87
|
'total_cost': 'totalCost',
|
|
88
|
+
'total_size_bytes': 'totalSizeBytes',
|
|
87
89
|
'updated_at': 'updatedAt',
|
|
88
90
|
'urls': 'urls',
|
|
89
91
|
'user_id': 'userId',
|
|
90
92
|
'user_logs_started_at': 'userLogsStartedAt'
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
def __init__(self, created_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_healthy: 'bool' =None, message: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None): # noqa: E501
|
|
95
|
+
def __init__(self, created_at: 'datetime' =None, deployment_id: 'str' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_healthy: 'bool' =None, message: 'str' =None, name: 'str' =None, overprovisioned: 'bool' =None, project_id: 'str' =None, ready_at: 'datetime' =None, release_id: 'str' =None, server_error: 'str' =None, spec: 'V1JobSpec' =None, started_at: 'datetime' =None, state: 'str' =None, stopped_at: 'datetime' =None, timings: 'dict(str, V1JobTiming)' =None, total_cost: 'float' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None, user_logs_started_at: 'datetime' =None): # noqa: E501
|
|
94
96
|
"""V1Job - a model defined in Swagger""" # noqa: E501
|
|
95
97
|
self._created_at = None
|
|
96
98
|
self._deployment_id = None
|
|
@@ -110,6 +112,7 @@ class V1Job(object):
|
|
|
110
112
|
self._stopped_at = None
|
|
111
113
|
self._timings = None
|
|
112
114
|
self._total_cost = None
|
|
115
|
+
self._total_size_bytes = None
|
|
113
116
|
self._updated_at = None
|
|
114
117
|
self._urls = None
|
|
115
118
|
self._user_id = None
|
|
@@ -151,6 +154,8 @@ class V1Job(object):
|
|
|
151
154
|
self.timings = timings
|
|
152
155
|
if total_cost is not None:
|
|
153
156
|
self.total_cost = total_cost
|
|
157
|
+
if total_size_bytes is not None:
|
|
158
|
+
self.total_size_bytes = total_size_bytes
|
|
154
159
|
if updated_at is not None:
|
|
155
160
|
self.updated_at = updated_at
|
|
156
161
|
if urls is not None:
|
|
@@ -540,6 +545,27 @@ class V1Job(object):
|
|
|
540
545
|
|
|
541
546
|
self._total_cost = total_cost
|
|
542
547
|
|
|
548
|
+
@property
|
|
549
|
+
def total_size_bytes(self) -> 'str':
|
|
550
|
+
"""Gets the total_size_bytes of this V1Job. # noqa: E501
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
:return: The total_size_bytes of this V1Job. # noqa: E501
|
|
554
|
+
:rtype: str
|
|
555
|
+
"""
|
|
556
|
+
return self._total_size_bytes
|
|
557
|
+
|
|
558
|
+
@total_size_bytes.setter
|
|
559
|
+
def total_size_bytes(self, total_size_bytes: 'str'):
|
|
560
|
+
"""Sets the total_size_bytes of this V1Job.
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
:param total_size_bytes: The total_size_bytes of this V1Job. # noqa: E501
|
|
564
|
+
:type: str
|
|
565
|
+
"""
|
|
566
|
+
|
|
567
|
+
self._total_size_bytes = total_size_bytes
|
|
568
|
+
|
|
543
569
|
@property
|
|
544
570
|
def updated_at(self) -> 'datetime':
|
|
545
571
|
"""Gets the updated_at of this V1Job. # noqa: E501
|
|
@@ -43,6 +43,7 @@ class V1MagicLinkLoginRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'collab_session_id': 'str',
|
|
45
45
|
'email': 'str',
|
|
46
|
+
'experimentation_id': 'str',
|
|
46
47
|
'invite_code': 'str',
|
|
47
48
|
'redirect_url': 'str',
|
|
48
49
|
'referrer_params': 'str'
|
|
@@ -51,15 +52,17 @@ class V1MagicLinkLoginRequest(object):
|
|
|
51
52
|
attribute_map = {
|
|
52
53
|
'collab_session_id': 'collabSessionId',
|
|
53
54
|
'email': 'email',
|
|
55
|
+
'experimentation_id': 'experimentationId',
|
|
54
56
|
'invite_code': 'inviteCode',
|
|
55
57
|
'redirect_url': 'redirectUrl',
|
|
56
58
|
'referrer_params': 'referrerParams'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, collab_session_id: 'str' =None, email: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None): # noqa: E501
|
|
61
|
+
def __init__(self, collab_session_id: 'str' =None, email: 'str' =None, experimentation_id: 'str' =None, invite_code: 'str' =None, redirect_url: 'str' =None, referrer_params: 'str' =None): # noqa: E501
|
|
60
62
|
"""V1MagicLinkLoginRequest - a model defined in Swagger""" # noqa: E501
|
|
61
63
|
self._collab_session_id = None
|
|
62
64
|
self._email = None
|
|
65
|
+
self._experimentation_id = None
|
|
63
66
|
self._invite_code = None
|
|
64
67
|
self._redirect_url = None
|
|
65
68
|
self._referrer_params = None
|
|
@@ -68,6 +71,8 @@ class V1MagicLinkLoginRequest(object):
|
|
|
68
71
|
self.collab_session_id = collab_session_id
|
|
69
72
|
if email is not None:
|
|
70
73
|
self.email = email
|
|
74
|
+
if experimentation_id is not None:
|
|
75
|
+
self.experimentation_id = experimentation_id
|
|
71
76
|
if invite_code is not None:
|
|
72
77
|
self.invite_code = invite_code
|
|
73
78
|
if redirect_url is not None:
|
|
@@ -117,6 +122,27 @@ class V1MagicLinkLoginRequest(object):
|
|
|
117
122
|
|
|
118
123
|
self._email = email
|
|
119
124
|
|
|
125
|
+
@property
|
|
126
|
+
def experimentation_id(self) -> 'str':
|
|
127
|
+
"""Gets the experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._experimentation_id
|
|
134
|
+
|
|
135
|
+
@experimentation_id.setter
|
|
136
|
+
def experimentation_id(self, experimentation_id: 'str'):
|
|
137
|
+
"""Sets the experimentation_id of this V1MagicLinkLoginRequest.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param experimentation_id: The experimentation_id of this V1MagicLinkLoginRequest. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._experimentation_id = experimentation_id
|
|
145
|
+
|
|
120
146
|
@property
|
|
121
147
|
def invite_code(self) -> 'str':
|
|
122
148
|
"""Gets the invite_code of this V1MagicLinkLoginRequest. # noqa: E501
|
|
@@ -42,29 +42,24 @@ class V1MetricValue(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'created_at': 'datetime',
|
|
45
|
-
'internal_step': 'str',
|
|
46
45
|
'step': 'str',
|
|
47
46
|
'value': 'float'
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
attribute_map = {
|
|
51
50
|
'created_at': 'createdAt',
|
|
52
|
-
'internal_step': 'internalStep',
|
|
53
51
|
'step': 'step',
|
|
54
52
|
'value': 'value'
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
def __init__(self, created_at: 'datetime' =None,
|
|
55
|
+
def __init__(self, created_at: 'datetime' =None, step: 'str' =None, value: 'float' =None): # noqa: E501
|
|
58
56
|
"""V1MetricValue - a model defined in Swagger""" # noqa: E501
|
|
59
57
|
self._created_at = None
|
|
60
|
-
self._internal_step = None
|
|
61
58
|
self._step = None
|
|
62
59
|
self._value = None
|
|
63
60
|
self.discriminator = None
|
|
64
61
|
if created_at is not None:
|
|
65
62
|
self.created_at = created_at
|
|
66
|
-
if internal_step is not None:
|
|
67
|
-
self.internal_step = internal_step
|
|
68
63
|
if step is not None:
|
|
69
64
|
self.step = step
|
|
70
65
|
if value is not None:
|
|
@@ -91,27 +86,6 @@ class V1MetricValue(object):
|
|
|
91
86
|
|
|
92
87
|
self._created_at = created_at
|
|
93
88
|
|
|
94
|
-
@property
|
|
95
|
-
def internal_step(self) -> 'str':
|
|
96
|
-
"""Gets the internal_step of this V1MetricValue. # noqa: E501
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:return: The internal_step of this V1MetricValue. # noqa: E501
|
|
100
|
-
:rtype: str
|
|
101
|
-
"""
|
|
102
|
-
return self._internal_step
|
|
103
|
-
|
|
104
|
-
@internal_step.setter
|
|
105
|
-
def internal_step(self, internal_step: 'str'):
|
|
106
|
-
"""Sets the internal_step of this V1MetricValue.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:param internal_step: The internal_step of this V1MetricValue. # noqa: E501
|
|
110
|
-
:type: str
|
|
111
|
-
"""
|
|
112
|
-
|
|
113
|
-
self._internal_step = internal_step
|
|
114
|
-
|
|
115
89
|
@property
|
|
116
90
|
def step(self) -> 'str':
|
|
117
91
|
"""Gets the step of this V1MetricValue. # noqa: E501
|
|
@@ -41,25 +41,51 @@ class V1Metrics(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'internal_start_step': 'int',
|
|
44
45
|
'name': 'str',
|
|
45
46
|
'values': 'list[V1MetricValue]'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
50
|
+
'internal_start_step': 'internalStartStep',
|
|
49
51
|
'name': 'name',
|
|
50
52
|
'values': 'values'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, name: 'str' =None, values: 'list[V1MetricValue]' =None): # noqa: E501
|
|
55
|
+
def __init__(self, internal_start_step: 'int' =None, name: 'str' =None, values: 'list[V1MetricValue]' =None): # noqa: E501
|
|
54
56
|
"""V1Metrics - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._internal_start_step = None
|
|
55
58
|
self._name = None
|
|
56
59
|
self._values = None
|
|
57
60
|
self.discriminator = None
|
|
61
|
+
if internal_start_step is not None:
|
|
62
|
+
self.internal_start_step = internal_start_step
|
|
58
63
|
if name is not None:
|
|
59
64
|
self.name = name
|
|
60
65
|
if values is not None:
|
|
61
66
|
self.values = values
|
|
62
67
|
|
|
68
|
+
@property
|
|
69
|
+
def internal_start_step(self) -> 'int':
|
|
70
|
+
"""Gets the internal_start_step of this V1Metrics. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The internal_start_step of this V1Metrics. # noqa: E501
|
|
74
|
+
:rtype: int
|
|
75
|
+
"""
|
|
76
|
+
return self._internal_start_step
|
|
77
|
+
|
|
78
|
+
@internal_start_step.setter
|
|
79
|
+
def internal_start_step(self, internal_start_step: 'int'):
|
|
80
|
+
"""Sets the internal_start_step of this V1Metrics.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param internal_start_step: The internal_start_step of this V1Metrics. # noqa: E501
|
|
84
|
+
:type: int
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._internal_start_step = internal_start_step
|
|
88
|
+
|
|
63
89
|
@property
|
|
64
90
|
def name(self) -> 'str':
|
|
65
91
|
"""Gets the name of this V1Metrics. # noqa: E501
|
|
@@ -41,19 +41,24 @@ class V1Select(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'options': 'list[str]'
|
|
44
|
+
'options': 'list[str]',
|
|
45
|
+
'value': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'options': 'options'
|
|
49
|
+
'options': 'options',
|
|
50
|
+
'value': 'value'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, options: 'list[str]' =None): # noqa: E501
|
|
53
|
+
def __init__(self, options: 'list[str]' =None, value: 'str' =None): # noqa: E501
|
|
52
54
|
"""V1Select - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._options = None
|
|
56
|
+
self._value = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if options is not None:
|
|
56
59
|
self.options = options
|
|
60
|
+
if value is not None:
|
|
61
|
+
self.value = value
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def options(self) -> 'list[str]':
|
|
@@ -76,6 +81,27 @@ class V1Select(object):
|
|
|
76
81
|
|
|
77
82
|
self._options = options
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def value(self) -> 'str':
|
|
86
|
+
"""Gets the value of this V1Select. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The value of this V1Select. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._value
|
|
93
|
+
|
|
94
|
+
@value.setter
|
|
95
|
+
def value(self, value: 'str'):
|
|
96
|
+
"""Sets the value of this V1Select.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param value: The value of this V1Select. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._value = value
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|