anyscale 0.26.60__py3-none-any.whl → 0.26.62__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/_private/docgen/models.md +2 -0
- anyscale/client/README.md +20 -3
- anyscale/client/openapi_client/__init__.py +12 -3
- anyscale/client/openapi_client/api/default_api.py +999 -50
- anyscale/client/openapi_client/models/__init__.py +12 -3
- anyscale/client/openapi_client/models/api_key_info.py +280 -0
- anyscale/client/openapi_client/models/api_key_parameters.py +29 -3
- anyscale/client/openapi_client/models/apikeyinfo_list_response.py +147 -0
- anyscale/client/openapi_client/models/cluster_dashboard_node.py +361 -0
- anyscale/client/openapi_client/models/{aggregatedinstanceusagecsv_list_response.py → clusterdashboardnode_list_response.py} +15 -15
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/gpu_usage.py +236 -0
- anyscale/client/openapi_client/models/node_metrics.py +404 -0
- anyscale/client/openapi_client/models/node_metrics_response.py +123 -0
- anyscale/client/openapi_client/models/{cloud_hosting_type.py → node_status.py} +8 -7
- anyscale/client/openapi_client/models/nodemetricsresponse_response.py +121 -0
- anyscale/client/openapi_client/models/revoke_api_keys_request.py +123 -0
- anyscale/client/openapi_client/models/revoke_api_keys_response.py +202 -0
- anyscale/client/openapi_client/models/revokeapikeysresponse_response.py +121 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_template.py +17 -17
- anyscale/compute_config/_private/compute_config_sdk.py +4 -0
- anyscale/compute_config/models.py +24 -0
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +23 -114
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/METADATA +1 -1
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/RECORD +34 -25
- anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +0 -811
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/WHEEL +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/top_level.txt +0 -0
@@ -21,10 +21,8 @@ from openapi_client.models.actor_status import ActorStatus
|
|
21
21
|
from openapi_client.models.admin_create_user import AdminCreateUser
|
22
22
|
from openapi_client.models.admin_created_user import AdminCreatedUser
|
23
23
|
from openapi_client.models.admincreateduser_list_response import AdmincreateduserListResponse
|
24
|
-
from openapi_client.models.aggregated_instance_usage_csv import AggregatedInstanceUsageCSV
|
25
24
|
from openapi_client.models.aggregated_usage import AggregatedUsage
|
26
25
|
from openapi_client.models.aggregated_usage_query import AggregatedUsageQuery
|
27
|
-
from openapi_client.models.aggregatedinstanceusagecsv_list_response import AggregatedinstanceusagecsvListResponse
|
28
26
|
from openapi_client.models.aggregatedusage_response import AggregatedusageResponse
|
29
27
|
from openapi_client.models.aioa_cloud_waitlist_record import AioaCloudWaitlistRecord
|
30
28
|
from openapi_client.models.aioacloudwaitlistrecord_response import AioacloudwaitlistrecordResponse
|
@@ -35,7 +33,9 @@ from openapi_client.models.anyscaleawsaccount_response import Anyscaleawsaccount
|
|
35
33
|
from openapi_client.models.anyscaled_credential_response import AnyscaledCredentialResponse
|
36
34
|
from openapi_client.models.anyscaledcredentialresponse_response import AnyscaledcredentialresponseResponse
|
37
35
|
from openapi_client.models.anyscaleserviceaccount_response import AnyscaleserviceaccountResponse
|
36
|
+
from openapi_client.models.api_key_info import ApiKeyInfo
|
38
37
|
from openapi_client.models.api_key_parameters import ApiKeyParameters
|
38
|
+
from openapi_client.models.apikeyinfo_list_response import ApikeyinfoListResponse
|
39
39
|
from openapi_client.models.app_config import AppConfig
|
40
40
|
from openapi_client.models.app_config_config_schema import AppConfigConfigSchema
|
41
41
|
from openapi_client.models.appconfig_list_response import AppconfigListResponse
|
@@ -91,7 +91,6 @@ from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucke
|
|
91
91
|
from openapi_client.models.cloud_deployment import CloudDeployment
|
92
92
|
from openapi_client.models.cloud_deployment_compute_config import CloudDeploymentComputeConfig
|
93
93
|
from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
|
94
|
-
from openapi_client.models.cloud_hosting_type import CloudHostingType
|
95
94
|
from openapi_client.models.cloud_list_response import CloudListResponse
|
96
95
|
from openapi_client.models.cloud_name_options import CloudNameOptions
|
97
96
|
from openapi_client.models.cloud_overview_dashboard import CloudOverviewDashboard
|
@@ -123,6 +122,7 @@ from openapi_client.models.cloudresourcegcp_response import CloudresourcegcpResp
|
|
123
122
|
from openapi_client.models.cloudwithcloudresource_response import CloudwithcloudresourceResponse
|
124
123
|
from openapi_client.models.cloudwithcloudresourcegcp_response import CloudwithcloudresourcegcpResponse
|
125
124
|
from openapi_client.models.cluster_auth_response import ClusterAuthResponse
|
125
|
+
from openapi_client.models.cluster_dashboard_node import ClusterDashboardNode
|
126
126
|
from openapi_client.models.cluster_environments_query import ClusterEnvironmentsQuery
|
127
127
|
from openapi_client.models.cluster_event import ClusterEvent
|
128
128
|
from openapi_client.models.cluster_event_source import ClusterEventSource
|
@@ -134,6 +134,7 @@ from openapi_client.models.cluster_state import ClusterState
|
|
134
134
|
from openapi_client.models.cluster_status import ClusterStatus
|
135
135
|
from openapi_client.models.cluster_status_details import ClusterStatusDetails
|
136
136
|
from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
|
137
|
+
from openapi_client.models.clusterdashboardnode_list_response import ClusterdashboardnodeListResponse
|
137
138
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
138
139
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
139
140
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
@@ -307,6 +308,7 @@ from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
|
|
307
308
|
from openapi_client.models.gcp_config import GCPConfig
|
308
309
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
309
310
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
311
|
+
from openapi_client.models.gpu_usage import GPUUsage
|
310
312
|
from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
|
311
313
|
from openapi_client.models.global_workspace_template import GlobalWorkspaceTemplate
|
312
314
|
from openapi_client.models.globalworkspacetemplate_list_response import GlobalworkspacetemplateListResponse
|
@@ -414,12 +416,16 @@ from openapi_client.models.minibuild_list_response import MinibuildListResponse
|
|
414
416
|
from openapi_client.models.minicomputetemplate_list_response import MinicomputetemplateListResponse
|
415
417
|
from openapi_client.models.nfs_mount_target import NFSMountTarget
|
416
418
|
from openapi_client.models.networking_mode import NetworkingMode
|
419
|
+
from openapi_client.models.node_metrics import NodeMetrics
|
420
|
+
from openapi_client.models.node_metrics_response import NodeMetricsResponse
|
417
421
|
from openapi_client.models.node_registration_aws import NodeRegistrationAWS
|
418
422
|
from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
|
419
423
|
from openapi_client.models.node_registration_k8_s import NodeRegistrationK8S
|
420
424
|
from openapi_client.models.node_registration_provisioned import NodeRegistrationProvisioned
|
421
425
|
from openapi_client.models.node_registration_v2 import NodeRegistrationV2
|
426
|
+
from openapi_client.models.node_status import NodeStatus
|
422
427
|
from openapi_client.models.node_type import NodeType
|
428
|
+
from openapi_client.models.nodemetricsresponse_response import NodemetricsresponseResponse
|
423
429
|
from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
|
424
430
|
from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
|
425
431
|
from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
|
@@ -511,6 +517,9 @@ from openapi_client.models.resourcequota_list_response import ResourcequotaListR
|
|
511
517
|
from openapi_client.models.resourcequota_response import ResourcequotaResponse
|
512
518
|
from openapi_client.models.resources import Resources
|
513
519
|
from openapi_client.models.resourcetagslist_response import ResourcetagslistResponse
|
520
|
+
from openapi_client.models.revoke_api_keys_request import RevokeApiKeysRequest
|
521
|
+
from openapi_client.models.revoke_api_keys_response import RevokeApiKeysResponse
|
522
|
+
from openapi_client.models.revokeapikeysresponse_response import RevokeapikeysresponseResponse
|
514
523
|
from openapi_client.models.rollback_service_model import RollbackServiceModel
|
515
524
|
from openapi_client.models.rollout_strategy import RolloutStrategy
|
516
525
|
from openapi_client.models.run_attempt_status import RunAttemptStatus
|
@@ -0,0 +1,280 @@
|
|
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 ApiKeyInfo(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
|
+
'hex_hashed_id': 'str',
|
37
|
+
'display_id': 'str',
|
38
|
+
'created_at': 'datetime',
|
39
|
+
'expires_at': 'datetime',
|
40
|
+
'name': 'str',
|
41
|
+
'created_by': 'str',
|
42
|
+
'revoked_at': 'datetime'
|
43
|
+
}
|
44
|
+
|
45
|
+
attribute_map = {
|
46
|
+
'hex_hashed_id': 'hex_hashed_id',
|
47
|
+
'display_id': 'display_id',
|
48
|
+
'created_at': 'created_at',
|
49
|
+
'expires_at': 'expires_at',
|
50
|
+
'name': 'name',
|
51
|
+
'created_by': 'created_by',
|
52
|
+
'revoked_at': 'revoked_at'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, hex_hashed_id=None, display_id=None, created_at=None, expires_at=None, name=None, created_by=None, revoked_at=None, local_vars_configuration=None): # noqa: E501
|
56
|
+
"""ApiKeyInfo - a model defined in OpenAPI""" # noqa: E501
|
57
|
+
if local_vars_configuration is None:
|
58
|
+
local_vars_configuration = Configuration()
|
59
|
+
self.local_vars_configuration = local_vars_configuration
|
60
|
+
|
61
|
+
self._hex_hashed_id = None
|
62
|
+
self._display_id = None
|
63
|
+
self._created_at = None
|
64
|
+
self._expires_at = None
|
65
|
+
self._name = None
|
66
|
+
self._created_by = None
|
67
|
+
self._revoked_at = None
|
68
|
+
self.discriminator = None
|
69
|
+
|
70
|
+
self.hex_hashed_id = hex_hashed_id
|
71
|
+
self.display_id = display_id
|
72
|
+
self.created_at = created_at
|
73
|
+
self.expires_at = expires_at
|
74
|
+
if name is not None:
|
75
|
+
self.name = name
|
76
|
+
if created_by is not None:
|
77
|
+
self.created_by = created_by
|
78
|
+
if revoked_at is not None:
|
79
|
+
self.revoked_at = revoked_at
|
80
|
+
|
81
|
+
@property
|
82
|
+
def hex_hashed_id(self):
|
83
|
+
"""Gets the hex_hashed_id of this ApiKeyInfo. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The hex_hashed_id of this ApiKeyInfo. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._hex_hashed_id
|
90
|
+
|
91
|
+
@hex_hashed_id.setter
|
92
|
+
def hex_hashed_id(self, hex_hashed_id):
|
93
|
+
"""Sets the hex_hashed_id of this ApiKeyInfo.
|
94
|
+
|
95
|
+
|
96
|
+
:param hex_hashed_id: The hex_hashed_id of this ApiKeyInfo. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and hex_hashed_id is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `hex_hashed_id`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._hex_hashed_id = hex_hashed_id
|
103
|
+
|
104
|
+
@property
|
105
|
+
def display_id(self):
|
106
|
+
"""Gets the display_id of this ApiKeyInfo. # noqa: E501
|
107
|
+
|
108
|
+
|
109
|
+
:return: The display_id of this ApiKeyInfo. # noqa: E501
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._display_id
|
113
|
+
|
114
|
+
@display_id.setter
|
115
|
+
def display_id(self, display_id):
|
116
|
+
"""Sets the display_id of this ApiKeyInfo.
|
117
|
+
|
118
|
+
|
119
|
+
:param display_id: The display_id of this ApiKeyInfo. # noqa: E501
|
120
|
+
:type: str
|
121
|
+
"""
|
122
|
+
if self.local_vars_configuration.client_side_validation and display_id is None: # noqa: E501
|
123
|
+
raise ValueError("Invalid value for `display_id`, must not be `None`") # noqa: E501
|
124
|
+
|
125
|
+
self._display_id = display_id
|
126
|
+
|
127
|
+
@property
|
128
|
+
def created_at(self):
|
129
|
+
"""Gets the created_at of this ApiKeyInfo. # noqa: E501
|
130
|
+
|
131
|
+
|
132
|
+
:return: The created_at of this ApiKeyInfo. # noqa: E501
|
133
|
+
:rtype: datetime
|
134
|
+
"""
|
135
|
+
return self._created_at
|
136
|
+
|
137
|
+
@created_at.setter
|
138
|
+
def created_at(self, created_at):
|
139
|
+
"""Sets the created_at of this ApiKeyInfo.
|
140
|
+
|
141
|
+
|
142
|
+
:param created_at: The created_at of this ApiKeyInfo. # noqa: E501
|
143
|
+
:type: datetime
|
144
|
+
"""
|
145
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
146
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
147
|
+
|
148
|
+
self._created_at = created_at
|
149
|
+
|
150
|
+
@property
|
151
|
+
def expires_at(self):
|
152
|
+
"""Gets the expires_at of this ApiKeyInfo. # noqa: E501
|
153
|
+
|
154
|
+
|
155
|
+
:return: The expires_at of this ApiKeyInfo. # noqa: E501
|
156
|
+
:rtype: datetime
|
157
|
+
"""
|
158
|
+
return self._expires_at
|
159
|
+
|
160
|
+
@expires_at.setter
|
161
|
+
def expires_at(self, expires_at):
|
162
|
+
"""Sets the expires_at of this ApiKeyInfo.
|
163
|
+
|
164
|
+
|
165
|
+
:param expires_at: The expires_at of this ApiKeyInfo. # noqa: E501
|
166
|
+
:type: datetime
|
167
|
+
"""
|
168
|
+
if self.local_vars_configuration.client_side_validation and expires_at is None: # noqa: E501
|
169
|
+
raise ValueError("Invalid value for `expires_at`, must not be `None`") # noqa: E501
|
170
|
+
|
171
|
+
self._expires_at = expires_at
|
172
|
+
|
173
|
+
@property
|
174
|
+
def name(self):
|
175
|
+
"""Gets the name of this ApiKeyInfo. # noqa: E501
|
176
|
+
|
177
|
+
|
178
|
+
:return: The name of this ApiKeyInfo. # noqa: E501
|
179
|
+
:rtype: str
|
180
|
+
"""
|
181
|
+
return self._name
|
182
|
+
|
183
|
+
@name.setter
|
184
|
+
def name(self, name):
|
185
|
+
"""Sets the name of this ApiKeyInfo.
|
186
|
+
|
187
|
+
|
188
|
+
:param name: The name of this ApiKeyInfo. # noqa: E501
|
189
|
+
:type: str
|
190
|
+
"""
|
191
|
+
|
192
|
+
self._name = name
|
193
|
+
|
194
|
+
@property
|
195
|
+
def created_by(self):
|
196
|
+
"""Gets the created_by of this ApiKeyInfo. # noqa: E501
|
197
|
+
|
198
|
+
|
199
|
+
:return: The created_by of this ApiKeyInfo. # noqa: E501
|
200
|
+
:rtype: str
|
201
|
+
"""
|
202
|
+
return self._created_by
|
203
|
+
|
204
|
+
@created_by.setter
|
205
|
+
def created_by(self, created_by):
|
206
|
+
"""Sets the created_by of this ApiKeyInfo.
|
207
|
+
|
208
|
+
|
209
|
+
:param created_by: The created_by of this ApiKeyInfo. # noqa: E501
|
210
|
+
:type: str
|
211
|
+
"""
|
212
|
+
|
213
|
+
self._created_by = created_by
|
214
|
+
|
215
|
+
@property
|
216
|
+
def revoked_at(self):
|
217
|
+
"""Gets the revoked_at of this ApiKeyInfo. # noqa: E501
|
218
|
+
|
219
|
+
|
220
|
+
:return: The revoked_at of this ApiKeyInfo. # noqa: E501
|
221
|
+
:rtype: datetime
|
222
|
+
"""
|
223
|
+
return self._revoked_at
|
224
|
+
|
225
|
+
@revoked_at.setter
|
226
|
+
def revoked_at(self, revoked_at):
|
227
|
+
"""Sets the revoked_at of this ApiKeyInfo.
|
228
|
+
|
229
|
+
|
230
|
+
:param revoked_at: The revoked_at of this ApiKeyInfo. # noqa: E501
|
231
|
+
:type: datetime
|
232
|
+
"""
|
233
|
+
|
234
|
+
self._revoked_at = revoked_at
|
235
|
+
|
236
|
+
def to_dict(self):
|
237
|
+
"""Returns the model properties as a dict"""
|
238
|
+
result = {}
|
239
|
+
|
240
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
241
|
+
value = getattr(self, attr)
|
242
|
+
if isinstance(value, list):
|
243
|
+
result[attr] = list(map(
|
244
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
245
|
+
value
|
246
|
+
))
|
247
|
+
elif hasattr(value, "to_dict"):
|
248
|
+
result[attr] = value.to_dict()
|
249
|
+
elif isinstance(value, dict):
|
250
|
+
result[attr] = dict(map(
|
251
|
+
lambda item: (item[0], item[1].to_dict())
|
252
|
+
if hasattr(item[1], "to_dict") else item,
|
253
|
+
value.items()
|
254
|
+
))
|
255
|
+
else:
|
256
|
+
result[attr] = value
|
257
|
+
|
258
|
+
return result
|
259
|
+
|
260
|
+
def to_str(self):
|
261
|
+
"""Returns the string representation of the model"""
|
262
|
+
return pprint.pformat(self.to_dict())
|
263
|
+
|
264
|
+
def __repr__(self):
|
265
|
+
"""For `print` and `pprint`"""
|
266
|
+
return self.to_str()
|
267
|
+
|
268
|
+
def __eq__(self, other):
|
269
|
+
"""Returns true if both objects are equal"""
|
270
|
+
if not isinstance(other, ApiKeyInfo):
|
271
|
+
return False
|
272
|
+
|
273
|
+
return self.to_dict() == other.to_dict()
|
274
|
+
|
275
|
+
def __ne__(self, other):
|
276
|
+
"""Returns true if both objects are not equal"""
|
277
|
+
if not isinstance(other, ApiKeyInfo):
|
278
|
+
return True
|
279
|
+
|
280
|
+
return self.to_dict() != other.to_dict()
|
@@ -34,15 +34,17 @@ class ApiKeyParameters(object):
|
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
36
|
'duration': 'float',
|
37
|
-
'user_id': 'str'
|
37
|
+
'user_id': 'str',
|
38
|
+
'name': 'str'
|
38
39
|
}
|
39
40
|
|
40
41
|
attribute_map = {
|
41
42
|
'duration': 'duration',
|
42
|
-
'user_id': 'user_id'
|
43
|
+
'user_id': 'user_id',
|
44
|
+
'name': 'name'
|
43
45
|
}
|
44
46
|
|
45
|
-
def __init__(self, duration=None, user_id=None, local_vars_configuration=None): # noqa: E501
|
47
|
+
def __init__(self, duration=None, user_id=None, name=None, local_vars_configuration=None): # noqa: E501
|
46
48
|
"""ApiKeyParameters - a model defined in OpenAPI""" # noqa: E501
|
47
49
|
if local_vars_configuration is None:
|
48
50
|
local_vars_configuration = Configuration()
|
@@ -50,11 +52,14 @@ class ApiKeyParameters(object):
|
|
50
52
|
|
51
53
|
self._duration = None
|
52
54
|
self._user_id = None
|
55
|
+
self._name = None
|
53
56
|
self.discriminator = None
|
54
57
|
|
55
58
|
self.duration = duration
|
56
59
|
if user_id is not None:
|
57
60
|
self.user_id = user_id
|
61
|
+
if name is not None:
|
62
|
+
self.name = name
|
58
63
|
|
59
64
|
@property
|
60
65
|
def duration(self):
|
@@ -100,6 +105,27 @@ class ApiKeyParameters(object):
|
|
100
105
|
|
101
106
|
self._user_id = user_id
|
102
107
|
|
108
|
+
@property
|
109
|
+
def name(self):
|
110
|
+
"""Gets the name of this ApiKeyParameters. # noqa: E501
|
111
|
+
|
112
|
+
|
113
|
+
:return: The name of this ApiKeyParameters. # noqa: E501
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._name
|
117
|
+
|
118
|
+
@name.setter
|
119
|
+
def name(self, name):
|
120
|
+
"""Sets the name of this ApiKeyParameters.
|
121
|
+
|
122
|
+
|
123
|
+
:param name: The name of this ApiKeyParameters. # noqa: E501
|
124
|
+
:type: str
|
125
|
+
"""
|
126
|
+
|
127
|
+
self._name = name
|
128
|
+
|
103
129
|
def to_dict(self):
|
104
130
|
"""Returns the model properties as a dict"""
|
105
131
|
result = {}
|
@@ -0,0 +1,147 @@
|
|
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 ApikeyinfoListResponse(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
|
+
'results': 'list[ApiKeyInfo]',
|
37
|
+
'metadata': 'ListResponseMetadata'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'results': 'results',
|
42
|
+
'metadata': 'metadata'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""ApikeyinfoListResponse - a model defined in OpenAPI""" # noqa: E501
|
47
|
+
if local_vars_configuration is None:
|
48
|
+
local_vars_configuration = Configuration()
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
50
|
+
|
51
|
+
self._results = None
|
52
|
+
self._metadata = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.results = results
|
56
|
+
if metadata is not None:
|
57
|
+
self.metadata = metadata
|
58
|
+
|
59
|
+
@property
|
60
|
+
def results(self):
|
61
|
+
"""Gets the results of this ApikeyinfoListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this ApikeyinfoListResponse. # noqa: E501
|
65
|
+
:rtype: list[ApiKeyInfo]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this ApikeyinfoListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this ApikeyinfoListResponse. # noqa: E501
|
75
|
+
:type: list[ApiKeyInfo]
|
76
|
+
"""
|
77
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
+
|
80
|
+
self._results = results
|
81
|
+
|
82
|
+
@property
|
83
|
+
def metadata(self):
|
84
|
+
"""Gets the metadata of this ApikeyinfoListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this ApikeyinfoListResponse. # noqa: E501
|
88
|
+
:rtype: ListResponseMetadata
|
89
|
+
"""
|
90
|
+
return self._metadata
|
91
|
+
|
92
|
+
@metadata.setter
|
93
|
+
def metadata(self, metadata):
|
94
|
+
"""Sets the metadata of this ApikeyinfoListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this ApikeyinfoListResponse. # noqa: E501
|
98
|
+
:type: ListResponseMetadata
|
99
|
+
"""
|
100
|
+
|
101
|
+
self._metadata = metadata
|
102
|
+
|
103
|
+
def to_dict(self):
|
104
|
+
"""Returns the model properties as a dict"""
|
105
|
+
result = {}
|
106
|
+
|
107
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
+
value = getattr(self, attr)
|
109
|
+
if isinstance(value, list):
|
110
|
+
result[attr] = list(map(
|
111
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
+
value
|
113
|
+
))
|
114
|
+
elif hasattr(value, "to_dict"):
|
115
|
+
result[attr] = value.to_dict()
|
116
|
+
elif isinstance(value, dict):
|
117
|
+
result[attr] = dict(map(
|
118
|
+
lambda item: (item[0], item[1].to_dict())
|
119
|
+
if hasattr(item[1], "to_dict") else item,
|
120
|
+
value.items()
|
121
|
+
))
|
122
|
+
else:
|
123
|
+
result[attr] = value
|
124
|
+
|
125
|
+
return result
|
126
|
+
|
127
|
+
def to_str(self):
|
128
|
+
"""Returns the string representation of the model"""
|
129
|
+
return pprint.pformat(self.to_dict())
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print` and `pprint`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ApikeyinfoListResponse):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.to_dict() == other.to_dict()
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
if not isinstance(other, ApikeyinfoListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|