lightning-sdk 2025.9.2__py3-none-any.whl → 2025.9.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +19 -0
- lightning_sdk/api/studio_api.py +25 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body.py +109 -31
- lightning_sdk/lightning_cloud/openapi/models/models_model_id_body1.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_model_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_get_temp_bucket_credentials_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_node_metrics.py +1215 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +81 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_required_balance_reason.py +107 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -128
- lightning_sdk/llm/llm.py +82 -7
- lightning_sdk/llm/public_assistants.py +2 -2
- lightning_sdk/studio.py +30 -3
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/RECORD +49 -30
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.2.dist-info → lightning_sdk-2025.9.10.dist-info}/top_level.txt +0 -0
|
@@ -51,6 +51,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
51
51
|
'encrypt_instance_volumes': 'bool',
|
|
52
52
|
'exposed_ports': 'list[str]',
|
|
53
53
|
'extra_firewall_cidr_ranges': 'list[str]',
|
|
54
|
+
'extra_firewall_rules': 'list[V1FirewallRule]',
|
|
54
55
|
'extra_policy': 'str',
|
|
55
56
|
'extra_sa_scopes': 'list[str]',
|
|
56
57
|
'kms_key_id': 'str',
|
|
@@ -71,6 +72,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
71
72
|
'encrypt_instance_volumes': 'encryptInstanceVolumes',
|
|
72
73
|
'exposed_ports': 'exposedPorts',
|
|
73
74
|
'extra_firewall_cidr_ranges': 'extraFirewallCidrRanges',
|
|
75
|
+
'extra_firewall_rules': 'extraFirewallRules',
|
|
74
76
|
'extra_policy': 'extraPolicy',
|
|
75
77
|
'extra_sa_scopes': 'extraSaScopes',
|
|
76
78
|
'kms_key_id': 'kmsKeyId',
|
|
@@ -80,7 +82,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
80
82
|
'ssh_disabled': 'sshDisabled'
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
def __init__(self, bucket_kms_key: 'str' =None, cloud_init_boot_cmds: 'list[str]' =None, cloud_init_run_cmds: 'list[str]' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, disabled_services: 'list[str]' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, exposed_ports: 'list[str]' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, extra_sa_scopes: 'list[str]' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
85
|
+
def __init__(self, bucket_kms_key: 'str' =None, cloud_init_boot_cmds: 'list[str]' =None, cloud_init_run_cmds: 'list[str]' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, disabled_services: 'list[str]' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, exposed_ports: 'list[str]' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_firewall_rules: 'list[V1FirewallRule]' =None, extra_policy: 'str' =None, extra_sa_scopes: 'list[str]' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
|
|
84
86
|
"""V1ClusterSecurityOptions - a model defined in Swagger""" # noqa: E501
|
|
85
87
|
self._bucket_kms_key = None
|
|
86
88
|
self._cloud_init_boot_cmds = None
|
|
@@ -92,6 +94,7 @@ class V1ClusterSecurityOptions(object):
|
|
|
92
94
|
self._encrypt_instance_volumes = None
|
|
93
95
|
self._exposed_ports = None
|
|
94
96
|
self._extra_firewall_cidr_ranges = None
|
|
97
|
+
self._extra_firewall_rules = None
|
|
95
98
|
self._extra_policy = None
|
|
96
99
|
self._extra_sa_scopes = None
|
|
97
100
|
self._kms_key_id = None
|
|
@@ -120,6 +123,8 @@ class V1ClusterSecurityOptions(object):
|
|
|
120
123
|
self.exposed_ports = exposed_ports
|
|
121
124
|
if extra_firewall_cidr_ranges is not None:
|
|
122
125
|
self.extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
|
|
126
|
+
if extra_firewall_rules is not None:
|
|
127
|
+
self.extra_firewall_rules = extra_firewall_rules
|
|
123
128
|
if extra_policy is not None:
|
|
124
129
|
self.extra_policy = extra_policy
|
|
125
130
|
if extra_sa_scopes is not None:
|
|
@@ -345,6 +350,27 @@ class V1ClusterSecurityOptions(object):
|
|
|
345
350
|
|
|
346
351
|
self._extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
|
|
347
352
|
|
|
353
|
+
@property
|
|
354
|
+
def extra_firewall_rules(self) -> 'list[V1FirewallRule]':
|
|
355
|
+
"""Gets the extra_firewall_rules of this V1ClusterSecurityOptions. # noqa: E501
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
:return: The extra_firewall_rules of this V1ClusterSecurityOptions. # noqa: E501
|
|
359
|
+
:rtype: list[V1FirewallRule]
|
|
360
|
+
"""
|
|
361
|
+
return self._extra_firewall_rules
|
|
362
|
+
|
|
363
|
+
@extra_firewall_rules.setter
|
|
364
|
+
def extra_firewall_rules(self, extra_firewall_rules: 'list[V1FirewallRule]'):
|
|
365
|
+
"""Sets the extra_firewall_rules of this V1ClusterSecurityOptions.
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
:param extra_firewall_rules: The extra_firewall_rules of this V1ClusterSecurityOptions. # noqa: E501
|
|
369
|
+
:type: list[V1FirewallRule]
|
|
370
|
+
"""
|
|
371
|
+
|
|
372
|
+
self._extra_firewall_rules = extra_firewall_rules
|
|
373
|
+
|
|
348
374
|
@property
|
|
349
375
|
def extra_policy(self) -> 'str':
|
|
350
376
|
"""Gets the extra_policy of this V1ClusterSecurityOptions. # noqa: E501
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class V1CreateModelMetricsResponse(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
|
+
"""V1CreateModelMetricsResponse - 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(V1CreateModelMetricsResponse, 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: 'V1CreateModelMetricsResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1CreateModelMetricsResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1CreateModelMetricsResponse') -> 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 V1DeleteKubernetesTemplateResponse(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
|
+
"""V1DeleteKubernetesTemplateResponse - 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(V1DeleteKubernetesTemplateResponse, 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: 'V1DeleteKubernetesTemplateResponse') -> bool:
|
|
89
|
+
"""Returns true if both objects are equal"""
|
|
90
|
+
if not isinstance(other, V1DeleteKubernetesTemplateResponse):
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
return self.__dict__ == other.__dict__
|
|
94
|
+
|
|
95
|
+
def __ne__(self, other: 'V1DeleteKubernetesTemplateResponse') -> bool:
|
|
96
|
+
"""Returns true if both objects are not equal"""
|
|
97
|
+
return not self == other
|
|
@@ -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 V1FirewallRule(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
|
+
'name': 'str',
|
|
45
|
+
'ports': 'str',
|
|
46
|
+
'source_cidrs': 'list[str]'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'name': 'name',
|
|
51
|
+
'ports': 'ports',
|
|
52
|
+
'source_cidrs': 'sourceCidrs'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, name: 'str' =None, ports: 'str' =None, source_cidrs: 'list[str]' =None): # noqa: E501
|
|
56
|
+
"""V1FirewallRule - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self._name = None
|
|
58
|
+
self._ports = None
|
|
59
|
+
self._source_cidrs = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
if name is not None:
|
|
62
|
+
self.name = name
|
|
63
|
+
if ports is not None:
|
|
64
|
+
self.ports = ports
|
|
65
|
+
if source_cidrs is not None:
|
|
66
|
+
self.source_cidrs = source_cidrs
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def name(self) -> 'str':
|
|
70
|
+
"""Gets the name of this V1FirewallRule. # noqa: E501
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:return: The name of this V1FirewallRule. # noqa: E501
|
|
74
|
+
:rtype: str
|
|
75
|
+
"""
|
|
76
|
+
return self._name
|
|
77
|
+
|
|
78
|
+
@name.setter
|
|
79
|
+
def name(self, name: 'str'):
|
|
80
|
+
"""Sets the name of this V1FirewallRule.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:param name: The name of this V1FirewallRule. # noqa: E501
|
|
84
|
+
:type: str
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
self._name = name
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def ports(self) -> 'str':
|
|
91
|
+
"""Gets the ports of this V1FirewallRule. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The ports of this V1FirewallRule. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._ports
|
|
98
|
+
|
|
99
|
+
@ports.setter
|
|
100
|
+
def ports(self, ports: 'str'):
|
|
101
|
+
"""Sets the ports of this V1FirewallRule.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param ports: The ports of this V1FirewallRule. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
self._ports = ports
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def source_cidrs(self) -> 'list[str]':
|
|
112
|
+
"""Gets the source_cidrs of this V1FirewallRule. # noqa: E501
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:return: The source_cidrs of this V1FirewallRule. # noqa: E501
|
|
116
|
+
:rtype: list[str]
|
|
117
|
+
"""
|
|
118
|
+
return self._source_cidrs
|
|
119
|
+
|
|
120
|
+
@source_cidrs.setter
|
|
121
|
+
def source_cidrs(self, source_cidrs: 'list[str]'):
|
|
122
|
+
"""Sets the source_cidrs of this V1FirewallRule.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param source_cidrs: The source_cidrs of this V1FirewallRule. # noqa: E501
|
|
126
|
+
:type: list[str]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
self._source_cidrs = source_cidrs
|
|
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(V1FirewallRule, 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: 'V1FirewallRule') -> bool:
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, V1FirewallRule):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.__dict__ == other.__dict__
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other: 'V1FirewallRule') -> bool:
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_required_balance_status_response.py
CHANGED
|
@@ -42,7 +42,7 @@ class V1GetCloudSpaceRequiredBalanceStatusResponse(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'has_required_balance': 'bool',
|
|
45
|
-
'reason': '
|
|
45
|
+
'reason': 'V1RequiredBalanceReason'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
attribute_map = {
|
|
@@ -50,7 +50,7 @@ class V1GetCloudSpaceRequiredBalanceStatusResponse(object):
|
|
|
50
50
|
'reason': 'reason'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
def __init__(self, has_required_balance: 'bool' =None, reason: '
|
|
53
|
+
def __init__(self, has_required_balance: 'bool' =None, reason: 'V1RequiredBalanceReason' =None): # noqa: E501
|
|
54
54
|
"""V1GetCloudSpaceRequiredBalanceStatusResponse - a model defined in Swagger""" # noqa: E501
|
|
55
55
|
self._has_required_balance = None
|
|
56
56
|
self._reason = None
|
|
@@ -82,22 +82,22 @@ class V1GetCloudSpaceRequiredBalanceStatusResponse(object):
|
|
|
82
82
|
self._has_required_balance = has_required_balance
|
|
83
83
|
|
|
84
84
|
@property
|
|
85
|
-
def reason(self) -> '
|
|
85
|
+
def reason(self) -> 'V1RequiredBalanceReason':
|
|
86
86
|
"""Gets the reason of this V1GetCloudSpaceRequiredBalanceStatusResponse. # noqa: E501
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
:return: The reason of this V1GetCloudSpaceRequiredBalanceStatusResponse. # noqa: E501
|
|
90
|
-
:rtype:
|
|
90
|
+
:rtype: V1RequiredBalanceReason
|
|
91
91
|
"""
|
|
92
92
|
return self._reason
|
|
93
93
|
|
|
94
94
|
@reason.setter
|
|
95
|
-
def reason(self, reason: '
|
|
95
|
+
def reason(self, reason: 'V1RequiredBalanceReason'):
|
|
96
96
|
"""Sets the reason of this V1GetCloudSpaceRequiredBalanceStatusResponse.
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
:param reason: The reason of this V1GetCloudSpaceRequiredBalanceStatusResponse. # noqa: E501
|
|
100
|
-
:type:
|
|
100
|
+
:type: V1RequiredBalanceReason
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
103
|
self._reason = reason
|
|
@@ -0,0 +1,201 @@
|
|
|
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 V1GetTempBucketCredentialsResponse(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
|
+
'access_key_id': 'str',
|
|
45
|
+
'account_id': 'str',
|
|
46
|
+
'secret_access_key': 'str',
|
|
47
|
+
'session_token': 'str'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'access_key_id': 'accessKeyId',
|
|
52
|
+
'account_id': 'accountId',
|
|
53
|
+
'secret_access_key': 'secretAccessKey',
|
|
54
|
+
'session_token': 'sessionToken'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, access_key_id: 'str' =None, account_id: 'str' =None, secret_access_key: 'str' =None, session_token: 'str' =None): # noqa: E501
|
|
58
|
+
"""V1GetTempBucketCredentialsResponse - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._access_key_id = None
|
|
60
|
+
self._account_id = None
|
|
61
|
+
self._secret_access_key = None
|
|
62
|
+
self._session_token = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if access_key_id is not None:
|
|
65
|
+
self.access_key_id = access_key_id
|
|
66
|
+
if account_id is not None:
|
|
67
|
+
self.account_id = account_id
|
|
68
|
+
if secret_access_key is not None:
|
|
69
|
+
self.secret_access_key = secret_access_key
|
|
70
|
+
if session_token is not None:
|
|
71
|
+
self.session_token = session_token
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def access_key_id(self) -> 'str':
|
|
75
|
+
"""Gets the access_key_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The access_key_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._access_key_id
|
|
82
|
+
|
|
83
|
+
@access_key_id.setter
|
|
84
|
+
def access_key_id(self, access_key_id: 'str'):
|
|
85
|
+
"""Sets the access_key_id of this V1GetTempBucketCredentialsResponse.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param access_key_id: The access_key_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._access_key_id = access_key_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def account_id(self) -> 'str':
|
|
96
|
+
"""Gets the account_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The account_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._account_id
|
|
103
|
+
|
|
104
|
+
@account_id.setter
|
|
105
|
+
def account_id(self, account_id: 'str'):
|
|
106
|
+
"""Sets the account_id of this V1GetTempBucketCredentialsResponse.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param account_id: The account_id of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._account_id = account_id
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def secret_access_key(self) -> 'str':
|
|
117
|
+
"""Gets the secret_access_key of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The secret_access_key of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._secret_access_key
|
|
124
|
+
|
|
125
|
+
@secret_access_key.setter
|
|
126
|
+
def secret_access_key(self, secret_access_key: 'str'):
|
|
127
|
+
"""Sets the secret_access_key of this V1GetTempBucketCredentialsResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param secret_access_key: The secret_access_key of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._secret_access_key = secret_access_key
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def session_token(self) -> 'str':
|
|
138
|
+
"""Gets the session_token of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The session_token of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._session_token
|
|
145
|
+
|
|
146
|
+
@session_token.setter
|
|
147
|
+
def session_token(self, session_token: 'str'):
|
|
148
|
+
"""Sets the session_token of this V1GetTempBucketCredentialsResponse.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param session_token: The session_token of this V1GetTempBucketCredentialsResponse. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._session_token = session_token
|
|
156
|
+
|
|
157
|
+
def to_dict(self) -> dict:
|
|
158
|
+
"""Returns the model properties as a dict"""
|
|
159
|
+
result = {}
|
|
160
|
+
|
|
161
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
162
|
+
value = getattr(self, attr)
|
|
163
|
+
if isinstance(value, list):
|
|
164
|
+
result[attr] = list(map(
|
|
165
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
166
|
+
value
|
|
167
|
+
))
|
|
168
|
+
elif hasattr(value, "to_dict"):
|
|
169
|
+
result[attr] = value.to_dict()
|
|
170
|
+
elif isinstance(value, dict):
|
|
171
|
+
result[attr] = dict(map(
|
|
172
|
+
lambda item: (item[0], item[1].to_dict())
|
|
173
|
+
if hasattr(item[1], "to_dict") else item,
|
|
174
|
+
value.items()
|
|
175
|
+
))
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
if issubclass(V1GetTempBucketCredentialsResponse, dict):
|
|
179
|
+
for key, value in self.items():
|
|
180
|
+
result[key] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self) -> str:
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self) -> str:
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other: 'V1GetTempBucketCredentialsResponse') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, V1GetTempBucketCredentialsResponse):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'V1GetTempBucketCredentialsResponse') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|