anyscale 0.26.69__py3-none-any.whl → 0.26.71__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 +126 -3
- anyscale/_private/anyscale_client/common.py +51 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
- anyscale/client/README.md +43 -4
- anyscale/client/openapi_client/__init__.py +30 -4
- anyscale/client/openapi_client/api/default_api.py +1769 -27
- anyscale/client/openapi_client/models/__init__.py +30 -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_multi_version_update_weights_update_model.py +152 -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/apply_version_weight_update_model.py +181 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- 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/column_info.py +265 -0
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/connection_metadata.py +206 -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 +59 -3
- anyscale/client/openapi_client/models/data_catalog.py +45 -31
- anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
- anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
- anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
- anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
- anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
- anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
- 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_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_requests_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/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- 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/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -0
- 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/unified_origin_filter.py +113 -0
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/volume_metadata.py +150 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +133 -2
- anyscale/commands/job_commands.py +121 -1
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +267 -67
- anyscale/commands/setup_k8s.py +546 -31
- anyscale/commands/util.py +104 -1
- anyscale/commands/workspace_commands.py +123 -5
- anyscale/commands/workspace_commands_v2.py +17 -1
- anyscale/compute_config/_private/compute_config_sdk.py +25 -12
- anyscale/compute_config/models.py +15 -0
- anyscale/controllers/cloud_controller.py +15 -2
- anyscale/controllers/job_controller.py +12 -0
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +50 -2
- anyscale/job/commands.py +3 -0
- anyscale/job/models.py +16 -0
- anyscale/job_queue/__init__.py +37 -1
- anyscale/job_queue/_private/job_queue_sdk.py +28 -1
- anyscale/job_queue/commands.py +61 -1
- anyscale/sdk/anyscale_client/__init__.py +1 -0
- anyscale/sdk/anyscale_client/api/default_api.py +12 -2
- anyscale/sdk/anyscale_client/models/__init__.py +1 -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 +139 -1
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +51 -3
- anyscale/service/_private/service_sdk.py +481 -58
- anyscale/service/commands.py +90 -4
- anyscale/service/models.py +56 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +1 -0
- anyscale/workspace/models.py +19 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py
ADDED
|
@@ -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 Decoratedproductionservicev2VersionapimodelResponse(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'result': 'DecoratedProductionServiceV2VersionAPIModel'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'result': 'result'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""Decoratedproductionservicev2VersionapimodelResponse - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
+
if local_vars_configuration is None:
|
|
46
|
+
local_vars_configuration = Configuration()
|
|
47
|
+
self.local_vars_configuration = local_vars_configuration
|
|
48
|
+
|
|
49
|
+
self._result = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
self.result = result
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def result(self):
|
|
56
|
+
"""Gets the result of this Decoratedproductionservicev2VersionapimodelResponse. # noqa: E501
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:return: The result of this Decoratedproductionservicev2VersionapimodelResponse. # noqa: E501
|
|
60
|
+
:rtype: DecoratedProductionServiceV2VersionAPIModel
|
|
61
|
+
"""
|
|
62
|
+
return self._result
|
|
63
|
+
|
|
64
|
+
@result.setter
|
|
65
|
+
def result(self, result):
|
|
66
|
+
"""Sets the result of this Decoratedproductionservicev2VersionapimodelResponse.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:param result: The result of this Decoratedproductionservicev2VersionapimodelResponse. # noqa: E501
|
|
70
|
+
:type: DecoratedProductionServiceV2VersionAPIModel
|
|
71
|
+
"""
|
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
|
74
|
+
|
|
75
|
+
self._result = result
|
|
76
|
+
|
|
77
|
+
def to_dict(self):
|
|
78
|
+
"""Returns the model properties as a dict"""
|
|
79
|
+
result = {}
|
|
80
|
+
|
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
82
|
+
value = getattr(self, attr)
|
|
83
|
+
if isinstance(value, list):
|
|
84
|
+
result[attr] = list(map(
|
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
86
|
+
value
|
|
87
|
+
))
|
|
88
|
+
elif hasattr(value, "to_dict"):
|
|
89
|
+
result[attr] = value.to_dict()
|
|
90
|
+
elif isinstance(value, dict):
|
|
91
|
+
result[attr] = dict(map(
|
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
|
94
|
+
value.items()
|
|
95
|
+
))
|
|
96
|
+
else:
|
|
97
|
+
result[attr] = value
|
|
98
|
+
|
|
99
|
+
return result
|
|
100
|
+
|
|
101
|
+
def to_str(self):
|
|
102
|
+
"""Returns the string representation of the model"""
|
|
103
|
+
return pprint.pformat(self.to_dict())
|
|
104
|
+
|
|
105
|
+
def __repr__(self):
|
|
106
|
+
"""For `print` and `pprint`"""
|
|
107
|
+
return self.to_str()
|
|
108
|
+
|
|
109
|
+
def __eq__(self, other):
|
|
110
|
+
"""Returns true if both objects are equal"""
|
|
111
|
+
if not isinstance(other, Decoratedproductionservicev2VersionapimodelResponse):
|
|
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, Decoratedproductionservicev2VersionapimodelResponse):
|
|
119
|
+
return True
|
|
120
|
+
|
|
121
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -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. If not provided, no filtering is performed. # 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. If not provided, no filtering is performed. # 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 DescribeMachinePoolRequestsFilters(object):
|
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
36
|
'partitions': 'list[str]',
|
|
37
|
-
'workload_name': 'TextQuery'
|
|
37
|
+
'workload_name': 'TextQuery',
|
|
38
|
+
'machine_type_partition_filters': 'list[MachineTypePartitionFilter]'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
41
42
|
'partitions': 'partitions',
|
|
42
|
-
'workload_name': 'workload_name'
|
|
43
|
+
'workload_name': 'workload_name',
|
|
44
|
+
'machine_type_partition_filters': 'machine_type_partition_filters'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, partitions=None, workload_name=None, local_vars_configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, partitions=None, workload_name=None, machine_type_partition_filters=None, local_vars_configuration=None): # noqa: E501
|
|
46
48
|
"""DescribeMachinePoolRequestsFilters - a model defined in OpenAPI""" # noqa: E501
|
|
47
49
|
if local_vars_configuration is None:
|
|
48
50
|
local_vars_configuration = Configuration()
|
|
@@ -50,18 +52,21 @@ class DescribeMachinePoolRequestsFilters(object):
|
|
|
50
52
|
|
|
51
53
|
self._partitions = None
|
|
52
54
|
self._workload_name = None
|
|
55
|
+
self._machine_type_partition_filters = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
55
58
|
if partitions is not None:
|
|
56
59
|
self.partitions = partitions
|
|
57
60
|
if workload_name is not None:
|
|
58
61
|
self.workload_name = workload_name
|
|
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 partitions(self):
|
|
62
67
|
"""Gets the partitions of this DescribeMachinePoolRequestsFilters. # noqa: E501
|
|
63
68
|
|
|
64
|
-
The partitions to filter by. # noqa: E501
|
|
69
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
65
70
|
|
|
66
71
|
:return: The partitions of this DescribeMachinePoolRequestsFilters. # noqa: E501
|
|
67
72
|
:rtype: list[str]
|
|
@@ -72,7 +77,7 @@ class DescribeMachinePoolRequestsFilters(object):
|
|
|
72
77
|
def partitions(self, partitions):
|
|
73
78
|
"""Sets the partitions of this DescribeMachinePoolRequestsFilters.
|
|
74
79
|
|
|
75
|
-
The partitions to filter by. # noqa: E501
|
|
80
|
+
The partitions to filter by (for backward compatibility). # noqa: E501
|
|
76
81
|
|
|
77
82
|
:param partitions: The partitions of this DescribeMachinePoolRequestsFilters. # noqa: E501
|
|
78
83
|
:type: list[str]
|
|
@@ -103,6 +108,29 @@ class DescribeMachinePoolRequestsFilters(object):
|
|
|
103
108
|
|
|
104
109
|
self._workload_name = workload_name
|
|
105
110
|
|
|
111
|
+
@property
|
|
112
|
+
def machine_type_partition_filters(self):
|
|
113
|
+
"""Gets the machine_type_partition_filters of this DescribeMachinePoolRequestsFilters. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The machine_type, partition pair to filter by. If not provided, no filtering is performed. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The machine_type_partition_filters of this DescribeMachinePoolRequestsFilters. # 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 DescribeMachinePoolRequestsFilters.
|
|
125
|
+
|
|
126
|
+
The machine_type, partition pair to filter by. If not provided, no filtering is performed. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param machine_type_partition_filters: The machine_type_partition_filters of this DescribeMachinePoolRequestsFilters. # 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. If not provided, no filtering is performed. # 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. If not provided, no filtering is performed. # 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()
|