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
|
@@ -34,15 +34,17 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'allocation_states': 'list[MachineAllocationState]',
|
|
37
|
-
'partitions': 'list[str]'
|
|
37
|
+
'partitions': 'list[str]',
|
|
38
|
+
'machine_type_partition_filters': 'list[MachineTypePartitionFilter]'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'allocation_states': 'allocation_states',
|
|
42
|
-
'partitions': 'partitions'
|
|
43
|
+
'partitions': 'partitions',
|
|
44
|
+
'machine_type_partition_filters': 'machine_type_partition_filters'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, allocation_states=None, partitions=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, allocation_states=None, partitions=None, machine_type_partition_filters=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""DescribeMachinePoolMachinesFilters - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
@@ -50,12 +52,15 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
50
52
|
|
|
51
53
|
self._allocation_states = None
|
|
52
54
|
self._partitions = None
|
|
55
|
+
self._machine_type_partition_filters = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
if allocation_states is not None:
|
|
56
59
|
self.allocation_states = allocation_states
|
|
57
60
|
if partitions is not None:
|
|
58
61
|
self.partitions = partitions
|
|
62
|
+
if machine_type_partition_filters is not None:
|
|
63
|
+
self.machine_type_partition_filters = machine_type_partition_filters
|
|
59
64
|
|
|
60
65
|
@property
|
|
61
66
|
def allocation_states(self):
|
|
@@ -84,7 +89,7 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
84
89
|
def partitions(self):
|
|
85
90
|
"""Gets the partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
86
91
|
|
|
87
|
-
The partitions to filter by. # noqa: E501
|
|
92
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
88
93
|
|
|
89
94
|
:return: The partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
90
95
|
:rtype: list[str]
|
|
@@ -95,7 +100,7 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
95
100
|
def partitions(self, partitions):
|
|
96
101
|
"""Sets the partitions of this DescribeMachinePoolMachinesFilters.
|
|
97
102
|
|
|
98
|
-
The partitions to filter by. # noqa: E501
|
|
103
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
99
104
|
|
|
100
105
|
:param partitions: The partitions of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
101
106
|
:type: list[str]
|
|
@@ -103,6 +108,29 @@ class DescribeMachinePoolMachinesFilters(object):
|
|
|
103
108
|
|
|
104
109
|
self._partitions = partitions
|
|
105
110
|
|
|
111
|
+
@property
|
|
112
|
+
def machine_type_partition_filters(self):
|
|
113
|
+
"""Gets the machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
118
|
+
:rtype: list[MachineTypePartitionFilter]
|
|
119
|
+
"""
|
|
120
|
+
return self._machine_type_partition_filters
|
|
121
|
+
|
|
122
|
+
@machine_type_partition_filters.setter
|
|
123
|
+
def machine_type_partition_filters(self, machine_type_partition_filters):
|
|
124
|
+
"""Sets the machine_type_partition_filters of this DescribeMachinePoolMachinesFilters.
|
|
125
|
+
|
|
126
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param machine_type_partition_filters: The machine_type_partition_filters of this DescribeMachinePoolMachinesFilters. # noqa: E501
|
|
129
|
+
:type: list[MachineTypePartitionFilter]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._machine_type_partition_filters = machine_type_partition_filters
|
|
133
|
+
|
|
106
134
|
def to_dict(self):
|
|
107
135
|
"""Returns the model properties as a dict"""
|
|
108
136
|
result = {}
|
|
@@ -34,15 +34,17 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'workload_name': 'TextQuery',
|
|
37
|
-
'partitions': 'list[str]'
|
|
37
|
+
'partitions': 'list[str]',
|
|
38
|
+
'machine_type_partition_filters': 'list[MachineTypePartitionFilter]'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'workload_name': 'workload_name',
|
|
42
|
-
'partitions': 'partitions'
|
|
43
|
+
'partitions': 'partitions',
|
|
44
|
+
'machine_type_partition_filters': 'machine_type_partition_filters'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, workload_name=None, partitions=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, workload_name=None, partitions=None, machine_type_partition_filters=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""DescribeMachinePoolWorkloadsFilters - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
@@ -50,12 +52,15 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
50
52
|
|
|
51
53
|
self._workload_name = None
|
|
52
54
|
self._partitions = None
|
|
55
|
+
self._machine_type_partition_filters = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
if workload_name is not None:
|
|
56
59
|
self.workload_name = workload_name
|
|
57
60
|
if partitions is not None:
|
|
58
61
|
self.partitions = partitions
|
|
62
|
+
if machine_type_partition_filters is not None:
|
|
63
|
+
self.machine_type_partition_filters = machine_type_partition_filters
|
|
59
64
|
|
|
60
65
|
@property
|
|
61
66
|
def workload_name(self):
|
|
@@ -84,7 +89,7 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
84
89
|
def partitions(self):
|
|
85
90
|
"""Gets the partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
86
91
|
|
|
87
|
-
The partitions to filter workload machines by
|
|
92
|
+
The partitions to filter workload machines by (for backward compatibility). # noqa: E501
|
|
88
93
|
|
|
89
94
|
:return: The partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
90
95
|
:rtype: list[str]
|
|
@@ -95,7 +100,7 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
95
100
|
def partitions(self, partitions):
|
|
96
101
|
"""Sets the partitions of this DescribeMachinePoolWorkloadsFilters.
|
|
97
102
|
|
|
98
|
-
The partitions to filter workload machines by
|
|
103
|
+
The partitions to filter workload machines by (for backward compatibility). # noqa: E501
|
|
99
104
|
|
|
100
105
|
:param partitions: The partitions of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
101
106
|
:type: list[str]
|
|
@@ -103,6 +108,29 @@ class DescribeMachinePoolWorkloadsFilters(object):
|
|
|
103
108
|
|
|
104
109
|
self._partitions = partitions
|
|
105
110
|
|
|
111
|
+
@property
|
|
112
|
+
def machine_type_partition_filters(self):
|
|
113
|
+
"""Gets the machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
118
|
+
:rtype: list[MachineTypePartitionFilter]
|
|
119
|
+
"""
|
|
120
|
+
return self._machine_type_partition_filters
|
|
121
|
+
|
|
122
|
+
@machine_type_partition_filters.setter
|
|
123
|
+
def machine_type_partition_filters(self, machine_type_partition_filters):
|
|
124
|
+
"""Sets the machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters.
|
|
125
|
+
|
|
126
|
+
The machine_type, partition pair to filter by. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param machine_type_partition_filters: The machine_type_partition_filters of this DescribeMachinePoolWorkloadsFilters. # noqa: E501
|
|
129
|
+
:type: list[MachineTypePartitionFilter]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._machine_type_partition_filters = machine_type_partition_filters
|
|
133
|
+
|
|
106
134
|
def to_dict(self):
|
|
107
135
|
"""Returns the model properties as a dict"""
|
|
108
136
|
result = {}
|
|
@@ -18,7 +18,7 @@ import six
|
|
|
18
18
|
from openapi_client.configuration import Configuration
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class EntityType(object):
|
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
23
|
Ref: https://openapi-generator.tech
|
|
24
24
|
|
|
@@ -28,12 +28,12 @@ class ServiceEventLevel(object):
|
|
|
28
28
|
"""
|
|
29
29
|
allowed enum values
|
|
30
30
|
"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
PRODUCTION_JOB = "production_job"
|
|
32
|
+
WORKSPACE = "workspace"
|
|
33
|
+
SERVICE = "service"
|
|
34
|
+
SESSION = "session"
|
|
35
35
|
|
|
36
|
-
allowable_values = [
|
|
36
|
+
allowable_values = [PRODUCTION_JOB, WORKSPACE, SERVICE, SESSION] # noqa: E501
|
|
37
37
|
|
|
38
38
|
"""
|
|
39
39
|
Attributes:
|
|
@@ -49,7 +49,7 @@ class ServiceEventLevel(object):
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
52
|
-
"""
|
|
52
|
+
"""EntityType - a model defined in OpenAPI""" # noqa: E501
|
|
53
53
|
if local_vars_configuration is None:
|
|
54
54
|
local_vars_configuration = Configuration()
|
|
55
55
|
self.local_vars_configuration = local_vars_configuration
|
|
@@ -89,14 +89,14 @@ class ServiceEventLevel(object):
|
|
|
89
89
|
|
|
90
90
|
def __eq__(self, other):
|
|
91
91
|
"""Returns true if both objects are equal"""
|
|
92
|
-
if not isinstance(other,
|
|
92
|
+
if not isinstance(other, EntityType):
|
|
93
93
|
return False
|
|
94
94
|
|
|
95
95
|
return self.to_dict() == other.to_dict()
|
|
96
96
|
|
|
97
97
|
def __ne__(self, other):
|
|
98
98
|
"""Returns true if both objects are not equal"""
|
|
99
|
-
if not isinstance(other,
|
|
99
|
+
if not isinstance(other, EntityType):
|
|
100
100
|
return True
|
|
101
101
|
|
|
102
102
|
return self.to_dict() != other.to_dict()
|
|
@@ -33,9 +33,10 @@ class EventLevel(object):
|
|
|
33
33
|
ERROR = "ERROR"
|
|
34
34
|
TRACE = "TRACE"
|
|
35
35
|
DEBUG = "DEBUG"
|
|
36
|
+
CRITICAL = "CRITICAL"
|
|
36
37
|
UNKNOWN = "UNKNOWN"
|
|
37
38
|
|
|
38
|
-
allowable_values = [INFO, WARNING, ERROR, TRACE, DEBUG, UNKNOWN] # noqa: E501
|
|
39
|
+
allowable_values = [INFO, WARNING, ERROR, TRACE, DEBUG, CRITICAL, UNKNOWN] # noqa: E501
|
|
39
40
|
|
|
40
41
|
"""
|
|
41
42
|
Attributes:
|
|
@@ -0,0 +1,206 @@
|
|
|
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 JobEventFields(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
|
+
'ha_job_id': 'str',
|
|
37
|
+
'error_type': 'HaJobErrorTypes',
|
|
38
|
+
'has_additional_sensitive_message': 'bool',
|
|
39
|
+
'event_type': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'ha_job_id': 'ha_job_id',
|
|
44
|
+
'error_type': 'error_type',
|
|
45
|
+
'has_additional_sensitive_message': 'has_additional_sensitive_message',
|
|
46
|
+
'event_type': 'event_type'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, ha_job_id=None, error_type=None, has_additional_sensitive_message=False, event_type=None, local_vars_configuration=None): # noqa: E501
|
|
50
|
+
"""JobEventFields - 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._ha_job_id = None
|
|
56
|
+
self._error_type = None
|
|
57
|
+
self._has_additional_sensitive_message = None
|
|
58
|
+
self._event_type = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if ha_job_id is not None:
|
|
62
|
+
self.ha_job_id = ha_job_id
|
|
63
|
+
if error_type is not None:
|
|
64
|
+
self.error_type = error_type
|
|
65
|
+
if has_additional_sensitive_message is not None:
|
|
66
|
+
self.has_additional_sensitive_message = has_additional_sensitive_message
|
|
67
|
+
if event_type is not None:
|
|
68
|
+
self.event_type = event_type
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def ha_job_id(self):
|
|
72
|
+
"""Gets the ha_job_id of this JobEventFields. # noqa: E501
|
|
73
|
+
|
|
74
|
+
The id of the Job. # noqa: E501
|
|
75
|
+
|
|
76
|
+
:return: The ha_job_id of this JobEventFields. # noqa: E501
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._ha_job_id
|
|
80
|
+
|
|
81
|
+
@ha_job_id.setter
|
|
82
|
+
def ha_job_id(self, ha_job_id):
|
|
83
|
+
"""Sets the ha_job_id of this JobEventFields.
|
|
84
|
+
|
|
85
|
+
The id of the Job. # noqa: E501
|
|
86
|
+
|
|
87
|
+
:param ha_job_id: The ha_job_id of this JobEventFields. # noqa: E501
|
|
88
|
+
:type: str
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
self._ha_job_id = ha_job_id
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def error_type(self):
|
|
95
|
+
"""Gets the error_type of this JobEventFields. # noqa: E501
|
|
96
|
+
|
|
97
|
+
Type of Job error. Only populated for JOB type events that are in error state # noqa: E501
|
|
98
|
+
|
|
99
|
+
:return: The error_type of this JobEventFields. # noqa: E501
|
|
100
|
+
:rtype: HaJobErrorTypes
|
|
101
|
+
"""
|
|
102
|
+
return self._error_type
|
|
103
|
+
|
|
104
|
+
@error_type.setter
|
|
105
|
+
def error_type(self, error_type):
|
|
106
|
+
"""Sets the error_type of this JobEventFields.
|
|
107
|
+
|
|
108
|
+
Type of Job error. Only populated for JOB type events that are in error state # noqa: E501
|
|
109
|
+
|
|
110
|
+
:param error_type: The error_type of this JobEventFields. # noqa: E501
|
|
111
|
+
:type: HaJobErrorTypes
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._error_type = error_type
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def has_additional_sensitive_message(self):
|
|
118
|
+
"""Gets the has_additional_sensitive_message of this JobEventFields. # noqa: E501
|
|
119
|
+
|
|
120
|
+
Whether we have additional sensitive message details stored that can be subsequently fetched. # noqa: E501
|
|
121
|
+
|
|
122
|
+
:return: The has_additional_sensitive_message of this JobEventFields. # noqa: E501
|
|
123
|
+
:rtype: bool
|
|
124
|
+
"""
|
|
125
|
+
return self._has_additional_sensitive_message
|
|
126
|
+
|
|
127
|
+
@has_additional_sensitive_message.setter
|
|
128
|
+
def has_additional_sensitive_message(self, has_additional_sensitive_message):
|
|
129
|
+
"""Sets the has_additional_sensitive_message of this JobEventFields.
|
|
130
|
+
|
|
131
|
+
Whether we have additional sensitive message details stored that can be subsequently fetched. # noqa: E501
|
|
132
|
+
|
|
133
|
+
:param has_additional_sensitive_message: The has_additional_sensitive_message of this JobEventFields. # noqa: E501
|
|
134
|
+
:type: bool
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._has_additional_sensitive_message = has_additional_sensitive_message
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def event_type(self):
|
|
141
|
+
"""Gets the event_type of this JobEventFields. # noqa: E501
|
|
142
|
+
|
|
143
|
+
Type of job event # noqa: E501
|
|
144
|
+
|
|
145
|
+
:return: The event_type of this JobEventFields. # noqa: E501
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._event_type
|
|
149
|
+
|
|
150
|
+
@event_type.setter
|
|
151
|
+
def event_type(self, event_type):
|
|
152
|
+
"""Sets the event_type of this JobEventFields.
|
|
153
|
+
|
|
154
|
+
Type of job event # noqa: E501
|
|
155
|
+
|
|
156
|
+
:param event_type: The event_type of this JobEventFields. # noqa: E501
|
|
157
|
+
:type: str
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._event_type = event_type
|
|
161
|
+
|
|
162
|
+
def to_dict(self):
|
|
163
|
+
"""Returns the model properties as a dict"""
|
|
164
|
+
result = {}
|
|
165
|
+
|
|
166
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
167
|
+
value = getattr(self, attr)
|
|
168
|
+
if isinstance(value, list):
|
|
169
|
+
result[attr] = list(map(
|
|
170
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
171
|
+
value
|
|
172
|
+
))
|
|
173
|
+
elif hasattr(value, "to_dict"):
|
|
174
|
+
result[attr] = value.to_dict()
|
|
175
|
+
elif isinstance(value, dict):
|
|
176
|
+
result[attr] = dict(map(
|
|
177
|
+
lambda item: (item[0], item[1].to_dict())
|
|
178
|
+
if hasattr(item[1], "to_dict") else item,
|
|
179
|
+
value.items()
|
|
180
|
+
))
|
|
181
|
+
else:
|
|
182
|
+
result[attr] = value
|
|
183
|
+
|
|
184
|
+
return result
|
|
185
|
+
|
|
186
|
+
def to_str(self):
|
|
187
|
+
"""Returns the string representation of the model"""
|
|
188
|
+
return pprint.pformat(self.to_dict())
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print` and `pprint`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, JobEventFields):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.to_dict() == other.to_dict()
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
if not isinstance(other, JobEventFields):
|
|
204
|
+
return True
|
|
205
|
+
|
|
206
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -41,10 +41,11 @@ class LineageGraphNode(object):
|
|
|
41
41
|
'updated_at': 'datetime',
|
|
42
42
|
'created_by': 'str',
|
|
43
43
|
'updated_by': 'str',
|
|
44
|
-
'
|
|
44
|
+
'workload_type': 'LineageWorkloadType',
|
|
45
|
+
'anyscale_workload_id': 'str',
|
|
45
46
|
'artifact_type': 'LineageArtifactType',
|
|
46
47
|
'artifact_file_format': 'str',
|
|
47
|
-
'
|
|
48
|
+
'node_type': 'LineageNodeType'
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
@@ -56,13 +57,14 @@ class LineageGraphNode(object):
|
|
|
56
57
|
'updated_at': 'updated_at',
|
|
57
58
|
'created_by': 'created_by',
|
|
58
59
|
'updated_by': 'updated_by',
|
|
59
|
-
'
|
|
60
|
+
'workload_type': 'workload_type',
|
|
61
|
+
'anyscale_workload_id': 'anyscale_workload_id',
|
|
60
62
|
'artifact_type': 'artifact_type',
|
|
61
63
|
'artifact_file_format': 'artifact_file_format',
|
|
62
|
-
'
|
|
64
|
+
'node_type': 'node_type'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, id=None, name=None, namespace_name=None, uri=None, created_at=None, updated_at=None, created_by=None, updated_by=None,
|
|
67
|
+
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, artifact_type=None, artifact_file_format=None, node_type=None, local_vars_configuration=None): # noqa: E501
|
|
66
68
|
"""LineageGraphNode - a model defined in OpenAPI""" # noqa: E501
|
|
67
69
|
if local_vars_configuration is None:
|
|
68
70
|
local_vars_configuration = Configuration()
|
|
@@ -76,10 +78,11 @@ class LineageGraphNode(object):
|
|
|
76
78
|
self._updated_at = None
|
|
77
79
|
self._created_by = None
|
|
78
80
|
self._updated_by = None
|
|
79
|
-
self.
|
|
81
|
+
self._workload_type = None
|
|
82
|
+
self._anyscale_workload_id = None
|
|
80
83
|
self._artifact_type = None
|
|
81
84
|
self._artifact_file_format = None
|
|
82
|
-
self.
|
|
85
|
+
self._node_type = None
|
|
83
86
|
self.discriminator = None
|
|
84
87
|
|
|
85
88
|
self.id = id
|
|
@@ -90,13 +93,15 @@ class LineageGraphNode(object):
|
|
|
90
93
|
self.updated_at = updated_at
|
|
91
94
|
self.created_by = created_by
|
|
92
95
|
self.updated_by = updated_by
|
|
93
|
-
|
|
96
|
+
if workload_type is not None:
|
|
97
|
+
self.workload_type = workload_type
|
|
98
|
+
if anyscale_workload_id is not None:
|
|
99
|
+
self.anyscale_workload_id = anyscale_workload_id
|
|
94
100
|
if artifact_type is not None:
|
|
95
101
|
self.artifact_type = artifact_type
|
|
96
102
|
if artifact_file_format is not None:
|
|
97
103
|
self.artifact_file_format = artifact_file_format
|
|
98
|
-
|
|
99
|
-
self.workload_type = workload_type
|
|
104
|
+
self.node_type = node_type
|
|
100
105
|
|
|
101
106
|
@property
|
|
102
107
|
def id(self):
|
|
@@ -299,35 +304,56 @@ class LineageGraphNode(object):
|
|
|
299
304
|
self._updated_by = updated_by
|
|
300
305
|
|
|
301
306
|
@property
|
|
302
|
-
def
|
|
303
|
-
"""Gets the
|
|
307
|
+
def workload_type(self):
|
|
308
|
+
"""Gets the workload_type of this LineageGraphNode. # noqa: E501
|
|
304
309
|
|
|
305
|
-
Type of
|
|
310
|
+
Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
|
|
306
311
|
|
|
307
|
-
:return: The
|
|
308
|
-
:rtype:
|
|
312
|
+
:return: The workload_type of this LineageGraphNode. # noqa: E501
|
|
313
|
+
:rtype: LineageWorkloadType
|
|
309
314
|
"""
|
|
310
|
-
return self.
|
|
315
|
+
return self._workload_type
|
|
311
316
|
|
|
312
|
-
@
|
|
313
|
-
def
|
|
314
|
-
"""Sets the
|
|
317
|
+
@workload_type.setter
|
|
318
|
+
def workload_type(self, workload_type):
|
|
319
|
+
"""Sets the workload_type of this LineageGraphNode.
|
|
315
320
|
|
|
316
|
-
Type of
|
|
321
|
+
Type of workload (WORKSPACE/SERVICE/JOB) # noqa: E501
|
|
317
322
|
|
|
318
|
-
:param
|
|
319
|
-
:type:
|
|
323
|
+
:param workload_type: The workload_type of this LineageGraphNode. # noqa: E501
|
|
324
|
+
:type: LineageWorkloadType
|
|
320
325
|
"""
|
|
321
|
-
if self.local_vars_configuration.client_side_validation and node_type is None: # noqa: E501
|
|
322
|
-
raise ValueError("Invalid value for `node_type`, must not be `None`") # noqa: E501
|
|
323
326
|
|
|
324
|
-
self.
|
|
327
|
+
self._workload_type = workload_type
|
|
328
|
+
|
|
329
|
+
@property
|
|
330
|
+
def anyscale_workload_id(self):
|
|
331
|
+
"""Gets the anyscale_workload_id of this LineageGraphNode. # noqa: E501
|
|
332
|
+
|
|
333
|
+
Anyscale workload ID # noqa: E501
|
|
334
|
+
|
|
335
|
+
:return: The anyscale_workload_id of this LineageGraphNode. # noqa: E501
|
|
336
|
+
:rtype: str
|
|
337
|
+
"""
|
|
338
|
+
return self._anyscale_workload_id
|
|
339
|
+
|
|
340
|
+
@anyscale_workload_id.setter
|
|
341
|
+
def anyscale_workload_id(self, anyscale_workload_id):
|
|
342
|
+
"""Sets the anyscale_workload_id of this LineageGraphNode.
|
|
343
|
+
|
|
344
|
+
Anyscale workload ID # noqa: E501
|
|
345
|
+
|
|
346
|
+
:param anyscale_workload_id: The anyscale_workload_id of this LineageGraphNode. # noqa: E501
|
|
347
|
+
:type: str
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
self._anyscale_workload_id = anyscale_workload_id
|
|
325
351
|
|
|
326
352
|
@property
|
|
327
353
|
def artifact_type(self):
|
|
328
354
|
"""Gets the artifact_type of this LineageGraphNode. # noqa: E501
|
|
329
355
|
|
|
330
|
-
Type of artifact
|
|
356
|
+
Type of artifact (DATASET/MODEL) # noqa: E501
|
|
331
357
|
|
|
332
358
|
:return: The artifact_type of this LineageGraphNode. # noqa: E501
|
|
333
359
|
:rtype: LineageArtifactType
|
|
@@ -338,7 +364,7 @@ class LineageGraphNode(object):
|
|
|
338
364
|
def artifact_type(self, artifact_type):
|
|
339
365
|
"""Sets the artifact_type of this LineageGraphNode.
|
|
340
366
|
|
|
341
|
-
Type of artifact
|
|
367
|
+
Type of artifact (DATASET/MODEL) # noqa: E501
|
|
342
368
|
|
|
343
369
|
:param artifact_type: The artifact_type of this LineageGraphNode. # noqa: E501
|
|
344
370
|
:type: LineageArtifactType
|
|
@@ -350,7 +376,7 @@ class LineageGraphNode(object):
|
|
|
350
376
|
def artifact_file_format(self):
|
|
351
377
|
"""Gets the artifact_file_format of this LineageGraphNode. # noqa: E501
|
|
352
378
|
|
|
353
|
-
File format
|
|
379
|
+
File format (e.g., parquet, csv) # noqa: E501
|
|
354
380
|
|
|
355
381
|
:return: The artifact_file_format of this LineageGraphNode. # noqa: E501
|
|
356
382
|
:rtype: str
|
|
@@ -361,7 +387,7 @@ class LineageGraphNode(object):
|
|
|
361
387
|
def artifact_file_format(self, artifact_file_format):
|
|
362
388
|
"""Sets the artifact_file_format of this LineageGraphNode.
|
|
363
389
|
|
|
364
|
-
File format
|
|
390
|
+
File format (e.g., parquet, csv) # noqa: E501
|
|
365
391
|
|
|
366
392
|
:param artifact_file_format: The artifact_file_format of this LineageGraphNode. # noqa: E501
|
|
367
393
|
:type: str
|
|
@@ -370,27 +396,29 @@ class LineageGraphNode(object):
|
|
|
370
396
|
self._artifact_file_format = artifact_file_format
|
|
371
397
|
|
|
372
398
|
@property
|
|
373
|
-
def
|
|
374
|
-
"""Gets the
|
|
399
|
+
def node_type(self):
|
|
400
|
+
"""Gets the node_type of this LineageGraphNode. # noqa: E501
|
|
375
401
|
|
|
376
|
-
Type of
|
|
402
|
+
Type of node (ARTIFACT/WORKLOAD) # noqa: E501
|
|
377
403
|
|
|
378
|
-
:return: The
|
|
379
|
-
:rtype:
|
|
404
|
+
:return: The node_type of this LineageGraphNode. # noqa: E501
|
|
405
|
+
:rtype: LineageNodeType
|
|
380
406
|
"""
|
|
381
|
-
return self.
|
|
407
|
+
return self._node_type
|
|
382
408
|
|
|
383
|
-
@
|
|
384
|
-
def
|
|
385
|
-
"""Sets the
|
|
409
|
+
@node_type.setter
|
|
410
|
+
def node_type(self, node_type):
|
|
411
|
+
"""Sets the node_type of this LineageGraphNode.
|
|
386
412
|
|
|
387
|
-
Type of
|
|
413
|
+
Type of node (ARTIFACT/WORKLOAD) # noqa: E501
|
|
388
414
|
|
|
389
|
-
:param
|
|
390
|
-
:type:
|
|
415
|
+
:param node_type: The node_type of this LineageGraphNode. # noqa: E501
|
|
416
|
+
:type: LineageNodeType
|
|
391
417
|
"""
|
|
418
|
+
if self.local_vars_configuration.client_side_validation and node_type is None: # noqa: E501
|
|
419
|
+
raise ValueError("Invalid value for `node_type`, must not be `None`") # noqa: E501
|
|
392
420
|
|
|
393
|
-
self.
|
|
421
|
+
self._node_type = node_type
|
|
394
422
|
|
|
395
423
|
def to_dict(self):
|
|
396
424
|
"""Returns the model properties as a dict"""
|