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
|
@@ -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 ApplyMultiVersionUpdateWeightsUpdateModel(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
|
+
'versions': 'list[ApplyVersionWeightUpdateModel]'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'service_id': 'service_id',
|
|
42
|
+
'versions': 'versions'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, service_id=None, versions=None, local_vars_configuration=None): # noqa: E501
|
|
46
|
+
"""ApplyMultiVersionUpdateWeightsUpdateModel - 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._service_id = None
|
|
52
|
+
self._versions = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.service_id = service_id
|
|
56
|
+
self.versions = versions
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def service_id(self):
|
|
60
|
+
"""Gets the service_id of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
61
|
+
|
|
62
|
+
The id of the service to update the weights for. # noqa: E501
|
|
63
|
+
|
|
64
|
+
:return: The service_id of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._service_id
|
|
68
|
+
|
|
69
|
+
@service_id.setter
|
|
70
|
+
def service_id(self, service_id):
|
|
71
|
+
"""Sets the service_id of this ApplyMultiVersionUpdateWeightsUpdateModel.
|
|
72
|
+
|
|
73
|
+
The id of the service to update the weights for. # noqa: E501
|
|
74
|
+
|
|
75
|
+
:param service_id: The service_id of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
if self.local_vars_configuration.client_side_validation and service_id is None: # noqa: E501
|
|
79
|
+
raise ValueError("Invalid value for `service_id`, must not be `None`") # noqa: E501
|
|
80
|
+
|
|
81
|
+
self._service_id = service_id
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def versions(self):
|
|
85
|
+
"""Gets the versions of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
86
|
+
|
|
87
|
+
The versions to update the weights for. The list of weight update models. # noqa: E501
|
|
88
|
+
|
|
89
|
+
:return: The versions of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
90
|
+
:rtype: list[ApplyVersionWeightUpdateModel]
|
|
91
|
+
"""
|
|
92
|
+
return self._versions
|
|
93
|
+
|
|
94
|
+
@versions.setter
|
|
95
|
+
def versions(self, versions):
|
|
96
|
+
"""Sets the versions of this ApplyMultiVersionUpdateWeightsUpdateModel.
|
|
97
|
+
|
|
98
|
+
The versions to update the weights for. The list of weight update models. # noqa: E501
|
|
99
|
+
|
|
100
|
+
:param versions: The versions of this ApplyMultiVersionUpdateWeightsUpdateModel. # noqa: E501
|
|
101
|
+
:type: list[ApplyVersionWeightUpdateModel]
|
|
102
|
+
"""
|
|
103
|
+
if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501
|
|
104
|
+
raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501
|
|
105
|
+
|
|
106
|
+
self._versions = versions
|
|
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, ApplyMultiVersionUpdateWeightsUpdateModel):
|
|
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, ApplyMultiVersionUpdateWeightsUpdateModel):
|
|
150
|
+
return True
|
|
151
|
+
|
|
152
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,207 @@
|
|
|
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 ApplyProductionServiceMultiVersionV2Model(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
|
+
'rollout_strategy': 'RolloutStrategy',
|
|
37
|
+
'cloud_id': 'str',
|
|
38
|
+
'project_id': 'str',
|
|
39
|
+
'service_versions': 'list[ApplyProductionServiceV2Model]'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'rollout_strategy': 'rollout_strategy',
|
|
44
|
+
'cloud_id': 'cloud_id',
|
|
45
|
+
'project_id': 'project_id',
|
|
46
|
+
'service_versions': 'service_versions'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, rollout_strategy=None, cloud_id=None, project_id=None, service_versions=None, local_vars_configuration=None): # noqa: E501
|
|
50
|
+
"""ApplyProductionServiceMultiVersionV2Model - 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._rollout_strategy = None
|
|
56
|
+
self._cloud_id = None
|
|
57
|
+
self._project_id = None
|
|
58
|
+
self._service_versions = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if rollout_strategy is not None:
|
|
62
|
+
self.rollout_strategy = rollout_strategy
|
|
63
|
+
if cloud_id is not None:
|
|
64
|
+
self.cloud_id = cloud_id
|
|
65
|
+
if project_id is not None:
|
|
66
|
+
self.project_id = project_id
|
|
67
|
+
self.service_versions = service_versions
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def rollout_strategy(self):
|
|
71
|
+
"""Gets the rollout_strategy of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
72
|
+
|
|
73
|
+
Strategy for rollout. The ROLLOUT strategy will deploy your Ray Serve configuration onto a newly started cluster, and then shift traffic over to the new cluster. You can manually control the speed of the rollout using the canary_percent configuration. The IN_PLACE strategy will use Ray Serve in place upgrade to update your existing cluster in place. When using this rollout strategy, you may only change the ray_serve_config field. You cannot partially shift traffic or rollback an in place upgrade. In place upgrades are faster and riskier than rollouts, and we recommend only using them for relatively safe changes (for example, increasing the number of replicas on a Ray Serve deployment). The MULTI_VERSION strategy will deploy multiple versions of the service. You can shift traffic between versions using the traffic_percent configuration.Default strategy is ROLLOUT. # noqa: E501
|
|
74
|
+
|
|
75
|
+
:return: The rollout_strategy of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
76
|
+
:rtype: RolloutStrategy
|
|
77
|
+
"""
|
|
78
|
+
return self._rollout_strategy
|
|
79
|
+
|
|
80
|
+
@rollout_strategy.setter
|
|
81
|
+
def rollout_strategy(self, rollout_strategy):
|
|
82
|
+
"""Sets the rollout_strategy of this ApplyProductionServiceMultiVersionV2Model.
|
|
83
|
+
|
|
84
|
+
Strategy for rollout. The ROLLOUT strategy will deploy your Ray Serve configuration onto a newly started cluster, and then shift traffic over to the new cluster. You can manually control the speed of the rollout using the canary_percent configuration. The IN_PLACE strategy will use Ray Serve in place upgrade to update your existing cluster in place. When using this rollout strategy, you may only change the ray_serve_config field. You cannot partially shift traffic or rollback an in place upgrade. In place upgrades are faster and riskier than rollouts, and we recommend only using them for relatively safe changes (for example, increasing the number of replicas on a Ray Serve deployment). The MULTI_VERSION strategy will deploy multiple versions of the service. You can shift traffic between versions using the traffic_percent configuration.Default strategy is ROLLOUT. # noqa: E501
|
|
85
|
+
|
|
86
|
+
:param rollout_strategy: The rollout_strategy of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
87
|
+
:type: RolloutStrategy
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
self._rollout_strategy = rollout_strategy
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def cloud_id(self):
|
|
94
|
+
"""Gets the cloud_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
95
|
+
|
|
96
|
+
Id of the cloud this Service will launch clusters in. # noqa: E501
|
|
97
|
+
|
|
98
|
+
:return: The cloud_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._cloud_id
|
|
102
|
+
|
|
103
|
+
@cloud_id.setter
|
|
104
|
+
def cloud_id(self, cloud_id):
|
|
105
|
+
"""Sets the cloud_id of this ApplyProductionServiceMultiVersionV2Model.
|
|
106
|
+
|
|
107
|
+
Id of the cloud this Service will launch clusters in. # noqa: E501
|
|
108
|
+
|
|
109
|
+
:param cloud_id: The cloud_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
110
|
+
:type: str
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._cloud_id = cloud_id
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def project_id(self):
|
|
117
|
+
"""Gets the project_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
118
|
+
|
|
119
|
+
Id of the project this Service will start clusters in. # noqa: E501
|
|
120
|
+
|
|
121
|
+
:return: The project_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._project_id
|
|
125
|
+
|
|
126
|
+
@project_id.setter
|
|
127
|
+
def project_id(self, project_id):
|
|
128
|
+
"""Sets the project_id of this ApplyProductionServiceMultiVersionV2Model.
|
|
129
|
+
|
|
130
|
+
Id of the project this Service will start clusters in. # noqa: E501
|
|
131
|
+
|
|
132
|
+
:param project_id: The project_id of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
133
|
+
:type: str
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
self._project_id = project_id
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def service_versions(self):
|
|
140
|
+
"""Gets the service_versions of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
141
|
+
|
|
142
|
+
List of versions to deploy. Each version is a deployment of the service. # noqa: E501
|
|
143
|
+
|
|
144
|
+
:return: The service_versions of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
145
|
+
:rtype: list[ApplyProductionServiceV2Model]
|
|
146
|
+
"""
|
|
147
|
+
return self._service_versions
|
|
148
|
+
|
|
149
|
+
@service_versions.setter
|
|
150
|
+
def service_versions(self, service_versions):
|
|
151
|
+
"""Sets the service_versions of this ApplyProductionServiceMultiVersionV2Model.
|
|
152
|
+
|
|
153
|
+
List of versions to deploy. Each version is a deployment of the service. # noqa: E501
|
|
154
|
+
|
|
155
|
+
:param service_versions: The service_versions of this ApplyProductionServiceMultiVersionV2Model. # noqa: E501
|
|
156
|
+
:type: list[ApplyProductionServiceV2Model]
|
|
157
|
+
"""
|
|
158
|
+
if self.local_vars_configuration.client_side_validation and service_versions is None: # noqa: E501
|
|
159
|
+
raise ValueError("Invalid value for `service_versions`, must not be `None`") # noqa: E501
|
|
160
|
+
|
|
161
|
+
self._service_versions = service_versions
|
|
162
|
+
|
|
163
|
+
def to_dict(self):
|
|
164
|
+
"""Returns the model properties as a dict"""
|
|
165
|
+
result = {}
|
|
166
|
+
|
|
167
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
168
|
+
value = getattr(self, attr)
|
|
169
|
+
if isinstance(value, list):
|
|
170
|
+
result[attr] = list(map(
|
|
171
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
172
|
+
value
|
|
173
|
+
))
|
|
174
|
+
elif hasattr(value, "to_dict"):
|
|
175
|
+
result[attr] = value.to_dict()
|
|
176
|
+
elif isinstance(value, dict):
|
|
177
|
+
result[attr] = dict(map(
|
|
178
|
+
lambda item: (item[0], item[1].to_dict())
|
|
179
|
+
if hasattr(item[1], "to_dict") else item,
|
|
180
|
+
value.items()
|
|
181
|
+
))
|
|
182
|
+
else:
|
|
183
|
+
result[attr] = value
|
|
184
|
+
|
|
185
|
+
return result
|
|
186
|
+
|
|
187
|
+
def to_str(self):
|
|
188
|
+
"""Returns the string representation of the model"""
|
|
189
|
+
return pprint.pformat(self.to_dict())
|
|
190
|
+
|
|
191
|
+
def __repr__(self):
|
|
192
|
+
"""For `print` and `pprint`"""
|
|
193
|
+
return self.to_str()
|
|
194
|
+
|
|
195
|
+
def __eq__(self, other):
|
|
196
|
+
"""Returns true if both objects are equal"""
|
|
197
|
+
if not isinstance(other, ApplyProductionServiceMultiVersionV2Model):
|
|
198
|
+
return False
|
|
199
|
+
|
|
200
|
+
return self.to_dict() == other.to_dict()
|
|
201
|
+
|
|
202
|
+
def __ne__(self, other):
|
|
203
|
+
"""Returns true if both objects are not equal"""
|
|
204
|
+
if not isinstance(other, ApplyProductionServiceMultiVersionV2Model):
|
|
205
|
+
return True
|
|
206
|
+
|
|
207
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -47,7 +47,8 @@ class ApplyProductionServiceV2Model(object):
|
|
|
47
47
|
'tracing_config': 'TracingConfig',
|
|
48
48
|
'auto_complete_rollout': 'bool',
|
|
49
49
|
'max_surge_percent': 'int',
|
|
50
|
-
'tags': 'dict(str, str)'
|
|
50
|
+
'tags': 'dict(str, str)',
|
|
51
|
+
'traffic_percent': 'int'
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
attribute_map = {
|
|
@@ -65,10 +66,11 @@ class ApplyProductionServiceV2Model(object):
|
|
|
65
66
|
'tracing_config': 'tracing_config',
|
|
66
67
|
'auto_complete_rollout': 'auto_complete_rollout',
|
|
67
68
|
'max_surge_percent': 'max_surge_percent',
|
|
68
|
-
'tags': 'tags'
|
|
69
|
+
'tags': 'tags',
|
|
70
|
+
'traffic_percent': 'traffic_percent'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, name=None, description=None, project_id=None, version=None, canary_percent=None, ray_serve_config=None, build_id=None, compute_config_id=None, config=None, rollout_strategy=None, ray_gcs_external_storage_config=None, tracing_config=None, auto_complete_rollout=True, max_surge_percent=None, tags=None, local_vars_configuration=None): # noqa: E501
|
|
73
|
+
def __init__(self, name=None, description=None, project_id=None, version=None, canary_percent=None, ray_serve_config=None, build_id=None, compute_config_id=None, config=None, rollout_strategy=None, ray_gcs_external_storage_config=None, tracing_config=None, auto_complete_rollout=True, max_surge_percent=None, tags=None, traffic_percent=None, local_vars_configuration=None): # noqa: E501
|
|
72
74
|
"""ApplyProductionServiceV2Model - a model defined in OpenAPI""" # noqa: E501
|
|
73
75
|
if local_vars_configuration is None:
|
|
74
76
|
local_vars_configuration = Configuration()
|
|
@@ -89,6 +91,7 @@ class ApplyProductionServiceV2Model(object):
|
|
|
89
91
|
self._auto_complete_rollout = None
|
|
90
92
|
self._max_surge_percent = None
|
|
91
93
|
self._tags = None
|
|
94
|
+
self._traffic_percent = None
|
|
92
95
|
self.discriminator = None
|
|
93
96
|
|
|
94
97
|
self.name = name
|
|
@@ -117,6 +120,8 @@ class ApplyProductionServiceV2Model(object):
|
|
|
117
120
|
self.max_surge_percent = max_surge_percent
|
|
118
121
|
if tags is not None:
|
|
119
122
|
self.tags = tags
|
|
123
|
+
if traffic_percent is not None:
|
|
124
|
+
self.traffic_percent = traffic_percent
|
|
120
125
|
|
|
121
126
|
@property
|
|
122
127
|
def name(self):
|
|
@@ -471,6 +476,29 @@ class ApplyProductionServiceV2Model(object):
|
|
|
471
476
|
|
|
472
477
|
self._tags = tags
|
|
473
478
|
|
|
479
|
+
@property
|
|
480
|
+
def traffic_percent(self):
|
|
481
|
+
"""Gets the traffic_percent of this ApplyProductionServiceV2Model. # noqa: E501
|
|
482
|
+
|
|
483
|
+
Percentage of traffic forwarded to a particular service version from the ALB. # noqa: E501
|
|
484
|
+
|
|
485
|
+
:return: The traffic_percent of this ApplyProductionServiceV2Model. # noqa: E501
|
|
486
|
+
:rtype: int
|
|
487
|
+
"""
|
|
488
|
+
return self._traffic_percent
|
|
489
|
+
|
|
490
|
+
@traffic_percent.setter
|
|
491
|
+
def traffic_percent(self, traffic_percent):
|
|
492
|
+
"""Sets the traffic_percent of this ApplyProductionServiceV2Model.
|
|
493
|
+
|
|
494
|
+
Percentage of traffic forwarded to a particular service version from the ALB. # noqa: E501
|
|
495
|
+
|
|
496
|
+
:param traffic_percent: The traffic_percent of this ApplyProductionServiceV2Model. # noqa: E501
|
|
497
|
+
:type: int
|
|
498
|
+
"""
|
|
499
|
+
|
|
500
|
+
self._traffic_percent = traffic_percent
|
|
501
|
+
|
|
474
502
|
def to_dict(self):
|
|
475
503
|
"""Returns the model properties as a dict"""
|
|
476
504
|
result = {}
|
|
@@ -0,0 +1,181 @@
|
|
|
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 ApplyVersionWeightUpdateModel(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
|
+
'id': 'str',
|
|
37
|
+
'name': 'str',
|
|
38
|
+
'traffic_percent': 'int'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'id': 'id',
|
|
43
|
+
'name': 'name',
|
|
44
|
+
'traffic_percent': 'traffic_percent'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, id=None, name=None, traffic_percent=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
+
"""ApplyVersionWeightUpdateModel - a model defined in OpenAPI""" # noqa: E501
|
|
49
|
+
if local_vars_configuration is None:
|
|
50
|
+
local_vars_configuration = Configuration()
|
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
|
52
|
+
|
|
53
|
+
self._id = None
|
|
54
|
+
self._name = None
|
|
55
|
+
self._traffic_percent = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
self.id = id
|
|
59
|
+
self.name = name
|
|
60
|
+
self.traffic_percent = traffic_percent
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def id(self):
|
|
64
|
+
"""Gets the id of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
65
|
+
|
|
66
|
+
The id of the service version to update the weight for. # noqa: E501
|
|
67
|
+
|
|
68
|
+
:return: The id of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._id
|
|
72
|
+
|
|
73
|
+
@id.setter
|
|
74
|
+
def id(self, id):
|
|
75
|
+
"""Sets the id of this ApplyVersionWeightUpdateModel.
|
|
76
|
+
|
|
77
|
+
The id of the service version to update the weight for. # noqa: E501
|
|
78
|
+
|
|
79
|
+
:param id: The id of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
80
|
+
:type: str
|
|
81
|
+
"""
|
|
82
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
|
83
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
84
|
+
|
|
85
|
+
self._id = id
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def name(self):
|
|
89
|
+
"""Gets the name of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
90
|
+
|
|
91
|
+
The name of the service version to update the weight for. # noqa: E501
|
|
92
|
+
|
|
93
|
+
:return: The name of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._name
|
|
97
|
+
|
|
98
|
+
@name.setter
|
|
99
|
+
def name(self, name):
|
|
100
|
+
"""Sets the name of this ApplyVersionWeightUpdateModel.
|
|
101
|
+
|
|
102
|
+
The name of the service version to update the weight for. # noqa: E501
|
|
103
|
+
|
|
104
|
+
:param name: The name of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
108
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
109
|
+
|
|
110
|
+
self._name = name
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def traffic_percent(self):
|
|
114
|
+
"""Gets the traffic_percent of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
115
|
+
|
|
116
|
+
The traffic percent of the service version. This is a number between 0 and 100. # noqa: E501
|
|
117
|
+
|
|
118
|
+
:return: The traffic_percent of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
119
|
+
:rtype: int
|
|
120
|
+
"""
|
|
121
|
+
return self._traffic_percent
|
|
122
|
+
|
|
123
|
+
@traffic_percent.setter
|
|
124
|
+
def traffic_percent(self, traffic_percent):
|
|
125
|
+
"""Sets the traffic_percent of this ApplyVersionWeightUpdateModel.
|
|
126
|
+
|
|
127
|
+
The traffic percent of the service version. This is a number between 0 and 100. # noqa: E501
|
|
128
|
+
|
|
129
|
+
:param traffic_percent: The traffic_percent of this ApplyVersionWeightUpdateModel. # noqa: E501
|
|
130
|
+
:type: int
|
|
131
|
+
"""
|
|
132
|
+
if self.local_vars_configuration.client_side_validation and traffic_percent is None: # noqa: E501
|
|
133
|
+
raise ValueError("Invalid value for `traffic_percent`, must not be `None`") # noqa: E501
|
|
134
|
+
|
|
135
|
+
self._traffic_percent = traffic_percent
|
|
136
|
+
|
|
137
|
+
def to_dict(self):
|
|
138
|
+
"""Returns the model properties as a dict"""
|
|
139
|
+
result = {}
|
|
140
|
+
|
|
141
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
142
|
+
value = getattr(self, attr)
|
|
143
|
+
if isinstance(value, list):
|
|
144
|
+
result[attr] = list(map(
|
|
145
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
146
|
+
value
|
|
147
|
+
))
|
|
148
|
+
elif hasattr(value, "to_dict"):
|
|
149
|
+
result[attr] = value.to_dict()
|
|
150
|
+
elif isinstance(value, dict):
|
|
151
|
+
result[attr] = dict(map(
|
|
152
|
+
lambda item: (item[0], item[1].to_dict())
|
|
153
|
+
if hasattr(item[1], "to_dict") else item,
|
|
154
|
+
value.items()
|
|
155
|
+
))
|
|
156
|
+
else:
|
|
157
|
+
result[attr] = value
|
|
158
|
+
|
|
159
|
+
return result
|
|
160
|
+
|
|
161
|
+
def to_str(self):
|
|
162
|
+
"""Returns the string representation of the model"""
|
|
163
|
+
return pprint.pformat(self.to_dict())
|
|
164
|
+
|
|
165
|
+
def __repr__(self):
|
|
166
|
+
"""For `print` and `pprint`"""
|
|
167
|
+
return self.to_str()
|
|
168
|
+
|
|
169
|
+
def __eq__(self, other):
|
|
170
|
+
"""Returns true if both objects are equal"""
|
|
171
|
+
if not isinstance(other, ApplyVersionWeightUpdateModel):
|
|
172
|
+
return False
|
|
173
|
+
|
|
174
|
+
return self.to_dict() == other.to_dict()
|
|
175
|
+
|
|
176
|
+
def __ne__(self, other):
|
|
177
|
+
"""Returns true if both objects are not equal"""
|
|
178
|
+
if not isinstance(other, ApplyVersionWeightUpdateModel):
|
|
179
|
+
return True
|
|
180
|
+
|
|
181
|
+
return self.to_dict() != other.to_dict()
|