lightning-sdk 0.2.9__py3-none-any.whl → 0.2.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/deployment_api.py +1 -0
- lightning_sdk/api/lit_container_api.py +19 -2
- lightning_sdk/api/teamspace_api.py +20 -16
- lightning_sdk/api/utils.py +1 -1
- lightning_sdk/cli/entrypoint.py +2 -2
- lightning_sdk/cli/serve.py +141 -16
- lightning_sdk/cli/upload.py +4 -1
- lightning_sdk/deployment/deployment.py +5 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +98 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/create.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +17 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +50 -24
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +29 -55
- lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
- lightning_sdk/lit_container.py +12 -2
- lightning_sdk/models.py +22 -9
- lightning_sdk/serve.py +3 -0
- lightning_sdk/teamspace.py +2 -0
- lightning_sdk/utils/resolve.py +11 -4
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/RECORD +50 -45
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.10.dist-info}/top_level.txt +0 -0
|
@@ -82,6 +82,7 @@ class V1ClusterAccelerator(object):
|
|
|
82
82
|
'reservation_quota_name': 'str',
|
|
83
83
|
'reservation_quota_page_url': 'str',
|
|
84
84
|
'resources': 'V1Resources',
|
|
85
|
+
'secondary_instance_id': 'str',
|
|
85
86
|
'slug': 'str',
|
|
86
87
|
'slug_multi_cloud': 'str',
|
|
87
88
|
'spot_price': 'float',
|
|
@@ -132,6 +133,7 @@ class V1ClusterAccelerator(object):
|
|
|
132
133
|
'reservation_quota_name': 'reservationQuotaName',
|
|
133
134
|
'reservation_quota_page_url': 'reservationQuotaPageUrl',
|
|
134
135
|
'resources': 'resources',
|
|
136
|
+
'secondary_instance_id': 'secondaryInstanceId',
|
|
135
137
|
'slug': 'slug',
|
|
136
138
|
'slug_multi_cloud': 'slugMultiCloud',
|
|
137
139
|
'spot_price': 'spotPrice',
|
|
@@ -140,7 +142,7 @@ class V1ClusterAccelerator(object):
|
|
|
140
142
|
'spot_quota_page_url': 'spotQuotaPageUrl'
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_included: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, local_disks_count: 'str' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, provider: 'V1CloudProvider' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, reservation_quota_code: 'str' =None, reservation_quota_name: 'str' =None, reservation_quota_page_url: 'str' =None, resources: 'V1Resources' =None, slug: 'str' =None, slug_multi_cloud: 'str' =None, spot_price: 'float' =None, spot_quota_code: 'str' =None, spot_quota_name: 'str' =None, spot_quota_page_url: 'str' =None): # noqa: E501
|
|
145
|
+
def __init__(self, accelerator_type: 'str' =None, allowed_resources: 'list[str]' =None, available_in_seconds: 'str' =None, available_in_seconds_spot: 'str' =None, available_zones: 'list[str]' =None, byoc_only: 'bool' =None, capacity_block_only: 'bool' =None, capacity_block_price: 'float' =None, capacity_blocks_available: 'list[V1ClusterCapacityReservation]' =None, cluster_id: 'str' =None, cost: 'float' =None, detailed_quotas_info: 'list[V1AcceleratorQuotaInfo]' =None, device_card: 'str' =None, device_info: 'str' =None, display_name: 'str' =None, dws_only: 'bool' =None, enabled: 'bool' =None, family: 'str' =None, instance_id: 'str' =None, is_custom: 'bool' =None, is_tier_restricted: 'bool' =None, local_disk_included: 'bool' =None, local_disk_size: 'str' =None, local_disk_supported: 'bool' =None, local_disks_count: 'str' =None, max_available_quota: 'str' =None, non_spot: 'bool' =None, provider: 'V1CloudProvider' =None, quota_checked_at: 'datetime' =None, quota_code: 'str' =None, quota_name: 'str' =None, quota_page_url: 'str' =None, quota_service_code: 'str' =None, quota_utilization: 'str' =None, quota_value: 'str' =None, reservable: 'bool' =None, reservation_available_zones: 'list[str]' =None, reservation_quota_code: 'str' =None, reservation_quota_name: 'str' =None, reservation_quota_page_url: 'str' =None, resources: 'V1Resources' =None, secondary_instance_id: 'str' =None, slug: 'str' =None, slug_multi_cloud: 'str' =None, spot_price: 'float' =None, spot_quota_code: 'str' =None, spot_quota_name: 'str' =None, spot_quota_page_url: 'str' =None): # noqa: E501
|
|
144
146
|
"""V1ClusterAccelerator - a model defined in Swagger""" # noqa: E501
|
|
145
147
|
self._accelerator_type = None
|
|
146
148
|
self._allowed_resources = None
|
|
@@ -183,6 +185,7 @@ class V1ClusterAccelerator(object):
|
|
|
183
185
|
self._reservation_quota_name = None
|
|
184
186
|
self._reservation_quota_page_url = None
|
|
185
187
|
self._resources = None
|
|
188
|
+
self._secondary_instance_id = None
|
|
186
189
|
self._slug = None
|
|
187
190
|
self._slug_multi_cloud = None
|
|
188
191
|
self._spot_price = None
|
|
@@ -272,6 +275,8 @@ class V1ClusterAccelerator(object):
|
|
|
272
275
|
self.reservation_quota_page_url = reservation_quota_page_url
|
|
273
276
|
if resources is not None:
|
|
274
277
|
self.resources = resources
|
|
278
|
+
if secondary_instance_id is not None:
|
|
279
|
+
self.secondary_instance_id = secondary_instance_id
|
|
275
280
|
if slug is not None:
|
|
276
281
|
self.slug = slug
|
|
277
282
|
if slug_multi_cloud is not None:
|
|
@@ -1146,6 +1151,27 @@ class V1ClusterAccelerator(object):
|
|
|
1146
1151
|
|
|
1147
1152
|
self._resources = resources
|
|
1148
1153
|
|
|
1154
|
+
@property
|
|
1155
|
+
def secondary_instance_id(self) -> 'str':
|
|
1156
|
+
"""Gets the secondary_instance_id of this V1ClusterAccelerator. # noqa: E501
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
:return: The secondary_instance_id of this V1ClusterAccelerator. # noqa: E501
|
|
1160
|
+
:rtype: str
|
|
1161
|
+
"""
|
|
1162
|
+
return self._secondary_instance_id
|
|
1163
|
+
|
|
1164
|
+
@secondary_instance_id.setter
|
|
1165
|
+
def secondary_instance_id(self, secondary_instance_id: 'str'):
|
|
1166
|
+
"""Sets the secondary_instance_id of this V1ClusterAccelerator.
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
:param secondary_instance_id: The secondary_instance_id of this V1ClusterAccelerator. # noqa: E501
|
|
1170
|
+
:type: str
|
|
1171
|
+
"""
|
|
1172
|
+
|
|
1173
|
+
self._secondary_instance_id = secondary_instance_id
|
|
1174
|
+
|
|
1149
1175
|
@property
|
|
1150
1176
|
def slug(self) -> 'str':
|
|
1151
1177
|
"""Gets the slug of this V1ClusterAccelerator. # noqa: E501
|
|
@@ -45,6 +45,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
45
45
|
'cloud_provider_capacity_reservation_id': 'str',
|
|
46
46
|
'cluster_id': 'str',
|
|
47
47
|
'end_time': 'datetime',
|
|
48
|
+
'full_cloud_provider_reservation_string': 'str',
|
|
48
49
|
'id': 'str',
|
|
49
50
|
'in_use': 'str',
|
|
50
51
|
'instance_type': 'str',
|
|
@@ -52,7 +53,8 @@ class V1ClusterCapacityReservation(object):
|
|
|
52
53
|
'num_instances': 'str',
|
|
53
54
|
'project_id': 'str',
|
|
54
55
|
'region': 'str',
|
|
55
|
-
'start_time': 'datetime'
|
|
56
|
+
'start_time': 'datetime',
|
|
57
|
+
'zone': 'str'
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
attribute_map = {
|
|
@@ -60,6 +62,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
60
62
|
'cloud_provider_capacity_reservation_id': 'cloudProviderCapacityReservationId',
|
|
61
63
|
'cluster_id': 'clusterId',
|
|
62
64
|
'end_time': 'endTime',
|
|
65
|
+
'full_cloud_provider_reservation_string': 'fullCloudProviderReservationString',
|
|
63
66
|
'id': 'id',
|
|
64
67
|
'in_use': 'inUse',
|
|
65
68
|
'instance_type': 'instanceType',
|
|
@@ -67,15 +70,17 @@ class V1ClusterCapacityReservation(object):
|
|
|
67
70
|
'num_instances': 'numInstances',
|
|
68
71
|
'project_id': 'projectId',
|
|
69
72
|
'region': 'region',
|
|
70
|
-
'start_time': 'startTime'
|
|
73
|
+
'start_time': 'startTime',
|
|
74
|
+
'zone': 'zone'
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
def __init__(self, capacity_reservation_type: 'str' =None, cloud_provider_capacity_reservation_id: 'str' =None, cluster_id: 'str' =None, end_time: 'datetime' =None, id: 'str' =None, in_use: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None): # noqa: E501
|
|
77
|
+
def __init__(self, capacity_reservation_type: 'str' =None, cloud_provider_capacity_reservation_id: 'str' =None, cluster_id: 'str' =None, end_time: 'datetime' =None, full_cloud_provider_reservation_string: 'str' =None, id: 'str' =None, in_use: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, zone: 'str' =None): # noqa: E501
|
|
74
78
|
"""V1ClusterCapacityReservation - a model defined in Swagger""" # noqa: E501
|
|
75
79
|
self._capacity_reservation_type = None
|
|
76
80
|
self._cloud_provider_capacity_reservation_id = None
|
|
77
81
|
self._cluster_id = None
|
|
78
82
|
self._end_time = None
|
|
83
|
+
self._full_cloud_provider_reservation_string = None
|
|
79
84
|
self._id = None
|
|
80
85
|
self._in_use = None
|
|
81
86
|
self._instance_type = None
|
|
@@ -84,6 +89,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
84
89
|
self._project_id = None
|
|
85
90
|
self._region = None
|
|
86
91
|
self._start_time = None
|
|
92
|
+
self._zone = None
|
|
87
93
|
self.discriminator = None
|
|
88
94
|
if capacity_reservation_type is not None:
|
|
89
95
|
self.capacity_reservation_type = capacity_reservation_type
|
|
@@ -93,6 +99,8 @@ class V1ClusterCapacityReservation(object):
|
|
|
93
99
|
self.cluster_id = cluster_id
|
|
94
100
|
if end_time is not None:
|
|
95
101
|
self.end_time = end_time
|
|
102
|
+
if full_cloud_provider_reservation_string is not None:
|
|
103
|
+
self.full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
96
104
|
if id is not None:
|
|
97
105
|
self.id = id
|
|
98
106
|
if in_use is not None:
|
|
@@ -109,6 +117,8 @@ class V1ClusterCapacityReservation(object):
|
|
|
109
117
|
self.region = region
|
|
110
118
|
if start_time is not None:
|
|
111
119
|
self.start_time = start_time
|
|
120
|
+
if zone is not None:
|
|
121
|
+
self.zone = zone
|
|
112
122
|
|
|
113
123
|
@property
|
|
114
124
|
def capacity_reservation_type(self) -> 'str':
|
|
@@ -194,6 +204,27 @@ class V1ClusterCapacityReservation(object):
|
|
|
194
204
|
|
|
195
205
|
self._end_time = end_time
|
|
196
206
|
|
|
207
|
+
@property
|
|
208
|
+
def full_cloud_provider_reservation_string(self) -> 'str':
|
|
209
|
+
"""Gets the full_cloud_provider_reservation_string of this V1ClusterCapacityReservation. # noqa: E501
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:return: The full_cloud_provider_reservation_string of this V1ClusterCapacityReservation. # noqa: E501
|
|
213
|
+
:rtype: str
|
|
214
|
+
"""
|
|
215
|
+
return self._full_cloud_provider_reservation_string
|
|
216
|
+
|
|
217
|
+
@full_cloud_provider_reservation_string.setter
|
|
218
|
+
def full_cloud_provider_reservation_string(self, full_cloud_provider_reservation_string: 'str'):
|
|
219
|
+
"""Sets the full_cloud_provider_reservation_string of this V1ClusterCapacityReservation.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:param full_cloud_provider_reservation_string: The full_cloud_provider_reservation_string of this V1ClusterCapacityReservation. # noqa: E501
|
|
223
|
+
:type: str
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
227
|
+
|
|
197
228
|
@property
|
|
198
229
|
def id(self) -> 'str':
|
|
199
230
|
"""Gets the id of this V1ClusterCapacityReservation. # noqa: E501
|
|
@@ -362,6 +393,27 @@ class V1ClusterCapacityReservation(object):
|
|
|
362
393
|
|
|
363
394
|
self._start_time = start_time
|
|
364
395
|
|
|
396
|
+
@property
|
|
397
|
+
def zone(self) -> 'str':
|
|
398
|
+
"""Gets the zone of this V1ClusterCapacityReservation. # noqa: E501
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:return: The zone of this V1ClusterCapacityReservation. # noqa: E501
|
|
402
|
+
:rtype: str
|
|
403
|
+
"""
|
|
404
|
+
return self._zone
|
|
405
|
+
|
|
406
|
+
@zone.setter
|
|
407
|
+
def zone(self, zone: 'str'):
|
|
408
|
+
"""Sets the zone of this V1ClusterCapacityReservation.
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
:param zone: The zone of this V1ClusterCapacityReservation. # noqa: E501
|
|
412
|
+
:type: str
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
self._zone = zone
|
|
416
|
+
|
|
365
417
|
def to_dict(self) -> dict:
|
|
366
418
|
"""Returns the model properties as a dict"""
|
|
367
419
|
result = {}
|
|
@@ -42,6 +42,8 @@ class V1ClusterSecurityOptions(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'bucket_kms_key': 'str',
|
|
45
|
+
'cloud_init_boot_cmds': 'list[str]',
|
|
46
|
+
'cloud_init_run_cmds': 'list[str]',
|
|
45
47
|
'containers_non_privileged': 'bool',
|
|
46
48
|
'disable_public_ip': 'bool',
|
|
47
49
|
'disabled_services': 'list[str]',
|
|
@@ -58,6 +60,8 @@ class V1ClusterSecurityOptions(object):
|
|
|
58
60
|
|
|
59
61
|
attribute_map = {
|
|
60
62
|
'bucket_kms_key': 'bucketKmsKey',
|
|
63
|
+
'cloud_init_boot_cmds': 'cloudInitBootCmds',
|
|
64
|
+
'cloud_init_run_cmds': 'cloudInitRunCmds',
|
|
61
65
|
'containers_non_privileged': 'containersNonPrivileged',
|
|
62
66
|
'disable_public_ip': 'disablePublicIp',
|
|
63
67
|
'disabled_services': 'disabledServices',
|
|
@@ -72,9 +76,11 @@ class V1ClusterSecurityOptions(object):
|
|
|
72
76
|
'ssh_disabled': 'sshDisabled'
|
|
73
77
|
}
|
|
74
78
|
|
|
75
|
-
def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, disabled_services: 'list[str]' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
79
|
+
def __init__(self, bucket_kms_key: 'str' =None, cloud_init_boot_cmds: 'list[str]' =None, cloud_init_run_cmds: 'list[str]' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, disabled_services: 'list[str]' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
76
80
|
"""V1ClusterSecurityOptions - a model defined in Swagger""" # noqa: E501
|
|
77
81
|
self._bucket_kms_key = None
|
|
82
|
+
self._cloud_init_boot_cmds = None
|
|
83
|
+
self._cloud_init_run_cmds = None
|
|
78
84
|
self._containers_non_privileged = None
|
|
79
85
|
self._disable_public_ip = None
|
|
80
86
|
self._disabled_services = None
|
|
@@ -90,6 +96,10 @@ class V1ClusterSecurityOptions(object):
|
|
|
90
96
|
self.discriminator = None
|
|
91
97
|
if bucket_kms_key is not None:
|
|
92
98
|
self.bucket_kms_key = bucket_kms_key
|
|
99
|
+
if cloud_init_boot_cmds is not None:
|
|
100
|
+
self.cloud_init_boot_cmds = cloud_init_boot_cmds
|
|
101
|
+
if cloud_init_run_cmds is not None:
|
|
102
|
+
self.cloud_init_run_cmds = cloud_init_run_cmds
|
|
93
103
|
if containers_non_privileged is not None:
|
|
94
104
|
self.containers_non_privileged = containers_non_privileged
|
|
95
105
|
if disable_public_ip is not None:
|
|
@@ -136,6 +146,48 @@ class V1ClusterSecurityOptions(object):
|
|
|
136
146
|
|
|
137
147
|
self._bucket_kms_key = bucket_kms_key
|
|
138
148
|
|
|
149
|
+
@property
|
|
150
|
+
def cloud_init_boot_cmds(self) -> 'list[str]':
|
|
151
|
+
"""Gets the cloud_init_boot_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:return: The cloud_init_boot_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
155
|
+
:rtype: list[str]
|
|
156
|
+
"""
|
|
157
|
+
return self._cloud_init_boot_cmds
|
|
158
|
+
|
|
159
|
+
@cloud_init_boot_cmds.setter
|
|
160
|
+
def cloud_init_boot_cmds(self, cloud_init_boot_cmds: 'list[str]'):
|
|
161
|
+
"""Sets the cloud_init_boot_cmds of this V1ClusterSecurityOptions.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:param cloud_init_boot_cmds: The cloud_init_boot_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
165
|
+
:type: list[str]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
self._cloud_init_boot_cmds = cloud_init_boot_cmds
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def cloud_init_run_cmds(self) -> 'list[str]':
|
|
172
|
+
"""Gets the cloud_init_run_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:return: The cloud_init_run_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
176
|
+
:rtype: list[str]
|
|
177
|
+
"""
|
|
178
|
+
return self._cloud_init_run_cmds
|
|
179
|
+
|
|
180
|
+
@cloud_init_run_cmds.setter
|
|
181
|
+
def cloud_init_run_cmds(self, cloud_init_run_cmds: 'list[str]'):
|
|
182
|
+
"""Sets the cloud_init_run_cmds of this V1ClusterSecurityOptions.
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param cloud_init_run_cmds: The cloud_init_run_cmds of this V1ClusterSecurityOptions. # noqa: E501
|
|
186
|
+
:type: list[str]
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
self._cloud_init_run_cmds = cloud_init_run_cmds
|
|
190
|
+
|
|
139
191
|
@property
|
|
140
192
|
def containers_non_privileged(self) -> 'bool':
|
|
141
193
|
"""Gets the containers_non_privileged of this V1ClusterSecurityOptions. # noqa: E501
|
|
@@ -44,6 +44,7 @@ class V1ClusterSpec(object):
|
|
|
44
44
|
'auth_token': 'str',
|
|
45
45
|
'available_accelerators': 'list[str]',
|
|
46
46
|
'aws_v1': 'V1AWSDirectV1',
|
|
47
|
+
'cloudflare_v1': 'V1CloudflareV1',
|
|
47
48
|
'cluster_type': 'V1ClusterType',
|
|
48
49
|
'deletion_options': 'V1ClusterDeletionOptions',
|
|
49
50
|
'desired_state': 'V1ClusterState',
|
|
@@ -71,6 +72,7 @@ class V1ClusterSpec(object):
|
|
|
71
72
|
'auth_token': 'authToken',
|
|
72
73
|
'available_accelerators': 'availableAccelerators',
|
|
73
74
|
'aws_v1': 'awsV1',
|
|
75
|
+
'cloudflare_v1': 'cloudflareV1',
|
|
74
76
|
'cluster_type': 'clusterType',
|
|
75
77
|
'deletion_options': 'deletionOptions',
|
|
76
78
|
'desired_state': 'desiredState',
|
|
@@ -94,11 +96,12 @@ class V1ClusterSpec(object):
|
|
|
94
96
|
'vultr_v1': 'vultrV1'
|
|
95
97
|
}
|
|
96
98
|
|
|
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
|
|
99
|
+
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloudflare_v1: 'V1CloudflareV1' =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
|
|
98
100
|
"""V1ClusterSpec - a model defined in Swagger""" # noqa: E501
|
|
99
101
|
self._auth_token = None
|
|
100
102
|
self._available_accelerators = None
|
|
101
103
|
self._aws_v1 = None
|
|
104
|
+
self._cloudflare_v1 = None
|
|
102
105
|
self._cluster_type = None
|
|
103
106
|
self._deletion_options = None
|
|
104
107
|
self._desired_state = None
|
|
@@ -127,6 +130,8 @@ class V1ClusterSpec(object):
|
|
|
127
130
|
self.available_accelerators = available_accelerators
|
|
128
131
|
if aws_v1 is not None:
|
|
129
132
|
self.aws_v1 = aws_v1
|
|
133
|
+
if cloudflare_v1 is not None:
|
|
134
|
+
self.cloudflare_v1 = cloudflare_v1
|
|
130
135
|
if cluster_type is not None:
|
|
131
136
|
self.cluster_type = cluster_type
|
|
132
137
|
if deletion_options is not None:
|
|
@@ -233,6 +238,27 @@ class V1ClusterSpec(object):
|
|
|
233
238
|
|
|
234
239
|
self._aws_v1 = aws_v1
|
|
235
240
|
|
|
241
|
+
@property
|
|
242
|
+
def cloudflare_v1(self) -> 'V1CloudflareV1':
|
|
243
|
+
"""Gets the cloudflare_v1 of this V1ClusterSpec. # noqa: E501
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
:return: The cloudflare_v1 of this V1ClusterSpec. # noqa: E501
|
|
247
|
+
:rtype: V1CloudflareV1
|
|
248
|
+
"""
|
|
249
|
+
return self._cloudflare_v1
|
|
250
|
+
|
|
251
|
+
@cloudflare_v1.setter
|
|
252
|
+
def cloudflare_v1(self, cloudflare_v1: 'V1CloudflareV1'):
|
|
253
|
+
"""Sets the cloudflare_v1 of this V1ClusterSpec.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:param cloudflare_v1: The cloudflare_v1 of this V1ClusterSpec. # noqa: E501
|
|
257
|
+
:type: V1CloudflareV1
|
|
258
|
+
"""
|
|
259
|
+
|
|
260
|
+
self._cloudflare_v1 = cloudflare_v1
|
|
261
|
+
|
|
236
262
|
@property
|
|
237
263
|
def cluster_type(self) -> 'V1ClusterType':
|
|
238
264
|
"""Gets the cluster_type of this V1ClusterSpec. # noqa: E501
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py
CHANGED
|
@@ -43,20 +43,23 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'machine_image_version': 'str',
|
|
45
45
|
'name': 'str',
|
|
46
|
-
'org_id': 'str'
|
|
46
|
+
'org_id': 'str',
|
|
47
|
+
'setup_script_text': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'machine_image_version': 'machineImageVersion',
|
|
51
52
|
'name': 'name',
|
|
52
|
-
'org_id': 'orgId'
|
|
53
|
+
'org_id': 'orgId',
|
|
54
|
+
'setup_script_text': 'setupScriptText'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
|
|
56
58
|
"""V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._machine_image_version = None
|
|
58
60
|
self._name = None
|
|
59
61
|
self._org_id = None
|
|
62
|
+
self._setup_script_text = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if machine_image_version is not None:
|
|
62
65
|
self.machine_image_version = machine_image_version
|
|
@@ -64,6 +67,8 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
64
67
|
self.name = name
|
|
65
68
|
if org_id is not None:
|
|
66
69
|
self.org_id = org_id
|
|
70
|
+
if setup_script_text is not None:
|
|
71
|
+
self.setup_script_text = setup_script_text
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def machine_image_version(self) -> 'str':
|
|
@@ -128,6 +133,27 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
|
|
|
128
133
|
|
|
129
134
|
self._org_id = org_id
|
|
130
135
|
|
|
136
|
+
@property
|
|
137
|
+
def setup_script_text(self) -> 'str':
|
|
138
|
+
"""Gets the setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._setup_script_text
|
|
145
|
+
|
|
146
|
+
@setup_script_text.setter
|
|
147
|
+
def setup_script_text(self, setup_script_text: 'str'):
|
|
148
|
+
"""Sets the setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param setup_script_text: The setup_script_text of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._setup_script_text = setup_script_text
|
|
156
|
+
|
|
131
157
|
def to_dict(self) -> dict:
|
|
132
158
|
"""Returns the model properties as a dict"""
|
|
133
159
|
result = {}
|
lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py
CHANGED
|
@@ -42,24 +42,29 @@ class V1CreateClusterCapacityReservationResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'cloud_provider_capacity_reservation_id': 'str',
|
|
45
|
+
'full_cloud_provider_reservation_string': 'str',
|
|
45
46
|
'id': 'str',
|
|
46
47
|
'match_pattern': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'cloud_provider_capacity_reservation_id': 'cloudProviderCapacityReservationId',
|
|
52
|
+
'full_cloud_provider_reservation_string': 'fullCloudProviderReservationString',
|
|
51
53
|
'id': 'id',
|
|
52
54
|
'match_pattern': 'matchPattern'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, cloud_provider_capacity_reservation_id: 'str' =None, id: 'str' =None, match_pattern: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, cloud_provider_capacity_reservation_id: 'str' =None, full_cloud_provider_reservation_string: 'str' =None, id: 'str' =None, match_pattern: 'str' =None): # noqa: E501
|
|
56
58
|
"""V1CreateClusterCapacityReservationResponse - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._cloud_provider_capacity_reservation_id = None
|
|
60
|
+
self._full_cloud_provider_reservation_string = None
|
|
58
61
|
self._id = None
|
|
59
62
|
self._match_pattern = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if cloud_provider_capacity_reservation_id is not None:
|
|
62
65
|
self.cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
|
|
66
|
+
if full_cloud_provider_reservation_string is not None:
|
|
67
|
+
self.full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
63
68
|
if id is not None:
|
|
64
69
|
self.id = id
|
|
65
70
|
if match_pattern is not None:
|
|
@@ -86,6 +91,27 @@ class V1CreateClusterCapacityReservationResponse(object):
|
|
|
86
91
|
|
|
87
92
|
self._cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
|
|
88
93
|
|
|
94
|
+
@property
|
|
95
|
+
def full_cloud_provider_reservation_string(self) -> 'str':
|
|
96
|
+
"""Gets the full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._full_cloud_provider_reservation_string
|
|
103
|
+
|
|
104
|
+
@full_cloud_provider_reservation_string.setter
|
|
105
|
+
def full_cloud_provider_reservation_string(self, full_cloud_provider_reservation_string: 'str'):
|
|
106
|
+
"""Sets the full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param full_cloud_provider_reservation_string: The full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
114
|
+
|
|
89
115
|
@property
|
|
90
116
|
def id(self) -> 'str':
|
|
91
117
|
"""Gets the id of this V1CreateClusterCapacityReservationResponse. # noqa: E501
|
|
@@ -58,6 +58,7 @@ class V1DataConnection(object):
|
|
|
58
58
|
'name': 'str',
|
|
59
59
|
'number_of_files': 'str',
|
|
60
60
|
'project_id': 'str',
|
|
61
|
+
'r2': 'V1R2DataConnection',
|
|
61
62
|
'run_cmds': 'list[str]',
|
|
62
63
|
's3_folder': 'V1S3FolderDataConnection',
|
|
63
64
|
'snowflake': 'V1SnowflakeDataConnection',
|
|
@@ -87,6 +88,7 @@ class V1DataConnection(object):
|
|
|
87
88
|
'name': 'name',
|
|
88
89
|
'number_of_files': 'numberOfFiles',
|
|
89
90
|
'project_id': 'projectId',
|
|
91
|
+
'r2': 'r2',
|
|
90
92
|
'run_cmds': 'runCmds',
|
|
91
93
|
's3_folder': 's3Folder',
|
|
92
94
|
'snowflake': 'snowflake',
|
|
@@ -98,7 +100,7 @@ class V1DataConnection(object):
|
|
|
98
100
|
'writable': 'writable'
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
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, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
103
|
+
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, r2: 'V1R2DataConnection' =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, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
|
|
102
104
|
"""V1DataConnection - a model defined in Swagger""" # noqa: E501
|
|
103
105
|
self._access_cluster_ids = None
|
|
104
106
|
self._accessible = None
|
|
@@ -117,6 +119,7 @@ class V1DataConnection(object):
|
|
|
117
119
|
self._name = None
|
|
118
120
|
self._number_of_files = None
|
|
119
121
|
self._project_id = None
|
|
122
|
+
self._r2 = None
|
|
120
123
|
self._run_cmds = None
|
|
121
124
|
self._s3_folder = None
|
|
122
125
|
self._snowflake = None
|
|
@@ -161,6 +164,8 @@ class V1DataConnection(object):
|
|
|
161
164
|
self.number_of_files = number_of_files
|
|
162
165
|
if project_id is not None:
|
|
163
166
|
self.project_id = project_id
|
|
167
|
+
if r2 is not None:
|
|
168
|
+
self.r2 = r2
|
|
164
169
|
if run_cmds is not None:
|
|
165
170
|
self.run_cmds = run_cmds
|
|
166
171
|
if s3_folder is not None:
|
|
@@ -537,6 +542,27 @@ class V1DataConnection(object):
|
|
|
537
542
|
|
|
538
543
|
self._project_id = project_id
|
|
539
544
|
|
|
545
|
+
@property
|
|
546
|
+
def r2(self) -> 'V1R2DataConnection':
|
|
547
|
+
"""Gets the r2 of this V1DataConnection. # noqa: E501
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
:return: The r2 of this V1DataConnection. # noqa: E501
|
|
551
|
+
:rtype: V1R2DataConnection
|
|
552
|
+
"""
|
|
553
|
+
return self._r2
|
|
554
|
+
|
|
555
|
+
@r2.setter
|
|
556
|
+
def r2(self, r2: 'V1R2DataConnection'):
|
|
557
|
+
"""Sets the r2 of this V1DataConnection.
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
:param r2: The r2 of this V1DataConnection. # noqa: E501
|
|
561
|
+
:type: V1R2DataConnection
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
self._r2 = r2
|
|
565
|
+
|
|
540
566
|
@property
|
|
541
567
|
def run_cmds(self) -> 'list[str]':
|
|
542
568
|
"""Gets the run_cmds of this V1DataConnection. # noqa: E501
|