lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__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/k8s_api.py +75 -29
- lightning_sdk/api/studio_api.py +195 -33
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/cli/cp/__init__.py +64 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +22 -0
- lightning_sdk/cli/legacy/clusters_menu.py +2 -2
- lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +20 -64
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/studio_filesystem.py +65 -0
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +4 -0
- lightning_sdk/job/base.py +1 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -11
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_delete_lit_logger_media_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_virtual_machine_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
def login() -> None:
|
|
4
|
-
"""Authorize the CLI to access Grid AI resources for a particular user.
|
|
5
|
-
|
|
6
|
-
Use login command to force authenticate, a web browser will open to complete the authentication.
|
|
7
|
-
"""
|
|
8
|
-
from lightning_sdk.lightning_cloud.login import Auth # local to avoid circular import
|
|
9
|
-
|
|
10
|
-
auth = Auth()
|
|
11
|
-
auth.clear()
|
|
12
|
-
auth._run_server()
|
|
13
|
-
|
|
14
|
-
def logout() -> None:
|
|
15
|
-
"""Logout from LightningCloud"""
|
|
16
|
-
from lightning_sdk.lightning_cloud.login import Auth # local to avoid circular import
|
|
17
|
-
|
|
18
|
-
Auth.clear()
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def main() -> None:
|
|
22
|
-
"""CLI entrypoint."""
|
|
23
|
-
from fire import Fire
|
|
24
|
-
|
|
25
|
-
Fire({"login": login, "logout": logout})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if __name__ == "__main__":
|
|
29
|
-
main()
|
|
@@ -1,513 +0,0 @@
|
|
|
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 KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody(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
|
-
'api_standard': 'str',
|
|
45
|
-
'apis': 'list[V1DeploymentAPI]',
|
|
46
|
-
'autoscaling': 'V1AutoscalingSpec',
|
|
47
|
-
'cloudspace_id': 'str',
|
|
48
|
-
'endpoint': 'V1Endpoint',
|
|
49
|
-
'from_litserve': 'bool',
|
|
50
|
-
'from_onboarding': 'bool',
|
|
51
|
-
'name': 'str',
|
|
52
|
-
'parameter_spec': 'V1ParameterizationSpec',
|
|
53
|
-
'parent_template_id': 'str',
|
|
54
|
-
'pipeline_reuse_deployment_between_runs': 'bool',
|
|
55
|
-
'project_id': 'str',
|
|
56
|
-
'recipients': 'V1DeploymentAlertingRecipients',
|
|
57
|
-
'replicas': 'int',
|
|
58
|
-
'spec': 'V1JobSpec',
|
|
59
|
-
'strategy': 'V1DeploymentStrategy'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
attribute_map = {
|
|
63
|
-
'api_standard': 'apiStandard',
|
|
64
|
-
'apis': 'apis',
|
|
65
|
-
'autoscaling': 'autoscaling',
|
|
66
|
-
'cloudspace_id': 'cloudspaceId',
|
|
67
|
-
'endpoint': 'endpoint',
|
|
68
|
-
'from_litserve': 'fromLitserve',
|
|
69
|
-
'from_onboarding': 'fromOnboarding',
|
|
70
|
-
'name': 'name',
|
|
71
|
-
'parameter_spec': 'parameterSpec',
|
|
72
|
-
'parent_template_id': 'parentTemplateId',
|
|
73
|
-
'pipeline_reuse_deployment_between_runs': 'pipelineReuseDeploymentBetweenRuns',
|
|
74
|
-
'project_id': 'projectId',
|
|
75
|
-
'recipients': 'recipients',
|
|
76
|
-
'replicas': 'replicas',
|
|
77
|
-
'spec': 'spec',
|
|
78
|
-
'strategy': 'strategy'
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, pipeline_reuse_deployment_between_runs: 'bool' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
|
|
82
|
-
"""KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody - a model defined in Swagger""" # noqa: E501
|
|
83
|
-
self._api_standard = None
|
|
84
|
-
self._apis = None
|
|
85
|
-
self._autoscaling = None
|
|
86
|
-
self._cloudspace_id = None
|
|
87
|
-
self._endpoint = None
|
|
88
|
-
self._from_litserve = None
|
|
89
|
-
self._from_onboarding = None
|
|
90
|
-
self._name = None
|
|
91
|
-
self._parameter_spec = None
|
|
92
|
-
self._parent_template_id = None
|
|
93
|
-
self._pipeline_reuse_deployment_between_runs = None
|
|
94
|
-
self._project_id = None
|
|
95
|
-
self._recipients = None
|
|
96
|
-
self._replicas = None
|
|
97
|
-
self._spec = None
|
|
98
|
-
self._strategy = None
|
|
99
|
-
self.discriminator = None
|
|
100
|
-
if api_standard is not None:
|
|
101
|
-
self.api_standard = api_standard
|
|
102
|
-
if apis is not None:
|
|
103
|
-
self.apis = apis
|
|
104
|
-
if autoscaling is not None:
|
|
105
|
-
self.autoscaling = autoscaling
|
|
106
|
-
if cloudspace_id is not None:
|
|
107
|
-
self.cloudspace_id = cloudspace_id
|
|
108
|
-
if endpoint is not None:
|
|
109
|
-
self.endpoint = endpoint
|
|
110
|
-
if from_litserve is not None:
|
|
111
|
-
self.from_litserve = from_litserve
|
|
112
|
-
if from_onboarding is not None:
|
|
113
|
-
self.from_onboarding = from_onboarding
|
|
114
|
-
if name is not None:
|
|
115
|
-
self.name = name
|
|
116
|
-
if parameter_spec is not None:
|
|
117
|
-
self.parameter_spec = parameter_spec
|
|
118
|
-
if parent_template_id is not None:
|
|
119
|
-
self.parent_template_id = parent_template_id
|
|
120
|
-
if pipeline_reuse_deployment_between_runs is not None:
|
|
121
|
-
self.pipeline_reuse_deployment_between_runs = pipeline_reuse_deployment_between_runs
|
|
122
|
-
if project_id is not None:
|
|
123
|
-
self.project_id = project_id
|
|
124
|
-
if recipients is not None:
|
|
125
|
-
self.recipients = recipients
|
|
126
|
-
if replicas is not None:
|
|
127
|
-
self.replicas = replicas
|
|
128
|
-
if spec is not None:
|
|
129
|
-
self.spec = spec
|
|
130
|
-
if strategy is not None:
|
|
131
|
-
self.strategy = strategy
|
|
132
|
-
|
|
133
|
-
@property
|
|
134
|
-
def api_standard(self) -> 'str':
|
|
135
|
-
"""Gets the api_standard of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
:return: The api_standard of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
139
|
-
:rtype: str
|
|
140
|
-
"""
|
|
141
|
-
return self._api_standard
|
|
142
|
-
|
|
143
|
-
@api_standard.setter
|
|
144
|
-
def api_standard(self, api_standard: 'str'):
|
|
145
|
-
"""Sets the api_standard of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
:param api_standard: The api_standard of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
149
|
-
:type: str
|
|
150
|
-
"""
|
|
151
|
-
|
|
152
|
-
self._api_standard = api_standard
|
|
153
|
-
|
|
154
|
-
@property
|
|
155
|
-
def apis(self) -> 'list[V1DeploymentAPI]':
|
|
156
|
-
"""Gets the apis of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
:return: The apis of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
160
|
-
:rtype: list[V1DeploymentAPI]
|
|
161
|
-
"""
|
|
162
|
-
return self._apis
|
|
163
|
-
|
|
164
|
-
@apis.setter
|
|
165
|
-
def apis(self, apis: 'list[V1DeploymentAPI]'):
|
|
166
|
-
"""Sets the apis of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
:param apis: The apis of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
170
|
-
:type: list[V1DeploymentAPI]
|
|
171
|
-
"""
|
|
172
|
-
|
|
173
|
-
self._apis = apis
|
|
174
|
-
|
|
175
|
-
@property
|
|
176
|
-
def autoscaling(self) -> 'V1AutoscalingSpec':
|
|
177
|
-
"""Gets the autoscaling of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
:return: The autoscaling of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
181
|
-
:rtype: V1AutoscalingSpec
|
|
182
|
-
"""
|
|
183
|
-
return self._autoscaling
|
|
184
|
-
|
|
185
|
-
@autoscaling.setter
|
|
186
|
-
def autoscaling(self, autoscaling: 'V1AutoscalingSpec'):
|
|
187
|
-
"""Sets the autoscaling of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
:param autoscaling: The autoscaling of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
191
|
-
:type: V1AutoscalingSpec
|
|
192
|
-
"""
|
|
193
|
-
|
|
194
|
-
self._autoscaling = autoscaling
|
|
195
|
-
|
|
196
|
-
@property
|
|
197
|
-
def cloudspace_id(self) -> 'str':
|
|
198
|
-
"""Gets the cloudspace_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
:return: The cloudspace_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
202
|
-
:rtype: str
|
|
203
|
-
"""
|
|
204
|
-
return self._cloudspace_id
|
|
205
|
-
|
|
206
|
-
@cloudspace_id.setter
|
|
207
|
-
def cloudspace_id(self, cloudspace_id: 'str'):
|
|
208
|
-
"""Sets the cloudspace_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
:param cloudspace_id: The cloudspace_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
212
|
-
:type: str
|
|
213
|
-
"""
|
|
214
|
-
|
|
215
|
-
self._cloudspace_id = cloudspace_id
|
|
216
|
-
|
|
217
|
-
@property
|
|
218
|
-
def endpoint(self) -> 'V1Endpoint':
|
|
219
|
-
"""Gets the endpoint of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
:return: The endpoint of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
223
|
-
:rtype: V1Endpoint
|
|
224
|
-
"""
|
|
225
|
-
return self._endpoint
|
|
226
|
-
|
|
227
|
-
@endpoint.setter
|
|
228
|
-
def endpoint(self, endpoint: 'V1Endpoint'):
|
|
229
|
-
"""Sets the endpoint of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
:param endpoint: The endpoint of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
233
|
-
:type: V1Endpoint
|
|
234
|
-
"""
|
|
235
|
-
|
|
236
|
-
self._endpoint = endpoint
|
|
237
|
-
|
|
238
|
-
@property
|
|
239
|
-
def from_litserve(self) -> 'bool':
|
|
240
|
-
"""Gets the from_litserve of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
:return: The from_litserve of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
244
|
-
:rtype: bool
|
|
245
|
-
"""
|
|
246
|
-
return self._from_litserve
|
|
247
|
-
|
|
248
|
-
@from_litserve.setter
|
|
249
|
-
def from_litserve(self, from_litserve: 'bool'):
|
|
250
|
-
"""Sets the from_litserve of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
:param from_litserve: The from_litserve of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
254
|
-
:type: bool
|
|
255
|
-
"""
|
|
256
|
-
|
|
257
|
-
self._from_litserve = from_litserve
|
|
258
|
-
|
|
259
|
-
@property
|
|
260
|
-
def from_onboarding(self) -> 'bool':
|
|
261
|
-
"""Gets the from_onboarding of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
:return: The from_onboarding of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
265
|
-
:rtype: bool
|
|
266
|
-
"""
|
|
267
|
-
return self._from_onboarding
|
|
268
|
-
|
|
269
|
-
@from_onboarding.setter
|
|
270
|
-
def from_onboarding(self, from_onboarding: 'bool'):
|
|
271
|
-
"""Sets the from_onboarding of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
:param from_onboarding: The from_onboarding of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
275
|
-
:type: bool
|
|
276
|
-
"""
|
|
277
|
-
|
|
278
|
-
self._from_onboarding = from_onboarding
|
|
279
|
-
|
|
280
|
-
@property
|
|
281
|
-
def name(self) -> 'str':
|
|
282
|
-
"""Gets the name of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
:return: The name of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
286
|
-
:rtype: str
|
|
287
|
-
"""
|
|
288
|
-
return self._name
|
|
289
|
-
|
|
290
|
-
@name.setter
|
|
291
|
-
def name(self, name: 'str'):
|
|
292
|
-
"""Sets the name of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
:param name: The name of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
296
|
-
:type: str
|
|
297
|
-
"""
|
|
298
|
-
|
|
299
|
-
self._name = name
|
|
300
|
-
|
|
301
|
-
@property
|
|
302
|
-
def parameter_spec(self) -> 'V1ParameterizationSpec':
|
|
303
|
-
"""Gets the parameter_spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
:return: The parameter_spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
307
|
-
:rtype: V1ParameterizationSpec
|
|
308
|
-
"""
|
|
309
|
-
return self._parameter_spec
|
|
310
|
-
|
|
311
|
-
@parameter_spec.setter
|
|
312
|
-
def parameter_spec(self, parameter_spec: 'V1ParameterizationSpec'):
|
|
313
|
-
"""Sets the parameter_spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
:param parameter_spec: The parameter_spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
317
|
-
:type: V1ParameterizationSpec
|
|
318
|
-
"""
|
|
319
|
-
|
|
320
|
-
self._parameter_spec = parameter_spec
|
|
321
|
-
|
|
322
|
-
@property
|
|
323
|
-
def parent_template_id(self) -> 'str':
|
|
324
|
-
"""Gets the parent_template_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
:return: The parent_template_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
328
|
-
:rtype: str
|
|
329
|
-
"""
|
|
330
|
-
return self._parent_template_id
|
|
331
|
-
|
|
332
|
-
@parent_template_id.setter
|
|
333
|
-
def parent_template_id(self, parent_template_id: 'str'):
|
|
334
|
-
"""Sets the parent_template_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
:param parent_template_id: The parent_template_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
338
|
-
:type: str
|
|
339
|
-
"""
|
|
340
|
-
|
|
341
|
-
self._parent_template_id = parent_template_id
|
|
342
|
-
|
|
343
|
-
@property
|
|
344
|
-
def pipeline_reuse_deployment_between_runs(self) -> 'bool':
|
|
345
|
-
"""Gets the pipeline_reuse_deployment_between_runs of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
:return: The pipeline_reuse_deployment_between_runs of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
349
|
-
:rtype: bool
|
|
350
|
-
"""
|
|
351
|
-
return self._pipeline_reuse_deployment_between_runs
|
|
352
|
-
|
|
353
|
-
@pipeline_reuse_deployment_between_runs.setter
|
|
354
|
-
def pipeline_reuse_deployment_between_runs(self, pipeline_reuse_deployment_between_runs: 'bool'):
|
|
355
|
-
"""Sets the pipeline_reuse_deployment_between_runs of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
:param pipeline_reuse_deployment_between_runs: The pipeline_reuse_deployment_between_runs of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
359
|
-
:type: bool
|
|
360
|
-
"""
|
|
361
|
-
|
|
362
|
-
self._pipeline_reuse_deployment_between_runs = pipeline_reuse_deployment_between_runs
|
|
363
|
-
|
|
364
|
-
@property
|
|
365
|
-
def project_id(self) -> 'str':
|
|
366
|
-
"""Gets the project_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
:return: The project_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
370
|
-
:rtype: str
|
|
371
|
-
"""
|
|
372
|
-
return self._project_id
|
|
373
|
-
|
|
374
|
-
@project_id.setter
|
|
375
|
-
def project_id(self, project_id: 'str'):
|
|
376
|
-
"""Sets the project_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
:param project_id: The project_id of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
380
|
-
:type: str
|
|
381
|
-
"""
|
|
382
|
-
|
|
383
|
-
self._project_id = project_id
|
|
384
|
-
|
|
385
|
-
@property
|
|
386
|
-
def recipients(self) -> 'V1DeploymentAlertingRecipients':
|
|
387
|
-
"""Gets the recipients of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
:return: The recipients of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
391
|
-
:rtype: V1DeploymentAlertingRecipients
|
|
392
|
-
"""
|
|
393
|
-
return self._recipients
|
|
394
|
-
|
|
395
|
-
@recipients.setter
|
|
396
|
-
def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
|
|
397
|
-
"""Sets the recipients of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
:param recipients: The recipients of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
401
|
-
:type: V1DeploymentAlertingRecipients
|
|
402
|
-
"""
|
|
403
|
-
|
|
404
|
-
self._recipients = recipients
|
|
405
|
-
|
|
406
|
-
@property
|
|
407
|
-
def replicas(self) -> 'int':
|
|
408
|
-
"""Gets the replicas of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
:return: The replicas of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
412
|
-
:rtype: int
|
|
413
|
-
"""
|
|
414
|
-
return self._replicas
|
|
415
|
-
|
|
416
|
-
@replicas.setter
|
|
417
|
-
def replicas(self, replicas: 'int'):
|
|
418
|
-
"""Sets the replicas of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
:param replicas: The replicas of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
422
|
-
:type: int
|
|
423
|
-
"""
|
|
424
|
-
|
|
425
|
-
self._replicas = replicas
|
|
426
|
-
|
|
427
|
-
@property
|
|
428
|
-
def spec(self) -> 'V1JobSpec':
|
|
429
|
-
"""Gets the spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
:return: The spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
433
|
-
:rtype: V1JobSpec
|
|
434
|
-
"""
|
|
435
|
-
return self._spec
|
|
436
|
-
|
|
437
|
-
@spec.setter
|
|
438
|
-
def spec(self, spec: 'V1JobSpec'):
|
|
439
|
-
"""Sets the spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
:param spec: The spec of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
443
|
-
:type: V1JobSpec
|
|
444
|
-
"""
|
|
445
|
-
|
|
446
|
-
self._spec = spec
|
|
447
|
-
|
|
448
|
-
@property
|
|
449
|
-
def strategy(self) -> 'V1DeploymentStrategy':
|
|
450
|
-
"""Gets the strategy of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
:return: The strategy of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
454
|
-
:rtype: V1DeploymentStrategy
|
|
455
|
-
"""
|
|
456
|
-
return self._strategy
|
|
457
|
-
|
|
458
|
-
@strategy.setter
|
|
459
|
-
def strategy(self, strategy: 'V1DeploymentStrategy'):
|
|
460
|
-
"""Sets the strategy of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody.
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
:param strategy: The strategy of this KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody. # noqa: E501
|
|
464
|
-
:type: V1DeploymentStrategy
|
|
465
|
-
"""
|
|
466
|
-
|
|
467
|
-
self._strategy = strategy
|
|
468
|
-
|
|
469
|
-
def to_dict(self) -> dict:
|
|
470
|
-
"""Returns the model properties as a dict"""
|
|
471
|
-
result = {}
|
|
472
|
-
|
|
473
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
474
|
-
value = getattr(self, attr)
|
|
475
|
-
if isinstance(value, list):
|
|
476
|
-
result[attr] = list(map(
|
|
477
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
478
|
-
value
|
|
479
|
-
))
|
|
480
|
-
elif hasattr(value, "to_dict"):
|
|
481
|
-
result[attr] = value.to_dict()
|
|
482
|
-
elif isinstance(value, dict):
|
|
483
|
-
result[attr] = dict(map(
|
|
484
|
-
lambda item: (item[0], item[1].to_dict())
|
|
485
|
-
if hasattr(item[1], "to_dict") else item,
|
|
486
|
-
value.items()
|
|
487
|
-
))
|
|
488
|
-
else:
|
|
489
|
-
result[attr] = value
|
|
490
|
-
if issubclass(KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody, dict):
|
|
491
|
-
for key, value in self.items():
|
|
492
|
-
result[key] = value
|
|
493
|
-
|
|
494
|
-
return result
|
|
495
|
-
|
|
496
|
-
def to_str(self) -> str:
|
|
497
|
-
"""Returns the string representation of the model"""
|
|
498
|
-
return pprint.pformat(self.to_dict())
|
|
499
|
-
|
|
500
|
-
def __repr__(self) -> str:
|
|
501
|
-
"""For `print` and `pprint`"""
|
|
502
|
-
return self.to_str()
|
|
503
|
-
|
|
504
|
-
def __eq__(self, other: 'KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody') -> bool:
|
|
505
|
-
"""Returns true if both objects are equal"""
|
|
506
|
-
if not isinstance(other, KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody):
|
|
507
|
-
return False
|
|
508
|
-
|
|
509
|
-
return self.__dict__ == other.__dict__
|
|
510
|
-
|
|
511
|
-
def __ne__(self, other: 'KubernetesVirtualMachineServiceCreateKubernetesVirtualMachineBody') -> bool:
|
|
512
|
-
"""Returns true if both objects are not equal"""
|
|
513
|
-
return not self == other
|