anyscale 0.24.86__py3-none-any.whl → 0.24.87__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/client/README.md +22 -2
- anyscale/client/openapi_client/__init__.py +16 -2
- anyscale/client/openapi_client/api/default_api.py +704 -3
- anyscale/client/openapi_client/models/__init__.py +16 -2
- anyscale/client/openapi_client/models/{aggregated_instance_usage_with_cost_model.py → aggregated_instance_usage_csv.py} +100 -100
- anyscale/client/openapi_client/models/aggregated_usage.py +147 -0
- anyscale/client/openapi_client/models/aggregated_usage_query.py +264 -0
- anyscale/client/openapi_client/models/{aggregatedinstanceusagewithcostmodel_list_response.py → aggregatedinstanceusagecsv_list_response.py} +15 -15
- anyscale/client/openapi_client/models/aggregatedusage_response.py +121 -0
- anyscale/client/openapi_client/models/cloud_resource.py +29 -1
- anyscale/client/openapi_client/models/cloud_resource_gcp.py +29 -1
- anyscale/client/openapi_client/models/create_cloud_resource.py +29 -1
- anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +29 -1
- anyscale/client/openapi_client/models/paging_context.py +172 -0
- anyscale/client/openapi_client/models/usage_by_cloud.py +201 -0
- anyscale/client/openapi_client/models/usage_by_cluster.py +544 -0
- anyscale/client/openapi_client/models/usage_by_instance_type.py +174 -0
- anyscale/client/openapi_client/models/usage_by_project.py +255 -0
- anyscale/client/openapi_client/models/usage_by_user.py +201 -0
- anyscale/client/openapi_client/models/usagebycloud_list_response.py +147 -0
- anyscale/client/openapi_client/models/usagebycluster_list_response.py +147 -0
- anyscale/client/openapi_client/models/usagebyinstancetype_list_response.py +147 -0
- anyscale/client/openapi_client/models/usagebyproject_list_response.py +147 -0
- anyscale/client/openapi_client/models/usagebyuser_list_response.py +147 -0
- anyscale/commands/cloud_commands.py +8 -0
- anyscale/controllers/cloud_controller.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/METADATA +1 -1
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/RECORD +34 -20
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/LICENSE +0 -0
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/NOTICE +0 -0
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/WHEEL +0 -0
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/top_level.txt +0 -0
|
@@ -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 UsagebyclusterListResponse(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[UsageByCluster]',
|
|
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
|
+
"""UsagebyclusterListResponse - 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 UsagebyclusterListResponse. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The results of this UsagebyclusterListResponse. # noqa: E501
|
|
65
|
+
:rtype: list[UsageByCluster]
|
|
66
|
+
"""
|
|
67
|
+
return self._results
|
|
68
|
+
|
|
69
|
+
@results.setter
|
|
70
|
+
def results(self, results):
|
|
71
|
+
"""Sets the results of this UsagebyclusterListResponse.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param results: The results of this UsagebyclusterListResponse. # noqa: E501
|
|
75
|
+
:type: list[UsageByCluster]
|
|
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 UsagebyclusterListResponse. # noqa: E501
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
:return: The metadata of this UsagebyclusterListResponse. # 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 UsagebyclusterListResponse.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param metadata: The metadata of this UsagebyclusterListResponse. # 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, UsagebyclusterListResponse):
|
|
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, UsagebyclusterListResponse):
|
|
145
|
+
return True
|
|
146
|
+
|
|
147
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -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 UsagebyinstancetypeListResponse(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[UsageByInstanceType]',
|
|
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
|
+
"""UsagebyinstancetypeListResponse - 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 UsagebyinstancetypeListResponse. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The results of this UsagebyinstancetypeListResponse. # noqa: E501
|
|
65
|
+
:rtype: list[UsageByInstanceType]
|
|
66
|
+
"""
|
|
67
|
+
return self._results
|
|
68
|
+
|
|
69
|
+
@results.setter
|
|
70
|
+
def results(self, results):
|
|
71
|
+
"""Sets the results of this UsagebyinstancetypeListResponse.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param results: The results of this UsagebyinstancetypeListResponse. # noqa: E501
|
|
75
|
+
:type: list[UsageByInstanceType]
|
|
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 UsagebyinstancetypeListResponse. # noqa: E501
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
:return: The metadata of this UsagebyinstancetypeListResponse. # 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 UsagebyinstancetypeListResponse.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param metadata: The metadata of this UsagebyinstancetypeListResponse. # 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, UsagebyinstancetypeListResponse):
|
|
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, UsagebyinstancetypeListResponse):
|
|
145
|
+
return True
|
|
146
|
+
|
|
147
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -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 UsagebyprojectListResponse(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[UsageByProject]',
|
|
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
|
+
"""UsagebyprojectListResponse - 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 UsagebyprojectListResponse. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The results of this UsagebyprojectListResponse. # noqa: E501
|
|
65
|
+
:rtype: list[UsageByProject]
|
|
66
|
+
"""
|
|
67
|
+
return self._results
|
|
68
|
+
|
|
69
|
+
@results.setter
|
|
70
|
+
def results(self, results):
|
|
71
|
+
"""Sets the results of this UsagebyprojectListResponse.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param results: The results of this UsagebyprojectListResponse. # noqa: E501
|
|
75
|
+
:type: list[UsageByProject]
|
|
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 UsagebyprojectListResponse. # noqa: E501
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
:return: The metadata of this UsagebyprojectListResponse. # 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 UsagebyprojectListResponse.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param metadata: The metadata of this UsagebyprojectListResponse. # 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, UsagebyprojectListResponse):
|
|
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, UsagebyprojectListResponse):
|
|
145
|
+
return True
|
|
146
|
+
|
|
147
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -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 UsagebyuserListResponse(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[UsageByUser]',
|
|
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
|
+
"""UsagebyuserListResponse - 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 UsagebyuserListResponse. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The results of this UsagebyuserListResponse. # noqa: E501
|
|
65
|
+
:rtype: list[UsageByUser]
|
|
66
|
+
"""
|
|
67
|
+
return self._results
|
|
68
|
+
|
|
69
|
+
@results.setter
|
|
70
|
+
def results(self, results):
|
|
71
|
+
"""Sets the results of this UsagebyuserListResponse.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param results: The results of this UsagebyuserListResponse. # noqa: E501
|
|
75
|
+
:type: list[UsageByUser]
|
|
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 UsagebyuserListResponse. # noqa: E501
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
:return: The metadata of this UsagebyuserListResponse. # 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 UsagebyuserListResponse.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param metadata: The metadata of this UsagebyuserListResponse. # 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, UsagebyuserListResponse):
|
|
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, UsagebyuserListResponse):
|
|
145
|
+
return True
|
|
146
|
+
|
|
147
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -533,6 +533,12 @@ def cloud_config_update(
|
|
|
533
533
|
required=False,
|
|
534
534
|
type=str,
|
|
535
535
|
)
|
|
536
|
+
@click.option(
|
|
537
|
+
"--cloud-storage-bucket-region",
|
|
538
|
+
help="The region of the cloud storage bucket. If not provided, the region of the cloud will be used to access the cloud storage bucket.",
|
|
539
|
+
required=False,
|
|
540
|
+
type=str,
|
|
541
|
+
)
|
|
536
542
|
@click.option(
|
|
537
543
|
"--nfs-mount-target",
|
|
538
544
|
help="A comma-separated value representing a (zone, mount target) tuple, e.g. us-west-2a,1.2.3.4 (may be provided multiple times, one for each zone). If only one value is provided (e.g. 1.2.3.4), then that value will be used for all zones.",
|
|
@@ -628,6 +634,7 @@ def register_cloud( # noqa: PLR0913, PLR0912, C901
|
|
|
628
634
|
firewall_policy_names: str,
|
|
629
635
|
cloud_storage_bucket_name: str,
|
|
630
636
|
cloud_storage_bucket_endpoint: Optional[str],
|
|
637
|
+
cloud_storage_bucket_region: Optional[str],
|
|
631
638
|
nfs_mount_target: List[str],
|
|
632
639
|
nfs_mount_path: str,
|
|
633
640
|
memorystore_instance_name: str,
|
|
@@ -818,6 +825,7 @@ def register_cloud( # noqa: PLR0913, PLR0912, C901
|
|
|
818
825
|
region=region,
|
|
819
826
|
cloud_storage_bucket_name=cloud_storage_bucket_name,
|
|
820
827
|
cloud_storage_bucket_endpoint=cloud_storage_bucket_endpoint,
|
|
828
|
+
cloud_storage_bucket_region=cloud_storage_bucket_region,
|
|
821
829
|
nfs_mount_targets=list(nfs_mount_target) if nfs_mount_target else [],
|
|
822
830
|
nfs_mount_path=nfs_mount_path,
|
|
823
831
|
kubernetes_zones=kubernetes_zones.split(",") if kubernetes_zones else [],
|
|
@@ -1770,6 +1770,7 @@ class CloudController(BaseController):
|
|
|
1770
1770
|
region: Optional[str] = "default",
|
|
1771
1771
|
cloud_storage_bucket_name: Optional[str] = None,
|
|
1772
1772
|
cloud_storage_bucket_endpoint: Optional[str] = None,
|
|
1773
|
+
cloud_storage_bucket_region: Optional[str] = None,
|
|
1773
1774
|
nfs_mount_targets: Optional[List[str]] = None,
|
|
1774
1775
|
nfs_mount_path: Optional[str] = None,
|
|
1775
1776
|
kubernetes_zones: Optional[List[str]] = None,
|
|
@@ -1835,6 +1836,8 @@ class CloudController(BaseController):
|
|
|
1835
1836
|
kubernetes_zones=kubernetes_zones,
|
|
1836
1837
|
cloud_storage_bucket_name=cloud_storage_bucket_name,
|
|
1837
1838
|
cloud_storage_bucket_endpoint=cloud_storage_bucket_endpoint,
|
|
1839
|
+
cloud_storage_bucket_region=cloud_storage_bucket_region
|
|
1840
|
+
or region,
|
|
1838
1841
|
nfs_mount_targets=mount_targets,
|
|
1839
1842
|
nfs_mount_path=nfs_mount_path,
|
|
1840
1843
|
),
|
anyscale/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.24.
|
|
1
|
+
__version__ = "0.24.87"
|