anyscale 0.26.23__py3-none-any.whl → 0.26.25__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/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +39 -182
- 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/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/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/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/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/METADATA +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/RECORD +52 -84
- 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.23.dist-info → anyscale-0.26.25.dist-info}/LICENSE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/NOTICE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/WHEEL +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.25.dist-info}/top_level.txt +0 -0
@@ -1,206 +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 SessionsQuery(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': 'TextQuery',
|
37
|
-
'paging': 'PageQuery',
|
38
|
-
'state_filter': 'list[SessionState]',
|
39
|
-
'creator_id': 'str'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'name': 'name',
|
44
|
-
'paging': 'paging',
|
45
|
-
'state_filter': 'state_filter',
|
46
|
-
'creator_id': 'creator_id'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, name=None, paging=None, state_filter=[], creator_id=None, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""SessionsQuery - 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._name = None
|
56
|
-
self._paging = None
|
57
|
-
self._state_filter = None
|
58
|
-
self._creator_id = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
if name is not None:
|
62
|
-
self.name = name
|
63
|
-
if paging is not None:
|
64
|
-
self.paging = paging
|
65
|
-
if state_filter is not None:
|
66
|
-
self.state_filter = state_filter
|
67
|
-
if creator_id is not None:
|
68
|
-
self.creator_id = creator_id
|
69
|
-
|
70
|
-
@property
|
71
|
-
def name(self):
|
72
|
-
"""Gets the name of this SessionsQuery. # noqa: E501
|
73
|
-
|
74
|
-
Filters Cluster by name. If this field is absent, no filtering is done. # noqa: E501
|
75
|
-
|
76
|
-
:return: The name of this SessionsQuery. # noqa: E501
|
77
|
-
:rtype: TextQuery
|
78
|
-
"""
|
79
|
-
return self._name
|
80
|
-
|
81
|
-
@name.setter
|
82
|
-
def name(self, name):
|
83
|
-
"""Sets the name of this SessionsQuery.
|
84
|
-
|
85
|
-
Filters Cluster by name. If this field is absent, no filtering is done. # noqa: E501
|
86
|
-
|
87
|
-
:param name: The name of this SessionsQuery. # noqa: E501
|
88
|
-
:type: TextQuery
|
89
|
-
"""
|
90
|
-
|
91
|
-
self._name = name
|
92
|
-
|
93
|
-
@property
|
94
|
-
def paging(self):
|
95
|
-
"""Gets the paging of this SessionsQuery. # noqa: E501
|
96
|
-
|
97
|
-
Pagination information. # noqa: E501
|
98
|
-
|
99
|
-
:return: The paging of this SessionsQuery. # noqa: E501
|
100
|
-
:rtype: PageQuery
|
101
|
-
"""
|
102
|
-
return self._paging
|
103
|
-
|
104
|
-
@paging.setter
|
105
|
-
def paging(self, paging):
|
106
|
-
"""Sets the paging of this SessionsQuery.
|
107
|
-
|
108
|
-
Pagination information. # noqa: E501
|
109
|
-
|
110
|
-
:param paging: The paging of this SessionsQuery. # noqa: E501
|
111
|
-
:type: PageQuery
|
112
|
-
"""
|
113
|
-
|
114
|
-
self._paging = paging
|
115
|
-
|
116
|
-
@property
|
117
|
-
def state_filter(self):
|
118
|
-
"""Gets the state_filter of this SessionsQuery. # noqa: E501
|
119
|
-
|
120
|
-
Filter Cluster by Session State. If this field is an empty set, no filtering is done. # noqa: E501
|
121
|
-
|
122
|
-
:return: The state_filter of this SessionsQuery. # noqa: E501
|
123
|
-
:rtype: list[SessionState]
|
124
|
-
"""
|
125
|
-
return self._state_filter
|
126
|
-
|
127
|
-
@state_filter.setter
|
128
|
-
def state_filter(self, state_filter):
|
129
|
-
"""Sets the state_filter of this SessionsQuery.
|
130
|
-
|
131
|
-
Filter Cluster by Session State. If this field is an empty set, no filtering is done. # noqa: E501
|
132
|
-
|
133
|
-
:param state_filter: The state_filter of this SessionsQuery. # noqa: E501
|
134
|
-
:type: list[SessionState]
|
135
|
-
"""
|
136
|
-
|
137
|
-
self._state_filter = state_filter
|
138
|
-
|
139
|
-
@property
|
140
|
-
def creator_id(self):
|
141
|
-
"""Gets the creator_id of this SessionsQuery. # noqa: E501
|
142
|
-
|
143
|
-
Filters Jobs by creator_id. If this field is absent, no filtering is done. # noqa: E501
|
144
|
-
|
145
|
-
:return: The creator_id of this SessionsQuery. # noqa: E501
|
146
|
-
:rtype: str
|
147
|
-
"""
|
148
|
-
return self._creator_id
|
149
|
-
|
150
|
-
@creator_id.setter
|
151
|
-
def creator_id(self, creator_id):
|
152
|
-
"""Sets the creator_id of this SessionsQuery.
|
153
|
-
|
154
|
-
Filters Jobs by creator_id. If this field is absent, no filtering is done. # noqa: E501
|
155
|
-
|
156
|
-
:param creator_id: The creator_id of this SessionsQuery. # noqa: E501
|
157
|
-
:type: str
|
158
|
-
"""
|
159
|
-
|
160
|
-
self._creator_id = creator_id
|
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, SessionsQuery):
|
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, SessionsQuery):
|
204
|
-
return True
|
205
|
-
|
206
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,206 +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 StartSessionOptions(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
|
-
'cluster_config': 'str',
|
37
|
-
'build_id': 'str',
|
38
|
-
'compute_template_id': 'str',
|
39
|
-
'allow_public_internet_traffic': 'bool'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'cluster_config': 'cluster_config',
|
44
|
-
'build_id': 'build_id',
|
45
|
-
'compute_template_id': 'compute_template_id',
|
46
|
-
'allow_public_internet_traffic': 'allow_public_internet_traffic'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, cluster_config=None, build_id=None, compute_template_id=None, allow_public_internet_traffic=None, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""StartSessionOptions - 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._cluster_config = None
|
56
|
-
self._build_id = None
|
57
|
-
self._compute_template_id = None
|
58
|
-
self._allow_public_internet_traffic = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
if cluster_config is not None:
|
62
|
-
self.cluster_config = cluster_config
|
63
|
-
if build_id is not None:
|
64
|
-
self.build_id = build_id
|
65
|
-
if compute_template_id is not None:
|
66
|
-
self.compute_template_id = compute_template_id
|
67
|
-
if allow_public_internet_traffic is not None:
|
68
|
-
self.allow_public_internet_traffic = allow_public_internet_traffic
|
69
|
-
|
70
|
-
@property
|
71
|
-
def cluster_config(self):
|
72
|
-
"""Gets the cluster_config of this StartSessionOptions. # noqa: E501
|
73
|
-
|
74
|
-
New cluster config to apply to the Session. # noqa: E501
|
75
|
-
|
76
|
-
:return: The cluster_config of this StartSessionOptions. # noqa: E501
|
77
|
-
:rtype: str
|
78
|
-
"""
|
79
|
-
return self._cluster_config
|
80
|
-
|
81
|
-
@cluster_config.setter
|
82
|
-
def cluster_config(self, cluster_config):
|
83
|
-
"""Sets the cluster_config of this StartSessionOptions.
|
84
|
-
|
85
|
-
New cluster config to apply to the Session. # noqa: E501
|
86
|
-
|
87
|
-
:param cluster_config: The cluster_config of this StartSessionOptions. # noqa: E501
|
88
|
-
:type: str
|
89
|
-
"""
|
90
|
-
|
91
|
-
self._cluster_config = cluster_config
|
92
|
-
|
93
|
-
@property
|
94
|
-
def build_id(self):
|
95
|
-
"""Gets the build_id of this StartSessionOptions. # noqa: E501
|
96
|
-
|
97
|
-
Build ID to start the session with. # noqa: E501
|
98
|
-
|
99
|
-
:return: The build_id of this StartSessionOptions. # noqa: E501
|
100
|
-
:rtype: str
|
101
|
-
"""
|
102
|
-
return self._build_id
|
103
|
-
|
104
|
-
@build_id.setter
|
105
|
-
def build_id(self, build_id):
|
106
|
-
"""Sets the build_id of this StartSessionOptions.
|
107
|
-
|
108
|
-
Build ID to start the session with. # noqa: E501
|
109
|
-
|
110
|
-
:param build_id: The build_id of this StartSessionOptions. # noqa: E501
|
111
|
-
:type: str
|
112
|
-
"""
|
113
|
-
|
114
|
-
self._build_id = build_id
|
115
|
-
|
116
|
-
@property
|
117
|
-
def compute_template_id(self):
|
118
|
-
"""Gets the compute_template_id of this StartSessionOptions. # noqa: E501
|
119
|
-
|
120
|
-
Compute template ID to start the session with. # noqa: E501
|
121
|
-
|
122
|
-
:return: The compute_template_id of this StartSessionOptions. # noqa: E501
|
123
|
-
:rtype: str
|
124
|
-
"""
|
125
|
-
return self._compute_template_id
|
126
|
-
|
127
|
-
@compute_template_id.setter
|
128
|
-
def compute_template_id(self, compute_template_id):
|
129
|
-
"""Sets the compute_template_id of this StartSessionOptions.
|
130
|
-
|
131
|
-
Compute template ID to start the session with. # noqa: E501
|
132
|
-
|
133
|
-
:param compute_template_id: The compute_template_id of this StartSessionOptions. # noqa: E501
|
134
|
-
:type: str
|
135
|
-
"""
|
136
|
-
|
137
|
-
self._compute_template_id = compute_template_id
|
138
|
-
|
139
|
-
@property
|
140
|
-
def allow_public_internet_traffic(self):
|
141
|
-
"""Gets the allow_public_internet_traffic of this StartSessionOptions. # noqa: E501
|
142
|
-
|
143
|
-
Whether public internet traffic can access Serve endpoints or if an authentication token is required. Will not update current value if not provided. # noqa: E501
|
144
|
-
|
145
|
-
:return: The allow_public_internet_traffic of this StartSessionOptions. # noqa: E501
|
146
|
-
:rtype: bool
|
147
|
-
"""
|
148
|
-
return self._allow_public_internet_traffic
|
149
|
-
|
150
|
-
@allow_public_internet_traffic.setter
|
151
|
-
def allow_public_internet_traffic(self, allow_public_internet_traffic):
|
152
|
-
"""Sets the allow_public_internet_traffic of this StartSessionOptions.
|
153
|
-
|
154
|
-
Whether public internet traffic can access Serve endpoints or if an authentication token is required. Will not update current value if not provided. # noqa: E501
|
155
|
-
|
156
|
-
:param allow_public_internet_traffic: The allow_public_internet_traffic of this StartSessionOptions. # noqa: E501
|
157
|
-
:type: bool
|
158
|
-
"""
|
159
|
-
|
160
|
-
self._allow_public_internet_traffic = allow_public_internet_traffic
|
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, StartSessionOptions):
|
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, StartSessionOptions):
|
204
|
-
return True
|
205
|
-
|
206
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,206 +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 TerminateSessionOptions(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
|
-
'workers_only': 'bool',
|
37
|
-
'keep_min_workers': 'bool',
|
38
|
-
'delete': 'bool',
|
39
|
-
'take_snapshot': 'bool'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'workers_only': 'workers_only',
|
44
|
-
'keep_min_workers': 'keep_min_workers',
|
45
|
-
'delete': 'delete',
|
46
|
-
'take_snapshot': 'take_snapshot'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, workers_only=False, keep_min_workers=False, delete=False, take_snapshot=True, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""TerminateSessionOptions - 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._workers_only = None
|
56
|
-
self._keep_min_workers = None
|
57
|
-
self._delete = None
|
58
|
-
self._take_snapshot = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
if workers_only is not None:
|
62
|
-
self.workers_only = workers_only
|
63
|
-
if keep_min_workers is not None:
|
64
|
-
self.keep_min_workers = keep_min_workers
|
65
|
-
if delete is not None:
|
66
|
-
self.delete = delete
|
67
|
-
if take_snapshot is not None:
|
68
|
-
self.take_snapshot = take_snapshot
|
69
|
-
|
70
|
-
@property
|
71
|
-
def workers_only(self):
|
72
|
-
"""Gets the workers_only of this TerminateSessionOptions. # noqa: E501
|
73
|
-
|
74
|
-
Only destroy the workers when terminating. # noqa: E501
|
75
|
-
|
76
|
-
:return: The workers_only of this TerminateSessionOptions. # noqa: E501
|
77
|
-
:rtype: bool
|
78
|
-
"""
|
79
|
-
return self._workers_only
|
80
|
-
|
81
|
-
@workers_only.setter
|
82
|
-
def workers_only(self, workers_only):
|
83
|
-
"""Sets the workers_only of this TerminateSessionOptions.
|
84
|
-
|
85
|
-
Only destroy the workers when terminating. # noqa: E501
|
86
|
-
|
87
|
-
:param workers_only: The workers_only of this TerminateSessionOptions. # noqa: E501
|
88
|
-
:type: bool
|
89
|
-
"""
|
90
|
-
|
91
|
-
self._workers_only = workers_only
|
92
|
-
|
93
|
-
@property
|
94
|
-
def keep_min_workers(self):
|
95
|
-
"""Gets the keep_min_workers of this TerminateSessionOptions. # noqa: E501
|
96
|
-
|
97
|
-
Retain the minimal amount of workers specified in the config when terminating. # noqa: E501
|
98
|
-
|
99
|
-
:return: The keep_min_workers of this TerminateSessionOptions. # noqa: E501
|
100
|
-
:rtype: bool
|
101
|
-
"""
|
102
|
-
return self._keep_min_workers
|
103
|
-
|
104
|
-
@keep_min_workers.setter
|
105
|
-
def keep_min_workers(self, keep_min_workers):
|
106
|
-
"""Sets the keep_min_workers of this TerminateSessionOptions.
|
107
|
-
|
108
|
-
Retain the minimal amount of workers specified in the config when terminating. # noqa: E501
|
109
|
-
|
110
|
-
:param keep_min_workers: The keep_min_workers of this TerminateSessionOptions. # noqa: E501
|
111
|
-
:type: bool
|
112
|
-
"""
|
113
|
-
|
114
|
-
self._keep_min_workers = keep_min_workers
|
115
|
-
|
116
|
-
@property
|
117
|
-
def delete(self):
|
118
|
-
"""Gets the delete of this TerminateSessionOptions. # noqa: E501
|
119
|
-
|
120
|
-
Delete the session after terminating. # noqa: E501
|
121
|
-
|
122
|
-
:return: The delete of this TerminateSessionOptions. # noqa: E501
|
123
|
-
:rtype: bool
|
124
|
-
"""
|
125
|
-
return self._delete
|
126
|
-
|
127
|
-
@delete.setter
|
128
|
-
def delete(self, delete):
|
129
|
-
"""Sets the delete of this TerminateSessionOptions.
|
130
|
-
|
131
|
-
Delete the session after terminating. # noqa: E501
|
132
|
-
|
133
|
-
:param delete: The delete of this TerminateSessionOptions. # noqa: E501
|
134
|
-
:type: bool
|
135
|
-
"""
|
136
|
-
|
137
|
-
self._delete = delete
|
138
|
-
|
139
|
-
@property
|
140
|
-
def take_snapshot(self):
|
141
|
-
"""Gets the take_snapshot of this TerminateSessionOptions. # noqa: E501
|
142
|
-
|
143
|
-
Takes a snapshot to preserve the state of the session before terminating. The state will be restored the next time the session is started. # noqa: E501
|
144
|
-
|
145
|
-
:return: The take_snapshot of this TerminateSessionOptions. # noqa: E501
|
146
|
-
:rtype: bool
|
147
|
-
"""
|
148
|
-
return self._take_snapshot
|
149
|
-
|
150
|
-
@take_snapshot.setter
|
151
|
-
def take_snapshot(self, take_snapshot):
|
152
|
-
"""Sets the take_snapshot of this TerminateSessionOptions.
|
153
|
-
|
154
|
-
Takes a snapshot to preserve the state of the session before terminating. The state will be restored the next time the session is started. # noqa: E501
|
155
|
-
|
156
|
-
:param take_snapshot: The take_snapshot of this TerminateSessionOptions. # noqa: E501
|
157
|
-
:type: bool
|
158
|
-
"""
|
159
|
-
|
160
|
-
self._take_snapshot = take_snapshot
|
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, TerminateSessionOptions):
|
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, TerminateSessionOptions):
|
204
|
-
return True
|
205
|
-
|
206
|
-
return self.to_dict() != other.to_dict()
|