anyscale 0.26.3__py3-none-any.whl → 0.26.5__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 -5
- anyscale/_private/docgen/__main__.py +0 -3
- anyscale/_private/docgen/api.md +0 -40
- anyscale/_private/docgen/models.md +2 -50
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
- anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
- anyscale/client/README.md +11 -18
- anyscale/client/openapi_client/__init__.py +7 -11
- anyscale/client/openapi_client/api/default_api.py +537 -951
- anyscale/client/openapi_client/models/__init__.py +7 -11
- anyscale/client/openapi_client/models/{anyscale_version_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
- anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
- anyscale/client/openapi_client/models/{logdetails_response.py → dataset_jobs.py} +22 -22
- anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
- anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
- anyscale/client/openapi_client/models/{log_details.py → metric.py} +64 -42
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/operator_metrics.py +256 -0
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +56 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/cluster.py +5 -2
- anyscale/commands/anyscale_api/api_commands.py +0 -2
- anyscale/connect_utils/start_interactive_session.py +4 -1
- anyscale/controllers/cluster_controller.py +15 -26
- anyscale/controllers/project_controller.py +1 -6
- anyscale/job/_private/job_sdk.py +10 -1
- anyscale/job/models.py +8 -0
- anyscale/project_utils.py +9 -20
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +0 -474
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/sdk/anyscale_client/models/node_type.py +2 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/METADATA +1 -1
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/RECORD +44 -54
- anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/provider_metadata.py +0 -205
- anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
- anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
- anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
- anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
- anyscale/sdk/anyscale_client/models/session_command.py +0 -350
- anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/LICENSE +0 -0
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/NOTICE +0 -0
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/WHEEL +0 -0
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/top_level.txt +0 -0
@@ -1,187 +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 LogDetail(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
|
-
'download_url': 'str',
|
38
|
-
'size': 'int'
|
39
|
-
}
|
40
|
-
|
41
|
-
attribute_map = {
|
42
|
-
'name': 'name',
|
43
|
-
'download_url': 'download_url',
|
44
|
-
'size': 'size'
|
45
|
-
}
|
46
|
-
|
47
|
-
def __init__(self, name=None, download_url=None, size=None, local_vars_configuration=None): # noqa: E501
|
48
|
-
"""LogDetail - 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._name = None
|
54
|
-
self._download_url = None
|
55
|
-
self._size = None
|
56
|
-
self.discriminator = None
|
57
|
-
|
58
|
-
self.name = name
|
59
|
-
self.download_url = download_url
|
60
|
-
self.size = size
|
61
|
-
|
62
|
-
@property
|
63
|
-
def name(self):
|
64
|
-
"""Gets the name of this LogDetail. # noqa: E501
|
65
|
-
|
66
|
-
name of the log file. # noqa: E501
|
67
|
-
|
68
|
-
:return: The name of this LogDetail. # noqa: E501
|
69
|
-
:rtype: str
|
70
|
-
"""
|
71
|
-
return self._name
|
72
|
-
|
73
|
-
@name.setter
|
74
|
-
def name(self, name):
|
75
|
-
"""Sets the name of this LogDetail.
|
76
|
-
|
77
|
-
name of the log file. # noqa: E501
|
78
|
-
|
79
|
-
:param name: The name of this LogDetail. # noqa: E501
|
80
|
-
:type: str
|
81
|
-
"""
|
82
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
83
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
84
|
-
|
85
|
-
self._name = name
|
86
|
-
|
87
|
-
@property
|
88
|
-
def download_url(self):
|
89
|
-
"""Gets the download_url of this LogDetail. # noqa: E501
|
90
|
-
|
91
|
-
download link for logs. # noqa: E501
|
92
|
-
|
93
|
-
:return: The download_url of this LogDetail. # noqa: E501
|
94
|
-
:rtype: str
|
95
|
-
"""
|
96
|
-
return self._download_url
|
97
|
-
|
98
|
-
@download_url.setter
|
99
|
-
def download_url(self, download_url):
|
100
|
-
"""Sets the download_url of this LogDetail.
|
101
|
-
|
102
|
-
download link for logs. # noqa: E501
|
103
|
-
|
104
|
-
:param download_url: The download_url of this LogDetail. # noqa: E501
|
105
|
-
:type: str
|
106
|
-
"""
|
107
|
-
if self.local_vars_configuration.client_side_validation and download_url is None: # noqa: E501
|
108
|
-
raise ValueError("Invalid value for `download_url`, must not be `None`") # noqa: E501
|
109
|
-
if (self.local_vars_configuration.client_side_validation and
|
110
|
-
download_url is not None and len(download_url) > 2083):
|
111
|
-
raise ValueError("Invalid value for `download_url`, length must be less than or equal to `2083`") # noqa: E501
|
112
|
-
if (self.local_vars_configuration.client_side_validation and
|
113
|
-
download_url is not None and len(download_url) < 1):
|
114
|
-
raise ValueError("Invalid value for `download_url`, length must be greater than or equal to `1`") # noqa: E501
|
115
|
-
|
116
|
-
self._download_url = download_url
|
117
|
-
|
118
|
-
@property
|
119
|
-
def size(self):
|
120
|
-
"""Gets the size of this LogDetail. # noqa: E501
|
121
|
-
|
122
|
-
size of the log file. # noqa: E501
|
123
|
-
|
124
|
-
:return: The size of this LogDetail. # noqa: E501
|
125
|
-
:rtype: int
|
126
|
-
"""
|
127
|
-
return self._size
|
128
|
-
|
129
|
-
@size.setter
|
130
|
-
def size(self, size):
|
131
|
-
"""Sets the size of this LogDetail.
|
132
|
-
|
133
|
-
size of the log file. # noqa: E501
|
134
|
-
|
135
|
-
:param size: The size of this LogDetail. # noqa: E501
|
136
|
-
:type: int
|
137
|
-
"""
|
138
|
-
if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501
|
139
|
-
raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
|
140
|
-
|
141
|
-
self._size = size
|
142
|
-
|
143
|
-
def to_dict(self):
|
144
|
-
"""Returns the model properties as a dict"""
|
145
|
-
result = {}
|
146
|
-
|
147
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
148
|
-
value = getattr(self, attr)
|
149
|
-
if isinstance(value, list):
|
150
|
-
result[attr] = list(map(
|
151
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
152
|
-
value
|
153
|
-
))
|
154
|
-
elif hasattr(value, "to_dict"):
|
155
|
-
result[attr] = value.to_dict()
|
156
|
-
elif isinstance(value, dict):
|
157
|
-
result[attr] = dict(map(
|
158
|
-
lambda item: (item[0], item[1].to_dict())
|
159
|
-
if hasattr(item[1], "to_dict") else item,
|
160
|
-
value.items()
|
161
|
-
))
|
162
|
-
else:
|
163
|
-
result[attr] = value
|
164
|
-
|
165
|
-
return result
|
166
|
-
|
167
|
-
def to_str(self):
|
168
|
-
"""Returns the string representation of the model"""
|
169
|
-
return pprint.pformat(self.to_dict())
|
170
|
-
|
171
|
-
def __repr__(self):
|
172
|
-
"""For `print` and `pprint`"""
|
173
|
-
return self.to_str()
|
174
|
-
|
175
|
-
def __eq__(self, other):
|
176
|
-
"""Returns true if both objects are equal"""
|
177
|
-
if not isinstance(other, LogDetail):
|
178
|
-
return False
|
179
|
-
|
180
|
-
return self.to_dict() == other.to_dict()
|
181
|
-
|
182
|
-
def __ne__(self, other):
|
183
|
-
"""Returns true if both objects are not equal"""
|
184
|
-
if not isinstance(other, LogDetail):
|
185
|
-
return True
|
186
|
-
|
187
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,205 +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 ProviderMetadata(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
|
-
'timestamp': 'datetime',
|
37
|
-
'available_regions': 'object',
|
38
|
-
'available_azs': 'object',
|
39
|
-
'available_instance_types': 'object'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'timestamp': 'timestamp',
|
44
|
-
'available_regions': 'available_regions',
|
45
|
-
'available_azs': 'available_azs',
|
46
|
-
'available_instance_types': 'available_instance_types'
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, timestamp=None, available_regions=None, available_azs=None, available_instance_types=None, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""ProviderMetadata - 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._timestamp = None
|
56
|
-
self._available_regions = None
|
57
|
-
self._available_azs = None
|
58
|
-
self._available_instance_types = None
|
59
|
-
self.discriminator = None
|
60
|
-
|
61
|
-
self.timestamp = timestamp
|
62
|
-
if available_regions is not None:
|
63
|
-
self.available_regions = available_regions
|
64
|
-
if available_azs is not None:
|
65
|
-
self.available_azs = available_azs
|
66
|
-
if available_instance_types is not None:
|
67
|
-
self.available_instance_types = available_instance_types
|
68
|
-
|
69
|
-
@property
|
70
|
-
def timestamp(self):
|
71
|
-
"""Gets the timestamp of this ProviderMetadata. # noqa: E501
|
72
|
-
|
73
|
-
|
74
|
-
:return: The timestamp of this ProviderMetadata. # noqa: E501
|
75
|
-
:rtype: datetime
|
76
|
-
"""
|
77
|
-
return self._timestamp
|
78
|
-
|
79
|
-
@timestamp.setter
|
80
|
-
def timestamp(self, timestamp):
|
81
|
-
"""Sets the timestamp of this ProviderMetadata.
|
82
|
-
|
83
|
-
|
84
|
-
:param timestamp: The timestamp of this ProviderMetadata. # noqa: E501
|
85
|
-
:type: datetime
|
86
|
-
"""
|
87
|
-
if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
|
88
|
-
raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
|
89
|
-
|
90
|
-
self._timestamp = timestamp
|
91
|
-
|
92
|
-
@property
|
93
|
-
def available_regions(self):
|
94
|
-
"""Gets the available_regions of this ProviderMetadata. # noqa: E501
|
95
|
-
|
96
|
-
The available regions for this Cloud. # noqa: E501
|
97
|
-
|
98
|
-
:return: The available_regions of this ProviderMetadata. # noqa: E501
|
99
|
-
:rtype: object
|
100
|
-
"""
|
101
|
-
return self._available_regions
|
102
|
-
|
103
|
-
@available_regions.setter
|
104
|
-
def available_regions(self, available_regions):
|
105
|
-
"""Sets the available_regions of this ProviderMetadata.
|
106
|
-
|
107
|
-
The available regions for this Cloud. # noqa: E501
|
108
|
-
|
109
|
-
:param available_regions: The available_regions of this ProviderMetadata. # noqa: E501
|
110
|
-
:type: object
|
111
|
-
"""
|
112
|
-
|
113
|
-
self._available_regions = available_regions
|
114
|
-
|
115
|
-
@property
|
116
|
-
def available_azs(self):
|
117
|
-
"""Gets the available_azs of this ProviderMetadata. # noqa: E501
|
118
|
-
|
119
|
-
The available AZs for this Cloud. # noqa: E501
|
120
|
-
|
121
|
-
:return: The available_azs of this ProviderMetadata. # noqa: E501
|
122
|
-
:rtype: object
|
123
|
-
"""
|
124
|
-
return self._available_azs
|
125
|
-
|
126
|
-
@available_azs.setter
|
127
|
-
def available_azs(self, available_azs):
|
128
|
-
"""Sets the available_azs of this ProviderMetadata.
|
129
|
-
|
130
|
-
The available AZs for this Cloud. # noqa: E501
|
131
|
-
|
132
|
-
:param available_azs: The available_azs of this ProviderMetadata. # noqa: E501
|
133
|
-
:type: object
|
134
|
-
"""
|
135
|
-
|
136
|
-
self._available_azs = available_azs
|
137
|
-
|
138
|
-
@property
|
139
|
-
def available_instance_types(self):
|
140
|
-
"""Gets the available_instance_types of this ProviderMetadata. # noqa: E501
|
141
|
-
|
142
|
-
The instance types available for this Cloud. # noqa: E501
|
143
|
-
|
144
|
-
:return: The available_instance_types of this ProviderMetadata. # noqa: E501
|
145
|
-
:rtype: object
|
146
|
-
"""
|
147
|
-
return self._available_instance_types
|
148
|
-
|
149
|
-
@available_instance_types.setter
|
150
|
-
def available_instance_types(self, available_instance_types):
|
151
|
-
"""Sets the available_instance_types of this ProviderMetadata.
|
152
|
-
|
153
|
-
The instance types available for this Cloud. # noqa: E501
|
154
|
-
|
155
|
-
:param available_instance_types: The available_instance_types of this ProviderMetadata. # noqa: E501
|
156
|
-
:type: object
|
157
|
-
"""
|
158
|
-
|
159
|
-
self._available_instance_types = available_instance_types
|
160
|
-
|
161
|
-
def to_dict(self):
|
162
|
-
"""Returns the model properties as a dict"""
|
163
|
-
result = {}
|
164
|
-
|
165
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
166
|
-
value = getattr(self, attr)
|
167
|
-
if isinstance(value, list):
|
168
|
-
result[attr] = list(map(
|
169
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
170
|
-
value
|
171
|
-
))
|
172
|
-
elif hasattr(value, "to_dict"):
|
173
|
-
result[attr] = value.to_dict()
|
174
|
-
elif isinstance(value, dict):
|
175
|
-
result[attr] = dict(map(
|
176
|
-
lambda item: (item[0], item[1].to_dict())
|
177
|
-
if hasattr(item[1], "to_dict") else item,
|
178
|
-
value.items()
|
179
|
-
))
|
180
|
-
else:
|
181
|
-
result[attr] = value
|
182
|
-
|
183
|
-
return result
|
184
|
-
|
185
|
-
def to_str(self):
|
186
|
-
"""Returns the string representation of the model"""
|
187
|
-
return pprint.pformat(self.to_dict())
|
188
|
-
|
189
|
-
def __repr__(self):
|
190
|
-
"""For `print` and `pprint`"""
|
191
|
-
return self.to_str()
|
192
|
-
|
193
|
-
def __eq__(self, other):
|
194
|
-
"""Returns true if both objects are equal"""
|
195
|
-
if not isinstance(other, ProviderMetadata):
|
196
|
-
return False
|
197
|
-
|
198
|
-
return self.to_dict() == other.to_dict()
|
199
|
-
|
200
|
-
def __ne__(self, other):
|
201
|
-
"""Returns true if both objects are not equal"""
|
202
|
-
if not isinstance(other, ProviderMetadata):
|
203
|
-
return True
|
204
|
-
|
205
|
-
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 ProvidermetadataResponse(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': 'ProviderMetadata'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""ProvidermetadataResponse - 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 ProvidermetadataResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this ProvidermetadataResponse. # noqa: E501
|
60
|
-
:rtype: ProviderMetadata
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this ProvidermetadataResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this ProvidermetadataResponse. # noqa: E501
|
70
|
-
:type: ProviderMetadata
|
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, ProvidermetadataResponse):
|
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, ProvidermetadataResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|