anyscale 0.26.22__py3-none-any.whl → 0.26.24__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 +1 -1
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/_private/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +41 -184
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/client/README.md +2 -35
- anyscale/client/openapi_client/__init__.py +2 -21
- anyscale/client/openapi_client/api/default_api.py +275 -1868
- anyscale/client/openapi_client/models/__init__.py +2 -21
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
- anyscale/client/openapi_client/models/cloud_providers.py +2 -1
- anyscale/client/openapi_client/models/compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
- anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
- anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/cluster_compute.py +4 -4
- anyscale/commands/anyscale_api/sessions_commands.py +1 -70
- anyscale/commands/cloud_commands.py +5 -4
- anyscale/commands/image_commands.py +2 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/workspace_commands_v2.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +1 -3
- anyscale/controllers/cloud_controller.py +12 -6
- anyscale/controllers/cloud_functional_verification_controller.py +2 -2
- anyscale/image/commands.py +1 -1
- anyscale/sdk/anyscale_client/__init__.py +2 -15
- anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
- anyscale/sdk/anyscale_client/models/__init__.py +2 -15
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
- anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
- anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
- anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
- anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
- anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/RECORD +58 -90
- anyscale/client/openapi_client/models/bank_account_information.py +0 -239
- anyscale/client/openapi_client/models/billing_information.py +0 -181
- anyscale/client/openapi_client/models/credit_card_information.py +0 -268
- anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
- anyscale/client/openapi_client/models/invoice.py +0 -413
- anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
- anyscale/client/openapi_client/models/invoice_status.py +0 -102
- anyscale/client/openapi_client/models/invoices_query.py +0 -150
- anyscale/client/openapi_client/models/log_stream.py +0 -151
- anyscale/client/openapi_client/models/logstream_response.py +0 -121
- anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
- anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
- anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
- anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
- anyscale/client/openapi_client/models/product_type.py +0 -100
- anyscale/client/openapi_client/models/service_usage.py +0 -353
- anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
- anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
- anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
- anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
- anyscale/client/openapi_client/models/write_session.py +0 -147
- anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
- anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_build.py +0 -263
- anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
- anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
- anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
- anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/update_session.py +0 -150
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -122,7 +122,7 @@ class CloudDeployment(object):
|
|
122
122
|
def provider(self):
|
123
123
|
"""Gets the provider of this CloudDeployment. # noqa: E501
|
124
124
|
|
125
|
-
The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
|
125
|
+
The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
|
126
126
|
|
127
127
|
:return: The provider of this CloudDeployment. # noqa: E501
|
128
128
|
:rtype: CloudProviders
|
@@ -133,7 +133,7 @@ class CloudDeployment(object):
|
|
133
133
|
def provider(self, provider):
|
134
134
|
"""Sets the provider of this CloudDeployment.
|
135
135
|
|
136
|
-
The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
|
136
|
+
The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
|
137
137
|
|
138
138
|
:param provider: The provider of this CloudDeployment. # noqa: E501
|
139
139
|
:type: CloudProviders
|
@@ -0,0 +1,291 @@
|
|
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 CloudDeploymentComputeConfig(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
|
+
'cloud_deployment': 'CloudDeploymentSelector',
|
37
|
+
'allowed_azs': 'list[str]',
|
38
|
+
'head_node_type': 'ComputeNodeType',
|
39
|
+
'worker_node_types': 'list[WorkerNodeType]',
|
40
|
+
'advanced_configurations_json': 'object',
|
41
|
+
'auto_select_worker_config': 'bool',
|
42
|
+
'flags': 'object'
|
43
|
+
}
|
44
|
+
|
45
|
+
attribute_map = {
|
46
|
+
'cloud_deployment': 'cloud_deployment',
|
47
|
+
'allowed_azs': 'allowed_azs',
|
48
|
+
'head_node_type': 'head_node_type',
|
49
|
+
'worker_node_types': 'worker_node_types',
|
50
|
+
'advanced_configurations_json': 'advanced_configurations_json',
|
51
|
+
'auto_select_worker_config': 'auto_select_worker_config',
|
52
|
+
'flags': 'flags'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, cloud_deployment=None, allowed_azs=None, head_node_type=None, worker_node_types=None, advanced_configurations_json=None, auto_select_worker_config=False, flags=None, local_vars_configuration=None): # noqa: E501
|
56
|
+
"""CloudDeploymentComputeConfig - 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._cloud_deployment = None
|
62
|
+
self._allowed_azs = None
|
63
|
+
self._head_node_type = None
|
64
|
+
self._worker_node_types = None
|
65
|
+
self._advanced_configurations_json = None
|
66
|
+
self._auto_select_worker_config = None
|
67
|
+
self._flags = None
|
68
|
+
self.discriminator = None
|
69
|
+
|
70
|
+
if cloud_deployment is not None:
|
71
|
+
self.cloud_deployment = cloud_deployment
|
72
|
+
if allowed_azs is not None:
|
73
|
+
self.allowed_azs = allowed_azs
|
74
|
+
self.head_node_type = head_node_type
|
75
|
+
if worker_node_types is not None:
|
76
|
+
self.worker_node_types = worker_node_types
|
77
|
+
if advanced_configurations_json is not None:
|
78
|
+
self.advanced_configurations_json = advanced_configurations_json
|
79
|
+
if auto_select_worker_config is not None:
|
80
|
+
self.auto_select_worker_config = auto_select_worker_config
|
81
|
+
if flags is not None:
|
82
|
+
self.flags = flags
|
83
|
+
|
84
|
+
@property
|
85
|
+
def cloud_deployment(self):
|
86
|
+
"""Gets the cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
87
|
+
|
88
|
+
The cloud deployment to use for this compute config. If not specified, the default cloud deployment for the cloud will be used. # noqa: E501
|
89
|
+
|
90
|
+
:return: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
91
|
+
:rtype: CloudDeploymentSelector
|
92
|
+
"""
|
93
|
+
return self._cloud_deployment
|
94
|
+
|
95
|
+
@cloud_deployment.setter
|
96
|
+
def cloud_deployment(self, cloud_deployment):
|
97
|
+
"""Sets the cloud_deployment of this CloudDeploymentComputeConfig.
|
98
|
+
|
99
|
+
The cloud deployment to use for this compute config. If not specified, the default cloud deployment for the cloud will be used. # noqa: E501
|
100
|
+
|
101
|
+
:param cloud_deployment: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
102
|
+
:type: CloudDeploymentSelector
|
103
|
+
"""
|
104
|
+
|
105
|
+
self._cloud_deployment = cloud_deployment
|
106
|
+
|
107
|
+
@property
|
108
|
+
def allowed_azs(self):
|
109
|
+
"""Gets the allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
110
|
+
|
111
|
+
The availability zones that sessions are allowed to be launched in, e.g. \"us-west-2a\". If not specified or \"any\" is provided as the option, any AZ may be used. If \"any\" is provided, it must be the only item in the list. # noqa: E501
|
112
|
+
|
113
|
+
:return: The allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
114
|
+
:rtype: list[str]
|
115
|
+
"""
|
116
|
+
return self._allowed_azs
|
117
|
+
|
118
|
+
@allowed_azs.setter
|
119
|
+
def allowed_azs(self, allowed_azs):
|
120
|
+
"""Sets the allowed_azs of this CloudDeploymentComputeConfig.
|
121
|
+
|
122
|
+
The availability zones that sessions are allowed to be launched in, e.g. \"us-west-2a\". If not specified or \"any\" is provided as the option, any AZ may be used. If \"any\" is provided, it must be the only item in the list. # noqa: E501
|
123
|
+
|
124
|
+
:param allowed_azs: The allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
125
|
+
:type: list[str]
|
126
|
+
"""
|
127
|
+
|
128
|
+
self._allowed_azs = allowed_azs
|
129
|
+
|
130
|
+
@property
|
131
|
+
def head_node_type(self):
|
132
|
+
"""Gets the head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
133
|
+
|
134
|
+
Node configuration to use for the head node. # noqa: E501
|
135
|
+
|
136
|
+
:return: The head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
137
|
+
:rtype: ComputeNodeType
|
138
|
+
"""
|
139
|
+
return self._head_node_type
|
140
|
+
|
141
|
+
@head_node_type.setter
|
142
|
+
def head_node_type(self, head_node_type):
|
143
|
+
"""Sets the head_node_type of this CloudDeploymentComputeConfig.
|
144
|
+
|
145
|
+
Node configuration to use for the head node. # noqa: E501
|
146
|
+
|
147
|
+
:param head_node_type: The head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
148
|
+
:type: ComputeNodeType
|
149
|
+
"""
|
150
|
+
if self.local_vars_configuration.client_side_validation and head_node_type is None: # noqa: E501
|
151
|
+
raise ValueError("Invalid value for `head_node_type`, must not be `None`") # noqa: E501
|
152
|
+
|
153
|
+
self._head_node_type = head_node_type
|
154
|
+
|
155
|
+
@property
|
156
|
+
def worker_node_types(self):
|
157
|
+
"""Gets the worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
158
|
+
|
159
|
+
A list of node types to use for worker nodes. # noqa: E501
|
160
|
+
|
161
|
+
:return: The worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
162
|
+
:rtype: list[WorkerNodeType]
|
163
|
+
"""
|
164
|
+
return self._worker_node_types
|
165
|
+
|
166
|
+
@worker_node_types.setter
|
167
|
+
def worker_node_types(self, worker_node_types):
|
168
|
+
"""Sets the worker_node_types of this CloudDeploymentComputeConfig.
|
169
|
+
|
170
|
+
A list of node types to use for worker nodes. # noqa: E501
|
171
|
+
|
172
|
+
:param worker_node_types: The worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
173
|
+
:type: list[WorkerNodeType]
|
174
|
+
"""
|
175
|
+
|
176
|
+
self._worker_node_types = worker_node_types
|
177
|
+
|
178
|
+
@property
|
179
|
+
def advanced_configurations_json(self):
|
180
|
+
"""Gets the advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
181
|
+
|
182
|
+
Advanced configurations for this compute node type to pass to the cloud provider when launching this instance. # noqa: E501
|
183
|
+
|
184
|
+
:return: The advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
185
|
+
:rtype: object
|
186
|
+
"""
|
187
|
+
return self._advanced_configurations_json
|
188
|
+
|
189
|
+
@advanced_configurations_json.setter
|
190
|
+
def advanced_configurations_json(self, advanced_configurations_json):
|
191
|
+
"""Sets the advanced_configurations_json of this CloudDeploymentComputeConfig.
|
192
|
+
|
193
|
+
Advanced configurations for this compute node type to pass to the cloud provider when launching this instance. # noqa: E501
|
194
|
+
|
195
|
+
:param advanced_configurations_json: The advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
196
|
+
:type: object
|
197
|
+
"""
|
198
|
+
|
199
|
+
self._advanced_configurations_json = advanced_configurations_json
|
200
|
+
|
201
|
+
@property
|
202
|
+
def auto_select_worker_config(self):
|
203
|
+
"""Gets the auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
204
|
+
|
205
|
+
If set to true, worker node groups will automatically be selected based on workload. # noqa: E501
|
206
|
+
|
207
|
+
:return: The auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
208
|
+
:rtype: bool
|
209
|
+
"""
|
210
|
+
return self._auto_select_worker_config
|
211
|
+
|
212
|
+
@auto_select_worker_config.setter
|
213
|
+
def auto_select_worker_config(self, auto_select_worker_config):
|
214
|
+
"""Sets the auto_select_worker_config of this CloudDeploymentComputeConfig.
|
215
|
+
|
216
|
+
If set to true, worker node groups will automatically be selected based on workload. # noqa: E501
|
217
|
+
|
218
|
+
:param auto_select_worker_config: The auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
219
|
+
:type: bool
|
220
|
+
"""
|
221
|
+
|
222
|
+
self._auto_select_worker_config = auto_select_worker_config
|
223
|
+
|
224
|
+
@property
|
225
|
+
def flags(self):
|
226
|
+
"""Gets the flags of this CloudDeploymentComputeConfig. # noqa: E501
|
227
|
+
|
228
|
+
A set of advanced cluster-level flags that can be used to configure a particular workload. # noqa: E501
|
229
|
+
|
230
|
+
:return: The flags of this CloudDeploymentComputeConfig. # noqa: E501
|
231
|
+
:rtype: object
|
232
|
+
"""
|
233
|
+
return self._flags
|
234
|
+
|
235
|
+
@flags.setter
|
236
|
+
def flags(self, flags):
|
237
|
+
"""Sets the flags of this CloudDeploymentComputeConfig.
|
238
|
+
|
239
|
+
A set of advanced cluster-level flags that can be used to configure a particular workload. # noqa: E501
|
240
|
+
|
241
|
+
:param flags: The flags of this CloudDeploymentComputeConfig. # noqa: E501
|
242
|
+
:type: object
|
243
|
+
"""
|
244
|
+
|
245
|
+
self._flags = flags
|
246
|
+
|
247
|
+
def to_dict(self):
|
248
|
+
"""Returns the model properties as a dict"""
|
249
|
+
result = {}
|
250
|
+
|
251
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
252
|
+
value = getattr(self, attr)
|
253
|
+
if isinstance(value, list):
|
254
|
+
result[attr] = list(map(
|
255
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
256
|
+
value
|
257
|
+
))
|
258
|
+
elif hasattr(value, "to_dict"):
|
259
|
+
result[attr] = value.to_dict()
|
260
|
+
elif isinstance(value, dict):
|
261
|
+
result[attr] = dict(map(
|
262
|
+
lambda item: (item[0], item[1].to_dict())
|
263
|
+
if hasattr(item[1], "to_dict") else item,
|
264
|
+
value.items()
|
265
|
+
))
|
266
|
+
else:
|
267
|
+
result[attr] = value
|
268
|
+
|
269
|
+
return result
|
270
|
+
|
271
|
+
def to_str(self):
|
272
|
+
"""Returns the string representation of the model"""
|
273
|
+
return pprint.pformat(self.to_dict())
|
274
|
+
|
275
|
+
def __repr__(self):
|
276
|
+
"""For `print` and `pprint`"""
|
277
|
+
return self.to_str()
|
278
|
+
|
279
|
+
def __eq__(self, other):
|
280
|
+
"""Returns true if both objects are equal"""
|
281
|
+
if not isinstance(other, CloudDeploymentComputeConfig):
|
282
|
+
return False
|
283
|
+
|
284
|
+
return self.to_dict() == other.to_dict()
|
285
|
+
|
286
|
+
def __ne__(self, other):
|
287
|
+
"""Returns true if both objects are not equal"""
|
288
|
+
if not isinstance(other, CloudDeploymentComputeConfig):
|
289
|
+
return True
|
290
|
+
|
291
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,206 @@
|
|
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 CloudDeploymentSelector(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
|
+
'id': 'str',
|
37
|
+
'compute_stack': 'ComputeStack',
|
38
|
+
'provider': 'CloudProviders',
|
39
|
+
'region': 'str'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'id': 'id',
|
44
|
+
'compute_stack': 'compute_stack',
|
45
|
+
'provider': 'provider',
|
46
|
+
'region': 'region'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, id=None, compute_stack=None, provider=None, region=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""CloudDeploymentSelector - 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._id = None
|
56
|
+
self._compute_stack = None
|
57
|
+
self._provider = None
|
58
|
+
self._region = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if compute_stack is not None:
|
64
|
+
self.compute_stack = compute_stack
|
65
|
+
if provider is not None:
|
66
|
+
self.provider = provider
|
67
|
+
if region is not None:
|
68
|
+
self.region = region
|
69
|
+
|
70
|
+
@property
|
71
|
+
def id(self):
|
72
|
+
"""Gets the id of this CloudDeploymentSelector. # noqa: E501
|
73
|
+
|
74
|
+
Cloud deployment ID. Note that this is not the same as the cloud ID. # noqa: E501
|
75
|
+
|
76
|
+
:return: The id of this CloudDeploymentSelector. # noqa: E501
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._id
|
80
|
+
|
81
|
+
@id.setter
|
82
|
+
def id(self, id):
|
83
|
+
"""Sets the id of this CloudDeploymentSelector.
|
84
|
+
|
85
|
+
Cloud deployment ID. Note that this is not the same as the cloud ID. # noqa: E501
|
86
|
+
|
87
|
+
:param id: The id of this CloudDeploymentSelector. # noqa: E501
|
88
|
+
:type: str
|
89
|
+
"""
|
90
|
+
|
91
|
+
self._id = id
|
92
|
+
|
93
|
+
@property
|
94
|
+
def compute_stack(self):
|
95
|
+
"""Gets the compute_stack of this CloudDeploymentSelector. # noqa: E501
|
96
|
+
|
97
|
+
Cloud deployment compute stack, e.g., `VM` or `K8S`. # noqa: E501
|
98
|
+
|
99
|
+
:return: The compute_stack of this CloudDeploymentSelector. # noqa: E501
|
100
|
+
:rtype: ComputeStack
|
101
|
+
"""
|
102
|
+
return self._compute_stack
|
103
|
+
|
104
|
+
@compute_stack.setter
|
105
|
+
def compute_stack(self, compute_stack):
|
106
|
+
"""Sets the compute_stack of this CloudDeploymentSelector.
|
107
|
+
|
108
|
+
Cloud deployment compute stack, e.g., `VM` or `K8S`. # noqa: E501
|
109
|
+
|
110
|
+
:param compute_stack: The compute_stack of this CloudDeploymentSelector. # noqa: E501
|
111
|
+
:type: ComputeStack
|
112
|
+
"""
|
113
|
+
|
114
|
+
self._compute_stack = compute_stack
|
115
|
+
|
116
|
+
@property
|
117
|
+
def provider(self):
|
118
|
+
"""Gets the provider of this CloudDeploymentSelector. # noqa: E501
|
119
|
+
|
120
|
+
Cloud deployment provider name, e.g., `AWS` or `GCP`. # noqa: E501
|
121
|
+
|
122
|
+
:return: The provider of this CloudDeploymentSelector. # noqa: E501
|
123
|
+
:rtype: CloudProviders
|
124
|
+
"""
|
125
|
+
return self._provider
|
126
|
+
|
127
|
+
@provider.setter
|
128
|
+
def provider(self, provider):
|
129
|
+
"""Sets the provider of this CloudDeploymentSelector.
|
130
|
+
|
131
|
+
Cloud deployment provider name, e.g., `AWS` or `GCP`. # noqa: E501
|
132
|
+
|
133
|
+
:param provider: The provider of this CloudDeploymentSelector. # noqa: E501
|
134
|
+
:type: CloudProviders
|
135
|
+
"""
|
136
|
+
|
137
|
+
self._provider = provider
|
138
|
+
|
139
|
+
@property
|
140
|
+
def region(self):
|
141
|
+
"""Gets the region of this CloudDeploymentSelector. # noqa: E501
|
142
|
+
|
143
|
+
Cloud deployment region, e.g., `us-west-2`. # noqa: E501
|
144
|
+
|
145
|
+
:return: The region of this CloudDeploymentSelector. # noqa: E501
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._region
|
149
|
+
|
150
|
+
@region.setter
|
151
|
+
def region(self, region):
|
152
|
+
"""Sets the region of this CloudDeploymentSelector.
|
153
|
+
|
154
|
+
Cloud deployment region, e.g., `us-west-2`. # noqa: E501
|
155
|
+
|
156
|
+
:param region: The region of this CloudDeploymentSelector. # noqa: E501
|
157
|
+
:type: str
|
158
|
+
"""
|
159
|
+
|
160
|
+
self._region = region
|
161
|
+
|
162
|
+
def to_dict(self):
|
163
|
+
"""Returns the model properties as a dict"""
|
164
|
+
result = {}
|
165
|
+
|
166
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
167
|
+
value = getattr(self, attr)
|
168
|
+
if isinstance(value, list):
|
169
|
+
result[attr] = list(map(
|
170
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
171
|
+
value
|
172
|
+
))
|
173
|
+
elif hasattr(value, "to_dict"):
|
174
|
+
result[attr] = value.to_dict()
|
175
|
+
elif isinstance(value, dict):
|
176
|
+
result[attr] = dict(map(
|
177
|
+
lambda item: (item[0], item[1].to_dict())
|
178
|
+
if hasattr(item[1], "to_dict") else item,
|
179
|
+
value.items()
|
180
|
+
))
|
181
|
+
else:
|
182
|
+
result[attr] = value
|
183
|
+
|
184
|
+
return result
|
185
|
+
|
186
|
+
def to_str(self):
|
187
|
+
"""Returns the string representation of the model"""
|
188
|
+
return pprint.pformat(self.to_dict())
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print` and `pprint`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, CloudDeploymentSelector):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.to_dict() == other.to_dict()
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
if not isinstance(other, CloudDeploymentSelector):
|
204
|
+
return True
|
205
|
+
|
206
|
+
return self.to_dict() != other.to_dict()
|
@@ -33,8 +33,9 @@ class CloudProviders(object):
|
|
33
33
|
CLOUDGATEWAY = "CLOUDGATEWAY"
|
34
34
|
PCP = "PCP"
|
35
35
|
GENERIC = "GENERIC"
|
36
|
+
AZURE = "AZURE"
|
36
37
|
|
37
|
-
allowable_values = [AWS, GCP, CLOUDGATEWAY, PCP, GENERIC] # noqa: E501
|
38
|
+
allowable_values = [AWS, GCP, CLOUDGATEWAY, PCP, GENERIC, AZURE] # noqa: E501
|
38
39
|
|
39
40
|
"""
|
40
41
|
Attributes:
|