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
|
@@ -42,7 +42,11 @@ from openapi_client.models.appconfig_list_response import AppconfigListResponse
|
|
|
42
42
|
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
|
+
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
|
|
47
|
+
from openapi_client.models.apply_production_service_multi_version_v2_model import ApplyProductionServiceMultiVersionV2Model
|
|
45
48
|
from openapi_client.models.apply_production_service_v2_model import ApplyProductionServiceV2Model
|
|
49
|
+
from openapi_client.models.apply_version_weight_update_model import ApplyVersionWeightUpdateModel
|
|
46
50
|
from openapi_client.models.archive_status import ArchiveStatus
|
|
47
51
|
from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
|
|
48
52
|
from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
|
|
@@ -50,6 +54,8 @@ from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
|
|
|
50
54
|
from openapi_client.models.aws_region_info import AwsRegionInfo
|
|
51
55
|
from openapi_client.models.awsregionandzones_response import AwsregionandzonesResponse
|
|
52
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
|
|
53
59
|
from openapi_client.models.backend_server_api_product_models_dataset_runs_dataset_response import BackendServerApiProductModelsDatasetRunsDatasetResponse
|
|
54
60
|
from openapi_client.models.backend_server_api_product_routers_datasets_router_dataset_response import BackendServerApiProductRoutersDatasetsRouterDatasetResponse
|
|
55
61
|
from openapi_client.models.base_job_status import BaseJobStatus
|
|
@@ -64,6 +70,7 @@ from openapi_client.models.build_response import BuildResponse
|
|
|
64
70
|
from openapi_client.models.build_status import BuildStatus
|
|
65
71
|
from openapi_client.models.buildlogresponse_response import BuildlogresponseResponse
|
|
66
72
|
from openapi_client.models.cli_usage_payload import CLIUsagePayload
|
|
73
|
+
from openapi_client.models.catalog_metadata import CatalogMetadata
|
|
67
74
|
from openapi_client.models.change_password_params import ChangePasswordParams
|
|
68
75
|
from openapi_client.models.cleanup_leaked_grafana_dashboard_response import CleanupLeakedGrafanaDashboardResponse
|
|
69
76
|
from openapi_client.models.cleanupleakedgrafanadashboardresponse_response import CleanupleakedgrafanadashboardresponseResponse
|
|
@@ -114,6 +121,7 @@ from openapi_client.models.cloud_with_cloud_resource_gcp import CloudWithCloudRe
|
|
|
114
121
|
from openapi_client.models.cloudcollaborator_list_response import CloudcollaboratorListResponse
|
|
115
122
|
from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
|
|
116
123
|
from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
|
|
124
|
+
from openapi_client.models.clouddeployment_response import ClouddeploymentResponse
|
|
117
125
|
from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
|
|
118
126
|
from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
|
|
119
127
|
from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
|
|
@@ -140,6 +148,7 @@ from openapi_client.models.clusterevent_list_response import ClustereventListRes
|
|
|
140
148
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
141
149
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
|
142
150
|
from openapi_client.models.collaborator_type import CollaboratorType
|
|
151
|
+
from openapi_client.models.column_info import ColumnInfo
|
|
143
152
|
from openapi_client.models.commit_ledger_item_type import CommitLedgerItemType
|
|
144
153
|
from openapi_client.models.commit_ledger_record_v2 import CommitLedgerRecordV2
|
|
145
154
|
from openapi_client.models.complexity_level import ComplexityLevel
|
|
@@ -150,6 +159,7 @@ from openapi_client.models.compute_template_config import ComputeTemplateConfig
|
|
|
150
159
|
from openapi_client.models.compute_template_query import ComputeTemplateQuery
|
|
151
160
|
from openapi_client.models.computetemplate_response import ComputetemplateResponse
|
|
152
161
|
from openapi_client.models.computetemplateconfig_response import ComputetemplateconfigResponse
|
|
162
|
+
from openapi_client.models.connection_metadata import ConnectionMetadata
|
|
153
163
|
from openapi_client.models.connection_type import ConnectionType
|
|
154
164
|
from openapi_client.models.create_aioa_cloud_waitlist import CreateAioaCloudWaitlist
|
|
155
165
|
from openapi_client.models.create_analytics_event import CreateAnalyticsEvent
|
|
@@ -209,7 +219,11 @@ from openapi_client.models.dashboard_panel import DashboardPanel
|
|
|
209
219
|
from openapi_client.models.data_catalog import DataCatalog
|
|
210
220
|
from openapi_client.models.data_catalog_connection import DataCatalogConnection
|
|
211
221
|
from openapi_client.models.data_catalog_connection_status import DataCatalogConnectionStatus
|
|
222
|
+
from openapi_client.models.data_catalog_object_type import DataCatalogObjectType
|
|
212
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
|
|
213
227
|
from openapi_client.models.databricks_connection_config import DatabricksConnectionConfig
|
|
214
228
|
from openapi_client.models.databricks_connection_info import DatabricksConnectionInfo
|
|
215
229
|
from openapi_client.models.databricks_connection_response import DatabricksConnectionResponse
|
|
@@ -218,6 +232,9 @@ from openapi_client.models.databricksconnectioninfo_response import Databricksco
|
|
|
218
232
|
from openapi_client.models.databricksconnectionresponse_response import DatabricksconnectionresponseResponse
|
|
219
233
|
from openapi_client.models.datacatalog_list_response import DatacatalogListResponse
|
|
220
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
|
|
221
238
|
from openapi_client.models.dataplane_services import DataplaneServices
|
|
222
239
|
from openapi_client.models.dataset import Dataset
|
|
223
240
|
from openapi_client.models.dataset_dag import DatasetDag
|
|
@@ -266,6 +283,7 @@ from openapi_client.models.decoratedproductionjob_response import Decoratedprodu
|
|
|
266
283
|
from openapi_client.models.decoratedproductionjobstatetransition_list_response import DecoratedproductionjobstatetransitionListResponse
|
|
267
284
|
from openapi_client.models.decoratedproductionservicev2_apimodel_response import Decoratedproductionservicev2ApimodelResponse
|
|
268
285
|
from openapi_client.models.decoratedproductionservicev2_versionapimodel_list_response import Decoratedproductionservicev2VersionapimodelListResponse
|
|
286
|
+
from openapi_client.models.decoratedproductionservicev2_versionapimodel_response import Decoratedproductionservicev2VersionapimodelResponse
|
|
269
287
|
from openapi_client.models.decoratedschedule_list_response import DecoratedscheduleListResponse
|
|
270
288
|
from openapi_client.models.decoratedschedule_response import DecoratedscheduleResponse
|
|
271
289
|
from openapi_client.models.decoratedservedeployment_list_response import DecoratedservedeploymentListResponse
|
|
@@ -303,6 +321,7 @@ from openapi_client.models.editable_cloud_resource_gcp import EditableCloudResou
|
|
|
303
321
|
from openapi_client.models.email_verification_request import EmailVerificationRequest
|
|
304
322
|
from openapi_client.models.email_verification_response import EmailVerificationResponse
|
|
305
323
|
from openapi_client.models.emailverificationresponse_response import EmailverificationresponseResponse
|
|
324
|
+
from openapi_client.models.entity_type import EntityType
|
|
306
325
|
from openapi_client.models.error import Error
|
|
307
326
|
from openapi_client.models.event_level import EventLevel
|
|
308
327
|
from openapi_client.models.execute_command_response import ExecuteCommandResponse
|
|
@@ -331,7 +350,6 @@ from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
|
|
331
350
|
from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
|
|
332
351
|
from openapi_client.models.http_validation_error import HTTPValidationError
|
|
333
352
|
from openapi_client.models.ha_job_error_types import HaJobErrorTypes
|
|
334
|
-
from openapi_client.models.ha_job_event_level import HaJobEventLevel
|
|
335
353
|
from openapi_client.models.ha_job_event_origin import HaJobEventOrigin
|
|
336
354
|
from openapi_client.models.ha_job_goal_states import HaJobGoalStates
|
|
337
355
|
from openapi_client.models.ha_job_states import HaJobStates
|
|
@@ -352,6 +370,7 @@ from openapi_client.models.internal_production_job import InternalProductionJob
|
|
|
352
370
|
from openapi_client.models.internalproductionjob_response import InternalproductionjobResponse
|
|
353
371
|
from openapi_client.models.job_access import JobAccess
|
|
354
372
|
from openapi_client.models.job_details import JobDetails
|
|
373
|
+
from openapi_client.models.job_event_fields import JobEventFields
|
|
355
374
|
from openapi_client.models.job_queue import JobQueue
|
|
356
375
|
from openapi_client.models.job_queue_config import JobQueueConfig
|
|
357
376
|
from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
|
@@ -421,6 +440,7 @@ from openapi_client.models.machine_pool import MachinePool
|
|
|
421
440
|
from openapi_client.models.machine_pool_search_query import MachinePoolSearchQuery
|
|
422
441
|
from openapi_client.models.machine_pool_search_result import MachinePoolSearchResult
|
|
423
442
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
443
|
+
from openapi_client.models.machine_type_partition_filter import MachineTypePartitionFilter
|
|
424
444
|
from openapi_client.models.machinepoolsearchresult_list_response import MachinepoolsearchresultListResponse
|
|
425
445
|
from openapi_client.models.machinestateinfo_list_response import MachinestateinfoListResponse
|
|
426
446
|
from openapi_client.models.metric import Metric
|
|
@@ -460,9 +480,7 @@ from openapi_client.models.nodemetricsresponse_response import Nodemetricsrespon
|
|
|
460
480
|
from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
|
|
461
481
|
from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
|
|
462
482
|
from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
|
|
463
|
-
from openapi_client.models.o_auth_connection_response import OAuthConnectionResponse
|
|
464
483
|
from openapi_client.models.oauth_auth_url_response import OauthAuthUrlResponse
|
|
465
|
-
from openapi_client.models.oauthconnectionresponse_response import OauthconnectionresponseResponse
|
|
466
484
|
from openapi_client.models.object_storage import ObjectStorage
|
|
467
485
|
from openapi_client.models.operation_error import OperationError
|
|
468
486
|
from openapi_client.models.operation_progress import OperationProgress
|
|
@@ -499,6 +517,7 @@ from openapi_client.models.page_query import PageQuery
|
|
|
499
517
|
from openapi_client.models.partition_info import PartitionInfo
|
|
500
518
|
from openapi_client.models.pause_schedule import PauseSchedule
|
|
501
519
|
from openapi_client.models.permission_level import PermissionLevel
|
|
520
|
+
from openapi_client.models.physical_resources import PhysicalResources
|
|
502
521
|
from openapi_client.models.plan_status import PlanStatus
|
|
503
522
|
from openapi_client.models.presigned_url_response import PresignedUrlResponse
|
|
504
523
|
from openapi_client.models.production_job import ProductionJob
|
|
@@ -567,13 +586,14 @@ from openapi_client.models.sso_mode import SSOMode
|
|
|
567
586
|
from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
|
|
568
587
|
from openapi_client.models.schedule_config import ScheduleConfig
|
|
569
588
|
from openapi_client.models.scheduler_info import SchedulerInfo
|
|
589
|
+
from openapi_client.models.schema_metadata import SchemaMetadata
|
|
570
590
|
from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
|
|
571
591
|
from openapi_client.models.serve_deployment_state import ServeDeploymentState
|
|
572
592
|
from openapi_client.models.server_session_token import ServerSessionToken
|
|
573
593
|
from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
|
|
574
594
|
from openapi_client.models.service_config import ServiceConfig
|
|
575
595
|
from openapi_client.models.service_event_current_state import ServiceEventCurrentState
|
|
576
|
-
from openapi_client.models.
|
|
596
|
+
from openapi_client.models.service_event_fields import ServiceEventFields
|
|
577
597
|
from openapi_client.models.service_event_origin import ServiceEventOrigin
|
|
578
598
|
from openapi_client.models.service_event_scope import ServiceEventScope
|
|
579
599
|
from openapi_client.models.service_event_scope_filter import ServiceEventScopeFilter
|
|
@@ -616,6 +636,7 @@ from openapi_client.models.summarize_machine_pool_response import SummarizeMachi
|
|
|
616
636
|
from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
|
|
617
637
|
from openapi_client.models.support_requests_query import SupportRequestsQuery
|
|
618
638
|
from openapi_client.models.system_workload_name import SystemWorkloadName
|
|
639
|
+
from openapi_client.models.table_data_preview import TableDataPreview
|
|
619
640
|
from openapi_client.models.tag_key import TagKey
|
|
620
641
|
from openapi_client.models.tag_key_value import TagKeyValue
|
|
621
642
|
from openapi_client.models.tag_search_in import TagSearchIn
|
|
@@ -650,9 +671,12 @@ from openapi_client.models.trainrun_list_response import TrainrunListResponse
|
|
|
650
671
|
from openapi_client.models.try_login_email_response import TryLoginEmailResponse
|
|
651
672
|
from openapi_client.models.tryloginemailresponse_response import TryloginemailresponseResponse
|
|
652
673
|
from openapi_client.models.ux_instance import UXInstance
|
|
674
|
+
from openapi_client.models.unified_event import UnifiedEvent
|
|
653
675
|
from openapi_client.models.unified_job_sort_field import UnifiedJobSortField
|
|
654
676
|
from openapi_client.models.unified_job_status import UnifiedJobStatus
|
|
655
677
|
from openapi_client.models.unified_job_type import UnifiedJobType
|
|
678
|
+
from openapi_client.models.unified_origin_filter import UnifiedOriginFilter
|
|
679
|
+
from openapi_client.models.unifiedevent_list_response import UnifiedeventListResponse
|
|
656
680
|
from openapi_client.models.update_cloud_collaborator import UpdateCloudCollaborator
|
|
657
681
|
from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
|
|
658
682
|
from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
|
|
@@ -690,6 +714,7 @@ from openapi_client.models.utm_fields import UtmFields
|
|
|
690
714
|
from openapi_client.models.validate_otp_params_api_model import ValidateOTPParamsApiModel
|
|
691
715
|
from openapi_client.models.validation_error import ValidationError
|
|
692
716
|
from openapi_client.models.validation_status import ValidationStatus
|
|
717
|
+
from openapi_client.models.volume_metadata import VolumeMetadata
|
|
693
718
|
from openapi_client.models.waitlist_status_response import WaitlistStatusResponse
|
|
694
719
|
from openapi_client.models.waitlist_status_type import WaitlistStatusType
|
|
695
720
|
from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
|
|
@@ -706,6 +731,7 @@ from openapi_client.models.workspace_dataplane_artifact import WorkspaceDataplan
|
|
|
706
731
|
from openapi_client.models.workspace_dataplane_artifacts import WorkspaceDataplaneArtifacts
|
|
707
732
|
from openapi_client.models.workspace_dataplane_proxied_artifacts import WorkspaceDataplaneProxiedArtifacts
|
|
708
733
|
from openapi_client.models.workspace_event import WorkspaceEvent
|
|
734
|
+
from openapi_client.models.workspace_event_fields import WorkspaceEventFields
|
|
709
735
|
from openapi_client.models.workspace_event_source import WorkspaceEventSource
|
|
710
736
|
from openapi_client.models.workspace_event_source_filter import WorkspaceEventSourceFilter
|
|
711
737
|
from openapi_client.models.workspace_readme import WorkspaceReadme
|
|
@@ -39,7 +39,8 @@ class ApiKeyInfo(object):
|
|
|
39
39
|
'expires_at': 'datetime',
|
|
40
40
|
'name': 'str',
|
|
41
41
|
'created_by': 'str',
|
|
42
|
-
'revoked_at': 'datetime'
|
|
42
|
+
'revoked_at': 'datetime',
|
|
43
|
+
'last_used_at': 'datetime'
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
attribute_map = {
|
|
@@ -49,10 +50,11 @@ class ApiKeyInfo(object):
|
|
|
49
50
|
'expires_at': 'expires_at',
|
|
50
51
|
'name': 'name',
|
|
51
52
|
'created_by': 'created_by',
|
|
52
|
-
'revoked_at': 'revoked_at'
|
|
53
|
+
'revoked_at': 'revoked_at',
|
|
54
|
+
'last_used_at': 'last_used_at'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, hex_hashed_id=None, display_id=None, created_at=None, expires_at=None, name=None, created_by=None, revoked_at=None, local_vars_configuration=None): # noqa: E501
|
|
57
|
+
def __init__(self, hex_hashed_id=None, display_id=None, created_at=None, expires_at=None, name=None, created_by=None, revoked_at=None, last_used_at=None, local_vars_configuration=None): # noqa: E501
|
|
56
58
|
"""ApiKeyInfo - a model defined in OpenAPI""" # noqa: E501
|
|
57
59
|
if local_vars_configuration is None:
|
|
58
60
|
local_vars_configuration = Configuration()
|
|
@@ -65,6 +67,7 @@ class ApiKeyInfo(object):
|
|
|
65
67
|
self._name = None
|
|
66
68
|
self._created_by = None
|
|
67
69
|
self._revoked_at = None
|
|
70
|
+
self._last_used_at = None
|
|
68
71
|
self.discriminator = None
|
|
69
72
|
|
|
70
73
|
self.hex_hashed_id = hex_hashed_id
|
|
@@ -77,6 +80,8 @@ class ApiKeyInfo(object):
|
|
|
77
80
|
self.created_by = created_by
|
|
78
81
|
if revoked_at is not None:
|
|
79
82
|
self.revoked_at = revoked_at
|
|
83
|
+
if last_used_at is not None:
|
|
84
|
+
self.last_used_at = last_used_at
|
|
80
85
|
|
|
81
86
|
@property
|
|
82
87
|
def hex_hashed_id(self):
|
|
@@ -233,6 +238,27 @@ class ApiKeyInfo(object):
|
|
|
233
238
|
|
|
234
239
|
self._revoked_at = revoked_at
|
|
235
240
|
|
|
241
|
+
@property
|
|
242
|
+
def last_used_at(self):
|
|
243
|
+
"""Gets the last_used_at of this ApiKeyInfo. # noqa: E501
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
:return: The last_used_at of this ApiKeyInfo. # noqa: E501
|
|
247
|
+
:rtype: datetime
|
|
248
|
+
"""
|
|
249
|
+
return self._last_used_at
|
|
250
|
+
|
|
251
|
+
@last_used_at.setter
|
|
252
|
+
def last_used_at(self, last_used_at):
|
|
253
|
+
"""Sets the last_used_at of this ApiKeyInfo.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:param last_used_at: The last_used_at of this ApiKeyInfo. # noqa: E501
|
|
257
|
+
:type: datetime
|
|
258
|
+
"""
|
|
259
|
+
|
|
260
|
+
self._last_used_at = last_used_at
|
|
261
|
+
|
|
236
262
|
def to_dict(self):
|
|
237
263
|
"""Returns the model properties as a dict"""
|
|
238
264
|
result = {}
|
|
@@ -0,0 +1,350 @@
|
|
|
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 ApplyAutoscalingConfigUpdateModel(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_version_id': 'str',
|
|
37
|
+
'application_name': 'str',
|
|
38
|
+
'deployment_name': 'str',
|
|
39
|
+
'max_ongoing_requests': 'int',
|
|
40
|
+
'autoscaling_enabled': 'bool',
|
|
41
|
+
'min_replicas': 'int',
|
|
42
|
+
'max_replicas': 'int',
|
|
43
|
+
'target_ongoing_requests': 'int',
|
|
44
|
+
'num_replicas': 'object'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'service_version_id': 'service_version_id',
|
|
49
|
+
'application_name': 'application_name',
|
|
50
|
+
'deployment_name': 'deployment_name',
|
|
51
|
+
'max_ongoing_requests': 'max_ongoing_requests',
|
|
52
|
+
'autoscaling_enabled': 'autoscaling_enabled',
|
|
53
|
+
'min_replicas': 'min_replicas',
|
|
54
|
+
'max_replicas': 'max_replicas',
|
|
55
|
+
'target_ongoing_requests': 'target_ongoing_requests',
|
|
56
|
+
'num_replicas': 'num_replicas'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, service_version_id=None, application_name=None, deployment_name=None, max_ongoing_requests=None, autoscaling_enabled=None, min_replicas=None, max_replicas=None, target_ongoing_requests=None, num_replicas=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
+
"""ApplyAutoscalingConfigUpdateModel - a model defined in OpenAPI""" # noqa: E501
|
|
61
|
+
if local_vars_configuration is None:
|
|
62
|
+
local_vars_configuration = Configuration()
|
|
63
|
+
self.local_vars_configuration = local_vars_configuration
|
|
64
|
+
|
|
65
|
+
self._service_version_id = None
|
|
66
|
+
self._application_name = None
|
|
67
|
+
self._deployment_name = None
|
|
68
|
+
self._max_ongoing_requests = None
|
|
69
|
+
self._autoscaling_enabled = None
|
|
70
|
+
self._min_replicas = None
|
|
71
|
+
self._max_replicas = None
|
|
72
|
+
self._target_ongoing_requests = None
|
|
73
|
+
self._num_replicas = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
self.service_version_id = service_version_id
|
|
77
|
+
self.application_name = application_name
|
|
78
|
+
self.deployment_name = deployment_name
|
|
79
|
+
if max_ongoing_requests is not None:
|
|
80
|
+
self.max_ongoing_requests = max_ongoing_requests
|
|
81
|
+
self.autoscaling_enabled = autoscaling_enabled
|
|
82
|
+
if min_replicas is not None:
|
|
83
|
+
self.min_replicas = min_replicas
|
|
84
|
+
if max_replicas is not None:
|
|
85
|
+
self.max_replicas = max_replicas
|
|
86
|
+
if target_ongoing_requests is not None:
|
|
87
|
+
self.target_ongoing_requests = target_ongoing_requests
|
|
88
|
+
if num_replicas is not None:
|
|
89
|
+
self.num_replicas = num_replicas
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def service_version_id(self):
|
|
93
|
+
"""Gets the service_version_id of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
94
|
+
|
|
95
|
+
Id of the Service Version # noqa: E501
|
|
96
|
+
|
|
97
|
+
:return: The service_version_id of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
98
|
+
:rtype: str
|
|
99
|
+
"""
|
|
100
|
+
return self._service_version_id
|
|
101
|
+
|
|
102
|
+
@service_version_id.setter
|
|
103
|
+
def service_version_id(self, service_version_id):
|
|
104
|
+
"""Sets the service_version_id of this ApplyAutoscalingConfigUpdateModel.
|
|
105
|
+
|
|
106
|
+
Id of the Service Version # noqa: E501
|
|
107
|
+
|
|
108
|
+
:param service_version_id: The service_version_id of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
109
|
+
:type: str
|
|
110
|
+
"""
|
|
111
|
+
if self.local_vars_configuration.client_side_validation and service_version_id is None: # noqa: E501
|
|
112
|
+
raise ValueError("Invalid value for `service_version_id`, must not be `None`") # noqa: E501
|
|
113
|
+
|
|
114
|
+
self._service_version_id = service_version_id
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def application_name(self):
|
|
118
|
+
"""Gets the application_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
119
|
+
|
|
120
|
+
Name of the Application # noqa: E501
|
|
121
|
+
|
|
122
|
+
:return: The application_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._application_name
|
|
126
|
+
|
|
127
|
+
@application_name.setter
|
|
128
|
+
def application_name(self, application_name):
|
|
129
|
+
"""Sets the application_name of this ApplyAutoscalingConfigUpdateModel.
|
|
130
|
+
|
|
131
|
+
Name of the Application # noqa: E501
|
|
132
|
+
|
|
133
|
+
:param application_name: The application_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
134
|
+
:type: str
|
|
135
|
+
"""
|
|
136
|
+
if self.local_vars_configuration.client_side_validation and application_name is None: # noqa: E501
|
|
137
|
+
raise ValueError("Invalid value for `application_name`, must not be `None`") # noqa: E501
|
|
138
|
+
|
|
139
|
+
self._application_name = application_name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def deployment_name(self):
|
|
143
|
+
"""Gets the deployment_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
144
|
+
|
|
145
|
+
Name of the Deployment # noqa: E501
|
|
146
|
+
|
|
147
|
+
:return: The deployment_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
148
|
+
:rtype: str
|
|
149
|
+
"""
|
|
150
|
+
return self._deployment_name
|
|
151
|
+
|
|
152
|
+
@deployment_name.setter
|
|
153
|
+
def deployment_name(self, deployment_name):
|
|
154
|
+
"""Sets the deployment_name of this ApplyAutoscalingConfigUpdateModel.
|
|
155
|
+
|
|
156
|
+
Name of the Deployment # noqa: E501
|
|
157
|
+
|
|
158
|
+
:param deployment_name: The deployment_name of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
159
|
+
:type: str
|
|
160
|
+
"""
|
|
161
|
+
if self.local_vars_configuration.client_side_validation and deployment_name is None: # noqa: E501
|
|
162
|
+
raise ValueError("Invalid value for `deployment_name`, must not be `None`") # noqa: E501
|
|
163
|
+
|
|
164
|
+
self._deployment_name = deployment_name
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def max_ongoing_requests(self):
|
|
168
|
+
"""Gets the max_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
169
|
+
|
|
170
|
+
Maximum number of ongoing requests per deployment # noqa: E501
|
|
171
|
+
|
|
172
|
+
:return: The max_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
173
|
+
:rtype: int
|
|
174
|
+
"""
|
|
175
|
+
return self._max_ongoing_requests
|
|
176
|
+
|
|
177
|
+
@max_ongoing_requests.setter
|
|
178
|
+
def max_ongoing_requests(self, max_ongoing_requests):
|
|
179
|
+
"""Sets the max_ongoing_requests of this ApplyAutoscalingConfigUpdateModel.
|
|
180
|
+
|
|
181
|
+
Maximum number of ongoing requests per deployment # noqa: E501
|
|
182
|
+
|
|
183
|
+
:param max_ongoing_requests: The max_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
184
|
+
:type: int
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
self._max_ongoing_requests = max_ongoing_requests
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def autoscaling_enabled(self):
|
|
191
|
+
"""Gets the autoscaling_enabled of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
192
|
+
|
|
193
|
+
Whether the autoscaling is enabled # noqa: E501
|
|
194
|
+
|
|
195
|
+
:return: The autoscaling_enabled of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
196
|
+
:rtype: bool
|
|
197
|
+
"""
|
|
198
|
+
return self._autoscaling_enabled
|
|
199
|
+
|
|
200
|
+
@autoscaling_enabled.setter
|
|
201
|
+
def autoscaling_enabled(self, autoscaling_enabled):
|
|
202
|
+
"""Sets the autoscaling_enabled of this ApplyAutoscalingConfigUpdateModel.
|
|
203
|
+
|
|
204
|
+
Whether the autoscaling is enabled # noqa: E501
|
|
205
|
+
|
|
206
|
+
:param autoscaling_enabled: The autoscaling_enabled of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
207
|
+
:type: bool
|
|
208
|
+
"""
|
|
209
|
+
if self.local_vars_configuration.client_side_validation and autoscaling_enabled is None: # noqa: E501
|
|
210
|
+
raise ValueError("Invalid value for `autoscaling_enabled`, must not be `None`") # noqa: E501
|
|
211
|
+
|
|
212
|
+
self._autoscaling_enabled = autoscaling_enabled
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def min_replicas(self):
|
|
216
|
+
"""Gets the min_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
217
|
+
|
|
218
|
+
Minimum number of replicas # noqa: E501
|
|
219
|
+
|
|
220
|
+
:return: The min_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
221
|
+
:rtype: int
|
|
222
|
+
"""
|
|
223
|
+
return self._min_replicas
|
|
224
|
+
|
|
225
|
+
@min_replicas.setter
|
|
226
|
+
def min_replicas(self, min_replicas):
|
|
227
|
+
"""Sets the min_replicas of this ApplyAutoscalingConfigUpdateModel.
|
|
228
|
+
|
|
229
|
+
Minimum number of replicas # noqa: E501
|
|
230
|
+
|
|
231
|
+
:param min_replicas: The min_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
232
|
+
:type: int
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._min_replicas = min_replicas
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def max_replicas(self):
|
|
239
|
+
"""Gets the max_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
240
|
+
|
|
241
|
+
Maximum number of replicas # noqa: E501
|
|
242
|
+
|
|
243
|
+
:return: The max_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
244
|
+
:rtype: int
|
|
245
|
+
"""
|
|
246
|
+
return self._max_replicas
|
|
247
|
+
|
|
248
|
+
@max_replicas.setter
|
|
249
|
+
def max_replicas(self, max_replicas):
|
|
250
|
+
"""Sets the max_replicas of this ApplyAutoscalingConfigUpdateModel.
|
|
251
|
+
|
|
252
|
+
Maximum number of replicas # noqa: E501
|
|
253
|
+
|
|
254
|
+
:param max_replicas: The max_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
255
|
+
:type: int
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._max_replicas = max_replicas
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def target_ongoing_requests(self):
|
|
262
|
+
"""Gets the target_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
263
|
+
|
|
264
|
+
Target number of ongoing requests per deployment # noqa: E501
|
|
265
|
+
|
|
266
|
+
:return: The target_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
267
|
+
:rtype: int
|
|
268
|
+
"""
|
|
269
|
+
return self._target_ongoing_requests
|
|
270
|
+
|
|
271
|
+
@target_ongoing_requests.setter
|
|
272
|
+
def target_ongoing_requests(self, target_ongoing_requests):
|
|
273
|
+
"""Sets the target_ongoing_requests of this ApplyAutoscalingConfigUpdateModel.
|
|
274
|
+
|
|
275
|
+
Target number of ongoing requests per deployment # noqa: E501
|
|
276
|
+
|
|
277
|
+
:param target_ongoing_requests: The target_ongoing_requests of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
278
|
+
:type: int
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
self._target_ongoing_requests = target_ongoing_requests
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def num_replicas(self):
|
|
285
|
+
"""Gets the num_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
286
|
+
|
|
287
|
+
Number of replicas # noqa: E501
|
|
288
|
+
|
|
289
|
+
:return: The num_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
290
|
+
:rtype: object
|
|
291
|
+
"""
|
|
292
|
+
return self._num_replicas
|
|
293
|
+
|
|
294
|
+
@num_replicas.setter
|
|
295
|
+
def num_replicas(self, num_replicas):
|
|
296
|
+
"""Sets the num_replicas of this ApplyAutoscalingConfigUpdateModel.
|
|
297
|
+
|
|
298
|
+
Number of replicas # noqa: E501
|
|
299
|
+
|
|
300
|
+
:param num_replicas: The num_replicas of this ApplyAutoscalingConfigUpdateModel. # noqa: E501
|
|
301
|
+
:type: object
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
self._num_replicas = num_replicas
|
|
305
|
+
|
|
306
|
+
def to_dict(self):
|
|
307
|
+
"""Returns the model properties as a dict"""
|
|
308
|
+
result = {}
|
|
309
|
+
|
|
310
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
311
|
+
value = getattr(self, attr)
|
|
312
|
+
if isinstance(value, list):
|
|
313
|
+
result[attr] = list(map(
|
|
314
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
315
|
+
value
|
|
316
|
+
))
|
|
317
|
+
elif hasattr(value, "to_dict"):
|
|
318
|
+
result[attr] = value.to_dict()
|
|
319
|
+
elif isinstance(value, dict):
|
|
320
|
+
result[attr] = dict(map(
|
|
321
|
+
lambda item: (item[0], item[1].to_dict())
|
|
322
|
+
if hasattr(item[1], "to_dict") else item,
|
|
323
|
+
value.items()
|
|
324
|
+
))
|
|
325
|
+
else:
|
|
326
|
+
result[attr] = value
|
|
327
|
+
|
|
328
|
+
return result
|
|
329
|
+
|
|
330
|
+
def to_str(self):
|
|
331
|
+
"""Returns the string representation of the model"""
|
|
332
|
+
return pprint.pformat(self.to_dict())
|
|
333
|
+
|
|
334
|
+
def __repr__(self):
|
|
335
|
+
"""For `print` and `pprint`"""
|
|
336
|
+
return self.to_str()
|
|
337
|
+
|
|
338
|
+
def __eq__(self, other):
|
|
339
|
+
"""Returns true if both objects are equal"""
|
|
340
|
+
if not isinstance(other, ApplyAutoscalingConfigUpdateModel):
|
|
341
|
+
return False
|
|
342
|
+
|
|
343
|
+
return self.to_dict() == other.to_dict()
|
|
344
|
+
|
|
345
|
+
def __ne__(self, other):
|
|
346
|
+
"""Returns true if both objects are not equal"""
|
|
347
|
+
if not isinstance(other, ApplyAutoscalingConfigUpdateModel):
|
|
348
|
+
return True
|
|
349
|
+
|
|
350
|
+
return self.to_dict() != other.to_dict()
|