lightning-sdk 0.1.36__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 +20 -11
- 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/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/v1_checkbox.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.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_select.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -1
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/METADATA +1 -1
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/RECORD +24 -23
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.1.36.dist-info → lightning_sdk-0.1.37.dist-info}/top_level.txt +0 -0
|
@@ -43,20 +43,23 @@ class V1Checkbox(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'false_value': 'str',
|
|
45
45
|
'is_checked': 'bool',
|
|
46
|
-
'true_value': 'str'
|
|
46
|
+
'true_value': 'str',
|
|
47
|
+
'value': 'bool'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'false_value': 'falseValue',
|
|
51
52
|
'is_checked': 'isChecked',
|
|
52
|
-
'true_value': 'trueValue'
|
|
53
|
+
'true_value': 'trueValue',
|
|
54
|
+
'value': 'value'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, false_value: 'str' =None, is_checked: 'bool' =None, true_value: 'str' =None, value: 'bool' =None): # noqa: E501
|
|
56
58
|
"""V1Checkbox - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._false_value = None
|
|
58
60
|
self._is_checked = None
|
|
59
61
|
self._true_value = None
|
|
62
|
+
self._value = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if false_value is not None:
|
|
62
65
|
self.false_value = false_value
|
|
@@ -64,6 +67,8 @@ class V1Checkbox(object):
|
|
|
64
67
|
self.is_checked = is_checked
|
|
65
68
|
if true_value is not None:
|
|
66
69
|
self.true_value = true_value
|
|
70
|
+
if value is not None:
|
|
71
|
+
self.value = value
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def false_value(self) -> 'str':
|
|
@@ -128,6 +133,27 @@ class V1Checkbox(object):
|
|
|
128
133
|
|
|
129
134
|
self._true_value = true_value
|
|
130
135
|
|
|
136
|
+
@property
|
|
137
|
+
def value(self) -> 'bool':
|
|
138
|
+
"""Gets the value of this V1Checkbox. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The value of this V1Checkbox. # noqa: E501
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
144
|
+
return self._value
|
|
145
|
+
|
|
146
|
+
@value.setter
|
|
147
|
+
def value(self, value: 'bool'):
|
|
148
|
+
"""Sets the value of this V1Checkbox.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param value: The value of this V1Checkbox. # noqa: E501
|
|
152
|
+
:type: bool
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._value = value
|
|
156
|
+
|
|
131
157
|
def to_dict(self) -> dict:
|
|
132
158
|
"""Returns the model properties as a dict"""
|
|
133
159
|
result = {}
|
|
@@ -56,6 +56,7 @@ class V1Deployment(object):
|
|
|
56
56
|
'spec': 'V1JobSpec',
|
|
57
57
|
'status': 'V1DeploymentStatus',
|
|
58
58
|
'strategy': 'V1DeploymentStrategy',
|
|
59
|
+
'template_id': 'str',
|
|
59
60
|
'updated_at': 'datetime',
|
|
60
61
|
'user_id': 'str'
|
|
61
62
|
}
|
|
@@ -76,11 +77,12 @@ class V1Deployment(object):
|
|
|
76
77
|
'spec': 'spec',
|
|
77
78
|
'status': 'status',
|
|
78
79
|
'strategy': 'strategy',
|
|
80
|
+
'template_id': 'templateId',
|
|
79
81
|
'updated_at': 'updatedAt',
|
|
80
82
|
'user_id': 'userId'
|
|
81
83
|
}
|
|
82
84
|
|
|
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
|
|
85
|
+
def __init__(self, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
84
86
|
"""V1Deployment - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._autoscaling = None
|
|
86
88
|
self._cloudspace_id = None
|
|
@@ -97,6 +99,7 @@ class V1Deployment(object):
|
|
|
97
99
|
self._spec = None
|
|
98
100
|
self._status = None
|
|
99
101
|
self._strategy = None
|
|
102
|
+
self._template_id = None
|
|
100
103
|
self._updated_at = None
|
|
101
104
|
self._user_id = None
|
|
102
105
|
self.discriminator = None
|
|
@@ -130,6 +133,8 @@ class V1Deployment(object):
|
|
|
130
133
|
self.status = status
|
|
131
134
|
if strategy is not None:
|
|
132
135
|
self.strategy = strategy
|
|
136
|
+
if template_id is not None:
|
|
137
|
+
self.template_id = template_id
|
|
133
138
|
if updated_at is not None:
|
|
134
139
|
self.updated_at = updated_at
|
|
135
140
|
if user_id is not None:
|
|
@@ -450,6 +455,27 @@ class V1Deployment(object):
|
|
|
450
455
|
|
|
451
456
|
self._strategy = strategy
|
|
452
457
|
|
|
458
|
+
@property
|
|
459
|
+
def template_id(self) -> 'str':
|
|
460
|
+
"""Gets the template_id of this V1Deployment. # noqa: E501
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
:return: The template_id of this V1Deployment. # noqa: E501
|
|
464
|
+
:rtype: str
|
|
465
|
+
"""
|
|
466
|
+
return self._template_id
|
|
467
|
+
|
|
468
|
+
@template_id.setter
|
|
469
|
+
def template_id(self, template_id: 'str'):
|
|
470
|
+
"""Sets the template_id of this V1Deployment.
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
:param template_id: The template_id of this V1Deployment. # noqa: E501
|
|
474
|
+
:type: str
|
|
475
|
+
"""
|
|
476
|
+
|
|
477
|
+
self._template_id = template_id
|
|
478
|
+
|
|
453
479
|
@property
|
|
454
480
|
def updated_at(self) -> 'datetime':
|
|
455
481
|
"""Gets the updated_at of this V1Deployment. # 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
|
|
@@ -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 = {}
|
|
@@ -64,8 +64,10 @@ class V1UserFeatures(object):
|
|
|
64
64
|
'deployment_data_path': 'bool',
|
|
65
65
|
'deployment_gallery': 'bool',
|
|
66
66
|
'deployment_persistent_disk': 'bool',
|
|
67
|
+
'deployment_version_visibility': 'bool',
|
|
67
68
|
'docs_agent': 'bool',
|
|
68
69
|
'drive_v2': 'bool',
|
|
70
|
+
'dynamic_workload_scheduling': 'bool',
|
|
69
71
|
'enable_crypto_crackdown': 'bool',
|
|
70
72
|
'enable_efs': 'bool',
|
|
71
73
|
'enable_storage_limits': 'bool',
|
|
@@ -114,6 +116,7 @@ class V1UserFeatures(object):
|
|
|
114
116
|
'spot_v2': 'bool',
|
|
115
117
|
'studio_config': 'bool',
|
|
116
118
|
'studio_on_stop': 'bool',
|
|
119
|
+
'studio_version_visibility': 'bool',
|
|
117
120
|
'teamspace_storage_tab': 'bool',
|
|
118
121
|
'use_rclone_mounts_only': 'bool',
|
|
119
122
|
'writable_data_connections': 'bool'
|
|
@@ -143,8 +146,10 @@ class V1UserFeatures(object):
|
|
|
143
146
|
'deployment_data_path': 'deploymentDataPath',
|
|
144
147
|
'deployment_gallery': 'deploymentGallery',
|
|
145
148
|
'deployment_persistent_disk': 'deploymentPersistentDisk',
|
|
149
|
+
'deployment_version_visibility': 'deploymentVersionVisibility',
|
|
146
150
|
'docs_agent': 'docsAgent',
|
|
147
151
|
'drive_v2': 'driveV2',
|
|
152
|
+
'dynamic_workload_scheduling': 'dynamicWorkloadScheduling',
|
|
148
153
|
'enable_crypto_crackdown': 'enableCryptoCrackdown',
|
|
149
154
|
'enable_efs': 'enableEfs',
|
|
150
155
|
'enable_storage_limits': 'enableStorageLimits',
|
|
@@ -193,12 +198,13 @@ class V1UserFeatures(object):
|
|
|
193
198
|
'spot_v2': 'spotV2',
|
|
194
199
|
'studio_config': 'studioConfig',
|
|
195
200
|
'studio_on_stop': 'studioOnStop',
|
|
201
|
+
'studio_version_visibility': 'studioVersionVisibility',
|
|
196
202
|
'teamspace_storage_tab': 'teamspaceStorageTab',
|
|
197
203
|
'use_rclone_mounts_only': 'useRcloneMountsOnly',
|
|
198
204
|
'writable_data_connections': 'writableDataConnections'
|
|
199
205
|
}
|
|
200
206
|
|
|
201
|
-
def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, aws_trainium: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, cluster_proxy: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, crypto_monitoring: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, s3_folders: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
|
|
207
|
+
def __init__(self, advanced_deployment_autoscaling: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, aws_trainium: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, cluster_proxy: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, cost_attribution_settings: 'bool' =None, crypto_monitoring: 'bool' =None, custom_app_domain: 'bool' =None, custom_instance_types: 'bool' =None, default_one_cluster: 'bool' =None, deployment_customize_api: 'bool' =None, deployment_data_path: 'bool' =None, deployment_gallery: 'bool' =None, deployment_persistent_disk: 'bool' =None, deployment_version_visibility: 'bool' =None, docs_agent: 'bool' =None, drive_v2: 'bool' =None, dynamic_workload_scheduling: 'bool' =None, enable_crypto_crackdown: 'bool' =None, enable_efs: 'bool' =None, enable_storage_limits: 'bool' =None, featured_studios_admin: 'bool' =None, filesystem_optimisation: 'bool' =None, gcp: 'bool' =None, inference_job_deployment_plugin: 'bool' =None, jobs_init: 'bool' =None, jobs_v2: 'bool' =None, landing_studios: 'bool' =None, lightning_registry: 'bool' =None, lit_logger: 'bool' =None, lit_logger_storage_v2: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_store: 'bool' =None, multiple_deployment_versions: 'bool' =None, multiple_studio_versions: 'bool' =None, org_level_member_permissions: 'bool' =None, plugin_biz_chat: 'bool' =None, plugin_distributed: 'bool' =None, plugin_fiftyone: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_lightning_apps: 'bool' =None, plugin_lightning_apps_distributed: 'bool' =None, plugin_mage_ai: 'bool' =None, plugin_milvus: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_react: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, plugin_weviate: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, project_selector: 'bool' =None, restart_ide_on_hang: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, s3_folders: 'bool' =None, show_dev_admin: 'bool' =None, slurm: 'bool' =None, slurm_machine_selector: 'bool' =None, snowflake_connection: 'bool' =None, spot_v2: 'bool' =None, studio_config: 'bool' =None, studio_on_stop: 'bool' =None, studio_version_visibility: 'bool' =None, teamspace_storage_tab: 'bool' =None, use_rclone_mounts_only: 'bool' =None, writable_data_connections: 'bool' =None): # noqa: E501
|
|
202
208
|
"""V1UserFeatures - a model defined in Swagger""" # noqa: E501
|
|
203
209
|
self._advanced_deployment_autoscaling = None
|
|
204
210
|
self._affiliate_links = None
|
|
@@ -223,8 +229,10 @@ class V1UserFeatures(object):
|
|
|
223
229
|
self._deployment_data_path = None
|
|
224
230
|
self._deployment_gallery = None
|
|
225
231
|
self._deployment_persistent_disk = None
|
|
232
|
+
self._deployment_version_visibility = None
|
|
226
233
|
self._docs_agent = None
|
|
227
234
|
self._drive_v2 = None
|
|
235
|
+
self._dynamic_workload_scheduling = None
|
|
228
236
|
self._enable_crypto_crackdown = None
|
|
229
237
|
self._enable_efs = None
|
|
230
238
|
self._enable_storage_limits = None
|
|
@@ -273,6 +281,7 @@ class V1UserFeatures(object):
|
|
|
273
281
|
self._spot_v2 = None
|
|
274
282
|
self._studio_config = None
|
|
275
283
|
self._studio_on_stop = None
|
|
284
|
+
self._studio_version_visibility = None
|
|
276
285
|
self._teamspace_storage_tab = None
|
|
277
286
|
self._use_rclone_mounts_only = None
|
|
278
287
|
self._writable_data_connections = None
|
|
@@ -323,10 +332,14 @@ class V1UserFeatures(object):
|
|
|
323
332
|
self.deployment_gallery = deployment_gallery
|
|
324
333
|
if deployment_persistent_disk is not None:
|
|
325
334
|
self.deployment_persistent_disk = deployment_persistent_disk
|
|
335
|
+
if deployment_version_visibility is not None:
|
|
336
|
+
self.deployment_version_visibility = deployment_version_visibility
|
|
326
337
|
if docs_agent is not None:
|
|
327
338
|
self.docs_agent = docs_agent
|
|
328
339
|
if drive_v2 is not None:
|
|
329
340
|
self.drive_v2 = drive_v2
|
|
341
|
+
if dynamic_workload_scheduling is not None:
|
|
342
|
+
self.dynamic_workload_scheduling = dynamic_workload_scheduling
|
|
330
343
|
if enable_crypto_crackdown is not None:
|
|
331
344
|
self.enable_crypto_crackdown = enable_crypto_crackdown
|
|
332
345
|
if enable_efs is not None:
|
|
@@ -423,6 +436,8 @@ class V1UserFeatures(object):
|
|
|
423
436
|
self.studio_config = studio_config
|
|
424
437
|
if studio_on_stop is not None:
|
|
425
438
|
self.studio_on_stop = studio_on_stop
|
|
439
|
+
if studio_version_visibility is not None:
|
|
440
|
+
self.studio_version_visibility = studio_version_visibility
|
|
426
441
|
if teamspace_storage_tab is not None:
|
|
427
442
|
self.teamspace_storage_tab = teamspace_storage_tab
|
|
428
443
|
if use_rclone_mounts_only is not None:
|
|
@@ -913,6 +928,27 @@ class V1UserFeatures(object):
|
|
|
913
928
|
|
|
914
929
|
self._deployment_persistent_disk = deployment_persistent_disk
|
|
915
930
|
|
|
931
|
+
@property
|
|
932
|
+
def deployment_version_visibility(self) -> 'bool':
|
|
933
|
+
"""Gets the deployment_version_visibility of this V1UserFeatures. # noqa: E501
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
:return: The deployment_version_visibility of this V1UserFeatures. # noqa: E501
|
|
937
|
+
:rtype: bool
|
|
938
|
+
"""
|
|
939
|
+
return self._deployment_version_visibility
|
|
940
|
+
|
|
941
|
+
@deployment_version_visibility.setter
|
|
942
|
+
def deployment_version_visibility(self, deployment_version_visibility: 'bool'):
|
|
943
|
+
"""Sets the deployment_version_visibility of this V1UserFeatures.
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
:param deployment_version_visibility: The deployment_version_visibility of this V1UserFeatures. # noqa: E501
|
|
947
|
+
:type: bool
|
|
948
|
+
"""
|
|
949
|
+
|
|
950
|
+
self._deployment_version_visibility = deployment_version_visibility
|
|
951
|
+
|
|
916
952
|
@property
|
|
917
953
|
def docs_agent(self) -> 'bool':
|
|
918
954
|
"""Gets the docs_agent of this V1UserFeatures. # noqa: E501
|
|
@@ -955,6 +991,27 @@ class V1UserFeatures(object):
|
|
|
955
991
|
|
|
956
992
|
self._drive_v2 = drive_v2
|
|
957
993
|
|
|
994
|
+
@property
|
|
995
|
+
def dynamic_workload_scheduling(self) -> 'bool':
|
|
996
|
+
"""Gets the dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
:return: The dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
|
|
1000
|
+
:rtype: bool
|
|
1001
|
+
"""
|
|
1002
|
+
return self._dynamic_workload_scheduling
|
|
1003
|
+
|
|
1004
|
+
@dynamic_workload_scheduling.setter
|
|
1005
|
+
def dynamic_workload_scheduling(self, dynamic_workload_scheduling: 'bool'):
|
|
1006
|
+
"""Sets the dynamic_workload_scheduling of this V1UserFeatures.
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
:param dynamic_workload_scheduling: The dynamic_workload_scheduling of this V1UserFeatures. # noqa: E501
|
|
1010
|
+
:type: bool
|
|
1011
|
+
"""
|
|
1012
|
+
|
|
1013
|
+
self._dynamic_workload_scheduling = dynamic_workload_scheduling
|
|
1014
|
+
|
|
958
1015
|
@property
|
|
959
1016
|
def enable_crypto_crackdown(self) -> 'bool':
|
|
960
1017
|
"""Gets the enable_crypto_crackdown of this V1UserFeatures. # noqa: E501
|
|
@@ -1963,6 +2020,27 @@ class V1UserFeatures(object):
|
|
|
1963
2020
|
|
|
1964
2021
|
self._studio_on_stop = studio_on_stop
|
|
1965
2022
|
|
|
2023
|
+
@property
|
|
2024
|
+
def studio_version_visibility(self) -> 'bool':
|
|
2025
|
+
"""Gets the studio_version_visibility of this V1UserFeatures. # noqa: E501
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
:return: The studio_version_visibility of this V1UserFeatures. # noqa: E501
|
|
2029
|
+
:rtype: bool
|
|
2030
|
+
"""
|
|
2031
|
+
return self._studio_version_visibility
|
|
2032
|
+
|
|
2033
|
+
@studio_version_visibility.setter
|
|
2034
|
+
def studio_version_visibility(self, studio_version_visibility: 'bool'):
|
|
2035
|
+
"""Sets the studio_version_visibility of this V1UserFeatures.
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
:param studio_version_visibility: The studio_version_visibility of this V1UserFeatures. # noqa: E501
|
|
2039
|
+
:type: bool
|
|
2040
|
+
"""
|
|
2041
|
+
|
|
2042
|
+
self._studio_version_visibility = studio_version_visibility
|
|
2043
|
+
|
|
1966
2044
|
@property
|
|
1967
2045
|
def teamspace_storage_tab(self) -> 'bool':
|
|
1968
2046
|
"""Gets the teamspace_storage_tab of this V1UserFeatures. # noqa: E501
|