anyscale 0.26.57__py3-none-any.whl → 0.26.59__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/common.py +1 -1
- anyscale/client/README.md +60 -0
- anyscale/client/openapi_client/__init__.py +42 -0
- anyscale/client/openapi_client/api/default_api.py +2541 -303
- anyscale/client/openapi_client/models/__init__.py +42 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_internal_production_job.py +31 -3
- anyscale/client/openapi_client/models/create_job_queue_requests.py +31 -3
- anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
- anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/deleted_count.py +121 -0
- anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
- anyscale/client/openapi_client/models/email_verification_request.py +175 -0
- anyscale/client/openapi_client/models/email_verification_response.py +120 -0
- anyscale/client/openapi_client/models/emailverificationresponse_response.py +121 -0
- anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
- anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
- anyscale/client/openapi_client/models/job_queues_query.py +31 -3
- anyscale/client/openapi_client/models/operator_event.py +256 -0
- anyscale/client/openapi_client/models/operator_event_response.py +148 -0
- anyscale/client/openapi_client/models/operator_event_type.py +101 -0
- anyscale/client/openapi_client/models/published_filter.py +101 -0
- anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
- anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
- anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
- anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/tag_key.py +121 -0
- anyscale/client/openapi_client/models/tag_key_value.py +148 -0
- anyscale/client/openapi_client/models/tag_search_in.py +101 -0
- anyscale/client/openapi_client/models/tag_value.py +121 -0
- anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/task_attempts.py +101 -0
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/update_job_queue_request.py +31 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/use_work_os_response.py +121 -0
- anyscale/client/openapi_client/models/useworkosresponse_response.py +121 -0
- anyscale/client/openapi_client/models/work_os_authorize_url_response.py +120 -0
- anyscale/client/openapi_client/models/workosauthorizeurlresponse_response.py +121 -0
- anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
- anyscale/client/openapi_client/models/workspace_template.py +343 -204
- anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
- anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
- anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
- anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
- anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
- anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
- anyscale/commands/cloud_commands.py +15 -3
- anyscale/commands/command_examples.py +2 -2
- anyscale/controllers/cloud_controller.py +7 -3
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/METADATA +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/RECORD +74 -32
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/WHEEL +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,178 @@
|
|
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 CreateWorkspaceTemplateVersion(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
|
+
'image_uri': 'str',
|
37
|
+
'compute_configs': 'dict(str, str)',
|
38
|
+
'artifacts': 'WorkspaceSystemArtifacts'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'image_uri': 'image_uri',
|
43
|
+
'compute_configs': 'compute_configs',
|
44
|
+
'artifacts': 'artifacts'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, image_uri=None, compute_configs=None, artifacts=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""CreateWorkspaceTemplateVersion - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._image_uri = None
|
54
|
+
self._compute_configs = None
|
55
|
+
self._artifacts = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if image_uri is not None:
|
59
|
+
self.image_uri = image_uri
|
60
|
+
if compute_configs is not None:
|
61
|
+
self.compute_configs = compute_configs
|
62
|
+
if artifacts is not None:
|
63
|
+
self.artifacts = artifacts
|
64
|
+
|
65
|
+
@property
|
66
|
+
def image_uri(self):
|
67
|
+
"""Gets the image_uri of this CreateWorkspaceTemplateVersion. # noqa: E501
|
68
|
+
|
69
|
+
Docker image URI for this version # noqa: E501
|
70
|
+
|
71
|
+
:return: The image_uri of this CreateWorkspaceTemplateVersion. # noqa: E501
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._image_uri
|
75
|
+
|
76
|
+
@image_uri.setter
|
77
|
+
def image_uri(self, image_uri):
|
78
|
+
"""Sets the image_uri of this CreateWorkspaceTemplateVersion.
|
79
|
+
|
80
|
+
Docker image URI for this version # noqa: E501
|
81
|
+
|
82
|
+
:param image_uri: The image_uri of this CreateWorkspaceTemplateVersion. # noqa: E501
|
83
|
+
:type: str
|
84
|
+
"""
|
85
|
+
|
86
|
+
self._image_uri = image_uri
|
87
|
+
|
88
|
+
@property
|
89
|
+
def compute_configs(self):
|
90
|
+
"""Gets the compute_configs of this CreateWorkspaceTemplateVersion. # noqa: E501
|
91
|
+
|
92
|
+
Cloud-specific compute config mapping # noqa: E501
|
93
|
+
|
94
|
+
:return: The compute_configs of this CreateWorkspaceTemplateVersion. # noqa: E501
|
95
|
+
:rtype: dict(str, str)
|
96
|
+
"""
|
97
|
+
return self._compute_configs
|
98
|
+
|
99
|
+
@compute_configs.setter
|
100
|
+
def compute_configs(self, compute_configs):
|
101
|
+
"""Sets the compute_configs of this CreateWorkspaceTemplateVersion.
|
102
|
+
|
103
|
+
Cloud-specific compute config mapping # noqa: E501
|
104
|
+
|
105
|
+
:param compute_configs: The compute_configs of this CreateWorkspaceTemplateVersion. # noqa: E501
|
106
|
+
:type: dict(str, str)
|
107
|
+
"""
|
108
|
+
|
109
|
+
self._compute_configs = compute_configs
|
110
|
+
|
111
|
+
@property
|
112
|
+
def artifacts(self):
|
113
|
+
"""Gets the artifacts of this CreateWorkspaceTemplateVersion. # noqa: E501
|
114
|
+
|
115
|
+
Artifacts configuration for this version # noqa: E501
|
116
|
+
|
117
|
+
:return: The artifacts of this CreateWorkspaceTemplateVersion. # noqa: E501
|
118
|
+
:rtype: WorkspaceSystemArtifacts
|
119
|
+
"""
|
120
|
+
return self._artifacts
|
121
|
+
|
122
|
+
@artifacts.setter
|
123
|
+
def artifacts(self, artifacts):
|
124
|
+
"""Sets the artifacts of this CreateWorkspaceTemplateVersion.
|
125
|
+
|
126
|
+
Artifacts configuration for this version # noqa: E501
|
127
|
+
|
128
|
+
:param artifacts: The artifacts of this CreateWorkspaceTemplateVersion. # noqa: E501
|
129
|
+
:type: WorkspaceSystemArtifacts
|
130
|
+
"""
|
131
|
+
|
132
|
+
self._artifacts = artifacts
|
133
|
+
|
134
|
+
def to_dict(self):
|
135
|
+
"""Returns the model properties as a dict"""
|
136
|
+
result = {}
|
137
|
+
|
138
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
139
|
+
value = getattr(self, attr)
|
140
|
+
if isinstance(value, list):
|
141
|
+
result[attr] = list(map(
|
142
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
143
|
+
value
|
144
|
+
))
|
145
|
+
elif hasattr(value, "to_dict"):
|
146
|
+
result[attr] = value.to_dict()
|
147
|
+
elif isinstance(value, dict):
|
148
|
+
result[attr] = dict(map(
|
149
|
+
lambda item: (item[0], item[1].to_dict())
|
150
|
+
if hasattr(item[1], "to_dict") else item,
|
151
|
+
value.items()
|
152
|
+
))
|
153
|
+
else:
|
154
|
+
result[attr] = value
|
155
|
+
|
156
|
+
return result
|
157
|
+
|
158
|
+
def to_str(self):
|
159
|
+
"""Returns the string representation of the model"""
|
160
|
+
return pprint.pformat(self.to_dict())
|
161
|
+
|
162
|
+
def __repr__(self):
|
163
|
+
"""For `print` and `pprint`"""
|
164
|
+
return self.to_str()
|
165
|
+
|
166
|
+
def __eq__(self, other):
|
167
|
+
"""Returns true if both objects are equal"""
|
168
|
+
if not isinstance(other, CreateWorkspaceTemplateVersion):
|
169
|
+
return False
|
170
|
+
|
171
|
+
return self.to_dict() == other.to_dict()
|
172
|
+
|
173
|
+
def __ne__(self, other):
|
174
|
+
"""Returns true if both objects are not equal"""
|
175
|
+
if not isinstance(other, CreateWorkspaceTemplateVersion):
|
176
|
+
return True
|
177
|
+
|
178
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,175 @@
|
|
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 DeleteResourceTagsRequest(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
|
+
'resource_type': 'ResourceTagResourceType',
|
37
|
+
'resource_id': 'str',
|
38
|
+
'keys': 'list[str]'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'resource_type': 'resource_type',
|
43
|
+
'resource_id': 'resource_id',
|
44
|
+
'keys': 'keys'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, resource_type=None, resource_id=None, keys=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""DeleteResourceTagsRequest - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._resource_type = None
|
54
|
+
self._resource_id = None
|
55
|
+
self._keys = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.resource_type = resource_type
|
59
|
+
self.resource_id = resource_id
|
60
|
+
self.keys = keys
|
61
|
+
|
62
|
+
@property
|
63
|
+
def resource_type(self):
|
64
|
+
"""Gets the resource_type of this DeleteResourceTagsRequest. # noqa: E501
|
65
|
+
|
66
|
+
|
67
|
+
:return: The resource_type of this DeleteResourceTagsRequest. # noqa: E501
|
68
|
+
:rtype: ResourceTagResourceType
|
69
|
+
"""
|
70
|
+
return self._resource_type
|
71
|
+
|
72
|
+
@resource_type.setter
|
73
|
+
def resource_type(self, resource_type):
|
74
|
+
"""Sets the resource_type of this DeleteResourceTagsRequest.
|
75
|
+
|
76
|
+
|
77
|
+
:param resource_type: The resource_type of this DeleteResourceTagsRequest. # noqa: E501
|
78
|
+
:type: ResourceTagResourceType
|
79
|
+
"""
|
80
|
+
if self.local_vars_configuration.client_side_validation and resource_type is None: # noqa: E501
|
81
|
+
raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501
|
82
|
+
|
83
|
+
self._resource_type = resource_type
|
84
|
+
|
85
|
+
@property
|
86
|
+
def resource_id(self):
|
87
|
+
"""Gets the resource_id of this DeleteResourceTagsRequest. # noqa: E501
|
88
|
+
|
89
|
+
|
90
|
+
:return: The resource_id of this DeleteResourceTagsRequest. # noqa: E501
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._resource_id
|
94
|
+
|
95
|
+
@resource_id.setter
|
96
|
+
def resource_id(self, resource_id):
|
97
|
+
"""Sets the resource_id of this DeleteResourceTagsRequest.
|
98
|
+
|
99
|
+
|
100
|
+
:param resource_id: The resource_id of this DeleteResourceTagsRequest. # noqa: E501
|
101
|
+
:type: str
|
102
|
+
"""
|
103
|
+
if self.local_vars_configuration.client_side_validation and resource_id is None: # noqa: E501
|
104
|
+
raise ValueError("Invalid value for `resource_id`, must not be `None`") # noqa: E501
|
105
|
+
|
106
|
+
self._resource_id = resource_id
|
107
|
+
|
108
|
+
@property
|
109
|
+
def keys(self):
|
110
|
+
"""Gets the keys of this DeleteResourceTagsRequest. # noqa: E501
|
111
|
+
|
112
|
+
|
113
|
+
:return: The keys of this DeleteResourceTagsRequest. # noqa: E501
|
114
|
+
:rtype: list[str]
|
115
|
+
"""
|
116
|
+
return self._keys
|
117
|
+
|
118
|
+
@keys.setter
|
119
|
+
def keys(self, keys):
|
120
|
+
"""Sets the keys of this DeleteResourceTagsRequest.
|
121
|
+
|
122
|
+
|
123
|
+
:param keys: The keys of this DeleteResourceTagsRequest. # noqa: E501
|
124
|
+
:type: list[str]
|
125
|
+
"""
|
126
|
+
if self.local_vars_configuration.client_side_validation and keys is None: # noqa: E501
|
127
|
+
raise ValueError("Invalid value for `keys`, must not be `None`") # noqa: E501
|
128
|
+
|
129
|
+
self._keys = keys
|
130
|
+
|
131
|
+
def to_dict(self):
|
132
|
+
"""Returns the model properties as a dict"""
|
133
|
+
result = {}
|
134
|
+
|
135
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
136
|
+
value = getattr(self, attr)
|
137
|
+
if isinstance(value, list):
|
138
|
+
result[attr] = list(map(
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
140
|
+
value
|
141
|
+
))
|
142
|
+
elif hasattr(value, "to_dict"):
|
143
|
+
result[attr] = value.to_dict()
|
144
|
+
elif isinstance(value, dict):
|
145
|
+
result[attr] = dict(map(
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
148
|
+
value.items()
|
149
|
+
))
|
150
|
+
else:
|
151
|
+
result[attr] = value
|
152
|
+
|
153
|
+
return result
|
154
|
+
|
155
|
+
def to_str(self):
|
156
|
+
"""Returns the string representation of the model"""
|
157
|
+
return pprint.pformat(self.to_dict())
|
158
|
+
|
159
|
+
def __repr__(self):
|
160
|
+
"""For `print` and `pprint`"""
|
161
|
+
return self.to_str()
|
162
|
+
|
163
|
+
def __eq__(self, other):
|
164
|
+
"""Returns true if both objects are equal"""
|
165
|
+
if not isinstance(other, DeleteResourceTagsRequest):
|
166
|
+
return False
|
167
|
+
|
168
|
+
return self.to_dict() == other.to_dict()
|
169
|
+
|
170
|
+
def __ne__(self, other):
|
171
|
+
"""Returns true if both objects are not equal"""
|
172
|
+
if not isinstance(other, DeleteResourceTagsRequest):
|
173
|
+
return True
|
174
|
+
|
175
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 DeletedCount(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
|
+
'deleted': 'int'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'deleted': 'deleted'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, deleted=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""DeletedCount - 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._deleted = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.deleted = deleted
|
53
|
+
|
54
|
+
@property
|
55
|
+
def deleted(self):
|
56
|
+
"""Gets the deleted of this DeletedCount. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The deleted of this DeletedCount. # noqa: E501
|
60
|
+
:rtype: int
|
61
|
+
"""
|
62
|
+
return self._deleted
|
63
|
+
|
64
|
+
@deleted.setter
|
65
|
+
def deleted(self, deleted):
|
66
|
+
"""Sets the deleted of this DeletedCount.
|
67
|
+
|
68
|
+
|
69
|
+
:param deleted: The deleted of this DeletedCount. # noqa: E501
|
70
|
+
:type: int
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and deleted is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `deleted`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._deleted = deleted
|
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, DeletedCount):
|
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, DeletedCount):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 DeletedcountResponse(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': 'DeletedCount'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""DeletedcountResponse - 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 DeletedcountResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this DeletedcountResponse. # noqa: E501
|
60
|
+
:rtype: DeletedCount
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this DeletedcountResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this DeletedcountResponse. # noqa: E501
|
70
|
+
:type: DeletedCount
|
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, DeletedcountResponse):
|
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, DeletedcountResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|