anyscale 0.26.47__py3-none-any.whl → 0.26.49__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/__init__.py +0 -7
- anyscale/_private/anyscale_client/README.md +115 -0
- anyscale/_private/anyscale_client/anyscale_client.py +12 -213
- anyscale/_private/anyscale_client/common.py +0 -55
- anyscale/_private/anyscale_client/fake_anyscale_client.py +19 -46
- anyscale/_private/docgen/__main__.py +32 -47
- anyscale/_private/docgen/generator.py +32 -16
- anyscale/_private/docgen/generator_legacy.py +58 -6
- anyscale/_private/docgen/models.md +3 -2
- anyscale/_private/workload/workload_config.py +16 -8
- anyscale/_private/workload/workload_sdk.py +24 -7
- anyscale/client/README.md +10 -2
- anyscale/client/openapi_client/__init__.py +6 -2
- anyscale/client/openapi_client/api/default_api.py +558 -8
- anyscale/client/openapi_client/models/__init__.py +6 -2
- anyscale/client/openapi_client/models/{alert_type.py → alert_issue_type.py} +8 -20
- anyscale/client/openapi_client/models/baseimagesenum.py +1 -2
- anyscale/client/openapi_client/models/cloud.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +30 -3
- anyscale/client/openapi_client/models/cloud_with_cloud_resource.py +29 -1
- anyscale/client/openapi_client/models/cloud_with_cloud_resource_gcp.py +29 -1
- anyscale/client/openapi_client/models/dataset_metrics.py +6 -6
- anyscale/client/openapi_client/models/dataset_state.py +2 -1
- anyscale/client/openapi_client/models/decorated_cloud_deployment.py +481 -0
- anyscale/client/openapi_client/models/decoratedclouddeployment_response.py +121 -0
- anyscale/client/openapi_client/models/describe_system_workload_response.py +32 -6
- anyscale/client/openapi_client/models/experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/experimental_workspaces_sort_field.py +2 -1
- anyscale/client/openapi_client/models/metrics_query_response.py +121 -0
- anyscale/client/openapi_client/models/{clouddeployment_response.py → metricsqueryresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/operator_metrics.py +8 -9
- anyscale/client/openapi_client/models/operator_status.py +102 -0
- anyscale/client/openapi_client/models/organization_usage_alert.py +20 -20
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/cloud/models.py +330 -0
- anyscale/commands/cloud_commands.py +136 -44
- anyscale/commands/command_examples.py +54 -134
- anyscale/commands/compute_config_commands.py +7 -11
- anyscale/compute_config/__init__.py +2 -16
- anyscale/compute_config/_private/compute_config_sdk.py +27 -17
- anyscale/compute_config/commands.py +14 -44
- anyscale/compute_config/models.py +49 -26
- anyscale/controllers/cloud_controller.py +289 -171
- anyscale/controllers/cloud_file_storage_utils.py +204 -0
- anyscale/controllers/kubernetes_verifier.py +1570 -0
- anyscale/job/_private/job_sdk.py +17 -8
- anyscale/job/models.py +1 -1
- anyscale/scripts.py +0 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +1 -2
- anyscale/sdk/anyscale_client/models/cloud.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +1 -2
- anyscale/shared_anyscale_utils/headers.py +3 -0
- anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +14 -7
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/METADATA +1 -1
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/RECORD +62 -73
- anyscale/commands/llm/dataset_commands.py +0 -269
- anyscale/commands/llm/group.py +0 -15
- anyscale/commands/llm/models_commands.py +0 -123
- anyscale/controllers/llm/__init__.py +0 -0
- anyscale/controllers/llm/models_controller.py +0 -144
- anyscale/llm/__init__.py +0 -2
- anyscale/llm/dataset/__init__.py +0 -2
- anyscale/llm/dataset/_private/__init__.py +0 -0
- anyscale/llm/dataset/_private/docs.py +0 -63
- anyscale/llm/dataset/_private/models.py +0 -71
- anyscale/llm/dataset/_private/sdk.py +0 -147
- anyscale/llm/model/__init__.py +0 -2
- anyscale/llm/model/_private/models_sdk.py +0 -62
- anyscale/llm/model/commands.py +0 -93
- anyscale/llm/model/models.py +0 -171
- anyscale/llm/model/sdk.py +0 -62
- anyscale/llm/sdk.py +0 -27
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/WHEEL +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.47.dist-info → anyscale-0.26.49.dist-info}/top_level.txt +0 -0
@@ -54,6 +54,7 @@ class ExperimentalWorkspace(object):
|
|
54
54
|
'template_url': 'str',
|
55
55
|
'snapshot_error_at': 'datetime',
|
56
56
|
'snapshot_state': 'WorkspaceSnapshotStates',
|
57
|
+
'latest_started_at': 'datetime',
|
57
58
|
'state': 'SessionState',
|
58
59
|
'integration_details': 'IntegrationDetails'
|
59
60
|
}
|
@@ -80,11 +81,12 @@ class ExperimentalWorkspace(object):
|
|
80
81
|
'template_url': 'template_url',
|
81
82
|
'snapshot_error_at': 'snapshot_error_at',
|
82
83
|
'snapshot_state': 'snapshot_state',
|
84
|
+
'latest_started_at': 'latest_started_at',
|
83
85
|
'state': 'state',
|
84
86
|
'integration_details': 'integration_details'
|
85
87
|
}
|
86
88
|
|
87
|
-
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, id=None, created_at=None, creator_id=None, creator_email=None, creator_deleted_at=None, organization_id=None, is_deleted=None, cluster_id=None, environment_id=None, cluster_environment_build_id=None, current_state=None, integration_execution_details_id=None, template_url=None, snapshot_error_at=None, snapshot_state=None, state=None, integration_details=None, local_vars_configuration=None): # noqa: E501
|
89
|
+
def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, id=None, created_at=None, creator_id=None, creator_email=None, creator_deleted_at=None, organization_id=None, is_deleted=None, cluster_id=None, environment_id=None, cluster_environment_build_id=None, current_state=None, integration_execution_details_id=None, template_url=None, snapshot_error_at=None, snapshot_state=None, latest_started_at=None, state=None, integration_details=None, local_vars_configuration=None): # noqa: E501
|
88
90
|
"""ExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
|
89
91
|
if local_vars_configuration is None:
|
90
92
|
local_vars_configuration = Configuration()
|
@@ -111,6 +113,7 @@ class ExperimentalWorkspace(object):
|
|
111
113
|
self._template_url = None
|
112
114
|
self._snapshot_error_at = None
|
113
115
|
self._snapshot_state = None
|
116
|
+
self._latest_started_at = None
|
114
117
|
self._state = None
|
115
118
|
self._integration_details = None
|
116
119
|
self.discriminator = None
|
@@ -147,6 +150,8 @@ class ExperimentalWorkspace(object):
|
|
147
150
|
self.snapshot_error_at = snapshot_error_at
|
148
151
|
if snapshot_state is not None:
|
149
152
|
self.snapshot_state = snapshot_state
|
153
|
+
if latest_started_at is not None:
|
154
|
+
self.latest_started_at = latest_started_at
|
150
155
|
if state is not None:
|
151
156
|
self.state = state
|
152
157
|
if integration_details is not None:
|
@@ -655,6 +660,29 @@ class ExperimentalWorkspace(object):
|
|
655
660
|
|
656
661
|
self._snapshot_state = snapshot_state
|
657
662
|
|
663
|
+
@property
|
664
|
+
def latest_started_at(self):
|
665
|
+
"""Gets the latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
666
|
+
|
667
|
+
The time at which the workspace was last started. # noqa: E501
|
668
|
+
|
669
|
+
:return: The latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
670
|
+
:rtype: datetime
|
671
|
+
"""
|
672
|
+
return self._latest_started_at
|
673
|
+
|
674
|
+
@latest_started_at.setter
|
675
|
+
def latest_started_at(self, latest_started_at):
|
676
|
+
"""Sets the latest_started_at of this ExperimentalWorkspace.
|
677
|
+
|
678
|
+
The time at which the workspace was last started. # noqa: E501
|
679
|
+
|
680
|
+
:param latest_started_at: The latest_started_at of this ExperimentalWorkspace. # noqa: E501
|
681
|
+
:type: datetime
|
682
|
+
"""
|
683
|
+
|
684
|
+
self._latest_started_at = latest_started_at
|
685
|
+
|
658
686
|
@property
|
659
687
|
def state(self):
|
660
688
|
"""Gets the state of this ExperimentalWorkspace. # noqa: E501
|
@@ -30,8 +30,9 @@ class ExperimentalWorkspacesSortField(object):
|
|
30
30
|
"""
|
31
31
|
STATUS = "STATUS"
|
32
32
|
CREATED_AT = "CREATED_AT"
|
33
|
+
LATEST_STARTED_AT = "LATEST_STARTED_AT"
|
33
34
|
|
34
|
-
allowable_values = [STATUS, CREATED_AT] # noqa: E501
|
35
|
+
allowable_values = [STATUS, CREATED_AT, LATEST_STARTED_AT] # noqa: E501
|
35
36
|
|
36
37
|
"""
|
37
38
|
Attributes:
|
@@ -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 MetricsQueryResponse(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
|
+
'data': 'object'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'data': 'data'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, data=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""MetricsQueryResponse - 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._data = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.data = data
|
53
|
+
|
54
|
+
@property
|
55
|
+
def data(self):
|
56
|
+
"""Gets the data of this MetricsQueryResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The data of this MetricsQueryResponse. # noqa: E501
|
60
|
+
:rtype: object
|
61
|
+
"""
|
62
|
+
return self._data
|
63
|
+
|
64
|
+
@data.setter
|
65
|
+
def data(self, data):
|
66
|
+
"""Sets the data of this MetricsQueryResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param data: The data of this MetricsQueryResponse. # noqa: E501
|
70
|
+
:type: object
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and data is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._data = data
|
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, MetricsQueryResponse):
|
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, MetricsQueryResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class MetricsqueryresponseResponse(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,7 +33,7 @@ class ClouddeploymentResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'result': '
|
36
|
+
'result': 'MetricsQueryResponse'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
@@ -41,7 +41,7 @@ class ClouddeploymentResponse(object):
|
|
41
41
|
}
|
42
42
|
|
43
43
|
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""
|
44
|
+
"""MetricsqueryresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
45
45
|
if local_vars_configuration is None:
|
46
46
|
local_vars_configuration = Configuration()
|
47
47
|
self.local_vars_configuration = local_vars_configuration
|
@@ -53,21 +53,21 @@ class ClouddeploymentResponse(object):
|
|
53
53
|
|
54
54
|
@property
|
55
55
|
def result(self):
|
56
|
-
"""Gets the result of this
|
56
|
+
"""Gets the result of this MetricsqueryresponseResponse. # noqa: E501
|
57
57
|
|
58
58
|
|
59
|
-
:return: The result of this
|
60
|
-
:rtype:
|
59
|
+
:return: The result of this MetricsqueryresponseResponse. # noqa: E501
|
60
|
+
:rtype: MetricsQueryResponse
|
61
61
|
"""
|
62
62
|
return self._result
|
63
63
|
|
64
64
|
@result.setter
|
65
65
|
def result(self, result):
|
66
|
-
"""Sets the result of this
|
66
|
+
"""Sets the result of this MetricsqueryresponseResponse.
|
67
67
|
|
68
68
|
|
69
|
-
:param result: The result of this
|
70
|
-
:type:
|
69
|
+
:param result: The result of this MetricsqueryresponseResponse. # noqa: E501
|
70
|
+
:type: MetricsQueryResponse
|
71
71
|
"""
|
72
72
|
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
73
|
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
@@ -108,14 +108,14 @@ class ClouddeploymentResponse(object):
|
|
108
108
|
|
109
109
|
def __eq__(self, other):
|
110
110
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
111
|
+
if not isinstance(other, MetricsqueryresponseResponse):
|
112
112
|
return False
|
113
113
|
|
114
114
|
return self.to_dict() == other.to_dict()
|
115
115
|
|
116
116
|
def __ne__(self, other):
|
117
117
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
118
|
+
if not isinstance(other, MetricsqueryresponseResponse):
|
119
119
|
return True
|
120
120
|
|
121
121
|
return self.to_dict() != other.to_dict()
|
@@ -38,8 +38,8 @@ class OperatorMetrics(object):
|
|
38
38
|
'state': 'DatasetState',
|
39
39
|
'progress': 'int',
|
40
40
|
'total': 'int',
|
41
|
-
'start_time': '
|
42
|
-
'end_time': '
|
41
|
+
'start_time': 'float',
|
42
|
+
'end_time': 'float',
|
43
43
|
'metrics': 'dict(str, Metric)'
|
44
44
|
}
|
45
45
|
|
@@ -76,7 +76,8 @@ class OperatorMetrics(object):
|
|
76
76
|
self.progress = progress
|
77
77
|
if total is not None:
|
78
78
|
self.total = total
|
79
|
-
|
79
|
+
if start_time is not None:
|
80
|
+
self.start_time = start_time
|
80
81
|
if end_time is not None:
|
81
82
|
self.end_time = end_time
|
82
83
|
self.metrics = metrics
|
@@ -200,7 +201,7 @@ class OperatorMetrics(object):
|
|
200
201
|
|
201
202
|
|
202
203
|
:return: The start_time of this OperatorMetrics. # noqa: E501
|
203
|
-
:rtype:
|
204
|
+
:rtype: float
|
204
205
|
"""
|
205
206
|
return self._start_time
|
206
207
|
|
@@ -210,10 +211,8 @@ class OperatorMetrics(object):
|
|
210
211
|
|
211
212
|
|
212
213
|
:param start_time: The start_time of this OperatorMetrics. # noqa: E501
|
213
|
-
:type:
|
214
|
+
:type: float
|
214
215
|
"""
|
215
|
-
if self.local_vars_configuration.client_side_validation and start_time is None: # noqa: E501
|
216
|
-
raise ValueError("Invalid value for `start_time`, must not be `None`") # noqa: E501
|
217
216
|
|
218
217
|
self._start_time = start_time
|
219
218
|
|
@@ -223,7 +222,7 @@ class OperatorMetrics(object):
|
|
223
222
|
|
224
223
|
|
225
224
|
:return: The end_time of this OperatorMetrics. # noqa: E501
|
226
|
-
:rtype:
|
225
|
+
:rtype: float
|
227
226
|
"""
|
228
227
|
return self._end_time
|
229
228
|
|
@@ -233,7 +232,7 @@ class OperatorMetrics(object):
|
|
233
232
|
|
234
233
|
|
235
234
|
:param end_time: The end_time of this OperatorMetrics. # noqa: E501
|
236
|
-
:type:
|
235
|
+
:type: float
|
237
236
|
"""
|
238
237
|
|
239
238
|
self._end_time = end_time
|
@@ -0,0 +1,102 @@
|
|
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 OperatorStatus(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
|
+
allowed enum values
|
30
|
+
"""
|
31
|
+
UNSPECIFIED = "OPERATOR_STATUS_UNSPECIFIED"
|
32
|
+
HEALTHY = "OPERATOR_STATUS_HEALTHY"
|
33
|
+
UNHEALTHY = "OPERATOR_STATUS_UNHEALTHY"
|
34
|
+
DISCONNECTED = "OPERATOR_STATUS_DISCONNECTED"
|
35
|
+
|
36
|
+
allowable_values = [UNSPECIFIED, HEALTHY, UNHEALTHY, DISCONNECTED] # noqa: E501
|
37
|
+
|
38
|
+
"""
|
39
|
+
Attributes:
|
40
|
+
openapi_types (dict): The key is attribute name
|
41
|
+
and the value is attribute type.
|
42
|
+
attribute_map (dict): The key is attribute name
|
43
|
+
and the value is json key in definition.
|
44
|
+
"""
|
45
|
+
openapi_types = {
|
46
|
+
}
|
47
|
+
|
48
|
+
attribute_map = {
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""OperatorStatus - a model defined in OpenAPI""" # noqa: E501
|
53
|
+
if local_vars_configuration is None:
|
54
|
+
local_vars_configuration = Configuration()
|
55
|
+
self.local_vars_configuration = local_vars_configuration
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
def to_dict(self):
|
59
|
+
"""Returns the model properties as a dict"""
|
60
|
+
result = {}
|
61
|
+
|
62
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
63
|
+
value = getattr(self, attr)
|
64
|
+
if isinstance(value, list):
|
65
|
+
result[attr] = list(map(
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
67
|
+
value
|
68
|
+
))
|
69
|
+
elif hasattr(value, "to_dict"):
|
70
|
+
result[attr] = value.to_dict()
|
71
|
+
elif isinstance(value, dict):
|
72
|
+
result[attr] = dict(map(
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
75
|
+
value.items()
|
76
|
+
))
|
77
|
+
else:
|
78
|
+
result[attr] = value
|
79
|
+
|
80
|
+
return result
|
81
|
+
|
82
|
+
def to_str(self):
|
83
|
+
"""Returns the string representation of the model"""
|
84
|
+
return pprint.pformat(self.to_dict())
|
85
|
+
|
86
|
+
def __repr__(self):
|
87
|
+
"""For `print` and `pprint`"""
|
88
|
+
return self.to_str()
|
89
|
+
|
90
|
+
def __eq__(self, other):
|
91
|
+
"""Returns true if both objects are equal"""
|
92
|
+
if not isinstance(other, OperatorStatus):
|
93
|
+
return False
|
94
|
+
|
95
|
+
return self.to_dict() == other.to_dict()
|
96
|
+
|
97
|
+
def __ne__(self, other):
|
98
|
+
"""Returns true if both objects are not equal"""
|
99
|
+
if not isinstance(other, OperatorStatus):
|
100
|
+
return True
|
101
|
+
|
102
|
+
return self.to_dict() != other.to_dict()
|
@@ -33,60 +33,60 @@ class OrganizationUsageAlert(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
36
|
+
'issue_type': 'AlertIssueType',
|
37
37
|
'severity': 'OrganizationUsageAlertSeverity',
|
38
38
|
'status': 'CustomerAlertStatus',
|
39
39
|
'permission_level': 'OrganizationPermissionLevel'
|
40
40
|
}
|
41
41
|
|
42
42
|
attribute_map = {
|
43
|
-
'
|
43
|
+
'issue_type': 'issueType',
|
44
44
|
'severity': 'severity',
|
45
45
|
'status': 'status',
|
46
46
|
'permission_level': 'permission_level'
|
47
47
|
}
|
48
48
|
|
49
|
-
def __init__(self,
|
49
|
+
def __init__(self, issue_type=None, severity=None, status=None, permission_level=None, local_vars_configuration=None): # noqa: E501
|
50
50
|
"""OrganizationUsageAlert - a model defined in OpenAPI""" # noqa: E501
|
51
51
|
if local_vars_configuration is None:
|
52
52
|
local_vars_configuration = Configuration()
|
53
53
|
self.local_vars_configuration = local_vars_configuration
|
54
54
|
|
55
|
-
self.
|
55
|
+
self._issue_type = None
|
56
56
|
self._severity = None
|
57
57
|
self._status = None
|
58
58
|
self._permission_level = None
|
59
59
|
self.discriminator = None
|
60
60
|
|
61
|
-
self.
|
61
|
+
self.issue_type = issue_type
|
62
62
|
self.severity = severity
|
63
63
|
self.status = status
|
64
64
|
self.permission_level = permission_level
|
65
65
|
|
66
66
|
@property
|
67
|
-
def
|
68
|
-
"""Gets the
|
67
|
+
def issue_type(self):
|
68
|
+
"""Gets the issue_type of this OrganizationUsageAlert. # noqa: E501
|
69
69
|
|
70
|
-
Type of the alert # noqa: E501
|
70
|
+
Type of the issue for the alert # noqa: E501
|
71
71
|
|
72
|
-
:return: The
|
73
|
-
:rtype:
|
72
|
+
:return: The issue_type of this OrganizationUsageAlert. # noqa: E501
|
73
|
+
:rtype: AlertIssueType
|
74
74
|
"""
|
75
|
-
return self.
|
75
|
+
return self._issue_type
|
76
76
|
|
77
|
-
@
|
78
|
-
def
|
79
|
-
"""Sets the
|
77
|
+
@issue_type.setter
|
78
|
+
def issue_type(self, issue_type):
|
79
|
+
"""Sets the issue_type of this OrganizationUsageAlert.
|
80
80
|
|
81
|
-
Type of the alert # noqa: E501
|
81
|
+
Type of the issue for the alert # noqa: E501
|
82
82
|
|
83
|
-
:param
|
84
|
-
:type:
|
83
|
+
:param issue_type: The issue_type of this OrganizationUsageAlert. # noqa: E501
|
84
|
+
:type: AlertIssueType
|
85
85
|
"""
|
86
|
-
if self.local_vars_configuration.client_side_validation and
|
87
|
-
raise ValueError("Invalid value for `
|
86
|
+
if self.local_vars_configuration.client_side_validation and issue_type is None: # noqa: E501
|
87
|
+
raise ValueError("Invalid value for `issue_type`, must not be `None`") # noqa: E501
|
88
88
|
|
89
|
-
self.
|
89
|
+
self._issue_type = issue_type
|
90
90
|
|
91
91
|
@property
|
92
92
|
def severity(self):
|