lightning-sdk 2025.7.22__py3-none-any.whl → 2025.7.31__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/cloud_account_api.py +58 -8
- lightning_sdk/api/job_api.py +74 -11
- lightning_sdk/api/llm_api.py +1 -1
- lightning_sdk/api/mmt_api.py +35 -5
- lightning_sdk/api/studio_api.py +32 -3
- lightning_sdk/api/utils.py +6 -2
- lightning_sdk/cli/create.py +3 -1
- lightning_sdk/cli/deploy/serve.py +3 -1
- lightning_sdk/cli/download.py +25 -1
- lightning_sdk/cli/entrypoint.py +3 -1
- lightning_sdk/cli/list.py +5 -1
- lightning_sdk/cli/run.py +3 -1
- lightning_sdk/cli/start.py +3 -1
- lightning_sdk/cli/switch.py +3 -1
- lightning_sdk/job/v2.py +7 -1
- lightning_sdk/job/work.py +5 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -1
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +106 -13
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +295 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +6 -1
- lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_published_managed_endpoint_models_response.py → v1_list_published_managed_endpoints_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +95 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +1 -0
- lightning_sdk/llm/llm.py +41 -7
- lightning_sdk/llm/public_assistants.json +32 -8
- lightning_sdk/machine.py +139 -43
- lightning_sdk/mmt/v2.py +6 -1
- lightning_sdk/models.py +1 -1
- lightning_sdk/studio.py +12 -5
- lightning_sdk/teamspace.py +5 -2
- lightning_sdk/utils/resolve.py +8 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/METADATA +7 -5
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/RECORD +64 -59
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.7.22.dist-info → lightning_sdk-2025.7.31.dist-info}/top_level.txt +0 -0
|
@@ -47,6 +47,7 @@ class AgentmanagedendpointsIdBody(object):
|
|
|
47
47
|
'models_metadata': 'list[V1ManagedModel]',
|
|
48
48
|
'name': 'str',
|
|
49
49
|
'org_id': 'str',
|
|
50
|
+
'provider_display_name': 'str',
|
|
50
51
|
'publish_status': 'str',
|
|
51
52
|
'user_id': 'str'
|
|
52
53
|
}
|
|
@@ -58,11 +59,12 @@ class AgentmanagedendpointsIdBody(object):
|
|
|
58
59
|
'models_metadata': 'modelsMetadata',
|
|
59
60
|
'name': 'name',
|
|
60
61
|
'org_id': 'orgId',
|
|
62
|
+
'provider_display_name': 'providerDisplayName',
|
|
61
63
|
'publish_status': 'publishStatus',
|
|
62
64
|
'user_id': 'userId'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, api_key: 'str' =None, base_url: 'str' =None, description: 'str' =None, models_metadata: 'list[V1ManagedModel]' =None, name: 'str' =None, org_id: 'str' =None, provider_display_name: 'str' =None, publish_status: 'str' =None, user_id: 'str' =None): # noqa: E501
|
|
66
68
|
"""AgentmanagedendpointsIdBody - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
self._api_key = None
|
|
68
70
|
self._base_url = None
|
|
@@ -70,6 +72,7 @@ class AgentmanagedendpointsIdBody(object):
|
|
|
70
72
|
self._models_metadata = None
|
|
71
73
|
self._name = None
|
|
72
74
|
self._org_id = None
|
|
75
|
+
self._provider_display_name = None
|
|
73
76
|
self._publish_status = None
|
|
74
77
|
self._user_id = None
|
|
75
78
|
self.discriminator = None
|
|
@@ -85,6 +88,8 @@ class AgentmanagedendpointsIdBody(object):
|
|
|
85
88
|
self.name = name
|
|
86
89
|
if org_id is not None:
|
|
87
90
|
self.org_id = org_id
|
|
91
|
+
if provider_display_name is not None:
|
|
92
|
+
self.provider_display_name = provider_display_name
|
|
88
93
|
if publish_status is not None:
|
|
89
94
|
self.publish_status = publish_status
|
|
90
95
|
if user_id is not None:
|
|
@@ -216,6 +221,27 @@ class AgentmanagedendpointsIdBody(object):
|
|
|
216
221
|
|
|
217
222
|
self._org_id = org_id
|
|
218
223
|
|
|
224
|
+
@property
|
|
225
|
+
def provider_display_name(self) -> 'str':
|
|
226
|
+
"""Gets the provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:return: The provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
|
|
230
|
+
:rtype: str
|
|
231
|
+
"""
|
|
232
|
+
return self._provider_display_name
|
|
233
|
+
|
|
234
|
+
@provider_display_name.setter
|
|
235
|
+
def provider_display_name(self, provider_display_name: 'str'):
|
|
236
|
+
"""Sets the provider_display_name of this AgentmanagedendpointsIdBody.
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:param provider_display_name: The provider_display_name of this AgentmanagedendpointsIdBody. # noqa: E501
|
|
240
|
+
:type: str
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
self._provider_display_name = provider_display_name
|
|
244
|
+
|
|
219
245
|
@property
|
|
220
246
|
def publish_status(self) -> 'str':
|
|
221
247
|
"""Gets the publish_status of this AgentmanagedendpointsIdBody. # noqa: E501
|
|
@@ -41,23 +41,28 @@ class MetricsstreamIdBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'name': 'str',
|
|
44
45
|
'persisted': 'bool',
|
|
45
46
|
'phase': 'V1PhaseType',
|
|
46
47
|
'trackers': 'dict(str, V1MetricsTracker)'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
51
|
+
'name': 'name',
|
|
50
52
|
'persisted': 'persisted',
|
|
51
53
|
'phase': 'phase',
|
|
52
54
|
'trackers': 'trackers'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
|
|
57
|
+
def __init__(self, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
|
|
56
58
|
"""MetricsstreamIdBody - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._name = None
|
|
57
60
|
self._persisted = None
|
|
58
61
|
self._phase = None
|
|
59
62
|
self._trackers = None
|
|
60
63
|
self.discriminator = None
|
|
64
|
+
if name is not None:
|
|
65
|
+
self.name = name
|
|
61
66
|
if persisted is not None:
|
|
62
67
|
self.persisted = persisted
|
|
63
68
|
if phase is not None:
|
|
@@ -65,6 +70,27 @@ class MetricsstreamIdBody(object):
|
|
|
65
70
|
if trackers is not None:
|
|
66
71
|
self.trackers = trackers
|
|
67
72
|
|
|
73
|
+
@property
|
|
74
|
+
def name(self) -> 'str':
|
|
75
|
+
"""Gets the name of this MetricsstreamIdBody. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The name of this MetricsstreamIdBody. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._name
|
|
82
|
+
|
|
83
|
+
@name.setter
|
|
84
|
+
def name(self, name: 'str'):
|
|
85
|
+
"""Sets the name of this MetricsstreamIdBody.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param name: The name of this MetricsstreamIdBody. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._name = name
|
|
93
|
+
|
|
68
94
|
@property
|
|
69
95
|
def persisted(self) -> 'bool':
|
|
70
96
|
"""Gets the persisted of this MetricsstreamIdBody. # noqa: E501
|
|
@@ -42,8 +42,10 @@ class ProjectIdSchedulesBody(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'action_type': 'V1ScheduleActionType',
|
|
45
|
+
'command': 'str',
|
|
45
46
|
'cron_expression': 'str',
|
|
46
47
|
'display_name': 'str',
|
|
48
|
+
'parallel_runs': 'bool',
|
|
47
49
|
'parent_resource_id': 'str',
|
|
48
50
|
'resource_id': 'str',
|
|
49
51
|
'resource_type': 'V1ScheduleResourceType',
|
|
@@ -52,19 +54,23 @@ class ProjectIdSchedulesBody(object):
|
|
|
52
54
|
|
|
53
55
|
attribute_map = {
|
|
54
56
|
'action_type': 'actionType',
|
|
57
|
+
'command': 'command',
|
|
55
58
|
'cron_expression': 'cronExpression',
|
|
56
59
|
'display_name': 'displayName',
|
|
60
|
+
'parallel_runs': 'parallelRuns',
|
|
57
61
|
'parent_resource_id': 'parentResourceId',
|
|
58
62
|
'resource_id': 'resourceId',
|
|
59
63
|
'resource_type': 'resourceType',
|
|
60
64
|
'timezone': 'timezone'
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
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, timezone: 'str' =None): # noqa: E501
|
|
67
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, command: 'str' =None, cron_expression: 'str' =None, display_name: 'str' =None, parallel_runs: 'bool' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, timezone: 'str' =None): # noqa: E501
|
|
64
68
|
"""ProjectIdSchedulesBody - a model defined in Swagger""" # noqa: E501
|
|
65
69
|
self._action_type = None
|
|
70
|
+
self._command = None
|
|
66
71
|
self._cron_expression = None
|
|
67
72
|
self._display_name = None
|
|
73
|
+
self._parallel_runs = None
|
|
68
74
|
self._parent_resource_id = None
|
|
69
75
|
self._resource_id = None
|
|
70
76
|
self._resource_type = None
|
|
@@ -72,10 +78,14 @@ class ProjectIdSchedulesBody(object):
|
|
|
72
78
|
self.discriminator = None
|
|
73
79
|
if action_type is not None:
|
|
74
80
|
self.action_type = action_type
|
|
81
|
+
if command is not None:
|
|
82
|
+
self.command = command
|
|
75
83
|
if cron_expression is not None:
|
|
76
84
|
self.cron_expression = cron_expression
|
|
77
85
|
if display_name is not None:
|
|
78
86
|
self.display_name = display_name
|
|
87
|
+
if parallel_runs is not None:
|
|
88
|
+
self.parallel_runs = parallel_runs
|
|
79
89
|
if parent_resource_id is not None:
|
|
80
90
|
self.parent_resource_id = parent_resource_id
|
|
81
91
|
if resource_id is not None:
|
|
@@ -106,6 +116,27 @@ class ProjectIdSchedulesBody(object):
|
|
|
106
116
|
|
|
107
117
|
self._action_type = action_type
|
|
108
118
|
|
|
119
|
+
@property
|
|
120
|
+
def command(self) -> 'str':
|
|
121
|
+
"""Gets the command of this ProjectIdSchedulesBody. # noqa: E501
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:return: The command of this ProjectIdSchedulesBody. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._command
|
|
128
|
+
|
|
129
|
+
@command.setter
|
|
130
|
+
def command(self, command: 'str'):
|
|
131
|
+
"""Sets the command of this ProjectIdSchedulesBody.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param command: The command of this ProjectIdSchedulesBody. # noqa: E501
|
|
135
|
+
:type: str
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
self._command = command
|
|
139
|
+
|
|
109
140
|
@property
|
|
110
141
|
def cron_expression(self) -> 'str':
|
|
111
142
|
"""Gets the cron_expression of this ProjectIdSchedulesBody. # noqa: E501
|
|
@@ -148,6 +179,27 @@ class ProjectIdSchedulesBody(object):
|
|
|
148
179
|
|
|
149
180
|
self._display_name = display_name
|
|
150
181
|
|
|
182
|
+
@property
|
|
183
|
+
def parallel_runs(self) -> 'bool':
|
|
184
|
+
"""Gets the parallel_runs of this ProjectIdSchedulesBody. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The parallel_runs of this ProjectIdSchedulesBody. # noqa: E501
|
|
188
|
+
:rtype: bool
|
|
189
|
+
"""
|
|
190
|
+
return self._parallel_runs
|
|
191
|
+
|
|
192
|
+
@parallel_runs.setter
|
|
193
|
+
def parallel_runs(self, parallel_runs: 'bool'):
|
|
194
|
+
"""Sets the parallel_runs of this ProjectIdSchedulesBody.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param parallel_runs: The parallel_runs of this ProjectIdSchedulesBody. # noqa: E501
|
|
198
|
+
:type: bool
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._parallel_runs = parallel_runs
|
|
202
|
+
|
|
151
203
|
@property
|
|
152
204
|
def parent_resource_id(self) -> 'str':
|
|
153
205
|
"""Gets the parent_resource_id of this ProjectIdSchedulesBody. # noqa: E501
|
|
@@ -42,11 +42,13 @@ class SchedulesIdBody(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'action_type': 'V1ScheduleActionType',
|
|
45
|
+
'command': 'str',
|
|
45
46
|
'created_at': 'datetime',
|
|
46
47
|
'cron_expression': 'str',
|
|
47
48
|
'display_name': 'str',
|
|
48
49
|
'name': 'str',
|
|
49
50
|
'next': 'datetime',
|
|
51
|
+
'parallel_runs': 'bool',
|
|
50
52
|
'parent_resource_id': 'str',
|
|
51
53
|
'resource_id': 'str',
|
|
52
54
|
'resource_type': 'V1ScheduleResourceType',
|
|
@@ -59,11 +61,13 @@ class SchedulesIdBody(object):
|
|
|
59
61
|
|
|
60
62
|
attribute_map = {
|
|
61
63
|
'action_type': 'actionType',
|
|
64
|
+
'command': 'command',
|
|
62
65
|
'created_at': 'createdAt',
|
|
63
66
|
'cron_expression': 'cronExpression',
|
|
64
67
|
'display_name': 'displayName',
|
|
65
68
|
'name': 'name',
|
|
66
69
|
'next': 'next',
|
|
70
|
+
'parallel_runs': 'parallelRuns',
|
|
67
71
|
'parent_resource_id': 'parentResourceId',
|
|
68
72
|
'resource_id': 'resourceId',
|
|
69
73
|
'resource_type': 'resourceType',
|
|
@@ -74,14 +78,16 @@ class SchedulesIdBody(object):
|
|
|
74
78
|
'user_id': 'userId'
|
|
75
79
|
}
|
|
76
80
|
|
|
77
|
-
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, timezone: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
81
|
+
def __init__(self, action_type: 'V1ScheduleActionType' =None, command: 'str' =None, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, name: 'str' =None, next: 'datetime' =None, parallel_runs: 'bool' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, timezone: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
78
82
|
"""SchedulesIdBody - a model defined in Swagger""" # noqa: E501
|
|
79
83
|
self._action_type = None
|
|
84
|
+
self._command = None
|
|
80
85
|
self._created_at = None
|
|
81
86
|
self._cron_expression = None
|
|
82
87
|
self._display_name = None
|
|
83
88
|
self._name = None
|
|
84
89
|
self._next = None
|
|
90
|
+
self._parallel_runs = None
|
|
85
91
|
self._parent_resource_id = None
|
|
86
92
|
self._resource_id = None
|
|
87
93
|
self._resource_type = None
|
|
@@ -93,6 +99,8 @@ class SchedulesIdBody(object):
|
|
|
93
99
|
self.discriminator = None
|
|
94
100
|
if action_type is not None:
|
|
95
101
|
self.action_type = action_type
|
|
102
|
+
if command is not None:
|
|
103
|
+
self.command = command
|
|
96
104
|
if created_at is not None:
|
|
97
105
|
self.created_at = created_at
|
|
98
106
|
if cron_expression is not None:
|
|
@@ -103,6 +111,8 @@ class SchedulesIdBody(object):
|
|
|
103
111
|
self.name = name
|
|
104
112
|
if next is not None:
|
|
105
113
|
self.next = next
|
|
114
|
+
if parallel_runs is not None:
|
|
115
|
+
self.parallel_runs = parallel_runs
|
|
106
116
|
if parent_resource_id is not None:
|
|
107
117
|
self.parent_resource_id = parent_resource_id
|
|
108
118
|
if resource_id is not None:
|
|
@@ -141,6 +151,27 @@ class SchedulesIdBody(object):
|
|
|
141
151
|
|
|
142
152
|
self._action_type = action_type
|
|
143
153
|
|
|
154
|
+
@property
|
|
155
|
+
def command(self) -> 'str':
|
|
156
|
+
"""Gets the command of this SchedulesIdBody. # noqa: E501
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:return: The command of this SchedulesIdBody. # noqa: E501
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
162
|
+
return self._command
|
|
163
|
+
|
|
164
|
+
@command.setter
|
|
165
|
+
def command(self, command: 'str'):
|
|
166
|
+
"""Sets the command of this SchedulesIdBody.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:param command: The command of this SchedulesIdBody. # noqa: E501
|
|
170
|
+
:type: str
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
self._command = command
|
|
174
|
+
|
|
144
175
|
@property
|
|
145
176
|
def created_at(self) -> 'datetime':
|
|
146
177
|
"""Gets the created_at of this SchedulesIdBody. # noqa: E501
|
|
@@ -246,6 +277,27 @@ class SchedulesIdBody(object):
|
|
|
246
277
|
|
|
247
278
|
self._next = next
|
|
248
279
|
|
|
280
|
+
@property
|
|
281
|
+
def parallel_runs(self) -> 'bool':
|
|
282
|
+
"""Gets the parallel_runs of this SchedulesIdBody. # noqa: E501
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
:return: The parallel_runs of this SchedulesIdBody. # noqa: E501
|
|
286
|
+
:rtype: bool
|
|
287
|
+
"""
|
|
288
|
+
return self._parallel_runs
|
|
289
|
+
|
|
290
|
+
@parallel_runs.setter
|
|
291
|
+
def parallel_runs(self, parallel_runs: 'bool'):
|
|
292
|
+
"""Sets the parallel_runs of this SchedulesIdBody.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:param parallel_runs: The parallel_runs of this SchedulesIdBody. # noqa: E501
|
|
296
|
+
:type: bool
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
self._parallel_runs = parallel_runs
|
|
300
|
+
|
|
249
301
|
@property
|
|
250
302
|
def parent_resource_id(self) -> 'str':
|
|
251
303
|
"""Gets the parent_resource_id of this SchedulesIdBody. # noqa: E501
|
|
@@ -43,20 +43,23 @@ class UserIdUpgradetriggerBody(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'feature_key': 'str',
|
|
45
45
|
'metadata': 'str',
|
|
46
|
-
'org_id': 'str'
|
|
46
|
+
'org_id': 'str',
|
|
47
|
+
'project_id': 'str'
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
attribute_map = {
|
|
50
51
|
'feature_key': 'featureKey',
|
|
51
52
|
'metadata': 'metadata',
|
|
52
|
-
'org_id': 'orgId'
|
|
53
|
+
'org_id': 'orgId',
|
|
54
|
+
'project_id': 'projectId'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, feature_key: 'str' =None, metadata: 'str' =None, org_id: 'str' =None): # noqa: E501
|
|
57
|
+
def __init__(self, feature_key: 'str' =None, metadata: 'str' =None, org_id: 'str' =None, project_id: 'str' =None): # noqa: E501
|
|
56
58
|
"""UserIdUpgradetriggerBody - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
self._feature_key = None
|
|
58
60
|
self._metadata = None
|
|
59
61
|
self._org_id = None
|
|
62
|
+
self._project_id = None
|
|
60
63
|
self.discriminator = None
|
|
61
64
|
if feature_key is not None:
|
|
62
65
|
self.feature_key = feature_key
|
|
@@ -64,6 +67,8 @@ class UserIdUpgradetriggerBody(object):
|
|
|
64
67
|
self.metadata = metadata
|
|
65
68
|
if org_id is not None:
|
|
66
69
|
self.org_id = org_id
|
|
70
|
+
if project_id is not None:
|
|
71
|
+
self.project_id = project_id
|
|
67
72
|
|
|
68
73
|
@property
|
|
69
74
|
def feature_key(self) -> 'str':
|
|
@@ -128,6 +133,27 @@ class UserIdUpgradetriggerBody(object):
|
|
|
128
133
|
|
|
129
134
|
self._org_id = org_id
|
|
130
135
|
|
|
136
|
+
@property
|
|
137
|
+
def project_id(self) -> 'str':
|
|
138
|
+
"""Gets the project_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The project_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._project_id
|
|
145
|
+
|
|
146
|
+
@project_id.setter
|
|
147
|
+
def project_id(self, project_id: 'str'):
|
|
148
|
+
"""Sets the project_id of this UserIdUpgradetriggerBody.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param project_id: The project_id of this UserIdUpgradetriggerBody. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._project_id = project_id
|
|
156
|
+
|
|
131
157
|
def to_dict(self) -> dict:
|
|
132
158
|
"""Returns the model properties as a dict"""
|
|
133
159
|
result = {}
|
|
@@ -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 UserUserIdBody(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
|
+
'default_mode': 'str',
|
|
45
|
+
'preferred_diff_viewer': 'str',
|
|
46
|
+
'preferred_experts': 'list[str]',
|
|
47
|
+
'preferred_models': 'list[str]'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute_map = {
|
|
51
|
+
'default_mode': 'defaultMode',
|
|
52
|
+
'preferred_diff_viewer': 'preferredDiffViewer',
|
|
53
|
+
'preferred_experts': 'preferredExperts',
|
|
54
|
+
'preferred_models': 'preferredModels'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, default_mode: 'str' =None, preferred_diff_viewer: 'str' =None, preferred_experts: 'list[str]' =None, preferred_models: 'list[str]' =None): # noqa: E501
|
|
58
|
+
"""UserUserIdBody - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._default_mode = None
|
|
60
|
+
self._preferred_diff_viewer = None
|
|
61
|
+
self._preferred_experts = None
|
|
62
|
+
self._preferred_models = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
if default_mode is not None:
|
|
65
|
+
self.default_mode = default_mode
|
|
66
|
+
if preferred_diff_viewer is not None:
|
|
67
|
+
self.preferred_diff_viewer = preferred_diff_viewer
|
|
68
|
+
if preferred_experts is not None:
|
|
69
|
+
self.preferred_experts = preferred_experts
|
|
70
|
+
if preferred_models is not None:
|
|
71
|
+
self.preferred_models = preferred_models
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def default_mode(self) -> 'str':
|
|
75
|
+
"""Gets the default_mode of this UserUserIdBody. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The default_mode of this UserUserIdBody. # noqa: E501
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._default_mode
|
|
82
|
+
|
|
83
|
+
@default_mode.setter
|
|
84
|
+
def default_mode(self, default_mode: 'str'):
|
|
85
|
+
"""Sets the default_mode of this UserUserIdBody.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param default_mode: The default_mode of this UserUserIdBody. # noqa: E501
|
|
89
|
+
:type: str
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._default_mode = default_mode
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def preferred_diff_viewer(self) -> 'str':
|
|
96
|
+
"""Gets the preferred_diff_viewer of this UserUserIdBody. # noqa: E501
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The preferred_diff_viewer of this UserUserIdBody. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._preferred_diff_viewer
|
|
103
|
+
|
|
104
|
+
@preferred_diff_viewer.setter
|
|
105
|
+
def preferred_diff_viewer(self, preferred_diff_viewer: 'str'):
|
|
106
|
+
"""Sets the preferred_diff_viewer of this UserUserIdBody.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param preferred_diff_viewer: The preferred_diff_viewer of this UserUserIdBody. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._preferred_diff_viewer = preferred_diff_viewer
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def preferred_experts(self) -> 'list[str]':
|
|
117
|
+
"""Gets the preferred_experts of this UserUserIdBody. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The preferred_experts of this UserUserIdBody. # noqa: E501
|
|
121
|
+
:rtype: list[str]
|
|
122
|
+
"""
|
|
123
|
+
return self._preferred_experts
|
|
124
|
+
|
|
125
|
+
@preferred_experts.setter
|
|
126
|
+
def preferred_experts(self, preferred_experts: 'list[str]'):
|
|
127
|
+
"""Sets the preferred_experts of this UserUserIdBody.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param preferred_experts: The preferred_experts of this UserUserIdBody. # noqa: E501
|
|
131
|
+
:type: list[str]
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._preferred_experts = preferred_experts
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def preferred_models(self) -> 'list[str]':
|
|
138
|
+
"""Gets the preferred_models of this UserUserIdBody. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The preferred_models of this UserUserIdBody. # noqa: E501
|
|
142
|
+
:rtype: list[str]
|
|
143
|
+
"""
|
|
144
|
+
return self._preferred_models
|
|
145
|
+
|
|
146
|
+
@preferred_models.setter
|
|
147
|
+
def preferred_models(self, preferred_models: 'list[str]'):
|
|
148
|
+
"""Sets the preferred_models of this UserUserIdBody.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param preferred_models: The preferred_models of this UserUserIdBody. # noqa: E501
|
|
152
|
+
:type: list[str]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._preferred_models = preferred_models
|
|
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(UserUserIdBody, 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: 'UserUserIdBody') -> bool:
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, UserUserIdBody):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other: 'UserUserIdBody') -> bool:
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -42,6 +42,7 @@ class V1BillingSubscription(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'amount': 'int',
|
|
45
|
+
'canceled_at': 'datetime',
|
|
45
46
|
'card_last4': 'str',
|
|
46
47
|
'card_type': 'str',
|
|
47
48
|
'features': 'list[V1BillingFeature]',
|
|
@@ -55,6 +56,7 @@ class V1BillingSubscription(object):
|
|
|
55
56
|
|
|
56
57
|
attribute_map = {
|
|
57
58
|
'amount': 'amount',
|
|
59
|
+
'canceled_at': 'canceledAt',
|
|
58
60
|
'card_last4': 'cardLast4',
|
|
59
61
|
'card_type': 'cardType',
|
|
60
62
|
'features': 'features',
|
|
@@ -66,9 +68,10 @@ class V1BillingSubscription(object):
|
|
|
66
68
|
'stripe_managed': 'stripeManaged'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, amount: 'int' =None, card_last4: 'str' =None, card_type: 'str' =None, features: 'list[V1BillingFeature]' =None, name: 'str' =None, period: 'str' =None, period_end: 'datetime' =None, seats: 'int' =None, status: 'str' =None, stripe_managed: 'bool' =None): # noqa: E501
|
|
71
|
+
def __init__(self, amount: 'int' =None, canceled_at: 'datetime' =None, card_last4: 'str' =None, card_type: 'str' =None, features: 'list[V1BillingFeature]' =None, name: 'str' =None, period: 'str' =None, period_end: 'datetime' =None, seats: 'int' =None, status: 'str' =None, stripe_managed: 'bool' =None): # noqa: E501
|
|
70
72
|
"""V1BillingSubscription - a model defined in Swagger""" # noqa: E501
|
|
71
73
|
self._amount = None
|
|
74
|
+
self._canceled_at = None
|
|
72
75
|
self._card_last4 = None
|
|
73
76
|
self._card_type = None
|
|
74
77
|
self._features = None
|
|
@@ -81,6 +84,8 @@ class V1BillingSubscription(object):
|
|
|
81
84
|
self.discriminator = None
|
|
82
85
|
if amount is not None:
|
|
83
86
|
self.amount = amount
|
|
87
|
+
if canceled_at is not None:
|
|
88
|
+
self.canceled_at = canceled_at
|
|
84
89
|
if card_last4 is not None:
|
|
85
90
|
self.card_last4 = card_last4
|
|
86
91
|
if card_type is not None:
|
|
@@ -121,6 +126,27 @@ class V1BillingSubscription(object):
|
|
|
121
126
|
|
|
122
127
|
self._amount = amount
|
|
123
128
|
|
|
129
|
+
@property
|
|
130
|
+
def canceled_at(self) -> 'datetime':
|
|
131
|
+
"""Gets the canceled_at of this V1BillingSubscription. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The canceled_at of this V1BillingSubscription. # noqa: E501
|
|
135
|
+
:rtype: datetime
|
|
136
|
+
"""
|
|
137
|
+
return self._canceled_at
|
|
138
|
+
|
|
139
|
+
@canceled_at.setter
|
|
140
|
+
def canceled_at(self, canceled_at: 'datetime'):
|
|
141
|
+
"""Sets the canceled_at of this V1BillingSubscription.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param canceled_at: The canceled_at of this V1BillingSubscription. # noqa: E501
|
|
145
|
+
:type: datetime
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
self._canceled_at = canceled_at
|
|
149
|
+
|
|
124
150
|
@property
|
|
125
151
|
def card_last4(self) -> 'str':
|
|
126
152
|
"""Gets the card_last4 of this V1BillingSubscription. # noqa: E501
|