anyscale 0.26.61__py3-none-any.whl → 0.26.63__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/anyscale_client/anyscale_client.py +4 -1
- anyscale/_private/docgen/__main__.py +0 -2
- anyscale/_private/docgen/models.md +2 -0
- anyscale/client/README.md +17 -3
- anyscale/client/openapi_client/__init__.py +10 -3
- anyscale/client/openapi_client/api/default_api.py +3229 -2400
- anyscale/client/openapi_client/models/__init__.py +10 -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/nodemetricsresponse_response.py +121 -0
- anyscale/client/openapi_client/models/operator_metrics.py +27 -1
- 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/{cloud_hosting_type.py → task_summary_config.py} +33 -13
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_row.py +29 -3
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/commands/cloud_commands.py +146 -61
- anyscale/commands/command_examples.py +12 -0
- anyscale/commands/service_account_commands.py +0 -21
- anyscale/compute_config/_private/compute_config_sdk.py +4 -0
- anyscale/compute_config/models.py +24 -0
- anyscale/controllers/cloud_controller.py +94 -20
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service_account/_private/service_account_sdk.py +10 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +23 -114
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/METADATA +1 -1
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/RECORD +41 -34
- anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +0 -889
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/WHEEL +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.61.dist-info → anyscale-0.26.63.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()
|
@@ -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 NodemetricsresponseResponse(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': 'NodeMetricsResponse'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""NodemetricsresponseResponse - 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 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
|
+
|
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, NodemetricsresponseResponse):
|
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, NodemetricsresponseResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -35,6 +35,7 @@ class OperatorMetrics(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'id': 'str',
|
37
37
|
'name': 'str',
|
38
|
+
'uuid': 'str',
|
38
39
|
'state': 'DatasetState',
|
39
40
|
'progress': 'int',
|
40
41
|
'total': 'int',
|
@@ -46,6 +47,7 @@ class OperatorMetrics(object):
|
|
46
47
|
attribute_map = {
|
47
48
|
'id': 'id',
|
48
49
|
'name': 'name',
|
50
|
+
'uuid': 'uuid',
|
49
51
|
'state': 'state',
|
50
52
|
'progress': 'progress',
|
51
53
|
'total': 'total',
|
@@ -54,7 +56,7 @@ class OperatorMetrics(object):
|
|
54
56
|
'metrics': 'metrics'
|
55
57
|
}
|
56
58
|
|
57
|
-
def __init__(self, id=None, name=None, state=None, progress=None, total=None, start_time=None, end_time=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
59
|
+
def __init__(self, id=None, name=None, uuid=None, state=None, progress=None, total=None, start_time=None, end_time=None, metrics=None, local_vars_configuration=None): # noqa: E501
|
58
60
|
"""OperatorMetrics - a model defined in OpenAPI""" # noqa: E501
|
59
61
|
if local_vars_configuration is None:
|
60
62
|
local_vars_configuration = Configuration()
|
@@ -62,6 +64,7 @@ class OperatorMetrics(object):
|
|
62
64
|
|
63
65
|
self._id = None
|
64
66
|
self._name = None
|
67
|
+
self._uuid = None
|
65
68
|
self._state = None
|
66
69
|
self._progress = None
|
67
70
|
self._total = None
|
@@ -72,6 +75,8 @@ class OperatorMetrics(object):
|
|
72
75
|
|
73
76
|
self.id = id
|
74
77
|
self.name = name
|
78
|
+
if uuid is not None:
|
79
|
+
self.uuid = uuid
|
75
80
|
self.state = state
|
76
81
|
self.progress = progress
|
77
82
|
if total is not None:
|
@@ -128,6 +133,27 @@ class OperatorMetrics(object):
|
|
128
133
|
|
129
134
|
self._name = name
|
130
135
|
|
136
|
+
@property
|
137
|
+
def uuid(self):
|
138
|
+
"""Gets the uuid of this OperatorMetrics. # noqa: E501
|
139
|
+
|
140
|
+
|
141
|
+
:return: The uuid of this OperatorMetrics. # noqa: E501
|
142
|
+
:rtype: str
|
143
|
+
"""
|
144
|
+
return self._uuid
|
145
|
+
|
146
|
+
@uuid.setter
|
147
|
+
def uuid(self, uuid):
|
148
|
+
"""Sets the uuid of this OperatorMetrics.
|
149
|
+
|
150
|
+
|
151
|
+
:param uuid: The uuid of this OperatorMetrics. # noqa: E501
|
152
|
+
:type: str
|
153
|
+
"""
|
154
|
+
|
155
|
+
self._uuid = uuid
|
156
|
+
|
131
157
|
@property
|
132
158
|
def state(self):
|
133
159
|
"""Gets the state of this OperatorMetrics. # noqa: E501
|
@@ -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()
|