anyscale 0.26.61__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 +16 -3
- anyscale/client/openapi_client/__init__.py +9 -3
- anyscale/client/openapi_client/api/default_api.py +3215 -2399
- anyscale/client/openapi_client/models/__init__.py +9 -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/{aggregatedinstanceusagecsv_list_response.py → apikeyinfo_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 → nodemetricsresponse_response.py} +34 -13
- 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/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.61.dist-info → anyscale-0.26.62.dist-info}/METADATA +1 -1
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/RECORD +30 -24
- anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +0 -889
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/WHEEL +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.62.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,123 @@
|
|
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 NodeMetricsResponse(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
|
+
'metrics': 'dict(str, NodeMetrics)'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'metrics': 'metrics'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, metrics=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""NodeMetricsResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
+
if local_vars_configuration is None:
|
46
|
+
local_vars_configuration = Configuration()
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._metrics = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.metrics = metrics
|
53
|
+
|
54
|
+
@property
|
55
|
+
def metrics(self):
|
56
|
+
"""Gets the metrics of this NodeMetricsResponse. # noqa: E501
|
57
|
+
|
58
|
+
The metrics of the nodes, keyed by node ID. # noqa: E501
|
59
|
+
|
60
|
+
:return: The metrics of this NodeMetricsResponse. # noqa: E501
|
61
|
+
:rtype: dict(str, NodeMetrics)
|
62
|
+
"""
|
63
|
+
return self._metrics
|
64
|
+
|
65
|
+
@metrics.setter
|
66
|
+
def metrics(self, metrics):
|
67
|
+
"""Sets the metrics of this NodeMetricsResponse.
|
68
|
+
|
69
|
+
The metrics of the nodes, keyed by node ID. # noqa: E501
|
70
|
+
|
71
|
+
:param metrics: The metrics of this NodeMetricsResponse. # noqa: E501
|
72
|
+
:type: dict(str, NodeMetrics)
|
73
|
+
"""
|
74
|
+
if self.local_vars_configuration.client_side_validation and metrics is None: # noqa: E501
|
75
|
+
raise ValueError("Invalid value for `metrics`, must not be `None`") # noqa: E501
|
76
|
+
|
77
|
+
self._metrics = metrics
|
78
|
+
|
79
|
+
def to_dict(self):
|
80
|
+
"""Returns the model properties as a dict"""
|
81
|
+
result = {}
|
82
|
+
|
83
|
+
for attr, _ in six.iteritems(self.openapi_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
|
+
|
101
|
+
return result
|
102
|
+
|
103
|
+
def to_str(self):
|
104
|
+
"""Returns the string representation of the model"""
|
105
|
+
return pprint.pformat(self.to_dict())
|
106
|
+
|
107
|
+
def __repr__(self):
|
108
|
+
"""For `print` and `pprint`"""
|
109
|
+
return self.to_str()
|
110
|
+
|
111
|
+
def __eq__(self, other):
|
112
|
+
"""Returns true if both objects are equal"""
|
113
|
+
if not isinstance(other, NodeMetricsResponse):
|
114
|
+
return False
|
115
|
+
|
116
|
+
return self.to_dict() == other.to_dict()
|
117
|
+
|
118
|
+
def __ne__(self, other):
|
119
|
+
"""Returns true if both objects are not equal"""
|
120
|
+
if not isinstance(other, NodeMetricsResponse):
|
121
|
+
return True
|
122
|
+
|
123
|
+
return self.to_dict() != other.to_dict()
|
anyscale/client/openapi_client/models/{cloud_hosting_type.py → nodemetricsresponse_response.py}
RENAMED
@@ -18,21 +18,13 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class NodemetricsresponseResponse(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
25
25
|
Do not edit the class manually.
|
26
26
|
"""
|
27
27
|
|
28
|
-
"""
|
29
|
-
allowed enum values
|
30
|
-
"""
|
31
|
-
ANYSCALE_HOSTED = "anyscale_hosted"
|
32
|
-
CUSTOMER_HOSTED = "customer_hosted"
|
33
|
-
|
34
|
-
allowable_values = [ANYSCALE_HOSTED, CUSTOMER_HOSTED] # noqa: E501
|
35
|
-
|
36
28
|
"""
|
37
29
|
Attributes:
|
38
30
|
openapi_types (dict): The key is attribute name
|
@@ -41,18 +33,47 @@ class CloudHostingType(object):
|
|
41
33
|
and the value is json key in definition.
|
42
34
|
"""
|
43
35
|
openapi_types = {
|
36
|
+
'result': 'NodeMetricsResponse'
|
44
37
|
}
|
45
38
|
|
46
39
|
attribute_map = {
|
40
|
+
'result': 'result'
|
47
41
|
}
|
48
42
|
|
49
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""NodemetricsresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
51
45
|
if local_vars_configuration is None:
|
52
46
|
local_vars_configuration = Configuration()
|
53
47
|
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._result = None
|
54
50
|
self.discriminator = None
|
55
51
|
|
52
|
+
self.result = result
|
53
|
+
|
54
|
+
@property
|
55
|
+
def result(self):
|
56
|
+
"""Gets the result of this NodemetricsresponseResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this NodemetricsresponseResponse. # noqa: E501
|
60
|
+
:rtype: NodeMetricsResponse
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this NodemetricsresponseResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this NodemetricsresponseResponse. # noqa: E501
|
70
|
+
:type: NodeMetricsResponse
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._result = result
|
76
|
+
|
56
77
|
def to_dict(self):
|
57
78
|
"""Returns the model properties as a dict"""
|
58
79
|
result = {}
|
@@ -87,14 +108,14 @@ class CloudHostingType(object):
|
|
87
108
|
|
88
109
|
def __eq__(self, other):
|
89
110
|
"""Returns true if both objects are equal"""
|
90
|
-
if not isinstance(other,
|
111
|
+
if not isinstance(other, NodemetricsresponseResponse):
|
91
112
|
return False
|
92
113
|
|
93
114
|
return self.to_dict() == other.to_dict()
|
94
115
|
|
95
116
|
def __ne__(self, other):
|
96
117
|
"""Returns true if both objects are not equal"""
|
97
|
-
if not isinstance(other,
|
118
|
+
if not isinstance(other, NodemetricsresponseResponse):
|
98
119
|
return True
|
99
120
|
|
100
121
|
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,123 @@
|
|
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 RevokeApiKeysRequest(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
|
+
'api_key_ids': 'list[str]'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'api_key_ids': 'api_key_ids'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, api_key_ids=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""RevokeApiKeysRequest - a model defined in OpenAPI""" # noqa: E501
|
45
|
+
if local_vars_configuration is None:
|
46
|
+
local_vars_configuration = Configuration()
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._api_key_ids = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.api_key_ids = api_key_ids
|
53
|
+
|
54
|
+
@property
|
55
|
+
def api_key_ids(self):
|
56
|
+
"""Gets the api_key_ids of this RevokeApiKeysRequest. # noqa: E501
|
57
|
+
|
58
|
+
List of API key IDs to revoke # noqa: E501
|
59
|
+
|
60
|
+
:return: The api_key_ids of this RevokeApiKeysRequest. # noqa: E501
|
61
|
+
:rtype: list[str]
|
62
|
+
"""
|
63
|
+
return self._api_key_ids
|
64
|
+
|
65
|
+
@api_key_ids.setter
|
66
|
+
def api_key_ids(self, api_key_ids):
|
67
|
+
"""Sets the api_key_ids of this RevokeApiKeysRequest.
|
68
|
+
|
69
|
+
List of API key IDs to revoke # noqa: E501
|
70
|
+
|
71
|
+
:param api_key_ids: The api_key_ids of this RevokeApiKeysRequest. # noqa: E501
|
72
|
+
:type: list[str]
|
73
|
+
"""
|
74
|
+
if self.local_vars_configuration.client_side_validation and api_key_ids is None: # noqa: E501
|
75
|
+
raise ValueError("Invalid value for `api_key_ids`, must not be `None`") # noqa: E501
|
76
|
+
|
77
|
+
self._api_key_ids = api_key_ids
|
78
|
+
|
79
|
+
def to_dict(self):
|
80
|
+
"""Returns the model properties as a dict"""
|
81
|
+
result = {}
|
82
|
+
|
83
|
+
for attr, _ in six.iteritems(self.openapi_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
|
+
|
101
|
+
return result
|
102
|
+
|
103
|
+
def to_str(self):
|
104
|
+
"""Returns the string representation of the model"""
|
105
|
+
return pprint.pformat(self.to_dict())
|
106
|
+
|
107
|
+
def __repr__(self):
|
108
|
+
"""For `print` and `pprint`"""
|
109
|
+
return self.to_str()
|
110
|
+
|
111
|
+
def __eq__(self, other):
|
112
|
+
"""Returns true if both objects are equal"""
|
113
|
+
if not isinstance(other, RevokeApiKeysRequest):
|
114
|
+
return False
|
115
|
+
|
116
|
+
return self.to_dict() == other.to_dict()
|
117
|
+
|
118
|
+
def __ne__(self, other):
|
119
|
+
"""Returns true if both objects are not equal"""
|
120
|
+
if not isinstance(other, RevokeApiKeysRequest):
|
121
|
+
return True
|
122
|
+
|
123
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,202 @@
|
|
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 RevokeApiKeysResponse(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
|
+
'success_count': 'int',
|
37
|
+
'failed_count': 'int',
|
38
|
+
'failed_keys': 'list[dict(str, str)]',
|
39
|
+
'total_requested': 'int'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'success_count': 'success_count',
|
44
|
+
'failed_count': 'failed_count',
|
45
|
+
'failed_keys': 'failed_keys',
|
46
|
+
'total_requested': 'total_requested'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, success_count=None, failed_count=None, failed_keys=None, total_requested=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""RevokeApiKeysResponse - a model defined in OpenAPI""" # noqa: E501
|
51
|
+
if local_vars_configuration is None:
|
52
|
+
local_vars_configuration = Configuration()
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
54
|
+
|
55
|
+
self._success_count = None
|
56
|
+
self._failed_count = None
|
57
|
+
self._failed_keys = None
|
58
|
+
self._total_requested = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.success_count = success_count
|
62
|
+
self.failed_count = failed_count
|
63
|
+
self.failed_keys = failed_keys
|
64
|
+
self.total_requested = total_requested
|
65
|
+
|
66
|
+
@property
|
67
|
+
def success_count(self):
|
68
|
+
"""Gets the success_count of this RevokeApiKeysResponse. # noqa: E501
|
69
|
+
|
70
|
+
|
71
|
+
:return: The success_count of this RevokeApiKeysResponse. # noqa: E501
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._success_count
|
75
|
+
|
76
|
+
@success_count.setter
|
77
|
+
def success_count(self, success_count):
|
78
|
+
"""Sets the success_count of this RevokeApiKeysResponse.
|
79
|
+
|
80
|
+
|
81
|
+
:param success_count: The success_count of this RevokeApiKeysResponse. # noqa: E501
|
82
|
+
:type: int
|
83
|
+
"""
|
84
|
+
if self.local_vars_configuration.client_side_validation and success_count is None: # noqa: E501
|
85
|
+
raise ValueError("Invalid value for `success_count`, must not be `None`") # noqa: E501
|
86
|
+
|
87
|
+
self._success_count = success_count
|
88
|
+
|
89
|
+
@property
|
90
|
+
def failed_count(self):
|
91
|
+
"""Gets the failed_count of this RevokeApiKeysResponse. # noqa: E501
|
92
|
+
|
93
|
+
|
94
|
+
:return: The failed_count of this RevokeApiKeysResponse. # noqa: E501
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._failed_count
|
98
|
+
|
99
|
+
@failed_count.setter
|
100
|
+
def failed_count(self, failed_count):
|
101
|
+
"""Sets the failed_count of this RevokeApiKeysResponse.
|
102
|
+
|
103
|
+
|
104
|
+
:param failed_count: The failed_count of this RevokeApiKeysResponse. # noqa: E501
|
105
|
+
:type: int
|
106
|
+
"""
|
107
|
+
if self.local_vars_configuration.client_side_validation and failed_count is None: # noqa: E501
|
108
|
+
raise ValueError("Invalid value for `failed_count`, must not be `None`") # noqa: E501
|
109
|
+
|
110
|
+
self._failed_count = failed_count
|
111
|
+
|
112
|
+
@property
|
113
|
+
def failed_keys(self):
|
114
|
+
"""Gets the failed_keys of this RevokeApiKeysResponse. # noqa: E501
|
115
|
+
|
116
|
+
|
117
|
+
:return: The failed_keys of this RevokeApiKeysResponse. # noqa: E501
|
118
|
+
:rtype: list[dict(str, str)]
|
119
|
+
"""
|
120
|
+
return self._failed_keys
|
121
|
+
|
122
|
+
@failed_keys.setter
|
123
|
+
def failed_keys(self, failed_keys):
|
124
|
+
"""Sets the failed_keys of this RevokeApiKeysResponse.
|
125
|
+
|
126
|
+
|
127
|
+
:param failed_keys: The failed_keys of this RevokeApiKeysResponse. # noqa: E501
|
128
|
+
:type: list[dict(str, str)]
|
129
|
+
"""
|
130
|
+
if self.local_vars_configuration.client_side_validation and failed_keys is None: # noqa: E501
|
131
|
+
raise ValueError("Invalid value for `failed_keys`, must not be `None`") # noqa: E501
|
132
|
+
|
133
|
+
self._failed_keys = failed_keys
|
134
|
+
|
135
|
+
@property
|
136
|
+
def total_requested(self):
|
137
|
+
"""Gets the total_requested of this RevokeApiKeysResponse. # noqa: E501
|
138
|
+
|
139
|
+
|
140
|
+
:return: The total_requested of this RevokeApiKeysResponse. # noqa: E501
|
141
|
+
:rtype: int
|
142
|
+
"""
|
143
|
+
return self._total_requested
|
144
|
+
|
145
|
+
@total_requested.setter
|
146
|
+
def total_requested(self, total_requested):
|
147
|
+
"""Sets the total_requested of this RevokeApiKeysResponse.
|
148
|
+
|
149
|
+
|
150
|
+
:param total_requested: The total_requested of this RevokeApiKeysResponse. # noqa: E501
|
151
|
+
:type: int
|
152
|
+
"""
|
153
|
+
if self.local_vars_configuration.client_side_validation and total_requested is None: # noqa: E501
|
154
|
+
raise ValueError("Invalid value for `total_requested`, must not be `None`") # noqa: E501
|
155
|
+
|
156
|
+
self._total_requested = total_requested
|
157
|
+
|
158
|
+
def to_dict(self):
|
159
|
+
"""Returns the model properties as a dict"""
|
160
|
+
result = {}
|
161
|
+
|
162
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
163
|
+
value = getattr(self, attr)
|
164
|
+
if isinstance(value, list):
|
165
|
+
result[attr] = list(map(
|
166
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
167
|
+
value
|
168
|
+
))
|
169
|
+
elif hasattr(value, "to_dict"):
|
170
|
+
result[attr] = value.to_dict()
|
171
|
+
elif isinstance(value, dict):
|
172
|
+
result[attr] = dict(map(
|
173
|
+
lambda item: (item[0], item[1].to_dict())
|
174
|
+
if hasattr(item[1], "to_dict") else item,
|
175
|
+
value.items()
|
176
|
+
))
|
177
|
+
else:
|
178
|
+
result[attr] = value
|
179
|
+
|
180
|
+
return result
|
181
|
+
|
182
|
+
def to_str(self):
|
183
|
+
"""Returns the string representation of the model"""
|
184
|
+
return pprint.pformat(self.to_dict())
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print` and `pprint`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, RevokeApiKeysResponse):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.to_dict() == other.to_dict()
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
if not isinstance(other, RevokeApiKeysResponse):
|
200
|
+
return True
|
201
|
+
|
202
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 RevokeapikeysresponseResponse(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
|
+
'result': 'RevokeApiKeysResponse'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""RevokeapikeysresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
+
if local_vars_configuration is None:
|
46
|
+
local_vars_configuration = Configuration()
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
48
|
+
|
49
|
+
self._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.result = result
|
53
|
+
|
54
|
+
@property
|
55
|
+
def result(self):
|
56
|
+
"""Gets the result of this RevokeapikeysresponseResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this RevokeapikeysresponseResponse. # noqa: E501
|
60
|
+
:rtype: RevokeApiKeysResponse
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this RevokeapikeysresponseResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this RevokeapikeysresponseResponse. # noqa: E501
|
70
|
+
:type: RevokeApiKeysResponse
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
def to_dict(self):
|
78
|
+
"""Returns the model properties as a dict"""
|
79
|
+
result = {}
|
80
|
+
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
+
value = getattr(self, attr)
|
83
|
+
if isinstance(value, list):
|
84
|
+
result[attr] = list(map(
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
+
value
|
87
|
+
))
|
88
|
+
elif hasattr(value, "to_dict"):
|
89
|
+
result[attr] = value.to_dict()
|
90
|
+
elif isinstance(value, dict):
|
91
|
+
result[attr] = dict(map(
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
94
|
+
value.items()
|
95
|
+
))
|
96
|
+
else:
|
97
|
+
result[attr] = value
|
98
|
+
|
99
|
+
return result
|
100
|
+
|
101
|
+
def to_str(self):
|
102
|
+
"""Returns the string representation of the model"""
|
103
|
+
return pprint.pformat(self.to_dict())
|
104
|
+
|
105
|
+
def __repr__(self):
|
106
|
+
"""For `print` and `pprint`"""
|
107
|
+
return self.to_str()
|
108
|
+
|
109
|
+
def __eq__(self, other):
|
110
|
+
"""Returns true if both objects are equal"""
|
111
|
+
if not isinstance(other, RevokeapikeysresponseResponse):
|
112
|
+
return False
|
113
|
+
|
114
|
+
return self.to_dict() == other.to_dict()
|
115
|
+
|
116
|
+
def __ne__(self, other):
|
117
|
+
"""Returns true if both objects are not equal"""
|
118
|
+
if not isinstance(other, RevokeapikeysresponseResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|