lightning-sdk 2026.1.22__py3-none-any.whl → 2026.1.30__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/__version__.py +1 -1
- lightning_sdk/api/studio_api.py +38 -39
- lightning_sdk/api/teamspace_api.py +189 -72
- lightning_sdk/api/utils.py +69 -1
- lightning_sdk/cli/cp/__init__.py +14 -11
- lightning_sdk/cli/cp/teamspace_uploads.py +95 -0
- lightning_sdk/cli/legacy/download.py +29 -98
- lightning_sdk/cli/legacy/upload.py +24 -31
- lightning_sdk/cli/studio/cp.py +8 -5
- lightning_sdk/cli/studio/ls.py +1 -1
- lightning_sdk/cli/studio/rm.py +1 -1
- lightning_sdk/cli/utils/{studio_filesystem.py → filesystem.py} +49 -6
- lightning_sdk/exceptions.py +27 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +17 -12
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +286 -468
- lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +579 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -12
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → cluster_service_get_cluster_capacity_reservation_body.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → container_registry_config_ecr.py} +49 -23
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
- lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/jobs_service_duplicate_deployment_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_container_registry_scopes.py} +39 -39
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_create_container_registry_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_org_cluster_capacity_reservation_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → v1_get_cluster_capacity_reservation_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → v1_mithril_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_container_registry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -105
- lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
- lightning_sdk/teamspace.py +28 -7
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/METADATA +1 -1
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/RECORD +59 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.py +0 -201
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/LICENSE +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/WHEEL +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2026.1.22.dist-info → lightning_sdk-2026.1.30.dist-info}/top_level.txt +0 -0
|
@@ -54,6 +54,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
54
54
|
'match_pattern': 'str',
|
|
55
55
|
'node_group_name': 'str',
|
|
56
56
|
'num_instances': 'str',
|
|
57
|
+
'org_id': 'str',
|
|
57
58
|
'project_id': 'str',
|
|
58
59
|
'region': 'str',
|
|
59
60
|
'start_time': 'datetime',
|
|
@@ -75,6 +76,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
75
76
|
'match_pattern': 'matchPattern',
|
|
76
77
|
'node_group_name': 'nodeGroupName',
|
|
77
78
|
'num_instances': 'numInstances',
|
|
79
|
+
'org_id': 'orgId',
|
|
78
80
|
'project_id': 'projectId',
|
|
79
81
|
'region': 'region',
|
|
80
82
|
'start_time': 'startTime',
|
|
@@ -82,7 +84,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
82
84
|
'zone': 'zone'
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
def __init__(self, aggregate_availability: 'str' =None, 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, in_use_aggregate: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, node_group_name: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, used_by: 'list[V1CapacityReservationUsedBy]' =None, zone: 'str' =None): # noqa: E501
|
|
87
|
+
def __init__(self, aggregate_availability: 'str' =None, 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, in_use_aggregate: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, node_group_name: 'str' =None, num_instances: 'str' =None, org_id: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, used_by: 'list[V1CapacityReservationUsedBy]' =None, zone: 'str' =None): # noqa: E501
|
|
86
88
|
"""V1ClusterCapacityReservation - a model defined in Swagger""" # noqa: E501
|
|
87
89
|
self._aggregate_availability = None
|
|
88
90
|
self._capacity_reservation_type = None
|
|
@@ -97,6 +99,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
97
99
|
self._match_pattern = None
|
|
98
100
|
self._node_group_name = None
|
|
99
101
|
self._num_instances = None
|
|
102
|
+
self._org_id = None
|
|
100
103
|
self._project_id = None
|
|
101
104
|
self._region = None
|
|
102
105
|
self._start_time = None
|
|
@@ -129,6 +132,8 @@ class V1ClusterCapacityReservation(object):
|
|
|
129
132
|
self.node_group_name = node_group_name
|
|
130
133
|
if num_instances is not None:
|
|
131
134
|
self.num_instances = num_instances
|
|
135
|
+
if org_id is not None:
|
|
136
|
+
self.org_id = org_id
|
|
132
137
|
if project_id is not None:
|
|
133
138
|
self.project_id = project_id
|
|
134
139
|
if region is not None:
|
|
@@ -413,6 +418,27 @@ class V1ClusterCapacityReservation(object):
|
|
|
413
418
|
|
|
414
419
|
self._num_instances = num_instances
|
|
415
420
|
|
|
421
|
+
@property
|
|
422
|
+
def org_id(self) -> 'str':
|
|
423
|
+
"""Gets the org_id of this V1ClusterCapacityReservation. # noqa: E501
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
:return: The org_id of this V1ClusterCapacityReservation. # noqa: E501
|
|
427
|
+
:rtype: str
|
|
428
|
+
"""
|
|
429
|
+
return self._org_id
|
|
430
|
+
|
|
431
|
+
@org_id.setter
|
|
432
|
+
def org_id(self, org_id: 'str'):
|
|
433
|
+
"""Sets the org_id of this V1ClusterCapacityReservation.
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
:param org_id: The org_id of this V1ClusterCapacityReservation. # noqa: E501
|
|
437
|
+
:type: str
|
|
438
|
+
"""
|
|
439
|
+
|
|
440
|
+
self._org_id = org_id
|
|
441
|
+
|
|
416
442
|
@property
|
|
417
443
|
def project_id(self) -> 'str':
|
|
418
444
|
"""Gets the project_id of this V1ClusterCapacityReservation. # noqa: E501
|
|
@@ -63,6 +63,7 @@ class V1ClusterSpec(object):
|
|
|
63
63
|
'lock_overprovisioning': 'bool',
|
|
64
64
|
'locked_zones': 'list[str]',
|
|
65
65
|
'machine_v1': 'V1MachineDirectV1',
|
|
66
|
+
'mithril_v1': 'V1MithrilDirectV1',
|
|
66
67
|
'monitor_deletion_disabled': 'bool',
|
|
67
68
|
'nebius_v1': 'V1NebiusDirectV1',
|
|
68
69
|
'overprovisioning': 'list[V1InstanceOverprovisioningSpec]',
|
|
@@ -106,6 +107,7 @@ class V1ClusterSpec(object):
|
|
|
106
107
|
'lock_overprovisioning': 'lockOverprovisioning',
|
|
107
108
|
'locked_zones': 'lockedZones',
|
|
108
109
|
'machine_v1': 'machineV1',
|
|
110
|
+
'mithril_v1': 'mithrilV1',
|
|
109
111
|
'monitor_deletion_disabled': 'monitorDeletionDisabled',
|
|
110
112
|
'nebius_v1': 'nebiusV1',
|
|
111
113
|
'overprovisioning': 'overprovisioning',
|
|
@@ -126,7 +128,7 @@ class V1ClusterSpec(object):
|
|
|
126
128
|
'vultr_v1': 'vultrV1'
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloud_pricing_enabled: 'bool' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, compute_cluster_ids: 'list[str]' =None, compute_cluster_request: 'V1ComputeClusterRequest' =None, cudo_v1: 'V1CudoDirectV1' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, kubernetes_v1: 'V1KubernetesDirectV1' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, lightning_elastic_cluster_v1: 'V1LightningElasticClusterV1' =None, lock_overprovisioning: 'bool' =None, locked_zones: 'list[str]' =None, machine_v1: 'V1MachineDirectV1' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, partitioning_enabled: 'bool' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, unavailability_spikes_detection_enabled: 'bool' =None, user_id: 'str' =None, vibe_coding_enabled: 'bool' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
131
|
+
def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloud_pricing_enabled: 'bool' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, compute_cluster_ids: 'list[str]' =None, compute_cluster_request: 'V1ComputeClusterRequest' =None, cudo_v1: 'V1CudoDirectV1' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =None, kubernetes_v1: 'V1KubernetesDirectV1' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, lightning_elastic_cluster_v1: 'V1LightningElasticClusterV1' =None, lock_overprovisioning: 'bool' =None, locked_zones: 'list[str]' =None, machine_v1: 'V1MachineDirectV1' =None, mithril_v1: 'V1MithrilDirectV1' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, partitioning_enabled: 'bool' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, unavailability_spikes_detection_enabled: 'bool' =None, user_id: 'str' =None, vibe_coding_enabled: 'bool' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
|
|
130
132
|
"""V1ClusterSpec - a model defined in Swagger""" # noqa: E501
|
|
131
133
|
self._auth_token = None
|
|
132
134
|
self._available_accelerators = None
|
|
@@ -150,6 +152,7 @@ class V1ClusterSpec(object):
|
|
|
150
152
|
self._lock_overprovisioning = None
|
|
151
153
|
self._locked_zones = None
|
|
152
154
|
self._machine_v1 = None
|
|
155
|
+
self._mithril_v1 = None
|
|
153
156
|
self._monitor_deletion_disabled = None
|
|
154
157
|
self._nebius_v1 = None
|
|
155
158
|
self._overprovisioning = None
|
|
@@ -213,6 +216,8 @@ class V1ClusterSpec(object):
|
|
|
213
216
|
self.locked_zones = locked_zones
|
|
214
217
|
if machine_v1 is not None:
|
|
215
218
|
self.machine_v1 = machine_v1
|
|
219
|
+
if mithril_v1 is not None:
|
|
220
|
+
self.mithril_v1 = mithril_v1
|
|
216
221
|
if monitor_deletion_disabled is not None:
|
|
217
222
|
self.monitor_deletion_disabled = monitor_deletion_disabled
|
|
218
223
|
if nebius_v1 is not None:
|
|
@@ -714,6 +719,27 @@ class V1ClusterSpec(object):
|
|
|
714
719
|
|
|
715
720
|
self._machine_v1 = machine_v1
|
|
716
721
|
|
|
722
|
+
@property
|
|
723
|
+
def mithril_v1(self) -> 'V1MithrilDirectV1':
|
|
724
|
+
"""Gets the mithril_v1 of this V1ClusterSpec. # noqa: E501
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
:return: The mithril_v1 of this V1ClusterSpec. # noqa: E501
|
|
728
|
+
:rtype: V1MithrilDirectV1
|
|
729
|
+
"""
|
|
730
|
+
return self._mithril_v1
|
|
731
|
+
|
|
732
|
+
@mithril_v1.setter
|
|
733
|
+
def mithril_v1(self, mithril_v1: 'V1MithrilDirectV1'):
|
|
734
|
+
"""Sets the mithril_v1 of this V1ClusterSpec.
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
:param mithril_v1: The mithril_v1 of this V1ClusterSpec. # noqa: E501
|
|
738
|
+
:type: V1MithrilDirectV1
|
|
739
|
+
"""
|
|
740
|
+
|
|
741
|
+
self._mithril_v1 = mithril_v1
|
|
742
|
+
|
|
717
743
|
@property
|
|
718
744
|
def monitor_deletion_disabled(self) -> 'bool':
|
|
719
745
|
"""Gets the monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
|
|
@@ -41,65 +41,60 @@ class V1ContainerRegistry(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
44
|
+
'config': 'V1ContainerRegistryConfig',
|
|
45
45
|
'id': 'str',
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'validated_at': 'datetime'
|
|
46
|
+
'provider': 'ContainerRegistryProvider',
|
|
47
|
+
'scopes': 'V1ContainerRegistryScopes',
|
|
48
|
+
'url': 'str'
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
attribute_map = {
|
|
53
|
-
'
|
|
52
|
+
'config': 'config',
|
|
54
53
|
'id': 'id',
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'validated_at': 'validatedAt'
|
|
54
|
+
'provider': 'provider',
|
|
55
|
+
'scopes': 'scopes',
|
|
56
|
+
'url': 'url'
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
def __init__(self,
|
|
59
|
+
def __init__(self, config: 'V1ContainerRegistryConfig' =None, id: 'str' =None, provider: 'ContainerRegistryProvider' =None, scopes: 'V1ContainerRegistryScopes' =None, url: 'str' =None): # noqa: E501
|
|
62
60
|
"""V1ContainerRegistry - a model defined in Swagger""" # noqa: E501
|
|
63
|
-
self.
|
|
61
|
+
self._config = None
|
|
64
62
|
self._id = None
|
|
65
|
-
self.
|
|
66
|
-
self.
|
|
67
|
-
self.
|
|
68
|
-
self._validated_at = None
|
|
63
|
+
self._provider = None
|
|
64
|
+
self._scopes = None
|
|
65
|
+
self._url = None
|
|
69
66
|
self.discriminator = None
|
|
70
|
-
if
|
|
71
|
-
self.
|
|
67
|
+
if config is not None:
|
|
68
|
+
self.config = config
|
|
72
69
|
if id is not None:
|
|
73
70
|
self.id = id
|
|
74
|
-
if
|
|
75
|
-
self.
|
|
76
|
-
if
|
|
77
|
-
self.
|
|
78
|
-
if
|
|
79
|
-
self.
|
|
80
|
-
if validated_at is not None:
|
|
81
|
-
self.validated_at = validated_at
|
|
71
|
+
if provider is not None:
|
|
72
|
+
self.provider = provider
|
|
73
|
+
if scopes is not None:
|
|
74
|
+
self.scopes = scopes
|
|
75
|
+
if url is not None:
|
|
76
|
+
self.url = url
|
|
82
77
|
|
|
83
78
|
@property
|
|
84
|
-
def
|
|
85
|
-
"""Gets the
|
|
79
|
+
def config(self) -> 'V1ContainerRegistryConfig':
|
|
80
|
+
"""Gets the config of this V1ContainerRegistry. # noqa: E501
|
|
86
81
|
|
|
87
82
|
|
|
88
|
-
:return: The
|
|
89
|
-
:rtype:
|
|
83
|
+
:return: The config of this V1ContainerRegistry. # noqa: E501
|
|
84
|
+
:rtype: V1ContainerRegistryConfig
|
|
90
85
|
"""
|
|
91
|
-
return self.
|
|
86
|
+
return self._config
|
|
92
87
|
|
|
93
|
-
@
|
|
94
|
-
def
|
|
95
|
-
"""Sets the
|
|
88
|
+
@config.setter
|
|
89
|
+
def config(self, config: 'V1ContainerRegistryConfig'):
|
|
90
|
+
"""Sets the config of this V1ContainerRegistry.
|
|
96
91
|
|
|
97
92
|
|
|
98
|
-
:param
|
|
99
|
-
:type:
|
|
93
|
+
:param config: The config of this V1ContainerRegistry. # noqa: E501
|
|
94
|
+
:type: V1ContainerRegistryConfig
|
|
100
95
|
"""
|
|
101
96
|
|
|
102
|
-
self.
|
|
97
|
+
self._config = config
|
|
103
98
|
|
|
104
99
|
@property
|
|
105
100
|
def id(self) -> 'str':
|
|
@@ -123,88 +118,67 @@ class V1ContainerRegistry(object):
|
|
|
123
118
|
self._id = id
|
|
124
119
|
|
|
125
120
|
@property
|
|
126
|
-
def
|
|
127
|
-
"""Gets the
|
|
121
|
+
def provider(self) -> 'ContainerRegistryProvider':
|
|
122
|
+
"""Gets the provider of this V1ContainerRegistry. # noqa: E501
|
|
128
123
|
|
|
129
124
|
|
|
130
|
-
:return: The
|
|
131
|
-
:rtype:
|
|
125
|
+
:return: The provider of this V1ContainerRegistry. # noqa: E501
|
|
126
|
+
:rtype: ContainerRegistryProvider
|
|
132
127
|
"""
|
|
133
|
-
return self.
|
|
128
|
+
return self._provider
|
|
134
129
|
|
|
135
|
-
@
|
|
136
|
-
def
|
|
137
|
-
"""Sets the
|
|
130
|
+
@provider.setter
|
|
131
|
+
def provider(self, provider: 'ContainerRegistryProvider'):
|
|
132
|
+
"""Sets the provider of this V1ContainerRegistry.
|
|
138
133
|
|
|
139
134
|
|
|
140
|
-
:param
|
|
141
|
-
:type:
|
|
135
|
+
:param provider: The provider of this V1ContainerRegistry. # noqa: E501
|
|
136
|
+
:type: ContainerRegistryProvider
|
|
142
137
|
"""
|
|
143
138
|
|
|
144
|
-
self.
|
|
139
|
+
self._provider = provider
|
|
145
140
|
|
|
146
141
|
@property
|
|
147
|
-
def
|
|
148
|
-
"""Gets the
|
|
142
|
+
def scopes(self) -> 'V1ContainerRegistryScopes':
|
|
143
|
+
"""Gets the scopes of this V1ContainerRegistry. # noqa: E501
|
|
149
144
|
|
|
150
145
|
|
|
151
|
-
:return: The
|
|
152
|
-
:rtype:
|
|
146
|
+
:return: The scopes of this V1ContainerRegistry. # noqa: E501
|
|
147
|
+
:rtype: V1ContainerRegistryScopes
|
|
153
148
|
"""
|
|
154
|
-
return self.
|
|
149
|
+
return self._scopes
|
|
155
150
|
|
|
156
|
-
@
|
|
157
|
-
def
|
|
158
|
-
"""Sets the
|
|
151
|
+
@scopes.setter
|
|
152
|
+
def scopes(self, scopes: 'V1ContainerRegistryScopes'):
|
|
153
|
+
"""Sets the scopes of this V1ContainerRegistry.
|
|
159
154
|
|
|
160
155
|
|
|
161
|
-
:param
|
|
162
|
-
:type:
|
|
156
|
+
:param scopes: The scopes of this V1ContainerRegistry. # noqa: E501
|
|
157
|
+
:type: V1ContainerRegistryScopes
|
|
163
158
|
"""
|
|
164
159
|
|
|
165
|
-
self.
|
|
160
|
+
self._scopes = scopes
|
|
166
161
|
|
|
167
162
|
@property
|
|
168
|
-
def
|
|
169
|
-
"""Gets the
|
|
163
|
+
def url(self) -> 'str':
|
|
164
|
+
"""Gets the url of this V1ContainerRegistry. # noqa: E501
|
|
170
165
|
|
|
171
166
|
|
|
172
|
-
:return: The
|
|
167
|
+
:return: The url of this V1ContainerRegistry. # noqa: E501
|
|
173
168
|
:rtype: str
|
|
174
169
|
"""
|
|
175
|
-
return self.
|
|
170
|
+
return self._url
|
|
176
171
|
|
|
177
|
-
@
|
|
178
|
-
def
|
|
179
|
-
"""Sets the
|
|
172
|
+
@url.setter
|
|
173
|
+
def url(self, url: 'str'):
|
|
174
|
+
"""Sets the url of this V1ContainerRegistry.
|
|
180
175
|
|
|
181
176
|
|
|
182
|
-
:param
|
|
177
|
+
:param url: The url of this V1ContainerRegistry. # noqa: E501
|
|
183
178
|
:type: str
|
|
184
179
|
"""
|
|
185
180
|
|
|
186
|
-
self.
|
|
187
|
-
|
|
188
|
-
@property
|
|
189
|
-
def validated_at(self) -> 'datetime':
|
|
190
|
-
"""Gets the validated_at of this V1ContainerRegistry. # noqa: E501
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
:return: The validated_at of this V1ContainerRegistry. # noqa: E501
|
|
194
|
-
:rtype: datetime
|
|
195
|
-
"""
|
|
196
|
-
return self._validated_at
|
|
197
|
-
|
|
198
|
-
@validated_at.setter
|
|
199
|
-
def validated_at(self, validated_at: 'datetime'):
|
|
200
|
-
"""Sets the validated_at of this V1ContainerRegistry.
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
:param validated_at: The validated_at of this V1ContainerRegistry. # noqa: E501
|
|
204
|
-
:type: datetime
|
|
205
|
-
"""
|
|
206
|
-
|
|
207
|
-
self._validated_at = validated_at
|
|
181
|
+
self._url = url
|
|
208
182
|
|
|
209
183
|
def to_dict(self) -> dict:
|
|
210
184
|
"""Returns the model properties as a dict"""
|
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1ContainerRegistryConfig(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -41,37 +41,37 @@ class ClusterServiceAddContainerRegistryBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'ecr': '
|
|
44
|
+
'ecr': 'ContainerRegistryConfigECR'
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
attribute_map = {
|
|
48
48
|
'ecr': 'ecr'
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
def __init__(self, ecr: '
|
|
52
|
-
"""
|
|
51
|
+
def __init__(self, ecr: 'ContainerRegistryConfigECR' =None): # noqa: E501
|
|
52
|
+
"""V1ContainerRegistryConfig - a model defined in Swagger""" # noqa: E501
|
|
53
53
|
self._ecr = None
|
|
54
54
|
self.discriminator = None
|
|
55
55
|
if ecr is not None:
|
|
56
56
|
self.ecr = ecr
|
|
57
57
|
|
|
58
58
|
@property
|
|
59
|
-
def ecr(self) -> '
|
|
60
|
-
"""Gets the ecr of this
|
|
59
|
+
def ecr(self) -> 'ContainerRegistryConfigECR':
|
|
60
|
+
"""Gets the ecr of this V1ContainerRegistryConfig. # noqa: E501
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
:return: The ecr of this
|
|
64
|
-
:rtype:
|
|
63
|
+
:return: The ecr of this V1ContainerRegistryConfig. # noqa: E501
|
|
64
|
+
:rtype: ContainerRegistryConfigECR
|
|
65
65
|
"""
|
|
66
66
|
return self._ecr
|
|
67
67
|
|
|
68
68
|
@ecr.setter
|
|
69
|
-
def ecr(self, ecr: '
|
|
70
|
-
"""Sets the ecr of this
|
|
69
|
+
def ecr(self, ecr: 'ContainerRegistryConfigECR'):
|
|
70
|
+
"""Sets the ecr of this V1ContainerRegistryConfig.
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
:param ecr: The ecr of this
|
|
74
|
-
:type:
|
|
73
|
+
:param ecr: The ecr of this V1ContainerRegistryConfig. # noqa: E501
|
|
74
|
+
:type: ContainerRegistryConfigECR
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
77
|
self._ecr = ecr
|
|
@@ -97,7 +97,7 @@ class ClusterServiceAddContainerRegistryBody(object):
|
|
|
97
97
|
))
|
|
98
98
|
else:
|
|
99
99
|
result[attr] = value
|
|
100
|
-
if issubclass(
|
|
100
|
+
if issubclass(V1ContainerRegistryConfig, dict):
|
|
101
101
|
for key, value in self.items():
|
|
102
102
|
result[key] = value
|
|
103
103
|
|
|
@@ -111,13 +111,13 @@ class ClusterServiceAddContainerRegistryBody(object):
|
|
|
111
111
|
"""For `print` and `pprint`"""
|
|
112
112
|
return self.to_str()
|
|
113
113
|
|
|
114
|
-
def __eq__(self, other: '
|
|
114
|
+
def __eq__(self, other: 'V1ContainerRegistryConfig') -> bool:
|
|
115
115
|
"""Returns true if both objects are equal"""
|
|
116
|
-
if not isinstance(other,
|
|
116
|
+
if not isinstance(other, V1ContainerRegistryConfig):
|
|
117
117
|
return False
|
|
118
118
|
|
|
119
119
|
return self.__dict__ == other.__dict__
|
|
120
120
|
|
|
121
|
-
def __ne__(self, other: '
|
|
121
|
+
def __ne__(self, other: 'V1ContainerRegistryConfig') -> bool:
|
|
122
122
|
"""Returns true if both objects are not equal"""
|
|
123
123
|
return not self == other
|
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1ContainerRegistryScopes(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -41,66 +41,66 @@ class V1ValidateContainerRegistryResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
44
|
+
'namespaces': 'list[str]',
|
|
45
|
+
'project_ids': 'list[str]'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
attribute_map = {
|
|
49
|
-
'
|
|
50
|
-
'
|
|
49
|
+
'namespaces': 'namespaces',
|
|
50
|
+
'project_ids': 'projectIds'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
def __init__(self,
|
|
54
|
-
"""
|
|
55
|
-
self.
|
|
56
|
-
self.
|
|
53
|
+
def __init__(self, namespaces: 'list[str]' =None, project_ids: 'list[str]' =None): # noqa: E501
|
|
54
|
+
"""V1ContainerRegistryScopes - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._namespaces = None
|
|
56
|
+
self._project_ids = None
|
|
57
57
|
self.discriminator = None
|
|
58
|
-
if
|
|
59
|
-
self.
|
|
60
|
-
if
|
|
61
|
-
self.
|
|
58
|
+
if namespaces is not None:
|
|
59
|
+
self.namespaces = namespaces
|
|
60
|
+
if project_ids is not None:
|
|
61
|
+
self.project_ids = project_ids
|
|
62
62
|
|
|
63
63
|
@property
|
|
64
|
-
def
|
|
65
|
-
"""Gets the
|
|
64
|
+
def namespaces(self) -> 'list[str]':
|
|
65
|
+
"""Gets the namespaces of this V1ContainerRegistryScopes. # noqa: E501
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
:return: The
|
|
69
|
-
:rtype: str
|
|
68
|
+
:return: The namespaces of this V1ContainerRegistryScopes. # noqa: E501
|
|
69
|
+
:rtype: list[str]
|
|
70
70
|
"""
|
|
71
|
-
return self.
|
|
71
|
+
return self._namespaces
|
|
72
72
|
|
|
73
|
-
@
|
|
74
|
-
def
|
|
75
|
-
"""Sets the
|
|
73
|
+
@namespaces.setter
|
|
74
|
+
def namespaces(self, namespaces: 'list[str]'):
|
|
75
|
+
"""Sets the namespaces of this V1ContainerRegistryScopes.
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
:param
|
|
79
|
-
:type: str
|
|
78
|
+
:param namespaces: The namespaces of this V1ContainerRegistryScopes. # noqa: E501
|
|
79
|
+
:type: list[str]
|
|
80
80
|
"""
|
|
81
81
|
|
|
82
|
-
self.
|
|
82
|
+
self._namespaces = namespaces
|
|
83
83
|
|
|
84
84
|
@property
|
|
85
|
-
def
|
|
86
|
-
"""Gets the
|
|
85
|
+
def project_ids(self) -> 'list[str]':
|
|
86
|
+
"""Gets the project_ids of this V1ContainerRegistryScopes. # noqa: E501
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
:return: The
|
|
90
|
-
:rtype:
|
|
89
|
+
:return: The project_ids of this V1ContainerRegistryScopes. # noqa: E501
|
|
90
|
+
:rtype: list[str]
|
|
91
91
|
"""
|
|
92
|
-
return self.
|
|
92
|
+
return self._project_ids
|
|
93
93
|
|
|
94
|
-
@
|
|
95
|
-
def
|
|
96
|
-
"""Sets the
|
|
94
|
+
@project_ids.setter
|
|
95
|
+
def project_ids(self, project_ids: 'list[str]'):
|
|
96
|
+
"""Sets the project_ids of this V1ContainerRegistryScopes.
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
:param
|
|
100
|
-
:type:
|
|
99
|
+
:param project_ids: The project_ids of this V1ContainerRegistryScopes. # noqa: E501
|
|
100
|
+
:type: list[str]
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
|
-
self.
|
|
103
|
+
self._project_ids = project_ids
|
|
104
104
|
|
|
105
105
|
def to_dict(self) -> dict:
|
|
106
106
|
"""Returns the model properties as a dict"""
|
|
@@ -123,7 +123,7 @@ class V1ValidateContainerRegistryResponse(object):
|
|
|
123
123
|
))
|
|
124
124
|
else:
|
|
125
125
|
result[attr] = value
|
|
126
|
-
if issubclass(
|
|
126
|
+
if issubclass(V1ContainerRegistryScopes, dict):
|
|
127
127
|
for key, value in self.items():
|
|
128
128
|
result[key] = value
|
|
129
129
|
|
|
@@ -137,13 +137,13 @@ class V1ValidateContainerRegistryResponse(object):
|
|
|
137
137
|
"""For `print` and `pprint`"""
|
|
138
138
|
return self.to_str()
|
|
139
139
|
|
|
140
|
-
def __eq__(self, other: '
|
|
140
|
+
def __eq__(self, other: 'V1ContainerRegistryScopes') -> bool:
|
|
141
141
|
"""Returns true if both objects are equal"""
|
|
142
|
-
if not isinstance(other,
|
|
142
|
+
if not isinstance(other, V1ContainerRegistryScopes):
|
|
143
143
|
return False
|
|
144
144
|
|
|
145
145
|
return self.__dict__ == other.__dict__
|
|
146
146
|
|
|
147
|
-
def __ne__(self, other: '
|
|
147
|
+
def __ne__(self, other: 'V1ContainerRegistryScopes') -> bool:
|
|
148
148
|
"""Returns true if both objects are not equal"""
|
|
149
149
|
return not self == other
|
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1CreateContainerRegistryResponse(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -47,7 +47,7 @@ class ClusterServiceValidateContainerRegistryBody(object):
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
def __init__(self): # noqa: E501
|
|
50
|
-
"""
|
|
50
|
+
"""V1CreateContainerRegistryResponse - a model defined in Swagger""" # noqa: E501
|
|
51
51
|
self.discriminator = None
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> dict:
|
|
@@ -71,7 +71,7 @@ class ClusterServiceValidateContainerRegistryBody(object):
|
|
|
71
71
|
))
|
|
72
72
|
else:
|
|
73
73
|
result[attr] = value
|
|
74
|
-
if issubclass(
|
|
74
|
+
if issubclass(V1CreateContainerRegistryResponse, dict):
|
|
75
75
|
for key, value in self.items():
|
|
76
76
|
result[key] = value
|
|
77
77
|
|
|
@@ -85,13 +85,13 @@ class ClusterServiceValidateContainerRegistryBody(object):
|
|
|
85
85
|
"""For `print` and `pprint`"""
|
|
86
86
|
return self.to_str()
|
|
87
87
|
|
|
88
|
-
def __eq__(self, other: '
|
|
88
|
+
def __eq__(self, other: 'V1CreateContainerRegistryResponse') -> bool:
|
|
89
89
|
"""Returns true if both objects are equal"""
|
|
90
|
-
if not isinstance(other,
|
|
90
|
+
if not isinstance(other, V1CreateContainerRegistryResponse):
|
|
91
91
|
return False
|
|
92
92
|
|
|
93
93
|
return self.__dict__ == other.__dict__
|
|
94
94
|
|
|
95
|
-
def __ne__(self, other: '
|
|
95
|
+
def __ne__(self, other: 'V1CreateContainerRegistryResponse') -> bool:
|
|
96
96
|
"""Returns true if both objects are not equal"""
|
|
97
97
|
return not self == other
|