anyscale 0.26.68__py3-none-any.whl → 0.26.70__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 +67 -1
- anyscale/_private/anyscale_client/common.py +20 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
- anyscale/client/README.md +16 -4
- anyscale/client/openapi_client/__init__.py +12 -4
- anyscale/client/openapi_client/api/default_api.py +588 -23
- anyscale/client/openapi_client/models/__init__.py +12 -4
- anyscale/client/openapi_client/models/api_key_info.py +29 -3
- anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
- anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
- anyscale/client/openapi_client/models/clusterdashboardnode_response.py +121 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
- anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
- anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
- anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
- anyscale/client/openapi_client/models/event_level.py +2 -1
- anyscale/client/openapi_client/models/job_event_fields.py +206 -0
- anyscale/client/openapi_client/models/lineage_graph_node.py +70 -42
- anyscale/client/openapi_client/models/lineage_workload.py +31 -3
- anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/production_job_event.py +3 -3
- anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/unified_event.py +377 -0
- anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +148 -11
- anyscale/commands/command_examples.py +53 -0
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +130 -67
- anyscale/commands/setup_k8s.py +615 -49
- anyscale/controllers/cloud_controller.py +19 -5
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/job/_private/job_sdk.py +47 -1
- anyscale/job/commands.py +3 -0
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/service/__init__.py +11 -3
- anyscale/service/_private/service_sdk.py +361 -35
- anyscale/service/commands.py +15 -3
- anyscale/service/models.py +12 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/RECORD +70 -62
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/top_level.txt +0 -0
|
@@ -41,7 +41,8 @@ class LineageWorkload(object):
|
|
|
41
41
|
'updated_at': 'datetime',
|
|
42
42
|
'created_by': 'str',
|
|
43
43
|
'updated_by': 'str',
|
|
44
|
-
'workload_type': 'LineageWorkloadType'
|
|
44
|
+
'workload_type': 'LineageWorkloadType',
|
|
45
|
+
'anyscale_workload_id': 'str'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
@@ -53,10 +54,11 @@ class LineageWorkload(object):
|
|
|
53
54
|
'updated_at': 'updated_at',
|
|
54
55
|
'created_by': 'created_by',
|
|
55
56
|
'updated_by': 'updated_by',
|
|
56
|
-
'workload_type': 'workload_type'
|
|
57
|
+
'workload_type': 'workload_type',
|
|
58
|
+
'anyscale_workload_id': 'anyscale_workload_id'
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None, workload_type=None, local_vars_configuration=None): # noqa: E501
|
|
61
|
+
def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None, workload_type=None, anyscale_workload_id=None, local_vars_configuration=None): # noqa: E501
|
|
60
62
|
"""LineageWorkload - a model defined in OpenAPI""" # noqa: E501
|
|
61
63
|
if local_vars_configuration is None:
|
|
62
64
|
local_vars_configuration = Configuration()
|
|
@@ -71,6 +73,7 @@ class LineageWorkload(object):
|
|
|
71
73
|
self._created_by = None
|
|
72
74
|
self._updated_by = None
|
|
73
75
|
self._workload_type = None
|
|
76
|
+
self._anyscale_workload_id = None
|
|
74
77
|
self.discriminator = None
|
|
75
78
|
|
|
76
79
|
self.id = id
|
|
@@ -82,6 +85,8 @@ class LineageWorkload(object):
|
|
|
82
85
|
self.created_by = created_by
|
|
83
86
|
self.updated_by = updated_by
|
|
84
87
|
self.workload_type = workload_type
|
|
88
|
+
if anyscale_workload_id is not None:
|
|
89
|
+
self.anyscale_workload_id = anyscale_workload_id
|
|
85
90
|
|
|
86
91
|
@property
|
|
87
92
|
def id(self):
|
|
@@ -308,6 +313,29 @@ class LineageWorkload(object):
|
|
|
308
313
|
|
|
309
314
|
self._workload_type = workload_type
|
|
310
315
|
|
|
316
|
+
@property
|
|
317
|
+
def anyscale_workload_id(self):
|
|
318
|
+
"""Gets the anyscale_workload_id of this LineageWorkload. # noqa: E501
|
|
319
|
+
|
|
320
|
+
Anyscale workload ID # noqa: E501
|
|
321
|
+
|
|
322
|
+
:return: The anyscale_workload_id of this LineageWorkload. # noqa: E501
|
|
323
|
+
:rtype: str
|
|
324
|
+
"""
|
|
325
|
+
return self._anyscale_workload_id
|
|
326
|
+
|
|
327
|
+
@anyscale_workload_id.setter
|
|
328
|
+
def anyscale_workload_id(self, anyscale_workload_id):
|
|
329
|
+
"""Sets the anyscale_workload_id of this LineageWorkload.
|
|
330
|
+
|
|
331
|
+
Anyscale workload ID # noqa: E501
|
|
332
|
+
|
|
333
|
+
:param anyscale_workload_id: The anyscale_workload_id of this LineageWorkload. # noqa: E501
|
|
334
|
+
:type: str
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
self._anyscale_workload_id = anyscale_workload_id
|
|
338
|
+
|
|
311
339
|
def to_dict(self):
|
|
312
340
|
"""Returns the model properties as a dict"""
|
|
313
341
|
result = {}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 MachineTypePartitionFilter(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
|
+
'machine_type': 'str',
|
|
37
|
+
'partition': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'machine_type': 'machine_type',
|
|
42
|
+
'partition': 'partition'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, machine_type=None, partition=None, local_vars_configuration=None): # noqa: E501
|
|
46
|
+
"""MachineTypePartitionFilter - 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._machine_type = None
|
|
52
|
+
self._partition = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.machine_type = machine_type
|
|
56
|
+
self.partition = partition
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def machine_type(self):
|
|
60
|
+
"""Gets the machine_type of this MachineTypePartitionFilter. # noqa: E501
|
|
61
|
+
|
|
62
|
+
The machine type to filter by. # noqa: E501
|
|
63
|
+
|
|
64
|
+
:return: The machine_type of this MachineTypePartitionFilter. # noqa: E501
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._machine_type
|
|
68
|
+
|
|
69
|
+
@machine_type.setter
|
|
70
|
+
def machine_type(self, machine_type):
|
|
71
|
+
"""Sets the machine_type of this MachineTypePartitionFilter.
|
|
72
|
+
|
|
73
|
+
The machine type to filter by. # noqa: E501
|
|
74
|
+
|
|
75
|
+
:param machine_type: The machine_type of this MachineTypePartitionFilter. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
|
|
79
|
+
raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
|
|
80
|
+
|
|
81
|
+
self._machine_type = machine_type
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def partition(self):
|
|
85
|
+
"""Gets the partition of this MachineTypePartitionFilter. # noqa: E501
|
|
86
|
+
|
|
87
|
+
The partition to filter by. # noqa: E501
|
|
88
|
+
|
|
89
|
+
:return: The partition of this MachineTypePartitionFilter. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._partition
|
|
93
|
+
|
|
94
|
+
@partition.setter
|
|
95
|
+
def partition(self, partition):
|
|
96
|
+
"""Sets the partition of this MachineTypePartitionFilter.
|
|
97
|
+
|
|
98
|
+
The partition to filter by. # noqa: E501
|
|
99
|
+
|
|
100
|
+
:param partition: The partition of this MachineTypePartitionFilter. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
if self.local_vars_configuration.client_side_validation and partition is None: # noqa: E501
|
|
104
|
+
raise ValueError("Invalid value for `partition`, must not be `None`") # noqa: E501
|
|
105
|
+
|
|
106
|
+
self._partition = partition
|
|
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, MachineTypePartitionFilter):
|
|
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, MachineTypePartitionFilter):
|
|
150
|
+
return True
|
|
151
|
+
|
|
152
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -34,25 +34,29 @@ class PartitionInfo(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'partition_name': 'str',
|
|
37
|
+
'machine_type': 'str',
|
|
37
38
|
'allocation_states': 'dict(str, int)'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'partition_name': 'partition_name',
|
|
43
|
+
'machine_type': 'machine_type',
|
|
42
44
|
'allocation_states': 'allocation_states'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, partition_name=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, partition_name=None, machine_type=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""PartitionInfo - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
49
51
|
self.local_vars_configuration = local_vars_configuration
|
|
50
52
|
|
|
51
53
|
self._partition_name = None
|
|
54
|
+
self._machine_type = None
|
|
52
55
|
self._allocation_states = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
self.partition_name = partition_name
|
|
59
|
+
self.machine_type = machine_type
|
|
56
60
|
self.allocation_states = allocation_states
|
|
57
61
|
|
|
58
62
|
@property
|
|
@@ -80,6 +84,31 @@ class PartitionInfo(object):
|
|
|
80
84
|
|
|
81
85
|
self._partition_name = partition_name
|
|
82
86
|
|
|
87
|
+
@property
|
|
88
|
+
def machine_type(self):
|
|
89
|
+
"""Gets the machine_type of this PartitionInfo. # noqa: E501
|
|
90
|
+
|
|
91
|
+
The type of the machine. # noqa: E501
|
|
92
|
+
|
|
93
|
+
:return: The machine_type of this PartitionInfo. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._machine_type
|
|
97
|
+
|
|
98
|
+
@machine_type.setter
|
|
99
|
+
def machine_type(self, machine_type):
|
|
100
|
+
"""Sets the machine_type of this PartitionInfo.
|
|
101
|
+
|
|
102
|
+
The type of the machine. # noqa: E501
|
|
103
|
+
|
|
104
|
+
:param machine_type: The machine_type of this PartitionInfo. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
|
|
108
|
+
raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
|
|
109
|
+
|
|
110
|
+
self._machine_type = machine_type
|
|
111
|
+
|
|
83
112
|
@property
|
|
84
113
|
def allocation_states(self):
|
|
85
114
|
"""Gets the allocation_states of this PartitionInfo. # noqa: E501
|
|
@@ -37,7 +37,7 @@ class ProductionJobEvent(object):
|
|
|
37
37
|
'created_at': 'datetime',
|
|
38
38
|
'event_type': 'HaJobStates',
|
|
39
39
|
'error_type': 'HaJobErrorTypes',
|
|
40
|
-
'level': '
|
|
40
|
+
'level': 'EventLevel',
|
|
41
41
|
'message': 'str',
|
|
42
42
|
'origin': 'HaJobEventOrigin',
|
|
43
43
|
'ha_job_id': 'str',
|
|
@@ -201,7 +201,7 @@ class ProductionJobEvent(object):
|
|
|
201
201
|
Level of Job event # noqa: E501
|
|
202
202
|
|
|
203
203
|
:return: The level of this ProductionJobEvent. # noqa: E501
|
|
204
|
-
:rtype:
|
|
204
|
+
:rtype: EventLevel
|
|
205
205
|
"""
|
|
206
206
|
return self._level
|
|
207
207
|
|
|
@@ -212,7 +212,7 @@ class ProductionJobEvent(object):
|
|
|
212
212
|
Level of Job event # noqa: E501
|
|
213
213
|
|
|
214
214
|
:param level: The level of this ProductionJobEvent. # noqa: E501
|
|
215
|
-
:type:
|
|
215
|
+
:type: EventLevel
|
|
216
216
|
"""
|
|
217
217
|
|
|
218
218
|
self._level = level
|
|
@@ -30,8 +30,9 @@ class RolloutStrategy(object):
|
|
|
30
30
|
"""
|
|
31
31
|
ROLLOUT = "ROLLOUT"
|
|
32
32
|
IN_PLACE = "IN_PLACE"
|
|
33
|
+
MULTI_VERSION = "MULTI_VERSION"
|
|
33
34
|
|
|
34
|
-
allowable_values = [ROLLOUT, IN_PLACE] # noqa: E501
|
|
35
|
+
allowable_values = [ROLLOUT, IN_PLACE, MULTI_VERSION] # noqa: E501
|
|
35
36
|
|
|
36
37
|
"""
|
|
37
38
|
Attributes:
|
|
@@ -0,0 +1,318 @@
|
|
|
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 ServiceEventFields(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
|
+
'service_id': 'str',
|
|
37
|
+
'service_version_id': 'str',
|
|
38
|
+
'service_version_name': 'str',
|
|
39
|
+
'current_state': 'ServiceEventCurrentState',
|
|
40
|
+
'goal_state': 'str',
|
|
41
|
+
'serve_deployment_name': 'str',
|
|
42
|
+
'goal_state_initiator': 'object',
|
|
43
|
+
'event_type': 'str'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'service_id': 'service_id',
|
|
48
|
+
'service_version_id': 'service_version_id',
|
|
49
|
+
'service_version_name': 'service_version_name',
|
|
50
|
+
'current_state': 'current_state',
|
|
51
|
+
'goal_state': 'goal_state',
|
|
52
|
+
'serve_deployment_name': 'serve_deployment_name',
|
|
53
|
+
'goal_state_initiator': 'goal_state_initiator',
|
|
54
|
+
'event_type': 'event_type'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, service_id=None, service_version_id=None, service_version_name=None, current_state=None, goal_state=None, serve_deployment_name=None, goal_state_initiator=None, event_type=None, local_vars_configuration=None): # noqa: E501
|
|
58
|
+
"""ServiceEventFields - a model defined in OpenAPI""" # noqa: E501
|
|
59
|
+
if local_vars_configuration is None:
|
|
60
|
+
local_vars_configuration = Configuration()
|
|
61
|
+
self.local_vars_configuration = local_vars_configuration
|
|
62
|
+
|
|
63
|
+
self._service_id = None
|
|
64
|
+
self._service_version_id = None
|
|
65
|
+
self._service_version_name = None
|
|
66
|
+
self._current_state = None
|
|
67
|
+
self._goal_state = None
|
|
68
|
+
self._serve_deployment_name = None
|
|
69
|
+
self._goal_state_initiator = None
|
|
70
|
+
self._event_type = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
if service_id is not None:
|
|
74
|
+
self.service_id = service_id
|
|
75
|
+
if service_version_id is not None:
|
|
76
|
+
self.service_version_id = service_version_id
|
|
77
|
+
if service_version_name is not None:
|
|
78
|
+
self.service_version_name = service_version_name
|
|
79
|
+
if current_state is not None:
|
|
80
|
+
self.current_state = current_state
|
|
81
|
+
if goal_state is not None:
|
|
82
|
+
self.goal_state = goal_state
|
|
83
|
+
if serve_deployment_name is not None:
|
|
84
|
+
self.serve_deployment_name = serve_deployment_name
|
|
85
|
+
if goal_state_initiator is not None:
|
|
86
|
+
self.goal_state_initiator = goal_state_initiator
|
|
87
|
+
if event_type is not None:
|
|
88
|
+
self.event_type = event_type
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def service_id(self):
|
|
92
|
+
"""Gets the service_id of this ServiceEventFields. # noqa: E501
|
|
93
|
+
|
|
94
|
+
The id of the Service v2. Present only for Service events. # noqa: E501
|
|
95
|
+
|
|
96
|
+
:return: The service_id of this ServiceEventFields. # noqa: E501
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._service_id
|
|
100
|
+
|
|
101
|
+
@service_id.setter
|
|
102
|
+
def service_id(self, service_id):
|
|
103
|
+
"""Sets the service_id of this ServiceEventFields.
|
|
104
|
+
|
|
105
|
+
The id of the Service v2. Present only for Service events. # noqa: E501
|
|
106
|
+
|
|
107
|
+
:param service_id: The service_id of this ServiceEventFields. # noqa: E501
|
|
108
|
+
:type: str
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
self._service_id = service_id
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def service_version_id(self):
|
|
115
|
+
"""Gets the service_version_id of this ServiceEventFields. # noqa: E501
|
|
116
|
+
|
|
117
|
+
The id of the associated Service Version. Present only for Service Version event # noqa: E501
|
|
118
|
+
|
|
119
|
+
:return: The service_version_id of this ServiceEventFields. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._service_version_id
|
|
123
|
+
|
|
124
|
+
@service_version_id.setter
|
|
125
|
+
def service_version_id(self, service_version_id):
|
|
126
|
+
"""Sets the service_version_id of this ServiceEventFields.
|
|
127
|
+
|
|
128
|
+
The id of the associated Service Version. Present only for Service Version event # noqa: E501
|
|
129
|
+
|
|
130
|
+
:param service_version_id: The service_version_id of this ServiceEventFields. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._service_version_id = service_version_id
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def service_version_name(self):
|
|
138
|
+
"""Gets the service_version_name of this ServiceEventFields. # noqa: E501
|
|
139
|
+
|
|
140
|
+
The name of the associated Service Version. Present only for Service Version event # noqa: E501
|
|
141
|
+
|
|
142
|
+
:return: The service_version_name of this ServiceEventFields. # noqa: E501
|
|
143
|
+
:rtype: str
|
|
144
|
+
"""
|
|
145
|
+
return self._service_version_name
|
|
146
|
+
|
|
147
|
+
@service_version_name.setter
|
|
148
|
+
def service_version_name(self, service_version_name):
|
|
149
|
+
"""Sets the service_version_name of this ServiceEventFields.
|
|
150
|
+
|
|
151
|
+
The name of the associated Service Version. Present only for Service Version event # noqa: E501
|
|
152
|
+
|
|
153
|
+
:param service_version_name: The service_version_name of this ServiceEventFields. # noqa: E501
|
|
154
|
+
:type: str
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._service_version_name = service_version_name
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def current_state(self):
|
|
161
|
+
"""Gets the current_state of this ServiceEventFields. # noqa: E501
|
|
162
|
+
|
|
163
|
+
Current service state # noqa: E501
|
|
164
|
+
|
|
165
|
+
:return: The current_state of this ServiceEventFields. # noqa: E501
|
|
166
|
+
:rtype: ServiceEventCurrentState
|
|
167
|
+
"""
|
|
168
|
+
return self._current_state
|
|
169
|
+
|
|
170
|
+
@current_state.setter
|
|
171
|
+
def current_state(self, current_state):
|
|
172
|
+
"""Sets the current_state of this ServiceEventFields.
|
|
173
|
+
|
|
174
|
+
Current service state # noqa: E501
|
|
175
|
+
|
|
176
|
+
:param current_state: The current_state of this ServiceEventFields. # noqa: E501
|
|
177
|
+
:type: ServiceEventCurrentState
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
self._current_state = current_state
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def goal_state(self):
|
|
184
|
+
"""Gets the goal_state of this ServiceEventFields. # noqa: E501
|
|
185
|
+
|
|
186
|
+
Goal service state # noqa: E501
|
|
187
|
+
|
|
188
|
+
:return: The goal_state of this ServiceEventFields. # noqa: E501
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._goal_state
|
|
192
|
+
|
|
193
|
+
@goal_state.setter
|
|
194
|
+
def goal_state(self, goal_state):
|
|
195
|
+
"""Sets the goal_state of this ServiceEventFields.
|
|
196
|
+
|
|
197
|
+
Goal service state # noqa: E501
|
|
198
|
+
|
|
199
|
+
:param goal_state: The goal_state of this ServiceEventFields. # noqa: E501
|
|
200
|
+
:type: str
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
self._goal_state = goal_state
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def serve_deployment_name(self):
|
|
207
|
+
"""Gets the serve_deployment_name of this ServiceEventFields. # noqa: E501
|
|
208
|
+
|
|
209
|
+
Name of serve deployment associated with this event. Present only for Serve Deployment events. # noqa: E501
|
|
210
|
+
|
|
211
|
+
:return: The serve_deployment_name of this ServiceEventFields. # noqa: E501
|
|
212
|
+
:rtype: str
|
|
213
|
+
"""
|
|
214
|
+
return self._serve_deployment_name
|
|
215
|
+
|
|
216
|
+
@serve_deployment_name.setter
|
|
217
|
+
def serve_deployment_name(self, serve_deployment_name):
|
|
218
|
+
"""Sets the serve_deployment_name of this ServiceEventFields.
|
|
219
|
+
|
|
220
|
+
Name of serve deployment associated with this event. Present only for Serve Deployment events. # noqa: E501
|
|
221
|
+
|
|
222
|
+
:param serve_deployment_name: The serve_deployment_name of this ServiceEventFields. # noqa: E501
|
|
223
|
+
:type: str
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._serve_deployment_name = serve_deployment_name
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
def goal_state_initiator(self):
|
|
230
|
+
"""Gets the goal_state_initiator of this ServiceEventFields. # noqa: E501
|
|
231
|
+
|
|
232
|
+
The user who initiated the service goal state change. Present only for goal state changes. # noqa: E501
|
|
233
|
+
|
|
234
|
+
:return: The goal_state_initiator of this ServiceEventFields. # noqa: E501
|
|
235
|
+
:rtype: object
|
|
236
|
+
"""
|
|
237
|
+
return self._goal_state_initiator
|
|
238
|
+
|
|
239
|
+
@goal_state_initiator.setter
|
|
240
|
+
def goal_state_initiator(self, goal_state_initiator):
|
|
241
|
+
"""Sets the goal_state_initiator of this ServiceEventFields.
|
|
242
|
+
|
|
243
|
+
The user who initiated the service goal state change. Present only for goal state changes. # noqa: E501
|
|
244
|
+
|
|
245
|
+
:param goal_state_initiator: The goal_state_initiator of this ServiceEventFields. # noqa: E501
|
|
246
|
+
:type: object
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
self._goal_state_initiator = goal_state_initiator
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def event_type(self):
|
|
253
|
+
"""Gets the event_type of this ServiceEventFields. # noqa: E501
|
|
254
|
+
|
|
255
|
+
Type of service event # noqa: E501
|
|
256
|
+
|
|
257
|
+
:return: The event_type of this ServiceEventFields. # noqa: E501
|
|
258
|
+
:rtype: str
|
|
259
|
+
"""
|
|
260
|
+
return self._event_type
|
|
261
|
+
|
|
262
|
+
@event_type.setter
|
|
263
|
+
def event_type(self, event_type):
|
|
264
|
+
"""Sets the event_type of this ServiceEventFields.
|
|
265
|
+
|
|
266
|
+
Type of service event # noqa: E501
|
|
267
|
+
|
|
268
|
+
:param event_type: The event_type of this ServiceEventFields. # noqa: E501
|
|
269
|
+
:type: str
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
self._event_type = event_type
|
|
273
|
+
|
|
274
|
+
def to_dict(self):
|
|
275
|
+
"""Returns the model properties as a dict"""
|
|
276
|
+
result = {}
|
|
277
|
+
|
|
278
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
279
|
+
value = getattr(self, attr)
|
|
280
|
+
if isinstance(value, list):
|
|
281
|
+
result[attr] = list(map(
|
|
282
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
283
|
+
value
|
|
284
|
+
))
|
|
285
|
+
elif hasattr(value, "to_dict"):
|
|
286
|
+
result[attr] = value.to_dict()
|
|
287
|
+
elif isinstance(value, dict):
|
|
288
|
+
result[attr] = dict(map(
|
|
289
|
+
lambda item: (item[0], item[1].to_dict())
|
|
290
|
+
if hasattr(item[1], "to_dict") else item,
|
|
291
|
+
value.items()
|
|
292
|
+
))
|
|
293
|
+
else:
|
|
294
|
+
result[attr] = value
|
|
295
|
+
|
|
296
|
+
return result
|
|
297
|
+
|
|
298
|
+
def to_str(self):
|
|
299
|
+
"""Returns the string representation of the model"""
|
|
300
|
+
return pprint.pformat(self.to_dict())
|
|
301
|
+
|
|
302
|
+
def __repr__(self):
|
|
303
|
+
"""For `print` and `pprint`"""
|
|
304
|
+
return self.to_str()
|
|
305
|
+
|
|
306
|
+
def __eq__(self, other):
|
|
307
|
+
"""Returns true if both objects are equal"""
|
|
308
|
+
if not isinstance(other, ServiceEventFields):
|
|
309
|
+
return False
|
|
310
|
+
|
|
311
|
+
return self.to_dict() == other.to_dict()
|
|
312
|
+
|
|
313
|
+
def __ne__(self, other):
|
|
314
|
+
"""Returns true if both objects are not equal"""
|
|
315
|
+
if not isinstance(other, ServiceEventFields):
|
|
316
|
+
return True
|
|
317
|
+
|
|
318
|
+
return self.to_dict() != other.to_dict()
|