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
@@ -1,202 +0,0 @@
|
|
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 TemplatizedDecoratedApplicationTemplates(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
|
-
'cpu_optimized': 'DecoratedApplicationTemplate',
|
37
|
-
'gpu_optimized': 'DecoratedApplicationTemplate',
|
38
|
-
'memory_optimized': 'DecoratedApplicationTemplate',
|
39
|
-
'default': 'DecoratedApplicationTemplate'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'cpu_optimized': 'cpu_optimized',
|
44
|
-
'gpu_optimized': 'gpu_optimized',
|
45
|
-
'memory_optimized': 'memory_optimized',
|
46
|
-
'default': 'default'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, cpu_optimized=None, gpu_optimized=None, memory_optimized=None, default=None, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""TemplatizedDecoratedApplicationTemplates - 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._cpu_optimized = None
|
56
|
-
self._gpu_optimized = None
|
57
|
-
self._memory_optimized = None
|
58
|
-
self._default = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
self.cpu_optimized = cpu_optimized
|
62
|
-
self.gpu_optimized = gpu_optimized
|
63
|
-
self.memory_optimized = memory_optimized
|
64
|
-
self.default = default
|
65
|
-
|
66
|
-
@property
|
67
|
-
def cpu_optimized(self):
|
68
|
-
"""Gets the cpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
69
|
-
|
70
|
-
|
71
|
-
:return: The cpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
72
|
-
:rtype: DecoratedApplicationTemplate
|
73
|
-
"""
|
74
|
-
return self._cpu_optimized
|
75
|
-
|
76
|
-
@cpu_optimized.setter
|
77
|
-
def cpu_optimized(self, cpu_optimized):
|
78
|
-
"""Sets the cpu_optimized of this TemplatizedDecoratedApplicationTemplates.
|
79
|
-
|
80
|
-
|
81
|
-
:param cpu_optimized: The cpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
82
|
-
:type: DecoratedApplicationTemplate
|
83
|
-
"""
|
84
|
-
if self.local_vars_configuration.client_side_validation and cpu_optimized is None: # noqa: E501
|
85
|
-
raise ValueError("Invalid value for `cpu_optimized`, must not be `None`") # noqa: E501
|
86
|
-
|
87
|
-
self._cpu_optimized = cpu_optimized
|
88
|
-
|
89
|
-
@property
|
90
|
-
def gpu_optimized(self):
|
91
|
-
"""Gets the gpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
92
|
-
|
93
|
-
|
94
|
-
:return: The gpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
95
|
-
:rtype: DecoratedApplicationTemplate
|
96
|
-
"""
|
97
|
-
return self._gpu_optimized
|
98
|
-
|
99
|
-
@gpu_optimized.setter
|
100
|
-
def gpu_optimized(self, gpu_optimized):
|
101
|
-
"""Sets the gpu_optimized of this TemplatizedDecoratedApplicationTemplates.
|
102
|
-
|
103
|
-
|
104
|
-
:param gpu_optimized: The gpu_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
105
|
-
:type: DecoratedApplicationTemplate
|
106
|
-
"""
|
107
|
-
if self.local_vars_configuration.client_side_validation and gpu_optimized is None: # noqa: E501
|
108
|
-
raise ValueError("Invalid value for `gpu_optimized`, must not be `None`") # noqa: E501
|
109
|
-
|
110
|
-
self._gpu_optimized = gpu_optimized
|
111
|
-
|
112
|
-
@property
|
113
|
-
def memory_optimized(self):
|
114
|
-
"""Gets the memory_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
115
|
-
|
116
|
-
|
117
|
-
:return: The memory_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
118
|
-
:rtype: DecoratedApplicationTemplate
|
119
|
-
"""
|
120
|
-
return self._memory_optimized
|
121
|
-
|
122
|
-
@memory_optimized.setter
|
123
|
-
def memory_optimized(self, memory_optimized):
|
124
|
-
"""Sets the memory_optimized of this TemplatizedDecoratedApplicationTemplates.
|
125
|
-
|
126
|
-
|
127
|
-
:param memory_optimized: The memory_optimized of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
128
|
-
:type: DecoratedApplicationTemplate
|
129
|
-
"""
|
130
|
-
if self.local_vars_configuration.client_side_validation and memory_optimized is None: # noqa: E501
|
131
|
-
raise ValueError("Invalid value for `memory_optimized`, must not be `None`") # noqa: E501
|
132
|
-
|
133
|
-
self._memory_optimized = memory_optimized
|
134
|
-
|
135
|
-
@property
|
136
|
-
def default(self):
|
137
|
-
"""Gets the default of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
138
|
-
|
139
|
-
|
140
|
-
:return: The default of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
141
|
-
:rtype: DecoratedApplicationTemplate
|
142
|
-
"""
|
143
|
-
return self._default
|
144
|
-
|
145
|
-
@default.setter
|
146
|
-
def default(self, default):
|
147
|
-
"""Sets the default of this TemplatizedDecoratedApplicationTemplates.
|
148
|
-
|
149
|
-
|
150
|
-
:param default: The default of this TemplatizedDecoratedApplicationTemplates. # noqa: E501
|
151
|
-
:type: DecoratedApplicationTemplate
|
152
|
-
"""
|
153
|
-
if self.local_vars_configuration.client_side_validation and default is None: # noqa: E501
|
154
|
-
raise ValueError("Invalid value for `default`, must not be `None`") # noqa: E501
|
155
|
-
|
156
|
-
self._default = default
|
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, TemplatizedDecoratedApplicationTemplates):
|
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, TemplatizedDecoratedApplicationTemplates):
|
200
|
-
return True
|
201
|
-
|
202
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,121 +0,0 @@
|
|
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 TemplatizedcomputeconfigsResponse(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': 'TemplatizedComputeConfigs'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""TemplatizedcomputeconfigsResponse - 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 TemplatizedcomputeconfigsResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this TemplatizedcomputeconfigsResponse. # noqa: E501
|
60
|
-
:rtype: TemplatizedComputeConfigs
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this TemplatizedcomputeconfigsResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this TemplatizedcomputeconfigsResponse. # noqa: E501
|
70
|
-
:type: TemplatizedComputeConfigs
|
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, TemplatizedcomputeconfigsResponse):
|
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, TemplatizedcomputeconfigsResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,121 +0,0 @@
|
|
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 TemplatizeddecoratedapplicationtemplatesResponse(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': 'TemplatizedDecoratedApplicationTemplates'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""TemplatizeddecoratedapplicationtemplatesResponse - 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 TemplatizeddecoratedapplicationtemplatesResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this TemplatizeddecoratedapplicationtemplatesResponse. # noqa: E501
|
60
|
-
:rtype: TemplatizedDecoratedApplicationTemplates
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this TemplatizeddecoratedapplicationtemplatesResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this TemplatizeddecoratedapplicationtemplatesResponse. # noqa: E501
|
70
|
-
:type: TemplatizedDecoratedApplicationTemplates
|
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, TemplatizeddecoratedapplicationtemplatesResponse):
|
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, TemplatizeddecoratedapplicationtemplatesResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,147 +0,0 @@
|
|
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 WriteSession(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
|
-
'idle_timeout': 'int'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'name': 'name',
|
42
|
-
'idle_timeout': 'idle_timeout'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, name=None, idle_timeout=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""WriteSession - 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._name = None
|
52
|
-
self._idle_timeout = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.name = name
|
56
|
-
if idle_timeout is not None:
|
57
|
-
self.idle_timeout = idle_timeout
|
58
|
-
|
59
|
-
@property
|
60
|
-
def name(self):
|
61
|
-
"""Gets the name of this WriteSession. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The name of this WriteSession. # noqa: E501
|
65
|
-
:rtype: str
|
66
|
-
"""
|
67
|
-
return self._name
|
68
|
-
|
69
|
-
@name.setter
|
70
|
-
def name(self, name):
|
71
|
-
"""Sets the name of this WriteSession.
|
72
|
-
|
73
|
-
|
74
|
-
:param name: The name of this WriteSession. # noqa: E501
|
75
|
-
:type: str
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._name = name
|
81
|
-
|
82
|
-
@property
|
83
|
-
def idle_timeout(self):
|
84
|
-
"""Gets the idle_timeout of this WriteSession. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The idle_timeout of this WriteSession. # noqa: E501
|
88
|
-
:rtype: int
|
89
|
-
"""
|
90
|
-
return self._idle_timeout
|
91
|
-
|
92
|
-
@idle_timeout.setter
|
93
|
-
def idle_timeout(self, idle_timeout):
|
94
|
-
"""Sets the idle_timeout of this WriteSession.
|
95
|
-
|
96
|
-
|
97
|
-
:param idle_timeout: The idle_timeout of this WriteSession. # noqa: E501
|
98
|
-
:type: int
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._idle_timeout = idle_timeout
|
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, WriteSession):
|
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, WriteSession):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|