anyscale 0.26.70__py3-none-any.whl → 0.26.72__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 +63 -6
- anyscale/_private/anyscale_client/common.py +33 -3
- anyscale/_private/anyscale_client/fake_anyscale_client.py +27 -2
- anyscale/client/README.md +29 -0
- anyscale/client/openapi_client/__init__.py +19 -0
- anyscale/client/openapi_client/api/default_api.py +1307 -4
- anyscale/client/openapi_client/models/__init__.py +19 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- 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 +70 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- 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_workspace_template_version.py +31 -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/data_catalog_object_type.py +100 -0
- 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_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +2 -2
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +2 -2
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -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_template_version.py +29 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +29 -1
- anyscale/commands/job_commands.py +120 -0
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +139 -2
- 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/job_controller.py +12 -0
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +3 -1
- 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/baseimagesenum.py +70 -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/supportedbaseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +40 -0
- anyscale/service/_private/service_sdk.py +121 -24
- anyscale/service/commands.py +75 -1
- anyscale/service/models.py +46 -2
- 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.70.dist-info → anyscale-0.26.72.dist-info}/METADATA +1 -1
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/RECORD +78 -58
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/WHEEL +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/top_level.txt +0 -0
|
@@ -43,8 +43,10 @@ from openapi_client.models.appconfig_response import AppconfigResponse
|
|
|
43
43
|
from openapi_client.models.application_type import ApplicationType
|
|
44
44
|
from openapi_client.models.applied_snapshot import AppliedSnapshot
|
|
45
45
|
from openapi_client.models.apply_autoscaling_config_update_model import ApplyAutoscalingConfigUpdateModel
|
|
46
|
+
from openapi_client.models.apply_multi_version_update_weights_update_model import ApplyMultiVersionUpdateWeightsUpdateModel
|
|
46
47
|
from openapi_client.models.apply_production_service_multi_version_v2_model import ApplyProductionServiceMultiVersionV2Model
|
|
47
48
|
from openapi_client.models.apply_production_service_v2_model import ApplyProductionServiceV2Model
|
|
49
|
+
from openapi_client.models.apply_version_weight_update_model import ApplyVersionWeightUpdateModel
|
|
48
50
|
from openapi_client.models.archive_status import ArchiveStatus
|
|
49
51
|
from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
|
|
50
52
|
from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
|
|
@@ -52,6 +54,8 @@ from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
|
|
|
52
54
|
from openapi_client.models.aws_region_info import AwsRegionInfo
|
|
53
55
|
from openapi_client.models.awsregionandzones_response import AwsregionandzonesResponse
|
|
54
56
|
from openapi_client.models.baseimagesenum import BASEIMAGESENUM
|
|
57
|
+
from openapi_client.models.backend_server_api_product_models_catalog_client_models_table_metadata import BackendServerApiProductModelsCatalogClientModelsTableMetadata
|
|
58
|
+
from openapi_client.models.backend_server_api_product_models_data_catalogs_table_metadata import BackendServerApiProductModelsDataCatalogsTableMetadata
|
|
55
59
|
from openapi_client.models.backend_server_api_product_models_dataset_runs_dataset_response import BackendServerApiProductModelsDatasetRunsDatasetResponse
|
|
56
60
|
from openapi_client.models.backend_server_api_product_routers_datasets_router_dataset_response import BackendServerApiProductRoutersDatasetsRouterDatasetResponse
|
|
57
61
|
from openapi_client.models.base_job_status import BaseJobStatus
|
|
@@ -66,6 +70,7 @@ from openapi_client.models.build_response import BuildResponse
|
|
|
66
70
|
from openapi_client.models.build_status import BuildStatus
|
|
67
71
|
from openapi_client.models.buildlogresponse_response import BuildlogresponseResponse
|
|
68
72
|
from openapi_client.models.cli_usage_payload import CLIUsagePayload
|
|
73
|
+
from openapi_client.models.catalog_metadata import CatalogMetadata
|
|
69
74
|
from openapi_client.models.change_password_params import ChangePasswordParams
|
|
70
75
|
from openapi_client.models.cleanup_leaked_grafana_dashboard_response import CleanupLeakedGrafanaDashboardResponse
|
|
71
76
|
from openapi_client.models.cleanupleakedgrafanadashboardresponse_response import CleanupleakedgrafanadashboardresponseResponse
|
|
@@ -143,6 +148,7 @@ from openapi_client.models.clusterevent_list_response import ClustereventListRes
|
|
|
143
148
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
144
149
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
|
145
150
|
from openapi_client.models.collaborator_type import CollaboratorType
|
|
151
|
+
from openapi_client.models.column_info import ColumnInfo
|
|
146
152
|
from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
|
|
147
153
|
from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
|
|
148
154
|
from openapi_client.models.complexity_level import ComplexityLevel
|
|
@@ -153,6 +159,7 @@ from openapi_client.models.compute_template_config import ComputeTemplateConfig
|
|
|
153
159
|
from openapi_client.models.compute_template_query import ComputeTemplateQuery
|
|
154
160
|
from openapi_client.models.computetemplate_response import ComputetemplateResponse
|
|
155
161
|
from openapi_client.models.computetemplateconfig_response import ComputetemplateconfigResponse
|
|
162
|
+
from openapi_client.models.connection_metadata import ConnectionMetadata
|
|
156
163
|
from openapi_client.models.connection_type import ConnectionType
|
|
157
164
|
from openapi_client.models.create_aioa_cloud_waitlist import CreateAioaCloudWaitlist
|
|
158
165
|
from openapi_client.models.create_analytics_event import CreateAnalyticsEvent
|
|
@@ -212,7 +219,11 @@ from openapi_client.models.dashboard_panel import DashboardPanel
|
|
|
212
219
|
from openapi_client.models.data_catalog import DataCatalog
|
|
213
220
|
from openapi_client.models.data_catalog_connection import DataCatalogConnection
|
|
214
221
|
from openapi_client.models.data_catalog_connection_status import DataCatalogConnectionStatus
|
|
222
|
+
from openapi_client.models.data_catalog_object_type import DataCatalogObjectType
|
|
215
223
|
from openapi_client.models.data_catalog_provider import DataCatalogProvider
|
|
224
|
+
from openapi_client.models.data_catalog_schema import DataCatalogSchema
|
|
225
|
+
from openapi_client.models.data_catalog_table import DataCatalogTable
|
|
226
|
+
from openapi_client.models.data_catalog_volume import DataCatalogVolume
|
|
216
227
|
from openapi_client.models.databricks_connection_config import DatabricksConnectionConfig
|
|
217
228
|
from openapi_client.models.databricks_connection_info import DatabricksConnectionInfo
|
|
218
229
|
from openapi_client.models.databricks_connection_response import DatabricksConnectionResponse
|
|
@@ -221,6 +232,9 @@ from openapi_client.models.databricksconnectioninfo_response import Databricksco
|
|
|
221
232
|
from openapi_client.models.databricksconnectionresponse_response import DatabricksconnectionresponseResponse
|
|
222
233
|
from openapi_client.models.datacatalog_list_response import DatacatalogListResponse
|
|
223
234
|
from openapi_client.models.datacatalogconnection_list_response import DatacatalogconnectionListResponse
|
|
235
|
+
from openapi_client.models.datacatalogschema_list_response import DatacatalogschemaListResponse
|
|
236
|
+
from openapi_client.models.datacatalogtable_list_response import DatacatalogtableListResponse
|
|
237
|
+
from openapi_client.models.datacatalogvolume_list_response import DatacatalogvolumeListResponse
|
|
224
238
|
from openapi_client.models.dataplane_services import DataplaneServices
|
|
225
239
|
from openapi_client.models.dataset import Dataset
|
|
226
240
|
from openapi_client.models.dataset_dag import DatasetDag
|
|
@@ -269,6 +283,7 @@ from openapi_client.models.decoratedproductionjob_response import Decoratedprodu
|
|
|
269
283
|
from openapi_client.models.decoratedproductionjobstatetransition_list_response import DecoratedproductionjobstatetransitionListResponse
|
|
270
284
|
from openapi_client.models.decoratedproductionservicev2_apimodel_response import Decoratedproductionservicev2ApimodelResponse
|
|
271
285
|
from openapi_client.models.decoratedproductionservicev2_versionapimodel_list_response import Decoratedproductionservicev2VersionapimodelListResponse
|
|
286
|
+
from openapi_client.models.decoratedproductionservicev2_versionapimodel_response import Decoratedproductionservicev2VersionapimodelResponse
|
|
272
287
|
from openapi_client.models.decoratedschedule_list_response import DecoratedscheduleListResponse
|
|
273
288
|
from openapi_client.models.decoratedschedule_response import DecoratedscheduleResponse
|
|
274
289
|
from openapi_client.models.decoratedservedeployment_list_response import DecoratedservedeploymentListResponse
|
|
@@ -502,6 +517,7 @@ from openapi_client.models.page_query import PageQuery
|
|
|
502
517
|
from openapi_client.models.partition_info import PartitionInfo
|
|
503
518
|
from openapi_client.models.pause_schedule import PauseSchedule
|
|
504
519
|
from openapi_client.models.permission_level import PermissionLevel
|
|
520
|
+
from openapi_client.models.physical_resources import PhysicalResources
|
|
505
521
|
from openapi_client.models.plan_status import PlanStatus
|
|
506
522
|
from openapi_client.models.presigned_url_response import PresignedUrlResponse
|
|
507
523
|
from openapi_client.models.production_job import ProductionJob
|
|
@@ -570,6 +586,7 @@ from openapi_client.models.sso_mode import SSOMode
|
|
|
570
586
|
from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
|
|
571
587
|
from openapi_client.models.schedule_config import ScheduleConfig
|
|
572
588
|
from openapi_client.models.scheduler_info import SchedulerInfo
|
|
589
|
+
from openapi_client.models.schema_metadata import SchemaMetadata
|
|
573
590
|
from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
|
|
574
591
|
from openapi_client.models.serve_deployment_state import ServeDeploymentState
|
|
575
592
|
from openapi_client.models.server_session_token import ServerSessionToken
|
|
@@ -619,6 +636,7 @@ from openapi_client.models.summarize_machine_pool_response import SummarizeMachi
|
|
|
619
636
|
from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
|
|
620
637
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
|
621
638
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
|
639
|
+
from openapi_client.models.table_data_preview import TableDataPreview
|
|
622
640
|
from openapi_client.models.tag_key import TagKey
|
|
623
641
|
from openapi_client.models.tag_key_value import TagKeyValue
|
|
624
642
|
from openapi_client.models.tag_search_in import TagSearchIn
|
|
@@ -696,6 +714,7 @@ from openapi_client.models.utm_fields import UtmFields
|
|
|
696
714
|
from openapi_client.models.validate_otp_params_api_model import ValidateOTPParamsApiModel
|
|
697
715
|
from openapi_client.models.validation_error import ValidationError
|
|
698
716
|
from openapi_client.models.validation_status import ValidationStatus
|
|
717
|
+
from openapi_client.models.volume_metadata import VolumeMetadata
|
|
699
718
|
from openapi_client.models.waitlist_status_response import WaitlistStatusResponse
|
|
700
719
|
from openapi_client.models.waitlist_status_type import WaitlistStatusType
|
|
701
720
|
from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
|
|
@@ -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,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()
|