lightning-sdk 2025.10.8__py3-none-any.whl → 2025.10.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/__init__.py +6 -3
- lightning_sdk/api/base_studio_api.py +13 -9
- lightning_sdk/api/cloud_account_api.py +0 -2
- lightning_sdk/api/license_api.py +26 -59
- lightning_sdk/api/studio_api.py +15 -2
- lightning_sdk/base_studio.py +30 -17
- lightning_sdk/cli/base_studio/list.py +1 -3
- lightning_sdk/cli/entrypoint.py +8 -34
- lightning_sdk/cli/studio/connect.py +42 -92
- lightning_sdk/cli/studio/create.py +23 -1
- lightning_sdk/cli/studio/start.py +12 -2
- lightning_sdk/cli/utils/get_base_studio.py +24 -0
- lightning_sdk/cli/utils/handle_machine_and_gpus_args.py +71 -0
- lightning_sdk/cli/utils/logging.py +121 -0
- lightning_sdk/cli/utils/ssh_connection.py +1 -1
- lightning_sdk/constants.py +1 -0
- lightning_sdk/helpers.py +53 -34
- lightning_sdk/job/job.py +5 -0
- lightning_sdk/job/v1.py +8 -0
- lightning_sdk/job/v2.py +8 -0
- lightning_sdk/lightning_cloud/login.py +260 -10
- lightning_sdk/lightning_cloud/openapi/__init__.py +30 -3
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +19 -19
- lightning_sdk/lightning_cloud/openapi/api/auth_service_api.py +97 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +108 -108
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/create_machine_request_represents_the_request_to_create_a_machine.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/id_fork_body1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/license_key_validate_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_license_request.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_license_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_detail.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_license.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_product_licenses_response.py → v1_list_license_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_slack_notifier.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_request.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_login_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_token_owner_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +209 -131
- lightning_sdk/lightning_cloud/openapi/models/{v1_product_license_check_response.py → v1_validate_license_response.py} +21 -21
- lightning_sdk/lightning_cloud/rest_client.py +48 -45
- lightning_sdk/machine.py +2 -1
- lightning_sdk/studio.py +22 -2
- lightning_sdk/utils/license.py +13 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/RECORD +94 -64
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +0 -435
- lightning_sdk/services/license.py +0 -363
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.22.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
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 V1CreateLicenseRequest(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
|
+
'owner_id': 'str',
|
|
45
|
+
'owner_type': 'V1TokenOwnerType',
|
|
46
|
+
'product_id': 'str'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'owner_id': 'ownerId',
|
|
51
|
+
'owner_type': 'ownerType',
|
|
52
|
+
'product_id': 'productId'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, owner_id: 'str' =None, owner_type: 'V1TokenOwnerType' =None, product_id: 'str' =None): # noqa: E501
|
|
56
|
+
"""V1CreateLicenseRequest - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._owner_id = None
|
|
58
|
+
self._owner_type = None
|
|
59
|
+
self._product_id = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if owner_id is not None:
|
|
62
|
+
self.owner_id = owner_id
|
|
63
|
+
if owner_type is not None:
|
|
64
|
+
self.owner_type = owner_type
|
|
65
|
+
if product_id is not None:
|
|
66
|
+
self.product_id = product_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def owner_id(self) -> 'str':
|
|
70
|
+
"""Gets the owner_id of this V1CreateLicenseRequest. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The owner_id of this V1CreateLicenseRequest. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._owner_id
|
|
77
|
+
|
|
78
|
+
@owner_id.setter
|
|
79
|
+
def owner_id(self, owner_id: 'str'):
|
|
80
|
+
"""Sets the owner_id of this V1CreateLicenseRequest.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param owner_id: The owner_id of this V1CreateLicenseRequest. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._owner_id = owner_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def owner_type(self) -> 'V1TokenOwnerType':
|
|
91
|
+
"""Gets the owner_type of this V1CreateLicenseRequest. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The owner_type of this V1CreateLicenseRequest. # noqa: E501
|
|
95
|
+
:rtype: V1TokenOwnerType
|
|
96
|
+
"""
|
|
97
|
+
return self._owner_type
|
|
98
|
+
|
|
99
|
+
@owner_type.setter
|
|
100
|
+
def owner_type(self, owner_type: 'V1TokenOwnerType'):
|
|
101
|
+
"""Sets the owner_type of this V1CreateLicenseRequest.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param owner_type: The owner_type of this V1CreateLicenseRequest. # noqa: E501
|
|
105
|
+
:type: V1TokenOwnerType
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._owner_type = owner_type
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def product_id(self) -> 'str':
|
|
112
|
+
"""Gets the product_id of this V1CreateLicenseRequest. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The product_id of this V1CreateLicenseRequest. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._product_id
|
|
119
|
+
|
|
120
|
+
@product_id.setter
|
|
121
|
+
def product_id(self, product_id: 'str'):
|
|
122
|
+
"""Sets the product_id of this V1CreateLicenseRequest.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param product_id: The product_id of this V1CreateLicenseRequest. # noqa: E501
|
|
126
|
+
:type: str
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._product_id = product_id
|
|
130
|
+
|
|
131
|
+
def to_dict(self) -> dict:
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
if issubclass(V1CreateLicenseRequest, dict):
|
|
153
|
+
for key, value in self.items():
|
|
154
|
+
result[key] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self) -> str:
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self) -> str:
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other: 'V1CreateLicenseRequest') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1CreateLicenseRequest):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1CreateLicenseRequest') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
|
@@ -50,6 +50,7 @@ class V1CreateProjectRequest(object):
|
|
|
50
50
|
'display_name': 'str',
|
|
51
51
|
'layout_config': 'list[V1ProjectTab]',
|
|
52
52
|
'name': 'str',
|
|
53
|
+
'organization_billing_enabled': 'bool',
|
|
53
54
|
'organization_id': 'str',
|
|
54
55
|
'preferred_cluster': 'str',
|
|
55
56
|
'quotas': 'V1Quotas'
|
|
@@ -65,12 +66,13 @@ class V1CreateProjectRequest(object):
|
|
|
65
66
|
'display_name': 'displayName',
|
|
66
67
|
'layout_config': 'layoutConfig',
|
|
67
68
|
'name': 'name',
|
|
69
|
+
'organization_billing_enabled': 'organizationBillingEnabled',
|
|
68
70
|
'organization_id': 'organizationId',
|
|
69
71
|
'preferred_cluster': 'preferredCluster',
|
|
70
72
|
'quotas': 'quotas'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
75
|
+
def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, layout_config: 'list[V1ProjectTab]' =None, name: 'str' =None, organization_billing_enabled: 'bool' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
|
|
74
76
|
"""V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
|
|
75
77
|
self._allow_credits_auto_replenish = None
|
|
76
78
|
self._auto_replenish_amount = None
|
|
@@ -81,6 +83,7 @@ class V1CreateProjectRequest(object):
|
|
|
81
83
|
self._display_name = None
|
|
82
84
|
self._layout_config = None
|
|
83
85
|
self._name = None
|
|
86
|
+
self._organization_billing_enabled = None
|
|
84
87
|
self._organization_id = None
|
|
85
88
|
self._preferred_cluster = None
|
|
86
89
|
self._quotas = None
|
|
@@ -103,6 +106,8 @@ class V1CreateProjectRequest(object):
|
|
|
103
106
|
self.layout_config = layout_config
|
|
104
107
|
if name is not None:
|
|
105
108
|
self.name = name
|
|
109
|
+
if organization_billing_enabled is not None:
|
|
110
|
+
self.organization_billing_enabled = organization_billing_enabled
|
|
106
111
|
if organization_id is not None:
|
|
107
112
|
self.organization_id = organization_id
|
|
108
113
|
if preferred_cluster is not None:
|
|
@@ -299,6 +304,27 @@ class V1CreateProjectRequest(object):
|
|
|
299
304
|
|
|
300
305
|
self._name = name
|
|
301
306
|
|
|
307
|
+
@property
|
|
308
|
+
def organization_billing_enabled(self) -> 'bool':
|
|
309
|
+
"""Gets the organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
:return: The organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
313
|
+
:rtype: bool
|
|
314
|
+
"""
|
|
315
|
+
return self._organization_billing_enabled
|
|
316
|
+
|
|
317
|
+
@organization_billing_enabled.setter
|
|
318
|
+
def organization_billing_enabled(self, organization_billing_enabled: 'bool'):
|
|
319
|
+
"""Sets the organization_billing_enabled of this V1CreateProjectRequest.
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
:param organization_billing_enabled: The organization_billing_enabled of this V1CreateProjectRequest. # noqa: E501
|
|
323
|
+
:type: bool
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
self._organization_billing_enabled = organization_billing_enabled
|
|
327
|
+
|
|
302
328
|
@property
|
|
303
329
|
def organization_id(self) -> 'str':
|
|
304
330
|
"""Gets the organization_id of this V1CreateProjectRequest. # noqa: E501
|
|
@@ -0,0 +1,253 @@
|
|
|
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 V1CreateSDKCommandHistoryRequest(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
|
+
'command': 'str',
|
|
45
|
+
'duration': 'int',
|
|
46
|
+
'message': 'str',
|
|
47
|
+
'project_id': 'str',
|
|
48
|
+
'severity': 'V1SDKCommandHistorySeverity',
|
|
49
|
+
'type': 'V1SDKCommandHistoryType'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
'command': 'command',
|
|
54
|
+
'duration': 'duration',
|
|
55
|
+
'message': 'message',
|
|
56
|
+
'project_id': 'projectId',
|
|
57
|
+
'severity': 'severity',
|
|
58
|
+
'type': 'type'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, command: 'str' =None, duration: 'int' =None, message: 'str' =None, project_id: 'str' =None, severity: 'V1SDKCommandHistorySeverity' =None, type: 'V1SDKCommandHistoryType' =None): # noqa: E501
|
|
62
|
+
"""V1CreateSDKCommandHistoryRequest - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._command = None
|
|
64
|
+
self._duration = None
|
|
65
|
+
self._message = None
|
|
66
|
+
self._project_id = None
|
|
67
|
+
self._severity = None
|
|
68
|
+
self._type = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
if command is not None:
|
|
71
|
+
self.command = command
|
|
72
|
+
if duration is not None:
|
|
73
|
+
self.duration = duration
|
|
74
|
+
if message is not None:
|
|
75
|
+
self.message = message
|
|
76
|
+
if project_id is not None:
|
|
77
|
+
self.project_id = project_id
|
|
78
|
+
if severity is not None:
|
|
79
|
+
self.severity = severity
|
|
80
|
+
if type is not None:
|
|
81
|
+
self.type = type
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def command(self) -> 'str':
|
|
85
|
+
"""Gets the command of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The command of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._command
|
|
92
|
+
|
|
93
|
+
@command.setter
|
|
94
|
+
def command(self, command: 'str'):
|
|
95
|
+
"""Sets the command of this V1CreateSDKCommandHistoryRequest.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param command: The command of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._command = command
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def duration(self) -> 'int':
|
|
106
|
+
"""Gets the duration of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The duration of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
110
|
+
:rtype: int
|
|
111
|
+
"""
|
|
112
|
+
return self._duration
|
|
113
|
+
|
|
114
|
+
@duration.setter
|
|
115
|
+
def duration(self, duration: 'int'):
|
|
116
|
+
"""Sets the duration of this V1CreateSDKCommandHistoryRequest.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param duration: The duration of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
120
|
+
:type: int
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._duration = duration
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def message(self) -> 'str':
|
|
127
|
+
"""Gets the message of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The message of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._message
|
|
134
|
+
|
|
135
|
+
@message.setter
|
|
136
|
+
def message(self, message: 'str'):
|
|
137
|
+
"""Sets the message of this V1CreateSDKCommandHistoryRequest.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param message: The message of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._message = message
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def project_id(self) -> 'str':
|
|
148
|
+
"""Gets the project_id of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:return: The project_id of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._project_id
|
|
155
|
+
|
|
156
|
+
@project_id.setter
|
|
157
|
+
def project_id(self, project_id: 'str'):
|
|
158
|
+
"""Sets the project_id of this V1CreateSDKCommandHistoryRequest.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:param project_id: The project_id of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
162
|
+
:type: str
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
self._project_id = project_id
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def severity(self) -> 'V1SDKCommandHistorySeverity':
|
|
169
|
+
"""Gets the severity of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:return: The severity of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
173
|
+
:rtype: V1SDKCommandHistorySeverity
|
|
174
|
+
"""
|
|
175
|
+
return self._severity
|
|
176
|
+
|
|
177
|
+
@severity.setter
|
|
178
|
+
def severity(self, severity: 'V1SDKCommandHistorySeverity'):
|
|
179
|
+
"""Sets the severity of this V1CreateSDKCommandHistoryRequest.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param severity: The severity of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
183
|
+
:type: V1SDKCommandHistorySeverity
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
self._severity = severity
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def type(self) -> 'V1SDKCommandHistoryType':
|
|
190
|
+
"""Gets the type of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The type of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
194
|
+
:rtype: V1SDKCommandHistoryType
|
|
195
|
+
"""
|
|
196
|
+
return self._type
|
|
197
|
+
|
|
198
|
+
@type.setter
|
|
199
|
+
def type(self, type: 'V1SDKCommandHistoryType'):
|
|
200
|
+
"""Sets the type of this V1CreateSDKCommandHistoryRequest.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param type: The type of this V1CreateSDKCommandHistoryRequest. # noqa: E501
|
|
204
|
+
:type: V1SDKCommandHistoryType
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._type = type
|
|
208
|
+
|
|
209
|
+
def to_dict(self) -> dict:
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(V1CreateSDKCommandHistoryRequest, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self) -> str:
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self) -> str:
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other: 'V1CreateSDKCommandHistoryRequest') -> bool:
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, V1CreateSDKCommandHistoryRequest):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.__dict__ == other.__dict__
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other: 'V1CreateSDKCommandHistoryRequest') -> bool:
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
return not self == other
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1CreateSDKCommandHistoryResponse(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1CreateSDKCommandHistoryResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1CreateSDKCommandHistoryResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1CreateSDKCommandHistoryResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CreateSDKCommandHistoryResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CreateSDKCommandHistoryResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1DeleteIncidentMessageResponse(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self): # noqa: E501
|
|
50
|
+
"""V1DeleteIncidentMessageResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> dict:
|
|
54
|
+
"""Returns the model properties as a dict"""
|
|
55
|
+
result = {}
|
|
56
|
+
|
|
57
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
58
|
+
value = getattr(self, attr)
|
|
59
|
+
if isinstance(value, list):
|
|
60
|
+
result[attr] = list(map(
|
|
61
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
62
|
+
value
|
|
63
|
+
))
|
|
64
|
+
elif hasattr(value, "to_dict"):
|
|
65
|
+
result[attr] = value.to_dict()
|
|
66
|
+
elif isinstance(value, dict):
|
|
67
|
+
result[attr] = dict(map(
|
|
68
|
+
lambda item: (item[0], item[1].to_dict())
|
|
69
|
+
if hasattr(item[1], "to_dict") else item,
|
|
70
|
+
value.items()
|
|
71
|
+
))
|
|
72
|
+
else:
|
|
73
|
+
result[attr] = value
|
|
74
|
+
if issubclass(V1DeleteIncidentMessageResponse, dict):
|
|
75
|
+
for key, value in self.items():
|
|
76
|
+
result[key] = value
|
|
77
|
+
|
|
78
|
+
return result
|
|
79
|
+
|
|
80
|
+
def to_str(self) -> str:
|
|
81
|
+
"""Returns the string representation of the model"""
|
|
82
|
+
return pprint.pformat(self.to_dict())
|
|
83
|
+
|
|
84
|
+
def __repr__(self) -> str:
|
|
85
|
+
"""For `print` and `pprint`"""
|
|
86
|
+
return self.to_str()
|
|
87
|
+
|
|
88
|
+
def __eq__(self, other: 'V1DeleteIncidentMessageResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteIncidentMessageResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteIncidentMessageResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|