anyscale 0.26.2__py3-none-any.whl → 0.26.4__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/docgen/models.md +2 -1
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/client/README.md +3 -43
- anyscale/client/openapi_client/__init__.py +0 -26
- anyscale/client/openapi_client/api/default_api.py +368 -2030
- anyscale/client/openapi_client/models/__init__.py +0 -26
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +29 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/job/_private/job_sdk.py +4 -0
- 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.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
- anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
- anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
- anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
- anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
- anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
- anyscale/client/openapi_client/models/aica_model.py +0 -398
- anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
- anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
- anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
- anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
- anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
- anyscale/client/openapi_client/models/aws_credentials.py +0 -181
- anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/import_aica_model.py +0 -241
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/log_details.py +0 -151
- anyscale/client/openapi_client/models/logdetails_response.py +0 -121
- anyscale/client/openapi_client/models/named_entity.py +0 -148
- 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/update_endpoint.py +0 -152
- anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1,148 +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 NamedEntity(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
|
-
'id': 'str'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'name': 'name',
|
42
|
-
'id': 'id'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, name=None, id=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""NamedEntity - 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._id = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.name = name
|
56
|
-
self.id = id
|
57
|
-
|
58
|
-
@property
|
59
|
-
def name(self):
|
60
|
-
"""Gets the name of this NamedEntity. # noqa: E501
|
61
|
-
|
62
|
-
|
63
|
-
:return: The name of this NamedEntity. # noqa: E501
|
64
|
-
:rtype: str
|
65
|
-
"""
|
66
|
-
return self._name
|
67
|
-
|
68
|
-
@name.setter
|
69
|
-
def name(self, name):
|
70
|
-
"""Sets the name of this NamedEntity.
|
71
|
-
|
72
|
-
|
73
|
-
:param name: The name of this NamedEntity. # noqa: E501
|
74
|
-
:type: str
|
75
|
-
"""
|
76
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
77
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
78
|
-
|
79
|
-
self._name = name
|
80
|
-
|
81
|
-
@property
|
82
|
-
def id(self):
|
83
|
-
"""Gets the id of this NamedEntity. # noqa: E501
|
84
|
-
|
85
|
-
|
86
|
-
:return: The id of this NamedEntity. # noqa: E501
|
87
|
-
:rtype: str
|
88
|
-
"""
|
89
|
-
return self._id
|
90
|
-
|
91
|
-
@id.setter
|
92
|
-
def id(self, id):
|
93
|
-
"""Sets the id of this NamedEntity.
|
94
|
-
|
95
|
-
|
96
|
-
:param id: The id of this NamedEntity. # noqa: E501
|
97
|
-
:type: str
|
98
|
-
"""
|
99
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
100
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
101
|
-
|
102
|
-
self._id = id
|
103
|
-
|
104
|
-
def to_dict(self):
|
105
|
-
"""Returns the model properties as a dict"""
|
106
|
-
result = {}
|
107
|
-
|
108
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
-
value = getattr(self, attr)
|
110
|
-
if isinstance(value, list):
|
111
|
-
result[attr] = list(map(
|
112
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
-
value
|
114
|
-
))
|
115
|
-
elif hasattr(value, "to_dict"):
|
116
|
-
result[attr] = value.to_dict()
|
117
|
-
elif isinstance(value, dict):
|
118
|
-
result[attr] = dict(map(
|
119
|
-
lambda item: (item[0], item[1].to_dict())
|
120
|
-
if hasattr(item[1], "to_dict") else item,
|
121
|
-
value.items()
|
122
|
-
))
|
123
|
-
else:
|
124
|
-
result[attr] = value
|
125
|
-
|
126
|
-
return result
|
127
|
-
|
128
|
-
def to_str(self):
|
129
|
-
"""Returns the string representation of the model"""
|
130
|
-
return pprint.pformat(self.to_dict())
|
131
|
-
|
132
|
-
def __repr__(self):
|
133
|
-
"""For `print` and `pprint`"""
|
134
|
-
return self.to_str()
|
135
|
-
|
136
|
-
def __eq__(self, other):
|
137
|
-
"""Returns true if both objects are equal"""
|
138
|
-
if not isinstance(other, NamedEntity):
|
139
|
-
return False
|
140
|
-
|
141
|
-
return self.to_dict() == other.to_dict()
|
142
|
-
|
143
|
-
def __ne__(self, other):
|
144
|
-
"""Returns true if both objects are not equal"""
|
145
|
-
if not isinstance(other, NamedEntity):
|
146
|
-
return True
|
147
|
-
|
148
|
-
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()
|
@@ -1,152 +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 UpdateEndpoint(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
|
-
'endpoint_id': 'str',
|
37
|
-
'model_deployments': 'list[UpdateModelDeployment]'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'endpoint_id': 'endpoint_id',
|
42
|
-
'model_deployments': 'model_deployments'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, endpoint_id=None, model_deployments=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""UpdateEndpoint - 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._endpoint_id = None
|
52
|
-
self._model_deployments = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.endpoint_id = endpoint_id
|
56
|
-
self.model_deployments = model_deployments
|
57
|
-
|
58
|
-
@property
|
59
|
-
def endpoint_id(self):
|
60
|
-
"""Gets the endpoint_id of this UpdateEndpoint. # noqa: E501
|
61
|
-
|
62
|
-
Id of the endpoint to be updated. # noqa: E501
|
63
|
-
|
64
|
-
:return: The endpoint_id of this UpdateEndpoint. # noqa: E501
|
65
|
-
:rtype: str
|
66
|
-
"""
|
67
|
-
return self._endpoint_id
|
68
|
-
|
69
|
-
@endpoint_id.setter
|
70
|
-
def endpoint_id(self, endpoint_id):
|
71
|
-
"""Sets the endpoint_id of this UpdateEndpoint.
|
72
|
-
|
73
|
-
Id of the endpoint to be updated. # noqa: E501
|
74
|
-
|
75
|
-
:param endpoint_id: The endpoint_id of this UpdateEndpoint. # noqa: E501
|
76
|
-
:type: str
|
77
|
-
"""
|
78
|
-
if self.local_vars_configuration.client_side_validation and endpoint_id is None: # noqa: E501
|
79
|
-
raise ValueError("Invalid value for `endpoint_id`, must not be `None`") # noqa: E501
|
80
|
-
|
81
|
-
self._endpoint_id = endpoint_id
|
82
|
-
|
83
|
-
@property
|
84
|
-
def model_deployments(self):
|
85
|
-
"""Gets the model_deployments of this UpdateEndpoint. # noqa: E501
|
86
|
-
|
87
|
-
The configuration for the endpoints model. # noqa: E501
|
88
|
-
|
89
|
-
:return: The model_deployments of this UpdateEndpoint. # noqa: E501
|
90
|
-
:rtype: list[UpdateModelDeployment]
|
91
|
-
"""
|
92
|
-
return self._model_deployments
|
93
|
-
|
94
|
-
@model_deployments.setter
|
95
|
-
def model_deployments(self, model_deployments):
|
96
|
-
"""Sets the model_deployments of this UpdateEndpoint.
|
97
|
-
|
98
|
-
The configuration for the endpoints model. # noqa: E501
|
99
|
-
|
100
|
-
:param model_deployments: The model_deployments of this UpdateEndpoint. # noqa: E501
|
101
|
-
:type: list[UpdateModelDeployment]
|
102
|
-
"""
|
103
|
-
if self.local_vars_configuration.client_side_validation and model_deployments is None: # noqa: E501
|
104
|
-
raise ValueError("Invalid value for `model_deployments`, must not be `None`") # noqa: E501
|
105
|
-
|
106
|
-
self._model_deployments = model_deployments
|
107
|
-
|
108
|
-
def to_dict(self):
|
109
|
-
"""Returns the model properties as a dict"""
|
110
|
-
result = {}
|
111
|
-
|
112
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
113
|
-
value = getattr(self, attr)
|
114
|
-
if isinstance(value, list):
|
115
|
-
result[attr] = list(map(
|
116
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
117
|
-
value
|
118
|
-
))
|
119
|
-
elif hasattr(value, "to_dict"):
|
120
|
-
result[attr] = value.to_dict()
|
121
|
-
elif isinstance(value, dict):
|
122
|
-
result[attr] = dict(map(
|
123
|
-
lambda item: (item[0], item[1].to_dict())
|
124
|
-
if hasattr(item[1], "to_dict") else item,
|
125
|
-
value.items()
|
126
|
-
))
|
127
|
-
else:
|
128
|
-
result[attr] = value
|
129
|
-
|
130
|
-
return result
|
131
|
-
|
132
|
-
def to_str(self):
|
133
|
-
"""Returns the string representation of the model"""
|
134
|
-
return pprint.pformat(self.to_dict())
|
135
|
-
|
136
|
-
def __repr__(self):
|
137
|
-
"""For `print` and `pprint`"""
|
138
|
-
return self.to_str()
|
139
|
-
|
140
|
-
def __eq__(self, other):
|
141
|
-
"""Returns true if both objects are equal"""
|
142
|
-
if not isinstance(other, UpdateEndpoint):
|
143
|
-
return False
|
144
|
-
|
145
|
-
return self.to_dict() == other.to_dict()
|
146
|
-
|
147
|
-
def __ne__(self, other):
|
148
|
-
"""Returns true if both objects are not equal"""
|
149
|
-
if not isinstance(other, UpdateEndpoint):
|
150
|
-
return True
|
151
|
-
|
152
|
-
return self.to_dict() != other.to_dict()
|