anyscale 0.26.32__py3-none-any.whl → 0.26.34__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.
- anyscale/api.py +22 -0
- anyscale/aws_iam_policies.py +0 -3
- anyscale/client/README.md +20 -2
- anyscale/client/openapi_client/__init__.py +15 -1
- anyscale/client/openapi_client/api/default_api.py +625 -167
- anyscale/client/openapi_client/models/__init__.py +15 -1
- anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
- anyscale/client/openapi_client/models/cloud_deployment.py +31 -30
- anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
- anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/complexity_level.py +101 -0
- anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
- anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
- anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_type.py +100 -0
- anyscale/client/openapi_client/models/credits_v2.py +355 -0
- anyscale/client/openapi_client/models/partition_info.py +152 -0
- anyscale/client/openapi_client/models/{pcp_config.py → summarize_machine_pool_request.py} +13 -12
- anyscale/client/openapi_client/models/summarize_machine_pool_response.py +181 -0
- anyscale/client/openapi_client/models/summarizemachinepoolresponse_response.py +121 -0
- anyscale/client/openapi_client/models/workspace_template.py +115 -3
- anyscale/client/openapi_client/models/workspace_template_readme.py +88 -3
- anyscale/commands/cloud_commands.py +12 -9
- anyscale/commands/command_examples.py +23 -6
- anyscale/commands/list_util.py +100 -38
- anyscale/integrations.py +0 -20
- anyscale/scripts.py +1 -0
- anyscale/shared_anyscale_utils/headers.py +4 -0
- anyscale/telemetry.py +424 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/METADATA +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/RECORD +39 -24
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/LICENSE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/NOTICE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/WHEEL +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/top_level.txt +0 -0
@@ -63,6 +63,7 @@ from openapi_client.models.build_registration import BuildRegistration
|
|
63
63
|
from openapi_client.models.build_response import BuildResponse
|
64
64
|
from openapi_client.models.build_status import BuildStatus
|
65
65
|
from openapi_client.models.buildlogresponse_response import BuildlogresponseResponse
|
66
|
+
from openapi_client.models.cli_usage_payload import CLIUsagePayload
|
66
67
|
from openapi_client.models.change_password_params import ChangePasswordParams
|
67
68
|
from openapi_client.models.cleanup_leaked_grafana_dashboard_response import CleanupLeakedGrafanaDashboardResponse
|
68
69
|
from openapi_client.models.cleanupleakedgrafanadashboardresponse_response import CleanupleakedgrafanadashboardresponseResponse
|
@@ -138,6 +139,9 @@ from openapi_client.models.clusterauthresponse_response import Clusterauthrespon
|
|
138
139
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
139
140
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
140
141
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
142
|
+
from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
|
143
|
+
from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
|
144
|
+
from openapi_client.models.complexity_level import ComplexityLevel
|
141
145
|
from openapi_client.models.compute_node_type import ComputeNodeType
|
142
146
|
from openapi_client.models.compute_stack import ComputeStack
|
143
147
|
from openapi_client.models.compute_template import ComputeTemplate
|
@@ -189,6 +193,13 @@ from openapi_client.models.createcomputetemplateconfig_response import Createcom
|
|
189
193
|
from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
|
190
194
|
from openapi_client.models.createmachineresponse_response import CreatemachineresponseResponse
|
191
195
|
from openapi_client.models.createotpreturnapimodel_response import CreateotpreturnapimodelResponse
|
196
|
+
from openapi_client.models.credit_grant_record_v2 import CreditGrantRecordV2
|
197
|
+
from openapi_client.models.credit_ledger_item_type import CreditLedgerItemType
|
198
|
+
from openapi_client.models.credit_ledger_record_v2 import CreditLedgerRecordV2
|
199
|
+
from openapi_client.models.credit_record_commit_v2 import CreditRecordCommitV2
|
200
|
+
from openapi_client.models.credit_record_credit_v2 import CreditRecordCreditV2
|
201
|
+
from openapi_client.models.credit_type import CreditType
|
202
|
+
from openapi_client.models.credits_v2 import CreditsV2
|
192
203
|
from openapi_client.models.customer_alert_status import CustomerAlertStatus
|
193
204
|
from openapi_client.models.dataplane_services import DataplaneServices
|
194
205
|
from openapi_client.models.dataset import Dataset
|
@@ -412,8 +423,8 @@ from openapi_client.models.organizationinvitation_list_response import Organizat
|
|
412
423
|
from openapi_client.models.organizationinvitation_response import OrganizationinvitationResponse
|
413
424
|
from openapi_client.models.organizationinvitationbase_response import OrganizationinvitationbaseResponse
|
414
425
|
from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
|
415
|
-
from openapi_client.models.pcp_config import PCPConfig
|
416
426
|
from openapi_client.models.page_query import PageQuery
|
427
|
+
from openapi_client.models.partition_info import PartitionInfo
|
417
428
|
from openapi_client.models.pause_schedule import PauseSchedule
|
418
429
|
from openapi_client.models.permission_level import PermissionLevel
|
419
430
|
from openapi_client.models.production_job import ProductionJob
|
@@ -513,6 +524,9 @@ from openapi_client.models.start_session_options import StartSessionOptions
|
|
513
524
|
from openapi_client.models.stop_session_options import StopSessionOptions
|
514
525
|
from openapi_client.models.stream_publish_request import StreamPublishRequest
|
515
526
|
from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdWithAvailabilityZoneAWS
|
527
|
+
from openapi_client.models.summarize_machine_pool_request import SummarizeMachinePoolRequest
|
528
|
+
from openapi_client.models.summarize_machine_pool_response import SummarizeMachinePoolResponse
|
529
|
+
from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
|
516
530
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
517
531
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
518
532
|
from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
|
@@ -0,0 +1,440 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class CLIUsagePayload(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'trace_id': 'str',
|
37
|
+
'cmd_path': 'str',
|
38
|
+
'options': 'list[str]',
|
39
|
+
'flags_used': 'list[str]',
|
40
|
+
'duration_ms': 'float',
|
41
|
+
'exit_code': 'int',
|
42
|
+
'exception_type': 'str',
|
43
|
+
'cli_version': 'str',
|
44
|
+
'python_version': 'str',
|
45
|
+
'timestamp': 'int',
|
46
|
+
'session_id': 'str',
|
47
|
+
'event_type': 'str',
|
48
|
+
'page_number': 'int'
|
49
|
+
}
|
50
|
+
|
51
|
+
attribute_map = {
|
52
|
+
'trace_id': 'trace_id',
|
53
|
+
'cmd_path': 'cmd_path',
|
54
|
+
'options': 'options',
|
55
|
+
'flags_used': 'flags_used',
|
56
|
+
'duration_ms': 'duration_ms',
|
57
|
+
'exit_code': 'exit_code',
|
58
|
+
'exception_type': 'exception_type',
|
59
|
+
'cli_version': 'cli_version',
|
60
|
+
'python_version': 'python_version',
|
61
|
+
'timestamp': 'timestamp',
|
62
|
+
'session_id': 'session_id',
|
63
|
+
'event_type': 'event_type',
|
64
|
+
'page_number': 'page_number'
|
65
|
+
}
|
66
|
+
|
67
|
+
def __init__(self, trace_id=None, cmd_path=None, options=None, flags_used=None, duration_ms=None, exit_code=None, exception_type=None, cli_version=None, python_version=None, timestamp=None, session_id=None, event_type='command', page_number=None, local_vars_configuration=None): # noqa: E501
|
68
|
+
"""CLIUsagePayload - a model defined in OpenAPI""" # noqa: E501
|
69
|
+
if local_vars_configuration is None:
|
70
|
+
local_vars_configuration = Configuration()
|
71
|
+
self.local_vars_configuration = local_vars_configuration
|
72
|
+
|
73
|
+
self._trace_id = None
|
74
|
+
self._cmd_path = None
|
75
|
+
self._options = None
|
76
|
+
self._flags_used = None
|
77
|
+
self._duration_ms = None
|
78
|
+
self._exit_code = None
|
79
|
+
self._exception_type = None
|
80
|
+
self._cli_version = None
|
81
|
+
self._python_version = None
|
82
|
+
self._timestamp = None
|
83
|
+
self._session_id = None
|
84
|
+
self._event_type = None
|
85
|
+
self._page_number = None
|
86
|
+
self.discriminator = None
|
87
|
+
|
88
|
+
self.trace_id = trace_id
|
89
|
+
self.cmd_path = cmd_path
|
90
|
+
self.options = options
|
91
|
+
self.flags_used = flags_used
|
92
|
+
self.duration_ms = duration_ms
|
93
|
+
self.exit_code = exit_code
|
94
|
+
if exception_type is not None:
|
95
|
+
self.exception_type = exception_type
|
96
|
+
if cli_version is not None:
|
97
|
+
self.cli_version = cli_version
|
98
|
+
self.python_version = python_version
|
99
|
+
self.timestamp = timestamp
|
100
|
+
if session_id is not None:
|
101
|
+
self.session_id = session_id
|
102
|
+
if event_type is not None:
|
103
|
+
self.event_type = event_type
|
104
|
+
if page_number is not None:
|
105
|
+
self.page_number = page_number
|
106
|
+
|
107
|
+
@property
|
108
|
+
def trace_id(self):
|
109
|
+
"""Gets the trace_id of this CLIUsagePayload. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The trace_id of this CLIUsagePayload. # noqa: E501
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._trace_id
|
116
|
+
|
117
|
+
@trace_id.setter
|
118
|
+
def trace_id(self, trace_id):
|
119
|
+
"""Sets the trace_id of this CLIUsagePayload.
|
120
|
+
|
121
|
+
|
122
|
+
:param trace_id: The trace_id of this CLIUsagePayload. # noqa: E501
|
123
|
+
:type: str
|
124
|
+
"""
|
125
|
+
if self.local_vars_configuration.client_side_validation and trace_id is None: # noqa: E501
|
126
|
+
raise ValueError("Invalid value for `trace_id`, must not be `None`") # noqa: E501
|
127
|
+
|
128
|
+
self._trace_id = trace_id
|
129
|
+
|
130
|
+
@property
|
131
|
+
def cmd_path(self):
|
132
|
+
"""Gets the cmd_path of this CLIUsagePayload. # noqa: E501
|
133
|
+
|
134
|
+
|
135
|
+
:return: The cmd_path of this CLIUsagePayload. # noqa: E501
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._cmd_path
|
139
|
+
|
140
|
+
@cmd_path.setter
|
141
|
+
def cmd_path(self, cmd_path):
|
142
|
+
"""Sets the cmd_path of this CLIUsagePayload.
|
143
|
+
|
144
|
+
|
145
|
+
:param cmd_path: The cmd_path of this CLIUsagePayload. # noqa: E501
|
146
|
+
:type: str
|
147
|
+
"""
|
148
|
+
if self.local_vars_configuration.client_side_validation and cmd_path is None: # noqa: E501
|
149
|
+
raise ValueError("Invalid value for `cmd_path`, must not be `None`") # noqa: E501
|
150
|
+
|
151
|
+
self._cmd_path = cmd_path
|
152
|
+
|
153
|
+
@property
|
154
|
+
def options(self):
|
155
|
+
"""Gets the options of this CLIUsagePayload. # noqa: E501
|
156
|
+
|
157
|
+
|
158
|
+
:return: The options of this CLIUsagePayload. # noqa: E501
|
159
|
+
:rtype: list[str]
|
160
|
+
"""
|
161
|
+
return self._options
|
162
|
+
|
163
|
+
@options.setter
|
164
|
+
def options(self, options):
|
165
|
+
"""Sets the options of this CLIUsagePayload.
|
166
|
+
|
167
|
+
|
168
|
+
:param options: The options of this CLIUsagePayload. # noqa: E501
|
169
|
+
:type: list[str]
|
170
|
+
"""
|
171
|
+
if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501
|
172
|
+
raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501
|
173
|
+
|
174
|
+
self._options = options
|
175
|
+
|
176
|
+
@property
|
177
|
+
def flags_used(self):
|
178
|
+
"""Gets the flags_used of this CLIUsagePayload. # noqa: E501
|
179
|
+
|
180
|
+
|
181
|
+
:return: The flags_used of this CLIUsagePayload. # noqa: E501
|
182
|
+
:rtype: list[str]
|
183
|
+
"""
|
184
|
+
return self._flags_used
|
185
|
+
|
186
|
+
@flags_used.setter
|
187
|
+
def flags_used(self, flags_used):
|
188
|
+
"""Sets the flags_used of this CLIUsagePayload.
|
189
|
+
|
190
|
+
|
191
|
+
:param flags_used: The flags_used of this CLIUsagePayload. # noqa: E501
|
192
|
+
:type: list[str]
|
193
|
+
"""
|
194
|
+
if self.local_vars_configuration.client_side_validation and flags_used is None: # noqa: E501
|
195
|
+
raise ValueError("Invalid value for `flags_used`, must not be `None`") # noqa: E501
|
196
|
+
|
197
|
+
self._flags_used = flags_used
|
198
|
+
|
199
|
+
@property
|
200
|
+
def duration_ms(self):
|
201
|
+
"""Gets the duration_ms of this CLIUsagePayload. # noqa: E501
|
202
|
+
|
203
|
+
|
204
|
+
:return: The duration_ms of this CLIUsagePayload. # noqa: E501
|
205
|
+
:rtype: float
|
206
|
+
"""
|
207
|
+
return self._duration_ms
|
208
|
+
|
209
|
+
@duration_ms.setter
|
210
|
+
def duration_ms(self, duration_ms):
|
211
|
+
"""Sets the duration_ms of this CLIUsagePayload.
|
212
|
+
|
213
|
+
|
214
|
+
:param duration_ms: The duration_ms of this CLIUsagePayload. # noqa: E501
|
215
|
+
:type: float
|
216
|
+
"""
|
217
|
+
if self.local_vars_configuration.client_side_validation and duration_ms is None: # noqa: E501
|
218
|
+
raise ValueError("Invalid value for `duration_ms`, must not be `None`") # noqa: E501
|
219
|
+
|
220
|
+
self._duration_ms = duration_ms
|
221
|
+
|
222
|
+
@property
|
223
|
+
def exit_code(self):
|
224
|
+
"""Gets the exit_code of this CLIUsagePayload. # noqa: E501
|
225
|
+
|
226
|
+
|
227
|
+
:return: The exit_code of this CLIUsagePayload. # noqa: E501
|
228
|
+
:rtype: int
|
229
|
+
"""
|
230
|
+
return self._exit_code
|
231
|
+
|
232
|
+
@exit_code.setter
|
233
|
+
def exit_code(self, exit_code):
|
234
|
+
"""Sets the exit_code of this CLIUsagePayload.
|
235
|
+
|
236
|
+
|
237
|
+
:param exit_code: The exit_code of this CLIUsagePayload. # noqa: E501
|
238
|
+
:type: int
|
239
|
+
"""
|
240
|
+
if self.local_vars_configuration.client_side_validation and exit_code is None: # noqa: E501
|
241
|
+
raise ValueError("Invalid value for `exit_code`, must not be `None`") # noqa: E501
|
242
|
+
|
243
|
+
self._exit_code = exit_code
|
244
|
+
|
245
|
+
@property
|
246
|
+
def exception_type(self):
|
247
|
+
"""Gets the exception_type of this CLIUsagePayload. # noqa: E501
|
248
|
+
|
249
|
+
|
250
|
+
:return: The exception_type of this CLIUsagePayload. # noqa: E501
|
251
|
+
:rtype: str
|
252
|
+
"""
|
253
|
+
return self._exception_type
|
254
|
+
|
255
|
+
@exception_type.setter
|
256
|
+
def exception_type(self, exception_type):
|
257
|
+
"""Sets the exception_type of this CLIUsagePayload.
|
258
|
+
|
259
|
+
|
260
|
+
:param exception_type: The exception_type of this CLIUsagePayload. # noqa: E501
|
261
|
+
:type: str
|
262
|
+
"""
|
263
|
+
|
264
|
+
self._exception_type = exception_type
|
265
|
+
|
266
|
+
@property
|
267
|
+
def cli_version(self):
|
268
|
+
"""Gets the cli_version of this CLIUsagePayload. # noqa: E501
|
269
|
+
|
270
|
+
|
271
|
+
:return: The cli_version of this CLIUsagePayload. # noqa: E501
|
272
|
+
:rtype: str
|
273
|
+
"""
|
274
|
+
return self._cli_version
|
275
|
+
|
276
|
+
@cli_version.setter
|
277
|
+
def cli_version(self, cli_version):
|
278
|
+
"""Sets the cli_version of this CLIUsagePayload.
|
279
|
+
|
280
|
+
|
281
|
+
:param cli_version: The cli_version of this CLIUsagePayload. # noqa: E501
|
282
|
+
:type: str
|
283
|
+
"""
|
284
|
+
|
285
|
+
self._cli_version = cli_version
|
286
|
+
|
287
|
+
@property
|
288
|
+
def python_version(self):
|
289
|
+
"""Gets the python_version of this CLIUsagePayload. # noqa: E501
|
290
|
+
|
291
|
+
|
292
|
+
:return: The python_version of this CLIUsagePayload. # noqa: E501
|
293
|
+
:rtype: str
|
294
|
+
"""
|
295
|
+
return self._python_version
|
296
|
+
|
297
|
+
@python_version.setter
|
298
|
+
def python_version(self, python_version):
|
299
|
+
"""Sets the python_version of this CLIUsagePayload.
|
300
|
+
|
301
|
+
|
302
|
+
:param python_version: The python_version of this CLIUsagePayload. # noqa: E501
|
303
|
+
:type: str
|
304
|
+
"""
|
305
|
+
if self.local_vars_configuration.client_side_validation and python_version is None: # noqa: E501
|
306
|
+
raise ValueError("Invalid value for `python_version`, must not be `None`") # noqa: E501
|
307
|
+
|
308
|
+
self._python_version = python_version
|
309
|
+
|
310
|
+
@property
|
311
|
+
def timestamp(self):
|
312
|
+
"""Gets the timestamp of this CLIUsagePayload. # noqa: E501
|
313
|
+
|
314
|
+
|
315
|
+
:return: The timestamp of this CLIUsagePayload. # noqa: E501
|
316
|
+
:rtype: int
|
317
|
+
"""
|
318
|
+
return self._timestamp
|
319
|
+
|
320
|
+
@timestamp.setter
|
321
|
+
def timestamp(self, timestamp):
|
322
|
+
"""Sets the timestamp of this CLIUsagePayload.
|
323
|
+
|
324
|
+
|
325
|
+
:param timestamp: The timestamp of this CLIUsagePayload. # noqa: E501
|
326
|
+
:type: int
|
327
|
+
"""
|
328
|
+
if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
|
329
|
+
raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
|
330
|
+
|
331
|
+
self._timestamp = timestamp
|
332
|
+
|
333
|
+
@property
|
334
|
+
def session_id(self):
|
335
|
+
"""Gets the session_id of this CLIUsagePayload. # noqa: E501
|
336
|
+
|
337
|
+
|
338
|
+
:return: The session_id of this CLIUsagePayload. # noqa: E501
|
339
|
+
:rtype: str
|
340
|
+
"""
|
341
|
+
return self._session_id
|
342
|
+
|
343
|
+
@session_id.setter
|
344
|
+
def session_id(self, session_id):
|
345
|
+
"""Sets the session_id of this CLIUsagePayload.
|
346
|
+
|
347
|
+
|
348
|
+
:param session_id: The session_id of this CLIUsagePayload. # noqa: E501
|
349
|
+
:type: str
|
350
|
+
"""
|
351
|
+
|
352
|
+
self._session_id = session_id
|
353
|
+
|
354
|
+
@property
|
355
|
+
def event_type(self):
|
356
|
+
"""Gets the event_type of this CLIUsagePayload. # noqa: E501
|
357
|
+
|
358
|
+
|
359
|
+
:return: The event_type of this CLIUsagePayload. # noqa: E501
|
360
|
+
:rtype: str
|
361
|
+
"""
|
362
|
+
return self._event_type
|
363
|
+
|
364
|
+
@event_type.setter
|
365
|
+
def event_type(self, event_type):
|
366
|
+
"""Sets the event_type of this CLIUsagePayload.
|
367
|
+
|
368
|
+
|
369
|
+
:param event_type: The event_type of this CLIUsagePayload. # noqa: E501
|
370
|
+
:type: str
|
371
|
+
"""
|
372
|
+
|
373
|
+
self._event_type = event_type
|
374
|
+
|
375
|
+
@property
|
376
|
+
def page_number(self):
|
377
|
+
"""Gets the page_number of this CLIUsagePayload. # noqa: E501
|
378
|
+
|
379
|
+
|
380
|
+
:return: The page_number of this CLIUsagePayload. # noqa: E501
|
381
|
+
:rtype: int
|
382
|
+
"""
|
383
|
+
return self._page_number
|
384
|
+
|
385
|
+
@page_number.setter
|
386
|
+
def page_number(self, page_number):
|
387
|
+
"""Sets the page_number of this CLIUsagePayload.
|
388
|
+
|
389
|
+
|
390
|
+
:param page_number: The page_number of this CLIUsagePayload. # noqa: E501
|
391
|
+
:type: int
|
392
|
+
"""
|
393
|
+
|
394
|
+
self._page_number = page_number
|
395
|
+
|
396
|
+
def to_dict(self):
|
397
|
+
"""Returns the model properties as a dict"""
|
398
|
+
result = {}
|
399
|
+
|
400
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
401
|
+
value = getattr(self, attr)
|
402
|
+
if isinstance(value, list):
|
403
|
+
result[attr] = list(map(
|
404
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
405
|
+
value
|
406
|
+
))
|
407
|
+
elif hasattr(value, "to_dict"):
|
408
|
+
result[attr] = value.to_dict()
|
409
|
+
elif isinstance(value, dict):
|
410
|
+
result[attr] = dict(map(
|
411
|
+
lambda item: (item[0], item[1].to_dict())
|
412
|
+
if hasattr(item[1], "to_dict") else item,
|
413
|
+
value.items()
|
414
|
+
))
|
415
|
+
else:
|
416
|
+
result[attr] = value
|
417
|
+
|
418
|
+
return result
|
419
|
+
|
420
|
+
def to_str(self):
|
421
|
+
"""Returns the string representation of the model"""
|
422
|
+
return pprint.pformat(self.to_dict())
|
423
|
+
|
424
|
+
def __repr__(self):
|
425
|
+
"""For `print` and `pprint`"""
|
426
|
+
return self.to_str()
|
427
|
+
|
428
|
+
def __eq__(self, other):
|
429
|
+
"""Returns true if both objects are equal"""
|
430
|
+
if not isinstance(other, CLIUsagePayload):
|
431
|
+
return False
|
432
|
+
|
433
|
+
return self.to_dict() == other.to_dict()
|
434
|
+
|
435
|
+
def __ne__(self, other):
|
436
|
+
"""Returns true if both objects are not equal"""
|
437
|
+
if not isinstance(other, CLIUsagePayload):
|
438
|
+
return True
|
439
|
+
|
440
|
+
return self.to_dict() != other.to_dict()
|
@@ -34,6 +34,7 @@ class CloudDeployment(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'cloud_deployment_id': 'str',
|
37
|
+
'name': 'str',
|
37
38
|
'provider': 'CloudProviders',
|
38
39
|
'compute_stack': 'ComputeStack',
|
39
40
|
'region': 'str',
|
@@ -42,12 +43,12 @@ class CloudDeployment(object):
|
|
42
43
|
'file_storage': 'FileStorage',
|
43
44
|
'aws_config': 'AWSConfig',
|
44
45
|
'gcp_config': 'GCPConfig',
|
45
|
-
'pcp_config': 'PCPConfig',
|
46
46
|
'kubernetes_config': 'KubernetesConfig'
|
47
47
|
}
|
48
48
|
|
49
49
|
attribute_map = {
|
50
50
|
'cloud_deployment_id': 'cloud_deployment_id',
|
51
|
+
'name': 'name',
|
51
52
|
'provider': 'provider',
|
52
53
|
'compute_stack': 'compute_stack',
|
53
54
|
'region': 'region',
|
@@ -56,17 +57,17 @@ class CloudDeployment(object):
|
|
56
57
|
'file_storage': 'file_storage',
|
57
58
|
'aws_config': 'aws_config',
|
58
59
|
'gcp_config': 'gcp_config',
|
59
|
-
'pcp_config': 'pcp_config',
|
60
60
|
'kubernetes_config': 'kubernetes_config'
|
61
61
|
}
|
62
62
|
|
63
|
-
def __init__(self, cloud_deployment_id=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None,
|
63
|
+
def __init__(self, cloud_deployment_id=None, name=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
|
64
64
|
"""CloudDeployment - a model defined in OpenAPI""" # noqa: E501
|
65
65
|
if local_vars_configuration is None:
|
66
66
|
local_vars_configuration = Configuration()
|
67
67
|
self.local_vars_configuration = local_vars_configuration
|
68
68
|
|
69
69
|
self._cloud_deployment_id = None
|
70
|
+
self._name = None
|
70
71
|
self._provider = None
|
71
72
|
self._compute_stack = None
|
72
73
|
self._region = None
|
@@ -75,12 +76,13 @@ class CloudDeployment(object):
|
|
75
76
|
self._file_storage = None
|
76
77
|
self._aws_config = None
|
77
78
|
self._gcp_config = None
|
78
|
-
self._pcp_config = None
|
79
79
|
self._kubernetes_config = None
|
80
80
|
self.discriminator = None
|
81
81
|
|
82
82
|
if cloud_deployment_id is not None:
|
83
83
|
self.cloud_deployment_id = cloud_deployment_id
|
84
|
+
if name is not None:
|
85
|
+
self.name = name
|
84
86
|
self.provider = provider
|
85
87
|
if compute_stack is not None:
|
86
88
|
self.compute_stack = compute_stack
|
@@ -92,7 +94,6 @@ class CloudDeployment(object):
|
|
92
94
|
self.file_storage = file_storage
|
93
95
|
self.aws_config = aws_config
|
94
96
|
self.gcp_config = gcp_config
|
95
|
-
self.pcp_config = pcp_config
|
96
97
|
self.kubernetes_config = kubernetes_config
|
97
98
|
|
98
99
|
@property
|
@@ -118,11 +119,34 @@ class CloudDeployment(object):
|
|
118
119
|
|
119
120
|
self._cloud_deployment_id = cloud_deployment_id
|
120
121
|
|
122
|
+
@property
|
123
|
+
def name(self):
|
124
|
+
"""Gets the name of this CloudDeployment. # noqa: E501
|
125
|
+
|
126
|
+
The name of this deployment. # noqa: E501
|
127
|
+
|
128
|
+
:return: The name of this CloudDeployment. # noqa: E501
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._name
|
132
|
+
|
133
|
+
@name.setter
|
134
|
+
def name(self, name):
|
135
|
+
"""Sets the name of this CloudDeployment.
|
136
|
+
|
137
|
+
The name of this deployment. # noqa: E501
|
138
|
+
|
139
|
+
:param name: The name of this CloudDeployment. # noqa: E501
|
140
|
+
:type: str
|
141
|
+
"""
|
142
|
+
|
143
|
+
self._name = name
|
144
|
+
|
121
145
|
@property
|
122
146
|
def provider(self):
|
123
147
|
"""Gets the provider of this CloudDeployment. # noqa: E501
|
124
148
|
|
125
|
-
The cloud provider type (AWS, GCP,
|
149
|
+
The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
|
126
150
|
|
127
151
|
:return: The provider of this CloudDeployment. # noqa: E501
|
128
152
|
:rtype: CloudProviders
|
@@ -133,7 +157,7 @@ class CloudDeployment(object):
|
|
133
157
|
def provider(self, provider):
|
134
158
|
"""Sets the provider of this CloudDeployment.
|
135
159
|
|
136
|
-
The cloud provider type (AWS, GCP,
|
160
|
+
The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
|
137
161
|
|
138
162
|
:param provider: The provider of this CloudDeployment. # noqa: E501
|
139
163
|
:type: CloudProviders
|
@@ -304,29 +328,6 @@ class CloudDeployment(object):
|
|
304
328
|
|
305
329
|
self._gcp_config = gcp_config
|
306
330
|
|
307
|
-
@property
|
308
|
-
def pcp_config(self):
|
309
|
-
"""Gets the pcp_config of this CloudDeployment. # noqa: E501
|
310
|
-
|
311
|
-
Machine pool configurations. # noqa: E501
|
312
|
-
|
313
|
-
:return: The pcp_config of this CloudDeployment. # noqa: E501
|
314
|
-
:rtype: PCPConfig
|
315
|
-
"""
|
316
|
-
return self._pcp_config
|
317
|
-
|
318
|
-
@pcp_config.setter
|
319
|
-
def pcp_config(self, pcp_config):
|
320
|
-
"""Sets the pcp_config of this CloudDeployment.
|
321
|
-
|
322
|
-
Machine pool configurations. # noqa: E501
|
323
|
-
|
324
|
-
:param pcp_config: The pcp_config of this CloudDeployment. # noqa: E501
|
325
|
-
:type: PCPConfig
|
326
|
-
"""
|
327
|
-
|
328
|
-
self._pcp_config = pcp_config
|
329
|
-
|
330
331
|
@property
|
331
332
|
def kubernetes_config(self):
|
332
333
|
"""Gets the kubernetes_config of this CloudDeployment. # noqa: E501
|