anyscale 0.26.1__py3-none-any.whl → 0.26.3__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.
Files changed (44) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +13 -1
  2. anyscale/_private/anyscale_client/common.py +1 -1
  3. anyscale/_private/docgen/models.md +2 -2
  4. anyscale/client/README.md +11 -33
  5. anyscale/client/openapi_client/__init__.py +9 -20
  6. anyscale/client/openapi_client/api/default_api.py +226 -1544
  7. anyscale/client/openapi_client/models/__init__.py +9 -20
  8. anyscale/client/openapi_client/models/{aica_endpoint_scope.py → actor_status.py} +7 -9
  9. anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
  10. anyscale/client/openapi_client/models/{named_entity.py → job_details.py} +60 -35
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  12. anyscale/client/openapi_client/models/{aica_endpoint_event_level.py → run_attempt_status.py} +10 -10
  13. anyscale/client/openapi_client/models/{aicamodel_response.py → run_status.py} +19 -34
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
  15. anyscale/client/openapi_client/models/{aicaendpoint_response.py → train_resources.py} +22 -22
  16. anyscale/client/openapi_client/models/train_run.py +387 -0
  17. anyscale/client/openapi_client/models/train_run_attempt.py +308 -0
  18. anyscale/client/openapi_client/models/train_worker.py +363 -0
  19. anyscale/client/openapi_client/models/{aicamodel_list_response.py → trainrun_list_response.py} +15 -15
  20. anyscale/sdk/anyscale_client/models/baseimagesenum.py +59 -1
  21. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +59 -1
  22. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/RECORD +30 -41
  26. anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
  27. anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
  28. anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
  29. anyscale/client/openapi_client/models/aica_model.py +0 -398
  30. anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
  31. anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
  32. anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
  33. anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
  34. anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
  35. anyscale/client/openapi_client/models/aws_credentials.py +0 -181
  36. anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
  37. anyscale/client/openapi_client/models/import_aica_model.py +0 -241
  38. anyscale/client/openapi_client/models/update_endpoint.py +0 -152
  39. anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
  40. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/LICENSE +0 -0
  41. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/NOTICE +0 -0
  42. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/WHEEL +0 -0
  43. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/entry_points.txt +0 -0
  44. {anyscale-0.26.1.dist-info → anyscale-0.26.3.dist-info}/top_level.txt +0 -0
@@ -1,209 +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 AicaModelConfiguration(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
- 'title': 'str',
37
- 'supported_clouds': 'list[CloudProviders]',
38
- 'model_config': 'object',
39
- 'model_compute_config': 'dict(str, list[object])'
40
- }
41
-
42
- attribute_map = {
43
- 'title': 'title',
44
- 'supported_clouds': 'supported_clouds',
45
- 'model_config': 'model_config',
46
- 'model_compute_config': 'model_compute_config'
47
- }
48
-
49
- def __init__(self, title=None, supported_clouds=None, model_config=None, model_compute_config=None, local_vars_configuration=None): # noqa: E501
50
- """AicaModelConfiguration - 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._title = None
56
- self._supported_clouds = None
57
- self._model_config = None
58
- self._model_compute_config = None
59
- self.discriminator = None
60
-
61
- self.title = title
62
- self.supported_clouds = supported_clouds
63
- self.model_config = model_config
64
- if model_compute_config is not None:
65
- self.model_compute_config = model_compute_config
66
-
67
- @property
68
- def title(self):
69
- """Gets the title of this AicaModelConfiguration. # noqa: E501
70
-
71
- Model configuration title # noqa: E501
72
-
73
- :return: The title of this AicaModelConfiguration. # noqa: E501
74
- :rtype: str
75
- """
76
- return self._title
77
-
78
- @title.setter
79
- def title(self, title):
80
- """Sets the title of this AicaModelConfiguration.
81
-
82
- Model configuration title # noqa: E501
83
-
84
- :param title: The title of this AicaModelConfiguration. # noqa: E501
85
- :type: str
86
- """
87
- if self.local_vars_configuration.client_side_validation and title is None: # noqa: E501
88
- raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501
89
-
90
- self._title = title
91
-
92
- @property
93
- def supported_clouds(self):
94
- """Gets the supported_clouds of this AicaModelConfiguration. # noqa: E501
95
-
96
- List of clouds that support this model configuration # noqa: E501
97
-
98
- :return: The supported_clouds of this AicaModelConfiguration. # noqa: E501
99
- :rtype: list[CloudProviders]
100
- """
101
- return self._supported_clouds
102
-
103
- @supported_clouds.setter
104
- def supported_clouds(self, supported_clouds):
105
- """Sets the supported_clouds of this AicaModelConfiguration.
106
-
107
- List of clouds that support this model configuration # noqa: E501
108
-
109
- :param supported_clouds: The supported_clouds of this AicaModelConfiguration. # noqa: E501
110
- :type: list[CloudProviders]
111
- """
112
- if self.local_vars_configuration.client_side_validation and supported_clouds is None: # noqa: E501
113
- raise ValueError("Invalid value for `supported_clouds`, must not be `None`") # noqa: E501
114
-
115
- self._supported_clouds = supported_clouds
116
-
117
- @property
118
- def model_config(self):
119
- """Gets the model_config of this AicaModelConfiguration. # noqa: E501
120
-
121
- Model configuration # noqa: E501
122
-
123
- :return: The model_config of this AicaModelConfiguration. # noqa: E501
124
- :rtype: object
125
- """
126
- return self._model_config
127
-
128
- @model_config.setter
129
- def model_config(self, model_config):
130
- """Sets the model_config of this AicaModelConfiguration.
131
-
132
- Model configuration # noqa: E501
133
-
134
- :param model_config: The model_config of this AicaModelConfiguration. # noqa: E501
135
- :type: object
136
- """
137
- if self.local_vars_configuration.client_side_validation and model_config is None: # noqa: E501
138
- raise ValueError("Invalid value for `model_config`, must not be `None`") # noqa: E501
139
-
140
- self._model_config = model_config
141
-
142
- @property
143
- def model_compute_config(self):
144
- """Gets the model_compute_config of this AicaModelConfiguration. # noqa: E501
145
-
146
- Compute configuration # noqa: E501
147
-
148
- :return: The model_compute_config of this AicaModelConfiguration. # noqa: E501
149
- :rtype: dict(str, list[object])
150
- """
151
- return self._model_compute_config
152
-
153
- @model_compute_config.setter
154
- def model_compute_config(self, model_compute_config):
155
- """Sets the model_compute_config of this AicaModelConfiguration.
156
-
157
- Compute configuration # noqa: E501
158
-
159
- :param model_compute_config: The model_compute_config of this AicaModelConfiguration. # noqa: E501
160
- :type: dict(str, list[object])
161
- """
162
-
163
- self._model_compute_config = model_compute_config
164
-
165
- def to_dict(self):
166
- """Returns the model properties as a dict"""
167
- result = {}
168
-
169
- for attr, _ in six.iteritems(self.openapi_types):
170
- value = getattr(self, attr)
171
- if isinstance(value, list):
172
- result[attr] = list(map(
173
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
174
- value
175
- ))
176
- elif hasattr(value, "to_dict"):
177
- result[attr] = value.to_dict()
178
- elif isinstance(value, dict):
179
- result[attr] = dict(map(
180
- lambda item: (item[0], item[1].to_dict())
181
- if hasattr(item[1], "to_dict") else item,
182
- value.items()
183
- ))
184
- else:
185
- result[attr] = value
186
-
187
- return result
188
-
189
- def to_str(self):
190
- """Returns the string representation of the model"""
191
- return pprint.pformat(self.to_dict())
192
-
193
- def __repr__(self):
194
- """For `print` and `pprint`"""
195
- return self.to_str()
196
-
197
- def __eq__(self, other):
198
- """Returns true if both objects are equal"""
199
- if not isinstance(other, AicaModelConfiguration):
200
- return False
201
-
202
- return self.to_dict() == other.to_dict()
203
-
204
- def __ne__(self, other):
205
- """Returns true if both objects are not equal"""
206
- if not isinstance(other, AicaModelConfiguration):
207
- return True
208
-
209
- return self.to_dict() != other.to_dict()
@@ -1,178 +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 AicaObservabilityUrls(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
- 'dashboard_url': 'str',
37
- 'dashboard_alerting_url': 'str',
38
- 'dashboard_embedding_url': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'dashboard_url': 'dashboard_url',
43
- 'dashboard_alerting_url': 'dashboard_alerting_url',
44
- 'dashboard_embedding_url': 'dashboard_embedding_url'
45
- }
46
-
47
- def __init__(self, dashboard_url=None, dashboard_alerting_url=None, dashboard_embedding_url=None, local_vars_configuration=None): # noqa: E501
48
- """AicaObservabilityUrls - 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._dashboard_url = None
54
- self._dashboard_alerting_url = None
55
- self._dashboard_embedding_url = None
56
- self.discriminator = None
57
-
58
- if dashboard_url is not None:
59
- self.dashboard_url = dashboard_url
60
- if dashboard_alerting_url is not None:
61
- self.dashboard_alerting_url = dashboard_alerting_url
62
- if dashboard_embedding_url is not None:
63
- self.dashboard_embedding_url = dashboard_embedding_url
64
-
65
- @property
66
- def dashboard_url(self):
67
- """Gets the dashboard_url of this AicaObservabilityUrls. # noqa: E501
68
-
69
- URL of the Grafana dashboard. # noqa: E501
70
-
71
- :return: The dashboard_url of this AicaObservabilityUrls. # noqa: E501
72
- :rtype: str
73
- """
74
- return self._dashboard_url
75
-
76
- @dashboard_url.setter
77
- def dashboard_url(self, dashboard_url):
78
- """Sets the dashboard_url of this AicaObservabilityUrls.
79
-
80
- URL of the Grafana dashboard. # noqa: E501
81
-
82
- :param dashboard_url: The dashboard_url of this AicaObservabilityUrls. # noqa: E501
83
- :type: str
84
- """
85
-
86
- self._dashboard_url = dashboard_url
87
-
88
- @property
89
- def dashboard_alerting_url(self):
90
- """Gets the dashboard_alerting_url of this AicaObservabilityUrls. # noqa: E501
91
-
92
- URL of the Grafana dashboard for alerting. # noqa: E501
93
-
94
- :return: The dashboard_alerting_url of this AicaObservabilityUrls. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._dashboard_alerting_url
98
-
99
- @dashboard_alerting_url.setter
100
- def dashboard_alerting_url(self, dashboard_alerting_url):
101
- """Sets the dashboard_alerting_url of this AicaObservabilityUrls.
102
-
103
- URL of the Grafana dashboard for alerting. # noqa: E501
104
-
105
- :param dashboard_alerting_url: The dashboard_alerting_url of this AicaObservabilityUrls. # noqa: E501
106
- :type: str
107
- """
108
-
109
- self._dashboard_alerting_url = dashboard_alerting_url
110
-
111
- @property
112
- def dashboard_embedding_url(self):
113
- """Gets the dashboard_embedding_url of this AicaObservabilityUrls. # noqa: E501
114
-
115
- URL of the Grafana dashboard for embedding. # noqa: E501
116
-
117
- :return: The dashboard_embedding_url of this AicaObservabilityUrls. # noqa: E501
118
- :rtype: str
119
- """
120
- return self._dashboard_embedding_url
121
-
122
- @dashboard_embedding_url.setter
123
- def dashboard_embedding_url(self, dashboard_embedding_url):
124
- """Sets the dashboard_embedding_url of this AicaObservabilityUrls.
125
-
126
- URL of the Grafana dashboard for embedding. # noqa: E501
127
-
128
- :param dashboard_embedding_url: The dashboard_embedding_url of this AicaObservabilityUrls. # noqa: E501
129
- :type: str
130
- """
131
-
132
- self._dashboard_embedding_url = dashboard_embedding_url
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, AicaObservabilityUrls):
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, AicaObservabilityUrls):
176
- return True
177
-
178
- return self.to_dict() != other.to_dict()
@@ -1,147 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Managed Ray API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- import pprint
14
- import re # noqa: F401
15
-
16
- import six
17
-
18
- from openapi_client.configuration import Configuration
19
-
20
-
21
- class AicaendpointListResponse(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
- 'results': 'list[AicaEndpoint]',
37
- 'metadata': 'ListResponseMetadata'
38
- }
39
-
40
- attribute_map = {
41
- 'results': 'results',
42
- 'metadata': 'metadata'
43
- }
44
-
45
- def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """AicaendpointListResponse - 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._results = None
52
- self._metadata = None
53
- self.discriminator = None
54
-
55
- self.results = results
56
- if metadata is not None:
57
- self.metadata = metadata
58
-
59
- @property
60
- def results(self):
61
- """Gets the results of this AicaendpointListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this AicaendpointListResponse. # noqa: E501
65
- :rtype: list[AicaEndpoint]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this AicaendpointListResponse.
72
-
73
-
74
- :param results: The results of this AicaendpointListResponse. # noqa: E501
75
- :type: list[AicaEndpoint]
76
- """
77
- if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
- raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
-
80
- self._results = results
81
-
82
- @property
83
- def metadata(self):
84
- """Gets the metadata of this AicaendpointListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this AicaendpointListResponse. # noqa: E501
88
- :rtype: ListResponseMetadata
89
- """
90
- return self._metadata
91
-
92
- @metadata.setter
93
- def metadata(self, metadata):
94
- """Sets the metadata of this AicaendpointListResponse.
95
-
96
-
97
- :param metadata: The metadata of this AicaendpointListResponse. # noqa: E501
98
- :type: ListResponseMetadata
99
- """
100
-
101
- self._metadata = metadata
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict"""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.openapi_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(
111
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
- value
113
- ))
114
- elif hasattr(value, "to_dict"):
115
- result[attr] = value.to_dict()
116
- elif isinstance(value, dict):
117
- result[attr] = dict(map(
118
- lambda item: (item[0], item[1].to_dict())
119
- if hasattr(item[1], "to_dict") else item,
120
- value.items()
121
- ))
122
- else:
123
- result[attr] = value
124
-
125
- return result
126
-
127
- def to_str(self):
128
- """Returns the string representation of the model"""
129
- return pprint.pformat(self.to_dict())
130
-
131
- def __repr__(self):
132
- """For `print` and `pprint`"""
133
- return self.to_str()
134
-
135
- def __eq__(self, other):
136
- """Returns true if both objects are equal"""
137
- if not isinstance(other, AicaendpointListResponse):
138
- return False
139
-
140
- return self.to_dict() == other.to_dict()
141
-
142
- def __ne__(self, other):
143
- """Returns true if both objects are not equal"""
144
- if not isinstance(other, AicaendpointListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()
@@ -1,147 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Managed Ray API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- import pprint
14
- import re # noqa: F401
15
-
16
- import six
17
-
18
- from openapi_client.configuration import Configuration
19
-
20
-
21
- class AicaendpointeventListResponse(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
- 'results': 'list[AicaEndpointEvent]',
37
- 'metadata': 'ListResponseMetadata'
38
- }
39
-
40
- attribute_map = {
41
- 'results': 'results',
42
- 'metadata': 'metadata'
43
- }
44
-
45
- def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """AicaendpointeventListResponse - 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._results = None
52
- self._metadata = None
53
- self.discriminator = None
54
-
55
- self.results = results
56
- if metadata is not None:
57
- self.metadata = metadata
58
-
59
- @property
60
- def results(self):
61
- """Gets the results of this AicaendpointeventListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this AicaendpointeventListResponse. # noqa: E501
65
- :rtype: list[AicaEndpointEvent]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this AicaendpointeventListResponse.
72
-
73
-
74
- :param results: The results of this AicaendpointeventListResponse. # noqa: E501
75
- :type: list[AicaEndpointEvent]
76
- """
77
- if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
- raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
-
80
- self._results = results
81
-
82
- @property
83
- def metadata(self):
84
- """Gets the metadata of this AicaendpointeventListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this AicaendpointeventListResponse. # noqa: E501
88
- :rtype: ListResponseMetadata
89
- """
90
- return self._metadata
91
-
92
- @metadata.setter
93
- def metadata(self, metadata):
94
- """Sets the metadata of this AicaendpointeventListResponse.
95
-
96
-
97
- :param metadata: The metadata of this AicaendpointeventListResponse. # noqa: E501
98
- :type: ListResponseMetadata
99
- """
100
-
101
- self._metadata = metadata
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict"""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.openapi_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(
111
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
- value
113
- ))
114
- elif hasattr(value, "to_dict"):
115
- result[attr] = value.to_dict()
116
- elif isinstance(value, dict):
117
- result[attr] = dict(map(
118
- lambda item: (item[0], item[1].to_dict())
119
- if hasattr(item[1], "to_dict") else item,
120
- value.items()
121
- ))
122
- else:
123
- result[attr] = value
124
-
125
- return result
126
-
127
- def to_str(self):
128
- """Returns the string representation of the model"""
129
- return pprint.pformat(self.to_dict())
130
-
131
- def __repr__(self):
132
- """For `print` and `pprint`"""
133
- return self.to_str()
134
-
135
- def __eq__(self, other):
136
- """Returns true if both objects are equal"""
137
- if not isinstance(other, AicaendpointeventListResponse):
138
- return False
139
-
140
- return self.to_dict() == other.to_dict()
141
-
142
- def __ne__(self, other):
143
- """Returns true if both objects are not equal"""
144
- if not isinstance(other, AicaendpointeventListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()