lightning-sdk 0.2.5__py3-none-any.whl → 0.2.6__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/cli/serve.py +29 -9
- lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +9 -9
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +15 -3
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +8 -0
- lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_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/externalv1_cluster.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +131 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -79
- lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/rest_client.py +44 -42
- lightning_sdk/serve.py +5 -3
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/RECORD +40 -32
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -42,6 +42,7 @@ class V1ClusterSpec(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'auth_token': 'str',
|
|
45
|
+
'available_accelerators': 'list[str]',
|
|
45
46
|
'aws_v1': 'V1AWSDirectV1',
|
|
46
47
|
'cluster_type': 'V1ClusterType',
|
|
47
48
|
'deletion_options': 'V1ClusterDeletionOptions',
|
|
@@ -51,9 +52,13 @@ class V1ClusterSpec(object):
|
|
|
51
52
|
'google_cloud_v1': 'V1GoogleCloudDirectV1',
|
|
52
53
|
'insurer_disabled': 'bool',
|
|
53
54
|
'lambda_labs_v1': 'V1LambdaLabsDirectV1',
|
|
55
|
+
'locked_zones': 'list[str]',
|
|
54
56
|
'monitor_deletion_disabled': 'bool',
|
|
55
57
|
'overprovisioning': 'list[V1InstanceOverprovisioningSpec]',
|
|
58
|
+
'parent_cluster_id': 'str',
|
|
56
59
|
'pause_automation': 'bool',
|
|
60
|
+
'reservation_details': 'V1ReservationDetails',
|
|
61
|
+
'reserved_capacity_provider': 'bool',
|
|
57
62
|
'security_options': 'V1ClusterSecurityOptions',
|
|
58
63
|
'slurm_v1': 'V1SlurmV1',
|
|
59
64
|
'tagging_options': 'V1ClusterTaggingOptions',
|
|
@@ -64,6 +69,7 @@ class V1ClusterSpec(object):
|
|
|
64
69
|
|
|
65
70
|
attribute_map = {
|
|
66
71
|
'auth_token': 'authToken',
|
|
72
|
+
'available_accelerators': 'availableAccelerators',
|
|
67
73
|
'aws_v1': 'awsV1',
|
|
68
74
|
'cluster_type': 'clusterType',
|
|
69
75
|
'deletion_options': 'deletionOptions',
|
|
@@ -73,9 +79,13 @@ class V1ClusterSpec(object):
|
|
|
73
79
|
'google_cloud_v1': 'googleCloudV1',
|
|
74
80
|
'insurer_disabled': 'insurerDisabled',
|
|
75
81
|
'lambda_labs_v1': 'lambdaLabsV1',
|
|
82
|
+
'locked_zones': 'lockedZones',
|
|
76
83
|
'monitor_deletion_disabled': 'monitorDeletionDisabled',
|
|
77
84
|
'overprovisioning': 'overprovisioning',
|
|
85
|
+
'parent_cluster_id': 'parentClusterId',
|
|
78
86
|
'pause_automation': 'pauseAutomation',
|
|
87
|
+
'reservation_details': 'reservationDetails',
|
|
88
|
+
'reserved_capacity_provider': 'reservedCapacityProvider',
|
|
79
89
|
'security_options': 'securityOptions',
|
|
80
90
|
'slurm_v1': 'slurmV1',
|
|
81
91
|
'tagging_options': 'taggingOptions',
|
|
@@ -84,9 +94,10 @@ class V1ClusterSpec(object):
|
|
|
84
94
|
'vultr_v1': 'vultrV1'
|
|
85
95
|
}
|
|
86
96
|
|
|
87
|
-
def __init__(self, auth_token: 'str' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, pause_automation: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
97
|
+
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cluster_type: 'V1ClusterType' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
88
98
|
"""V1ClusterSpec - a model defined in Swagger""" # noqa: E501
|
|
89
99
|
self._auth_token = None
|
|
100
|
+
self._available_accelerators = None
|
|
90
101
|
self._aws_v1 = None
|
|
91
102
|
self._cluster_type = None
|
|
92
103
|
self._deletion_options = None
|
|
@@ -96,9 +107,13 @@ class V1ClusterSpec(object):
|
|
|
96
107
|
self._google_cloud_v1 = None
|
|
97
108
|
self._insurer_disabled = None
|
|
98
109
|
self._lambda_labs_v1 = None
|
|
110
|
+
self._locked_zones = None
|
|
99
111
|
self._monitor_deletion_disabled = None
|
|
100
112
|
self._overprovisioning = None
|
|
113
|
+
self._parent_cluster_id = None
|
|
101
114
|
self._pause_automation = None
|
|
115
|
+
self._reservation_details = None
|
|
116
|
+
self._reserved_capacity_provider = None
|
|
102
117
|
self._security_options = None
|
|
103
118
|
self._slurm_v1 = None
|
|
104
119
|
self._tagging_options = None
|
|
@@ -108,6 +123,8 @@ class V1ClusterSpec(object):
|
|
|
108
123
|
self.discriminator = None
|
|
109
124
|
if auth_token is not None:
|
|
110
125
|
self.auth_token = auth_token
|
|
126
|
+
if available_accelerators is not None:
|
|
127
|
+
self.available_accelerators = available_accelerators
|
|
111
128
|
if aws_v1 is not None:
|
|
112
129
|
self.aws_v1 = aws_v1
|
|
113
130
|
if cluster_type is not None:
|
|
@@ -126,12 +143,20 @@ class V1ClusterSpec(object):
|
|
|
126
143
|
self.insurer_disabled = insurer_disabled
|
|
127
144
|
if lambda_labs_v1 is not None:
|
|
128
145
|
self.lambda_labs_v1 = lambda_labs_v1
|
|
146
|
+
if locked_zones is not None:
|
|
147
|
+
self.locked_zones = locked_zones
|
|
129
148
|
if monitor_deletion_disabled is not None:
|
|
130
149
|
self.monitor_deletion_disabled = monitor_deletion_disabled
|
|
131
150
|
if overprovisioning is not None:
|
|
132
151
|
self.overprovisioning = overprovisioning
|
|
152
|
+
if parent_cluster_id is not None:
|
|
153
|
+
self.parent_cluster_id = parent_cluster_id
|
|
133
154
|
if pause_automation is not None:
|
|
134
155
|
self.pause_automation = pause_automation
|
|
156
|
+
if reservation_details is not None:
|
|
157
|
+
self.reservation_details = reservation_details
|
|
158
|
+
if reserved_capacity_provider is not None:
|
|
159
|
+
self.reserved_capacity_provider = reserved_capacity_provider
|
|
135
160
|
if security_options is not None:
|
|
136
161
|
self.security_options = security_options
|
|
137
162
|
if slurm_v1 is not None:
|
|
@@ -166,6 +191,27 @@ class V1ClusterSpec(object):
|
|
|
166
191
|
|
|
167
192
|
self._auth_token = auth_token
|
|
168
193
|
|
|
194
|
+
@property
|
|
195
|
+
def available_accelerators(self) -> 'list[str]':
|
|
196
|
+
"""Gets the available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:return: The available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
200
|
+
:rtype: list[str]
|
|
201
|
+
"""
|
|
202
|
+
return self._available_accelerators
|
|
203
|
+
|
|
204
|
+
@available_accelerators.setter
|
|
205
|
+
def available_accelerators(self, available_accelerators: 'list[str]'):
|
|
206
|
+
"""Sets the available_accelerators of this V1ClusterSpec.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
:param available_accelerators: The available_accelerators of this V1ClusterSpec. # noqa: E501
|
|
210
|
+
:type: list[str]
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
self._available_accelerators = available_accelerators
|
|
214
|
+
|
|
169
215
|
@property
|
|
170
216
|
def aws_v1(self) -> 'V1AWSDirectV1':
|
|
171
217
|
"""Gets the aws_v1 of this V1ClusterSpec. # noqa: E501
|
|
@@ -357,6 +403,27 @@ class V1ClusterSpec(object):
|
|
|
357
403
|
|
|
358
404
|
self._lambda_labs_v1 = lambda_labs_v1
|
|
359
405
|
|
|
406
|
+
@property
|
|
407
|
+
def locked_zones(self) -> 'list[str]':
|
|
408
|
+
"""Gets the locked_zones of this V1ClusterSpec. # noqa: E501
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:return: The locked_zones of this V1ClusterSpec. # noqa: E501
|
|
412
|
+
:rtype: list[str]
|
|
413
|
+
"""
|
|
414
|
+
return self._locked_zones
|
|
415
|
+
|
|
416
|
+
@locked_zones.setter
|
|
417
|
+
def locked_zones(self, locked_zones: 'list[str]'):
|
|
418
|
+
"""Sets the locked_zones of this V1ClusterSpec.
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
:param locked_zones: The locked_zones of this V1ClusterSpec. # noqa: E501
|
|
422
|
+
:type: list[str]
|
|
423
|
+
"""
|
|
424
|
+
|
|
425
|
+
self._locked_zones = locked_zones
|
|
426
|
+
|
|
360
427
|
@property
|
|
361
428
|
def monitor_deletion_disabled(self) -> 'bool':
|
|
362
429
|
"""Gets the monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
|
|
@@ -399,6 +466,27 @@ class V1ClusterSpec(object):
|
|
|
399
466
|
|
|
400
467
|
self._overprovisioning = overprovisioning
|
|
401
468
|
|
|
469
|
+
@property
|
|
470
|
+
def parent_cluster_id(self) -> 'str':
|
|
471
|
+
"""Gets the parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
:return: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
475
|
+
:rtype: str
|
|
476
|
+
"""
|
|
477
|
+
return self._parent_cluster_id
|
|
478
|
+
|
|
479
|
+
@parent_cluster_id.setter
|
|
480
|
+
def parent_cluster_id(self, parent_cluster_id: 'str'):
|
|
481
|
+
"""Sets the parent_cluster_id of this V1ClusterSpec.
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
:param parent_cluster_id: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
|
|
485
|
+
:type: str
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
self._parent_cluster_id = parent_cluster_id
|
|
489
|
+
|
|
402
490
|
@property
|
|
403
491
|
def pause_automation(self) -> 'bool':
|
|
404
492
|
"""Gets the pause_automation of this V1ClusterSpec. # noqa: E501
|
|
@@ -420,6 +508,48 @@ class V1ClusterSpec(object):
|
|
|
420
508
|
|
|
421
509
|
self._pause_automation = pause_automation
|
|
422
510
|
|
|
511
|
+
@property
|
|
512
|
+
def reservation_details(self) -> 'V1ReservationDetails':
|
|
513
|
+
"""Gets the reservation_details of this V1ClusterSpec. # noqa: E501
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
:return: The reservation_details of this V1ClusterSpec. # noqa: E501
|
|
517
|
+
:rtype: V1ReservationDetails
|
|
518
|
+
"""
|
|
519
|
+
return self._reservation_details
|
|
520
|
+
|
|
521
|
+
@reservation_details.setter
|
|
522
|
+
def reservation_details(self, reservation_details: 'V1ReservationDetails'):
|
|
523
|
+
"""Sets the reservation_details of this V1ClusterSpec.
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
:param reservation_details: The reservation_details of this V1ClusterSpec. # noqa: E501
|
|
527
|
+
:type: V1ReservationDetails
|
|
528
|
+
"""
|
|
529
|
+
|
|
530
|
+
self._reservation_details = reservation_details
|
|
531
|
+
|
|
532
|
+
@property
|
|
533
|
+
def reserved_capacity_provider(self) -> 'bool':
|
|
534
|
+
"""Gets the reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
:return: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
538
|
+
:rtype: bool
|
|
539
|
+
"""
|
|
540
|
+
return self._reserved_capacity_provider
|
|
541
|
+
|
|
542
|
+
@reserved_capacity_provider.setter
|
|
543
|
+
def reserved_capacity_provider(self, reserved_capacity_provider: 'bool'):
|
|
544
|
+
"""Sets the reserved_capacity_provider of this V1ClusterSpec.
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
:param reserved_capacity_provider: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
|
|
548
|
+
:type: bool
|
|
549
|
+
"""
|
|
550
|
+
|
|
551
|
+
self._reserved_capacity_provider = reserved_capacity_provider
|
|
552
|
+
|
|
423
553
|
@property
|
|
424
554
|
def security_options(self) -> 'V1ClusterSecurityOptions':
|
|
425
555
|
"""Gets the security_options of this V1ClusterSpec. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py
CHANGED
|
@@ -41,25 +41,51 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'machine_image_version': 'str',
|
|
44
45
|
'name': 'str',
|
|
45
46
|
'org_id': 'str'
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
attribute_map = {
|
|
50
|
+
'machine_image_version': 'machineImageVersion',
|
|
49
51
|
'name': 'name',
|
|
50
52
|
'org_id': 'orgId'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, name: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
55
|
+
def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
54
56
|
"""V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._machine_image_version = None
|
|
55
58
|
self._name = None
|
|
56
59
|
self._org_id = None
|
|
57
60
|
self.discriminator = None
|
|
61
|
+
if machine_image_version is not None:
|
|
62
|
+
self.machine_image_version = machine_image_version
|
|
58
63
|
if name is not None:
|
|
59
64
|
self.name = name
|
|
60
65
|
if org_id is not None:
|
|
61
66
|
self.org_id = org_id
|
|
62
67
|
|
|
68
|
+
@property
|
|
69
|
+
def machine_image_version(self) -> 'str':
|
|
70
|
+
"""Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._machine_image_version
|
|
77
|
+
|
|
78
|
+
@machine_image_version.setter
|
|
79
|
+
def machine_image_version(self, machine_image_version: 'str'):
|
|
80
|
+
"""Sets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param machine_image_version: The machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._machine_image_version = machine_image_version
|
|
88
|
+
|
|
63
89
|
@property
|
|
64
90
|
def name(self) -> 'str':
|
|
65
91
|
"""Gets the name of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
@@ -0,0 +1,97 @@
|
|
|
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 V1CreateServerAlertResponse(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
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CreateServerAlertResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CreateServerAlertResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CreateServerAlertResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CreateServerAlertResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CreateServerAlertResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -47,6 +47,7 @@ class V1DataConnection(object):
|
|
|
47
47
|
'cluster_id': 'str',
|
|
48
48
|
'created_at': 'datetime',
|
|
49
49
|
'efs': 'V1EfsConfig',
|
|
50
|
+
'error': 'str',
|
|
50
51
|
'filestore': 'V1FilestoreDataConnection',
|
|
51
52
|
'gcp': 'V1GcpDataConnection',
|
|
52
53
|
'gcs_folder': 'V1GCSFolderDataConnection',
|
|
@@ -74,6 +75,7 @@ class V1DataConnection(object):
|
|
|
74
75
|
'cluster_id': 'clusterId',
|
|
75
76
|
'created_at': 'createdAt',
|
|
76
77
|
'efs': 'efs',
|
|
78
|
+
'error': 'error',
|
|
77
79
|
'filestore': 'filestore',
|
|
78
80
|
'gcp': 'gcp',
|
|
79
81
|
'gcs_folder': 'gcsFolder',
|
|
@@ -94,7 +96,7 @@ class V1DataConnection(object):
|
|
|
94
96
|
'writable': 'writable'
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
99
|
+
def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, writable: 'bool' =None): # noqa: E501
|
|
98
100
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
99
101
|
self._access_cluster_ids = None
|
|
100
102
|
self._accessible = None
|
|
@@ -102,6 +104,7 @@ class V1DataConnection(object):
|
|
|
102
104
|
self._cluster_id = None
|
|
103
105
|
self._created_at = None
|
|
104
106
|
self._efs = None
|
|
107
|
+
self._error = None
|
|
105
108
|
self._filestore = None
|
|
106
109
|
self._gcp = None
|
|
107
110
|
self._gcs_folder = None
|
|
@@ -133,6 +136,8 @@ class V1DataConnection(object):
|
|
|
133
136
|
self.created_at = created_at
|
|
134
137
|
if efs is not None:
|
|
135
138
|
self.efs = efs
|
|
139
|
+
if error is not None:
|
|
140
|
+
self.error = error
|
|
136
141
|
if filestore is not None:
|
|
137
142
|
self.filestore = filestore
|
|
138
143
|
if gcp is not None:
|
|
@@ -296,6 +301,27 @@ class V1DataConnection(object):
|
|
|
296
301
|
|
|
297
302
|
self._efs = efs
|
|
298
303
|
|
|
304
|
+
@property
|
|
305
|
+
def error(self) -> 'str':
|
|
306
|
+
"""Gets the error of this V1DataConnection. # noqa: E501
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
:return: The error of this V1DataConnection. # noqa: E501
|
|
310
|
+
:rtype: str
|
|
311
|
+
"""
|
|
312
|
+
return self._error
|
|
313
|
+
|
|
314
|
+
@error.setter
|
|
315
|
+
def error(self, error: 'str'):
|
|
316
|
+
"""Sets the error of this V1DataConnection.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:param error: The error of this V1DataConnection. # noqa: E501
|
|
320
|
+
:type: str
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
self._error = error
|
|
324
|
+
|
|
299
325
|
@property
|
|
300
326
|
def filestore(self) -> 'V1FilestoreDataConnection':
|
|
301
327
|
"""Gets the filestore of this V1DataConnection. # noqa: E501
|
|
@@ -45,12 +45,14 @@ class V1GoogleCloudDirectV1(object):
|
|
|
45
45
|
'compute_project_role': 'str',
|
|
46
46
|
'credentials_secret_id': 'str',
|
|
47
47
|
'credentials_service_account_email': 'str',
|
|
48
|
+
'custom_subnet_mode': 'bool',
|
|
48
49
|
'primary_region': 'str',
|
|
49
50
|
'project_id': 'str',
|
|
50
51
|
'project_sa_enabled': 'bool',
|
|
51
52
|
'regions': 'list[str]',
|
|
52
53
|
'service_account_email': 'str',
|
|
53
|
-
'source_cidr_ips': 'list[str]'
|
|
54
|
+
'source_cidr_ips': 'list[str]',
|
|
55
|
+
'subnets': 'list[V1SubnetSpec]'
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
attribute_map = {
|
|
@@ -58,26 +60,30 @@ class V1GoogleCloudDirectV1(object):
|
|
|
58
60
|
'compute_project_role': 'computeProjectRole',
|
|
59
61
|
'credentials_secret_id': 'credentialsSecretId',
|
|
60
62
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
63
|
+
'custom_subnet_mode': 'customSubnetMode',
|
|
61
64
|
'primary_region': 'primaryRegion',
|
|
62
65
|
'project_id': 'projectId',
|
|
63
66
|
'project_sa_enabled': 'projectSaEnabled',
|
|
64
67
|
'regions': 'regions',
|
|
65
68
|
'service_account_email': 'serviceAccountEmail',
|
|
66
|
-
'source_cidr_ips': 'sourceCidrIps'
|
|
69
|
+
'source_cidr_ips': 'sourceCidrIps',
|
|
70
|
+
'subnets': 'subnets'
|
|
67
71
|
}
|
|
68
72
|
|
|
69
|
-
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None): # noqa: E501
|
|
73
|
+
def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None): # noqa: E501
|
|
70
74
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
71
75
|
self._bucket_name = None
|
|
72
76
|
self._compute_project_role = None
|
|
73
77
|
self._credentials_secret_id = None
|
|
74
78
|
self._credentials_service_account_email = None
|
|
79
|
+
self._custom_subnet_mode = None
|
|
75
80
|
self._primary_region = None
|
|
76
81
|
self._project_id = None
|
|
77
82
|
self._project_sa_enabled = None
|
|
78
83
|
self._regions = None
|
|
79
84
|
self._service_account_email = None
|
|
80
85
|
self._source_cidr_ips = None
|
|
86
|
+
self._subnets = None
|
|
81
87
|
self.discriminator = None
|
|
82
88
|
if bucket_name is not None:
|
|
83
89
|
self.bucket_name = bucket_name
|
|
@@ -87,6 +93,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
87
93
|
self.credentials_secret_id = credentials_secret_id
|
|
88
94
|
if credentials_service_account_email is not None:
|
|
89
95
|
self.credentials_service_account_email = credentials_service_account_email
|
|
96
|
+
if custom_subnet_mode is not None:
|
|
97
|
+
self.custom_subnet_mode = custom_subnet_mode
|
|
90
98
|
if primary_region is not None:
|
|
91
99
|
self.primary_region = primary_region
|
|
92
100
|
if project_id is not None:
|
|
@@ -99,6 +107,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
99
107
|
self.service_account_email = service_account_email
|
|
100
108
|
if source_cidr_ips is not None:
|
|
101
109
|
self.source_cidr_ips = source_cidr_ips
|
|
110
|
+
if subnets is not None:
|
|
111
|
+
self.subnets = subnets
|
|
102
112
|
|
|
103
113
|
@property
|
|
104
114
|
def bucket_name(self) -> 'str':
|
|
@@ -186,6 +196,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
186
196
|
|
|
187
197
|
self._credentials_service_account_email = credentials_service_account_email
|
|
188
198
|
|
|
199
|
+
@property
|
|
200
|
+
def custom_subnet_mode(self) -> 'bool':
|
|
201
|
+
"""Gets the custom_subnet_mode of this V1GoogleCloudDirectV1. # noqa: E501
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:return: The custom_subnet_mode of this V1GoogleCloudDirectV1. # noqa: E501
|
|
205
|
+
:rtype: bool
|
|
206
|
+
"""
|
|
207
|
+
return self._custom_subnet_mode
|
|
208
|
+
|
|
209
|
+
@custom_subnet_mode.setter
|
|
210
|
+
def custom_subnet_mode(self, custom_subnet_mode: 'bool'):
|
|
211
|
+
"""Sets the custom_subnet_mode of this V1GoogleCloudDirectV1.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:param custom_subnet_mode: The custom_subnet_mode of this V1GoogleCloudDirectV1. # noqa: E501
|
|
215
|
+
:type: bool
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
self._custom_subnet_mode = custom_subnet_mode
|
|
219
|
+
|
|
189
220
|
@property
|
|
190
221
|
def primary_region(self) -> 'str':
|
|
191
222
|
"""Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -316,6 +347,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
316
347
|
|
|
317
348
|
self._source_cidr_ips = source_cidr_ips
|
|
318
349
|
|
|
350
|
+
@property
|
|
351
|
+
def subnets(self) -> 'list[V1SubnetSpec]':
|
|
352
|
+
"""Gets the subnets of this V1GoogleCloudDirectV1. # noqa: E501
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
:return: The subnets of this V1GoogleCloudDirectV1. # noqa: E501
|
|
356
|
+
:rtype: list[V1SubnetSpec]
|
|
357
|
+
"""
|
|
358
|
+
return self._subnets
|
|
359
|
+
|
|
360
|
+
@subnets.setter
|
|
361
|
+
def subnets(self, subnets: 'list[V1SubnetSpec]'):
|
|
362
|
+
"""Sets the subnets of this V1GoogleCloudDirectV1.
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
:param subnets: The subnets of this V1GoogleCloudDirectV1. # noqa: E501
|
|
366
|
+
:type: list[V1SubnetSpec]
|
|
367
|
+
"""
|
|
368
|
+
|
|
369
|
+
self._subnets = subnets
|
|
370
|
+
|
|
319
371
|
def to_dict(self) -> dict:
|
|
320
372
|
"""Returns the model properties as a dict"""
|
|
321
373
|
result = {}
|
|
@@ -42,29 +42,24 @@ class V1LambdaLabsDirectV1(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'credentials_secret_id': 'str',
|
|
45
|
-
'parent_cluster_id': 'str',
|
|
46
45
|
'primary_region': 'str',
|
|
47
46
|
'regions': 'list[str]'
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
attribute_map = {
|
|
51
50
|
'credentials_secret_id': 'credentialsSecretId',
|
|
52
|
-
'parent_cluster_id': 'parentClusterId',
|
|
53
51
|
'primary_region': 'primaryRegion',
|
|
54
52
|
'regions': 'regions'
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
def __init__(self, credentials_secret_id: 'str' =None,
|
|
55
|
+
def __init__(self, credentials_secret_id: 'str' =None, primary_region: 'str' =None, regions: 'list[str]' =None): # noqa: E501
|
|
58
56
|
"""V1LambdaLabsDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
59
57
|
self._credentials_secret_id = None
|
|
60
|
-
self._parent_cluster_id = None
|
|
61
58
|
self._primary_region = None
|
|
62
59
|
self._regions = None
|
|
63
60
|
self.discriminator = None
|
|
64
61
|
if credentials_secret_id is not None:
|
|
65
62
|
self.credentials_secret_id = credentials_secret_id
|
|
66
|
-
if parent_cluster_id is not None:
|
|
67
|
-
self.parent_cluster_id = parent_cluster_id
|
|
68
63
|
if primary_region is not None:
|
|
69
64
|
self.primary_region = primary_region
|
|
70
65
|
if regions is not None:
|
|
@@ -93,29 +88,6 @@ class V1LambdaLabsDirectV1(object):
|
|
|
93
88
|
|
|
94
89
|
self._credentials_secret_id = credentials_secret_id
|
|
95
90
|
|
|
96
|
-
@property
|
|
97
|
-
def parent_cluster_id(self) -> 'str':
|
|
98
|
-
"""Gets the parent_cluster_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
99
|
-
|
|
100
|
-
Note: LambdaLabs is missing object store in their offering, we will need to use either GCP or AWS S3 for that. # noqa: E501
|
|
101
|
-
|
|
102
|
-
:return: The parent_cluster_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
103
|
-
:rtype: str
|
|
104
|
-
"""
|
|
105
|
-
return self._parent_cluster_id
|
|
106
|
-
|
|
107
|
-
@parent_cluster_id.setter
|
|
108
|
-
def parent_cluster_id(self, parent_cluster_id: 'str'):
|
|
109
|
-
"""Sets the parent_cluster_id of this V1LambdaLabsDirectV1.
|
|
110
|
-
|
|
111
|
-
Note: LambdaLabs is missing object store in their offering, we will need to use either GCP or AWS S3 for that. # noqa: E501
|
|
112
|
-
|
|
113
|
-
:param parent_cluster_id: The parent_cluster_id of this V1LambdaLabsDirectV1. # noqa: E501
|
|
114
|
-
:type: str
|
|
115
|
-
"""
|
|
116
|
-
|
|
117
|
-
self._parent_cluster_id = parent_cluster_id
|
|
118
|
-
|
|
119
91
|
@property
|
|
120
92
|
def primary_region(self) -> 'str':
|
|
121
93
|
"""Gets the primary_region of this V1LambdaLabsDirectV1. # noqa: E501
|