lightning-sdk 0.2.24rc0__py3-none-any.whl → 0.2.24rc1__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 +18 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +13 -1
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_action_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -27
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/llm/llm.py +6 -1
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/RECORD +36 -30
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/top_level.txt +0 -0
|
@@ -41,6 +41,7 @@ class ProjectIdSchedulesBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'action_type': 'V1ScheduleActionType',
|
|
44
45
|
'cron_expression': 'str',
|
|
45
46
|
'display_name': 'str',
|
|
46
47
|
'parent_resource_id': 'str',
|
|
@@ -49,6 +50,7 @@ class ProjectIdSchedulesBody(object):
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
attribute_map = {
|
|
53
|
+
'action_type': 'actionType',
|
|
52
54
|
'cron_expression': 'cronExpression',
|
|
53
55
|
'display_name': 'displayName',
|
|
54
56
|
'parent_resource_id': 'parentResourceId',
|
|
@@ -56,14 +58,17 @@ class ProjectIdSchedulesBody(object):
|
|
|
56
58
|
'resource_type': 'resourceType'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, cron_expression: 'str' =None, display_name: 'str' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None): # noqa: E501
|
|
61
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, cron_expression: 'str' =None, display_name: 'str' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None): # noqa: E501
|
|
60
62
|
"""ProjectIdSchedulesBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._action_type = None
|
|
61
64
|
self._cron_expression = None
|
|
62
65
|
self._display_name = None
|
|
63
66
|
self._parent_resource_id = None
|
|
64
67
|
self._resource_id = None
|
|
65
68
|
self._resource_type = None
|
|
66
69
|
self.discriminator = None
|
|
70
|
+
if action_type is not None:
|
|
71
|
+
self.action_type = action_type
|
|
67
72
|
if cron_expression is not None:
|
|
68
73
|
self.cron_expression = cron_expression
|
|
69
74
|
if display_name is not None:
|
|
@@ -75,6 +80,27 @@ class ProjectIdSchedulesBody(object):
|
|
|
75
80
|
if resource_type is not None:
|
|
76
81
|
self.resource_type = resource_type
|
|
77
82
|
|
|
83
|
+
@property
|
|
84
|
+
def action_type(self) -> 'V1ScheduleActionType':
|
|
85
|
+
"""Gets the action_type of this ProjectIdSchedulesBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The action_type of this ProjectIdSchedulesBody. # noqa: E501
|
|
89
|
+
:rtype: V1ScheduleActionType
|
|
90
|
+
"""
|
|
91
|
+
return self._action_type
|
|
92
|
+
|
|
93
|
+
@action_type.setter
|
|
94
|
+
def action_type(self, action_type: 'V1ScheduleActionType'):
|
|
95
|
+
"""Sets the action_type of this ProjectIdSchedulesBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param action_type: The action_type of this ProjectIdSchedulesBody. # noqa: E501
|
|
99
|
+
:type: V1ScheduleActionType
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._action_type = action_type
|
|
103
|
+
|
|
78
104
|
@property
|
|
79
105
|
def cron_expression(self) -> 'str':
|
|
80
106
|
"""Gets the cron_expression of this ProjectIdSchedulesBody. # noqa: E501
|
|
@@ -41,6 +41,7 @@ class SchedulesIdBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'action_type': 'V1ScheduleActionType',
|
|
44
45
|
'created_at': 'datetime',
|
|
45
46
|
'cron_expression': 'str',
|
|
46
47
|
'display_name': 'str',
|
|
@@ -56,6 +57,7 @@ class SchedulesIdBody(object):
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
attribute_map = {
|
|
60
|
+
'action_type': 'actionType',
|
|
59
61
|
'created_at': 'createdAt',
|
|
60
62
|
'cron_expression': 'cronExpression',
|
|
61
63
|
'display_name': 'displayName',
|
|
@@ -70,8 +72,9 @@ class SchedulesIdBody(object):
|
|
|
70
72
|
'user_id': 'userId'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
75
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
74
76
|
"""SchedulesIdBody - a model defined in Swagger""" # noqa: E501
|
|
77
|
+
self._action_type = None
|
|
75
78
|
self._created_at = None
|
|
76
79
|
self._cron_expression = None
|
|
77
80
|
self._display_name = None
|
|
@@ -85,6 +88,8 @@ class SchedulesIdBody(object):
|
|
|
85
88
|
self._updated_at = None
|
|
86
89
|
self._user_id = None
|
|
87
90
|
self.discriminator = None
|
|
91
|
+
if action_type is not None:
|
|
92
|
+
self.action_type = action_type
|
|
88
93
|
if created_at is not None:
|
|
89
94
|
self.created_at = created_at
|
|
90
95
|
if cron_expression is not None:
|
|
@@ -110,6 +115,27 @@ class SchedulesIdBody(object):
|
|
|
110
115
|
if user_id is not None:
|
|
111
116
|
self.user_id = user_id
|
|
112
117
|
|
|
118
|
+
@property
|
|
119
|
+
def action_type(self) -> 'V1ScheduleActionType':
|
|
120
|
+
"""Gets the action_type of this SchedulesIdBody. # noqa: E501
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:return: The action_type of this SchedulesIdBody. # noqa: E501
|
|
124
|
+
:rtype: V1ScheduleActionType
|
|
125
|
+
"""
|
|
126
|
+
return self._action_type
|
|
127
|
+
|
|
128
|
+
@action_type.setter
|
|
129
|
+
def action_type(self, action_type: 'V1ScheduleActionType'):
|
|
130
|
+
"""Sets the action_type of this SchedulesIdBody.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:param action_type: The action_type of this SchedulesIdBody. # noqa: E501
|
|
134
|
+
:type: V1ScheduleActionType
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._action_type = action_type
|
|
138
|
+
|
|
113
139
|
@property
|
|
114
140
|
def created_at(self) -> 'datetime':
|
|
115
141
|
"""Gets the created_at of this SchedulesIdBody. # noqa: E501
|
|
@@ -49,6 +49,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
49
49
|
'full_cloud_provider_reservation_string': 'str',
|
|
50
50
|
'id': 'str',
|
|
51
51
|
'in_use': 'str',
|
|
52
|
+
'in_use_aggregate': 'str',
|
|
52
53
|
'instance_type': 'str',
|
|
53
54
|
'match_pattern': 'str',
|
|
54
55
|
'num_instances': 'str',
|
|
@@ -67,6 +68,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
67
68
|
'full_cloud_provider_reservation_string': 'fullCloudProviderReservationString',
|
|
68
69
|
'id': 'id',
|
|
69
70
|
'in_use': 'inUse',
|
|
71
|
+
'in_use_aggregate': 'inUseAggregate',
|
|
70
72
|
'instance_type': 'instanceType',
|
|
71
73
|
'match_pattern': 'matchPattern',
|
|
72
74
|
'num_instances': 'numInstances',
|
|
@@ -76,7 +78,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
76
78
|
'zone': 'zone'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, aggregate_availability: 'str' =None, capacity_reservation_type: 'str' =None, cloud_provider_capacity_reservation_id: 'str' =None, cluster_id: 'str' =None, end_time: 'datetime' =None, full_cloud_provider_reservation_string: 'str' =None, id: 'str' =None, in_use: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, zone: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, aggregate_availability: 'str' =None, capacity_reservation_type: 'str' =None, cloud_provider_capacity_reservation_id: 'str' =None, cluster_id: 'str' =None, end_time: 'datetime' =None, full_cloud_provider_reservation_string: 'str' =None, id: 'str' =None, in_use: 'str' =None, in_use_aggregate: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, num_instances: 'str' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, zone: 'str' =None): # noqa: E501
|
|
80
82
|
"""V1ClusterCapacityReservation - a model defined in Swagger""" # noqa: E501
|
|
81
83
|
self._aggregate_availability = None
|
|
82
84
|
self._capacity_reservation_type = None
|
|
@@ -86,6 +88,7 @@ class V1ClusterCapacityReservation(object):
|
|
|
86
88
|
self._full_cloud_provider_reservation_string = None
|
|
87
89
|
self._id = None
|
|
88
90
|
self._in_use = None
|
|
91
|
+
self._in_use_aggregate = None
|
|
89
92
|
self._instance_type = None
|
|
90
93
|
self._match_pattern = None
|
|
91
94
|
self._num_instances = None
|
|
@@ -110,6 +113,8 @@ class V1ClusterCapacityReservation(object):
|
|
|
110
113
|
self.id = id
|
|
111
114
|
if in_use is not None:
|
|
112
115
|
self.in_use = in_use
|
|
116
|
+
if in_use_aggregate is not None:
|
|
117
|
+
self.in_use_aggregate = in_use_aggregate
|
|
113
118
|
if instance_type is not None:
|
|
114
119
|
self.instance_type = instance_type
|
|
115
120
|
if match_pattern is not None:
|
|
@@ -293,6 +298,27 @@ class V1ClusterCapacityReservation(object):
|
|
|
293
298
|
|
|
294
299
|
self._in_use = in_use
|
|
295
300
|
|
|
301
|
+
@property
|
|
302
|
+
def in_use_aggregate(self) -> 'str':
|
|
303
|
+
"""Gets the in_use_aggregate of this V1ClusterCapacityReservation. # noqa: E501
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:return: The in_use_aggregate of this V1ClusterCapacityReservation. # noqa: E501
|
|
307
|
+
:rtype: str
|
|
308
|
+
"""
|
|
309
|
+
return self._in_use_aggregate
|
|
310
|
+
|
|
311
|
+
@in_use_aggregate.setter
|
|
312
|
+
def in_use_aggregate(self, in_use_aggregate: 'str'):
|
|
313
|
+
"""Sets the in_use_aggregate of this V1ClusterCapacityReservation.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:param in_use_aggregate: The in_use_aggregate of this V1ClusterCapacityReservation. # noqa: E501
|
|
317
|
+
:type: str
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
self._in_use_aggregate = in_use_aggregate
|
|
321
|
+
|
|
296
322
|
@property
|
|
297
323
|
def instance_type(self) -> 'str':
|
|
298
324
|
"""Gets the instance_type of this V1ClusterCapacityReservation. # noqa: E501
|
|
@@ -0,0 +1,103 @@
|
|
|
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 V1DataConnectionTier(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
|
+
"""
|
|
38
|
+
allowed enum values
|
|
39
|
+
"""
|
|
40
|
+
SSD = "DATA_CONNECTION_TIER_SSD"
|
|
41
|
+
HDD = "DATA_CONNECTION_TIER_HDD"
|
|
42
|
+
"""
|
|
43
|
+
Attributes:
|
|
44
|
+
swagger_types (dict): The key is attribute name
|
|
45
|
+
and the value is attribute type.
|
|
46
|
+
attribute_map (dict): The key is attribute name
|
|
47
|
+
and the value is json key in definition.
|
|
48
|
+
"""
|
|
49
|
+
swagger_types = {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attribute_map = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self): # noqa: E501
|
|
56
|
+
"""V1DataConnectionTier - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> dict:
|
|
60
|
+
"""Returns the model properties as a dict"""
|
|
61
|
+
result = {}
|
|
62
|
+
|
|
63
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
64
|
+
value = getattr(self, attr)
|
|
65
|
+
if isinstance(value, list):
|
|
66
|
+
result[attr] = list(map(
|
|
67
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
68
|
+
value
|
|
69
|
+
))
|
|
70
|
+
elif hasattr(value, "to_dict"):
|
|
71
|
+
result[attr] = value.to_dict()
|
|
72
|
+
elif isinstance(value, dict):
|
|
73
|
+
result[attr] = dict(map(
|
|
74
|
+
lambda item: (item[0], item[1].to_dict())
|
|
75
|
+
if hasattr(item[1], "to_dict") else item,
|
|
76
|
+
value.items()
|
|
77
|
+
))
|
|
78
|
+
else:
|
|
79
|
+
result[attr] = value
|
|
80
|
+
if issubclass(V1DataConnectionTier, dict):
|
|
81
|
+
for key, value in self.items():
|
|
82
|
+
result[key] = value
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def to_str(self) -> str:
|
|
87
|
+
"""Returns the string representation of the model"""
|
|
88
|
+
return pprint.pformat(self.to_dict())
|
|
89
|
+
|
|
90
|
+
def __repr__(self) -> str:
|
|
91
|
+
"""For `print` and `pprint`"""
|
|
92
|
+
return self.to_str()
|
|
93
|
+
|
|
94
|
+
def __eq__(self, other: 'V1DataConnectionTier') -> bool:
|
|
95
|
+
"""Returns true if both objects are equal"""
|
|
96
|
+
if not isinstance(other, V1DataConnectionTier):
|
|
97
|
+
return False
|
|
98
|
+
|
|
99
|
+
return self.__dict__ == other.__dict__
|
|
100
|
+
|
|
101
|
+
def __ne__(self, other: 'V1DataConnectionTier') -> bool:
|
|
102
|
+
"""Returns true if both objects are not equal"""
|
|
103
|
+
return not self == other
|
|
@@ -44,22 +44,25 @@ class V1FilestoreDataConnection(object):
|
|
|
44
44
|
'capacity_gb': 'str',
|
|
45
45
|
'mount_ip': 'str',
|
|
46
46
|
'region': 'str',
|
|
47
|
-
'source': 'str'
|
|
47
|
+
'source': 'str',
|
|
48
|
+
'tier': 'V1DataConnectionTier'
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
51
52
|
'capacity_gb': 'capacityGb',
|
|
52
53
|
'mount_ip': 'mountIp',
|
|
53
54
|
'region': 'region',
|
|
54
|
-
'source': 'source'
|
|
55
|
+
'source': 'source',
|
|
56
|
+
'tier': 'tier'
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
def __init__(self, capacity_gb: 'str' =None, mount_ip: 'str' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
|
|
59
|
+
def __init__(self, capacity_gb: 'str' =None, mount_ip: 'str' =None, region: 'str' =None, source: 'str' =None, tier: 'V1DataConnectionTier' =None): # noqa: E501
|
|
58
60
|
"""V1FilestoreDataConnection - a model defined in Swagger""" # noqa: E501
|
|
59
61
|
self._capacity_gb = None
|
|
60
62
|
self._mount_ip = None
|
|
61
63
|
self._region = None
|
|
62
64
|
self._source = None
|
|
65
|
+
self._tier = None
|
|
63
66
|
self.discriminator = None
|
|
64
67
|
if capacity_gb is not None:
|
|
65
68
|
self.capacity_gb = capacity_gb
|
|
@@ -69,6 +72,8 @@ class V1FilestoreDataConnection(object):
|
|
|
69
72
|
self.region = region
|
|
70
73
|
if source is not None:
|
|
71
74
|
self.source = source
|
|
75
|
+
if tier is not None:
|
|
76
|
+
self.tier = tier
|
|
72
77
|
|
|
73
78
|
@property
|
|
74
79
|
def capacity_gb(self) -> 'str':
|
|
@@ -154,6 +159,27 @@ class V1FilestoreDataConnection(object):
|
|
|
154
159
|
|
|
155
160
|
self._source = source
|
|
156
161
|
|
|
162
|
+
@property
|
|
163
|
+
def tier(self) -> 'V1DataConnectionTier':
|
|
164
|
+
"""Gets the tier of this V1FilestoreDataConnection. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The tier of this V1FilestoreDataConnection. # noqa: E501
|
|
168
|
+
:rtype: V1DataConnectionTier
|
|
169
|
+
"""
|
|
170
|
+
return self._tier
|
|
171
|
+
|
|
172
|
+
@tier.setter
|
|
173
|
+
def tier(self, tier: 'V1DataConnectionTier'):
|
|
174
|
+
"""Sets the tier of this V1FilestoreDataConnection.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param tier: The tier of this V1FilestoreDataConnection. # noqa: E501
|
|
178
|
+
:type: V1DataConnectionTier
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._tier = tier
|
|
182
|
+
|
|
157
183
|
def to_dict(self) -> dict:
|
|
158
184
|
"""Returns the model properties as a dict"""
|
|
159
185
|
result = {}
|
|
@@ -54,6 +54,7 @@ class V1GetUserResponse(object):
|
|
|
54
54
|
'first_name': 'str',
|
|
55
55
|
'general_audience_mode': 'bool',
|
|
56
56
|
'id': 'str',
|
|
57
|
+
'internal_blog_admin': 'bool',
|
|
57
58
|
'internal_docs_admin': 'bool',
|
|
58
59
|
'invite_code': 'str',
|
|
59
60
|
'is_internal': 'bool',
|
|
@@ -96,6 +97,7 @@ class V1GetUserResponse(object):
|
|
|
96
97
|
'first_name': 'firstName',
|
|
97
98
|
'general_audience_mode': 'generalAudienceMode',
|
|
98
99
|
'id': 'id',
|
|
100
|
+
'internal_blog_admin': 'internalBlogAdmin',
|
|
99
101
|
'internal_docs_admin': 'internalDocsAdmin',
|
|
100
102
|
'invite_code': 'inviteCode',
|
|
101
103
|
'is_internal': 'isInternal',
|
|
@@ -124,7 +126,7 @@ class V1GetUserResponse(object):
|
|
|
124
126
|
'website': 'website'
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
129
|
+
def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_blog_admin: 'bool' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
|
|
128
130
|
"""V1GetUserResponse - a model defined in Swagger""" # noqa: E501
|
|
129
131
|
self._agree_to_terms_and_conditions = None
|
|
130
132
|
self._allow_credits_auto_replenish = None
|
|
@@ -139,6 +141,7 @@ class V1GetUserResponse(object):
|
|
|
139
141
|
self._first_name = None
|
|
140
142
|
self._general_audience_mode = None
|
|
141
143
|
self._id = None
|
|
144
|
+
self._internal_blog_admin = None
|
|
142
145
|
self._internal_docs_admin = None
|
|
143
146
|
self._invite_code = None
|
|
144
147
|
self._is_internal = None
|
|
@@ -192,6 +195,8 @@ class V1GetUserResponse(object):
|
|
|
192
195
|
self.general_audience_mode = general_audience_mode
|
|
193
196
|
if id is not None:
|
|
194
197
|
self.id = id
|
|
198
|
+
if internal_blog_admin is not None:
|
|
199
|
+
self.internal_blog_admin = internal_blog_admin
|
|
195
200
|
if internal_docs_admin is not None:
|
|
196
201
|
self.internal_docs_admin = internal_docs_admin
|
|
197
202
|
if invite_code is not None:
|
|
@@ -518,6 +523,27 @@ class V1GetUserResponse(object):
|
|
|
518
523
|
|
|
519
524
|
self._id = id
|
|
520
525
|
|
|
526
|
+
@property
|
|
527
|
+
def internal_blog_admin(self) -> 'bool':
|
|
528
|
+
"""Gets the internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
:return: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
532
|
+
:rtype: bool
|
|
533
|
+
"""
|
|
534
|
+
return self._internal_blog_admin
|
|
535
|
+
|
|
536
|
+
@internal_blog_admin.setter
|
|
537
|
+
def internal_blog_admin(self, internal_blog_admin: 'bool'):
|
|
538
|
+
"""Sets the internal_blog_admin of this V1GetUserResponse.
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
:param internal_blog_admin: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
|
|
542
|
+
:type: bool
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
self._internal_blog_admin = internal_blog_admin
|
|
546
|
+
|
|
521
547
|
@property
|
|
522
548
|
def internal_docs_admin(self) -> 'bool':
|
|
523
549
|
"""Gets the internal_docs_admin of this V1GetUserResponse. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1GetVolumeResponse(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
|
+
'volume': 'V1Volume'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'volume': 'volume'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, volume: 'V1Volume' =None): # noqa: E501
|
|
52
|
+
"""V1GetVolumeResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._volume = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if volume is not None:
|
|
56
|
+
self.volume = volume
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def volume(self) -> 'V1Volume':
|
|
60
|
+
"""Gets the volume of this V1GetVolumeResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The volume of this V1GetVolumeResponse. # noqa: E501
|
|
64
|
+
:rtype: V1Volume
|
|
65
|
+
"""
|
|
66
|
+
return self._volume
|
|
67
|
+
|
|
68
|
+
@volume.setter
|
|
69
|
+
def volume(self, volume: 'V1Volume'):
|
|
70
|
+
"""Sets the volume of this V1GetVolumeResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param volume: The volume of this V1GetVolumeResponse. # noqa: E501
|
|
74
|
+
:type: V1Volume
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._volume = volume
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1GetVolumeResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1GetVolumeResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1GetVolumeResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1GetVolumeResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -41,19 +41,24 @@ class V1KubernetesDirectV1(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
-
'kubeconfig': 'str'
|
|
44
|
+
'kubeconfig': 'str',
|
|
45
|
+
'kubeconfig_elevated': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
48
|
-
'kubeconfig': 'kubeconfig'
|
|
49
|
+
'kubeconfig': 'kubeconfig',
|
|
50
|
+
'kubeconfig_elevated': 'kubeconfigElevated'
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
def __init__(self, kubeconfig: 'str' =None): # noqa: E501
|
|
53
|
+
def __init__(self, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
|
|
52
54
|
"""V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
53
55
|
self._kubeconfig = None
|
|
56
|
+
self._kubeconfig_elevated = None
|
|
54
57
|
self.discriminator = None
|
|
55
58
|
if kubeconfig is not None:
|
|
56
59
|
self.kubeconfig = kubeconfig
|
|
60
|
+
if kubeconfig_elevated is not None:
|
|
61
|
+
self.kubeconfig_elevated = kubeconfig_elevated
|
|
57
62
|
|
|
58
63
|
@property
|
|
59
64
|
def kubeconfig(self) -> 'str':
|
|
@@ -76,6 +81,27 @@ class V1KubernetesDirectV1(object):
|
|
|
76
81
|
|
|
77
82
|
self._kubeconfig = kubeconfig
|
|
78
83
|
|
|
84
|
+
@property
|
|
85
|
+
def kubeconfig_elevated(self) -> 'str':
|
|
86
|
+
"""Gets the kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._kubeconfig_elevated
|
|
93
|
+
|
|
94
|
+
@kubeconfig_elevated.setter
|
|
95
|
+
def kubeconfig_elevated(self, kubeconfig_elevated: 'str'):
|
|
96
|
+
"""Sets the kubeconfig_elevated of this V1KubernetesDirectV1.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param kubeconfig_elevated: The kubeconfig_elevated of this V1KubernetesDirectV1. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._kubeconfig_elevated = kubeconfig_elevated
|
|
104
|
+
|
|
79
105
|
def to_dict(self) -> dict:
|
|
80
106
|
"""Returns the model properties as a dict"""
|
|
81
107
|
result = {}
|