anyscale 0.26.23__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.
Files changed (88) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/docgen/__main__.py +0 -8
  3. anyscale/_private/docgen/models.md +39 -182
  4. anyscale/_private/workload/workload_config.py +1 -1
  5. anyscale/client/README.md +2 -35
  6. anyscale/client/openapi_client/__init__.py +2 -21
  7. anyscale/client/openapi_client/api/default_api.py +275 -1868
  8. anyscale/client/openapi_client/models/__init__.py +2 -21
  9. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  10. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  11. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  12. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  13. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  14. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  15. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  16. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  18. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  20. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  21. anyscale/cluster_compute.py +4 -4
  22. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  23. anyscale/commands/cloud_commands.py +5 -4
  24. anyscale/commands/image_commands.py +2 -2
  25. anyscale/commands/job_commands.py +1 -1
  26. anyscale/commands/service_commands.py +1 -1
  27. anyscale/commands/workspace_commands_v2.py +1 -1
  28. anyscale/connect_utils/prepare_cluster.py +1 -3
  29. anyscale/controllers/cloud_controller.py +12 -6
  30. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  31. anyscale/image/commands.py +1 -1
  32. anyscale/sdk/anyscale_client/__init__.py +2 -15
  33. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  34. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  35. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  36. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  37. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  38. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  39. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  40. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  41. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  44. anyscale/version.py +1 -1
  45. anyscale/workspace/models.py +1 -1
  46. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
  47. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/RECORD +52 -84
  48. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  49. anyscale/client/openapi_client/models/billing_information.py +0 -181
  50. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  51. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  52. anyscale/client/openapi_client/models/invoice.py +0 -413
  53. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  54. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  55. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  56. anyscale/client/openapi_client/models/log_stream.py +0 -151
  57. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  58. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  59. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  60. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  61. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  62. anyscale/client/openapi_client/models/product_type.py +0 -100
  63. anyscale/client/openapi_client/models/service_usage.py +0 -353
  64. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  65. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  66. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  67. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  68. anyscale/client/openapi_client/models/write_session.py +0 -147
  69. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  70. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  71. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  72. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  73. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  74. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  75. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  76. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  77. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  78. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  79. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  80. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  81. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  82. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  84. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
  85. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
  86. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
  87. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
  88. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -1,147 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale 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 anyscale_client.configuration import Configuration
19
-
20
-
21
- class ComputetemplateListResponse(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[ComputeTemplate]',
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
- """ComputetemplateListResponse - 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 ComputetemplateListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this ComputetemplateListResponse. # noqa: E501
65
- :rtype: list[ComputeTemplate]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this ComputetemplateListResponse.
72
-
73
-
74
- :param results: The results of this ComputetemplateListResponse. # noqa: E501
75
- :type: list[ComputeTemplate]
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 ComputetemplateListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this ComputetemplateListResponse. # 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 ComputetemplateListResponse.
95
-
96
-
97
- :param metadata: The metadata of this ComputetemplateListResponse. # 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, ComputetemplateListResponse):
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, ComputetemplateListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()
@@ -1,263 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale 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 anyscale_client.configuration import Configuration
19
-
20
-
21
- class CreateBuild(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
- 'application_template_id': 'str',
37
- 'config_json': 'CreateAppConfigConfigurationSchema',
38
- 'containerfile': 'str',
39
- 'docker_image_name': 'str',
40
- 'registry_login_secret': 'str',
41
- 'ray_version': 'str'
42
- }
43
-
44
- attribute_map = {
45
- 'application_template_id': 'application_template_id',
46
- 'config_json': 'config_json',
47
- 'containerfile': 'containerfile',
48
- 'docker_image_name': 'docker_image_name',
49
- 'registry_login_secret': 'registry_login_secret',
50
- 'ray_version': 'ray_version'
51
- }
52
-
53
- def __init__(self, application_template_id=None, config_json=None, containerfile=None, docker_image_name=None, registry_login_secret=None, ray_version=None, local_vars_configuration=None): # noqa: E501
54
- """CreateBuild - a model defined in OpenAPI""" # noqa: E501
55
- if local_vars_configuration is None:
56
- local_vars_configuration = Configuration()
57
- self.local_vars_configuration = local_vars_configuration
58
-
59
- self._application_template_id = None
60
- self._config_json = None
61
- self._containerfile = None
62
- self._docker_image_name = None
63
- self._registry_login_secret = None
64
- self._ray_version = None
65
- self.discriminator = None
66
-
67
- self.application_template_id = application_template_id
68
- if config_json is not None:
69
- self.config_json = config_json
70
- if containerfile is not None:
71
- self.containerfile = containerfile
72
- if docker_image_name is not None:
73
- self.docker_image_name = docker_image_name
74
- if registry_login_secret is not None:
75
- self.registry_login_secret = registry_login_secret
76
- if ray_version is not None:
77
- self.ray_version = ray_version
78
-
79
- @property
80
- def application_template_id(self):
81
- """Gets the application_template_id of this CreateBuild. # noqa: E501
82
-
83
- ID of the App Config this Build belongs to. # noqa: E501
84
-
85
- :return: The application_template_id of this CreateBuild. # noqa: E501
86
- :rtype: str
87
- """
88
- return self._application_template_id
89
-
90
- @application_template_id.setter
91
- def application_template_id(self, application_template_id):
92
- """Sets the application_template_id of this CreateBuild.
93
-
94
- ID of the App Config this Build belongs to. # noqa: E501
95
-
96
- :param application_template_id: The application_template_id of this CreateBuild. # noqa: E501
97
- :type: str
98
- """
99
- if self.local_vars_configuration.client_side_validation and application_template_id is None: # noqa: E501
100
- raise ValueError("Invalid value for `application_template_id`, must not be `None`") # noqa: E501
101
-
102
- self._application_template_id = application_template_id
103
-
104
- @property
105
- def config_json(self):
106
- """Gets the config_json of this CreateBuild. # noqa: E501
107
-
108
- Config JSON to use to create a new Build. # noqa: E501
109
-
110
- :return: The config_json of this CreateBuild. # noqa: E501
111
- :rtype: CreateAppConfigConfigurationSchema
112
- """
113
- return self._config_json
114
-
115
- @config_json.setter
116
- def config_json(self, config_json):
117
- """Sets the config_json of this CreateBuild.
118
-
119
- Config JSON to use to create a new Build. # noqa: E501
120
-
121
- :param config_json: The config_json of this CreateBuild. # noqa: E501
122
- :type: CreateAppConfigConfigurationSchema
123
- """
124
-
125
- self._config_json = config_json
126
-
127
- @property
128
- def containerfile(self):
129
- """Gets the containerfile of this CreateBuild. # noqa: E501
130
-
131
- The containerfile used to build the image. # noqa: E501
132
-
133
- :return: The containerfile of this CreateBuild. # noqa: E501
134
- :rtype: str
135
- """
136
- return self._containerfile
137
-
138
- @containerfile.setter
139
- def containerfile(self, containerfile):
140
- """Sets the containerfile of this CreateBuild.
141
-
142
- The containerfile used to build the image. # noqa: E501
143
-
144
- :param containerfile: The containerfile of this CreateBuild. # noqa: E501
145
- :type: str
146
- """
147
-
148
- self._containerfile = containerfile
149
-
150
- @property
151
- def docker_image_name(self):
152
- """Gets the docker_image_name of this CreateBuild. # noqa: E501
153
-
154
- The name of the docker image for this build. # noqa: E501
155
-
156
- :return: The docker_image_name of this CreateBuild. # noqa: E501
157
- :rtype: str
158
- """
159
- return self._docker_image_name
160
-
161
- @docker_image_name.setter
162
- def docker_image_name(self, docker_image_name):
163
- """Sets the docker_image_name of this CreateBuild.
164
-
165
- The name of the docker image for this build. # noqa: E501
166
-
167
- :param docker_image_name: The docker_image_name of this CreateBuild. # noqa: E501
168
- :type: str
169
- """
170
-
171
- self._docker_image_name = docker_image_name
172
-
173
- @property
174
- def registry_login_secret(self):
175
- """Gets the registry_login_secret of this CreateBuild. # noqa: E501
176
-
177
- The name or identifier of a secret containing credentials to authenticate to the docker registry hosting the image. # noqa: E501
178
-
179
- :return: The registry_login_secret of this CreateBuild. # noqa: E501
180
- :rtype: str
181
- """
182
- return self._registry_login_secret
183
-
184
- @registry_login_secret.setter
185
- def registry_login_secret(self, registry_login_secret):
186
- """Sets the registry_login_secret of this CreateBuild.
187
-
188
- The name or identifier of a secret containing credentials to authenticate to the docker registry hosting the image. # noqa: E501
189
-
190
- :param registry_login_secret: The registry_login_secret of this CreateBuild. # noqa: E501
191
- :type: str
192
- """
193
-
194
- self._registry_login_secret = registry_login_secret
195
-
196
- @property
197
- def ray_version(self):
198
- """Gets the ray_version of this CreateBuild. # noqa: E501
199
-
200
- The Ray version to use for this build. # noqa: E501
201
-
202
- :return: The ray_version of this CreateBuild. # noqa: E501
203
- :rtype: str
204
- """
205
- return self._ray_version
206
-
207
- @ray_version.setter
208
- def ray_version(self, ray_version):
209
- """Sets the ray_version of this CreateBuild.
210
-
211
- The Ray version to use for this build. # noqa: E501
212
-
213
- :param ray_version: The ray_version of this CreateBuild. # noqa: E501
214
- :type: str
215
- """
216
-
217
- self._ray_version = ray_version
218
-
219
- def to_dict(self):
220
- """Returns the model properties as a dict"""
221
- result = {}
222
-
223
- for attr, _ in six.iteritems(self.openapi_types):
224
- value = getattr(self, attr)
225
- if isinstance(value, list):
226
- result[attr] = list(map(
227
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
228
- value
229
- ))
230
- elif hasattr(value, "to_dict"):
231
- result[attr] = value.to_dict()
232
- elif isinstance(value, dict):
233
- result[attr] = dict(map(
234
- lambda item: (item[0], item[1].to_dict())
235
- if hasattr(item[1], "to_dict") else item,
236
- value.items()
237
- ))
238
- else:
239
- result[attr] = value
240
-
241
- return result
242
-
243
- def to_str(self):
244
- """Returns the string representation of the model"""
245
- return pprint.pformat(self.to_dict())
246
-
247
- def __repr__(self):
248
- """For `print` and `pprint`"""
249
- return self.to_str()
250
-
251
- def __eq__(self, other):
252
- """Returns true if both objects are equal"""
253
- if not isinstance(other, CreateBuild):
254
- return False
255
-
256
- return self.to_dict() == other.to_dict()
257
-
258
- def __ne__(self, other):
259
- """Returns true if both objects are not equal"""
260
- if not isinstance(other, CreateBuild):
261
- return True
262
-
263
- return self.to_dict() != other.to_dict()
@@ -1,229 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale 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 anyscale_client.configuration import Configuration
19
-
20
-
21
- class CreateComputeTemplate(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
- 'name': 'str',
37
- 'project_id': 'str',
38
- 'config': 'CreateComputeTemplateConfig',
39
- 'anonymous': 'bool',
40
- 'new_version': 'bool'
41
- }
42
-
43
- attribute_map = {
44
- 'name': 'name',
45
- 'project_id': 'project_id',
46
- 'config': 'config',
47
- 'anonymous': 'anonymous',
48
- 'new_version': 'new_version'
49
- }
50
-
51
- def __init__(self, name=None, project_id=None, config=None, anonymous=False, new_version=False, local_vars_configuration=None): # noqa: E501
52
- """CreateComputeTemplate - a model defined in OpenAPI""" # noqa: E501
53
- if local_vars_configuration is None:
54
- local_vars_configuration = Configuration()
55
- self.local_vars_configuration = local_vars_configuration
56
-
57
- self._name = None
58
- self._project_id = None
59
- self._config = None
60
- self._anonymous = None
61
- self._new_version = None
62
- self.discriminator = None
63
-
64
- if name is not None:
65
- self.name = name
66
- if project_id is not None:
67
- self.project_id = project_id
68
- self.config = config
69
- if anonymous is not None:
70
- self.anonymous = anonymous
71
- if new_version is not None:
72
- self.new_version = new_version
73
-
74
- @property
75
- def name(self):
76
- """Gets the name of this CreateComputeTemplate. # noqa: E501
77
-
78
-
79
- :return: The name of this CreateComputeTemplate. # noqa: E501
80
- :rtype: str
81
- """
82
- return self._name
83
-
84
- @name.setter
85
- def name(self, name):
86
- """Sets the name of this CreateComputeTemplate.
87
-
88
-
89
- :param name: The name of this CreateComputeTemplate. # noqa: E501
90
- :type: str
91
- """
92
-
93
- self._name = name
94
-
95
- @property
96
- def project_id(self):
97
- """Gets the project_id of this CreateComputeTemplate. # noqa: E501
98
-
99
-
100
- :return: The project_id of this CreateComputeTemplate. # noqa: E501
101
- :rtype: str
102
- """
103
- return self._project_id
104
-
105
- @project_id.setter
106
- def project_id(self, project_id):
107
- """Sets the project_id of this CreateComputeTemplate.
108
-
109
-
110
- :param project_id: The project_id of this CreateComputeTemplate. # noqa: E501
111
- :type: str
112
- """
113
-
114
- self._project_id = project_id
115
-
116
- @property
117
- def config(self):
118
- """Gets the config of this CreateComputeTemplate. # noqa: E501
119
-
120
-
121
- :return: The config of this CreateComputeTemplate. # noqa: E501
122
- :rtype: CreateComputeTemplateConfig
123
- """
124
- return self._config
125
-
126
- @config.setter
127
- def config(self, config):
128
- """Sets the config of this CreateComputeTemplate.
129
-
130
-
131
- :param config: The config of this CreateComputeTemplate. # noqa: E501
132
- :type: CreateComputeTemplateConfig
133
- """
134
- if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501
135
- raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501
136
-
137
- self._config = config
138
-
139
- @property
140
- def anonymous(self):
141
- """Gets the anonymous of this CreateComputeTemplate. # noqa: E501
142
-
143
- An anonymous cluster compute does not show up in the list of cluster configs. They can still have a name so they can be easily identified. # noqa: E501
144
-
145
- :return: The anonymous of this CreateComputeTemplate. # noqa: E501
146
- :rtype: bool
147
- """
148
- return self._anonymous
149
-
150
- @anonymous.setter
151
- def anonymous(self, anonymous):
152
- """Sets the anonymous of this CreateComputeTemplate.
153
-
154
- An anonymous cluster compute does not show up in the list of cluster configs. They can still have a name so they can be easily identified. # noqa: E501
155
-
156
- :param anonymous: The anonymous of this CreateComputeTemplate. # noqa: E501
157
- :type: bool
158
- """
159
-
160
- self._anonymous = anonymous
161
-
162
- @property
163
- def new_version(self):
164
- """Gets the new_version of this CreateComputeTemplate. # noqa: E501
165
-
166
- If a Compute Template with the same name already exists, create this config as a new version. # noqa: E501
167
-
168
- :return: The new_version of this CreateComputeTemplate. # noqa: E501
169
- :rtype: bool
170
- """
171
- return self._new_version
172
-
173
- @new_version.setter
174
- def new_version(self, new_version):
175
- """Sets the new_version of this CreateComputeTemplate.
176
-
177
- If a Compute Template with the same name already exists, create this config as a new version. # noqa: E501
178
-
179
- :param new_version: The new_version of this CreateComputeTemplate. # noqa: E501
180
- :type: bool
181
- """
182
-
183
- self._new_version = new_version
184
-
185
- def to_dict(self):
186
- """Returns the model properties as a dict"""
187
- result = {}
188
-
189
- for attr, _ in six.iteritems(self.openapi_types):
190
- value = getattr(self, attr)
191
- if isinstance(value, list):
192
- result[attr] = list(map(
193
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
194
- value
195
- ))
196
- elif hasattr(value, "to_dict"):
197
- result[attr] = value.to_dict()
198
- elif isinstance(value, dict):
199
- result[attr] = dict(map(
200
- lambda item: (item[0], item[1].to_dict())
201
- if hasattr(item[1], "to_dict") else item,
202
- value.items()
203
- ))
204
- else:
205
- result[attr] = value
206
-
207
- return result
208
-
209
- def to_str(self):
210
- """Returns the string representation of the model"""
211
- return pprint.pformat(self.to_dict())
212
-
213
- def __repr__(self):
214
- """For `print` and `pprint`"""
215
- return self.to_str()
216
-
217
- def __eq__(self, other):
218
- """Returns true if both objects are equal"""
219
- if not isinstance(other, CreateComputeTemplate):
220
- return False
221
-
222
- return self.to_dict() == other.to_dict()
223
-
224
- def __ne__(self, other):
225
- """Returns true if both objects are not equal"""
226
- if not isinstance(other, CreateComputeTemplate):
227
- return True
228
-
229
- return self.to_dict() != other.to_dict()