anyscale 0.26.68__py3-none-any.whl → 0.26.70__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +67 -1
- anyscale/_private/anyscale_client/common.py +20 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
- anyscale/client/README.md +16 -4
- anyscale/client/openapi_client/__init__.py +12 -4
- anyscale/client/openapi_client/api/default_api.py +588 -23
- anyscale/client/openapi_client/models/__init__.py +12 -4
- anyscale/client/openapi_client/models/api_key_info.py +29 -3
- anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
- anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
- anyscale/client/openapi_client/models/clusterdashboardnode_response.py +121 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
- anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
- anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
- anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
- anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
- anyscale/client/openapi_client/models/event_level.py +2 -1
- anyscale/client/openapi_client/models/job_event_fields.py +206 -0
- anyscale/client/openapi_client/models/lineage_graph_node.py +70 -42
- anyscale/client/openapi_client/models/lineage_workload.py +31 -3
- anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
- anyscale/client/openapi_client/models/partition_info.py +30 -1
- anyscale/client/openapi_client/models/production_job_event.py +3 -3
- anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
- anyscale/client/openapi_client/models/service_event_fields.py +318 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/unified_event.py +377 -0
- anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
- anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
- anyscale/cloud/models.py +2 -2
- anyscale/commands/cloud_commands.py +148 -11
- anyscale/commands/command_examples.py +53 -0
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +130 -67
- anyscale/commands/setup_k8s.py +615 -49
- anyscale/controllers/cloud_controller.py +19 -5
- anyscale/controllers/kubernetes_verifier.py +80 -66
- anyscale/job/_private/job_sdk.py +47 -1
- anyscale/job/commands.py +3 -0
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/service/__init__.py +11 -3
- anyscale/service/_private/service_sdk.py +361 -35
- anyscale/service/commands.py +15 -3
- anyscale/service/models.py +12 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/RECORD +70 -62
- anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/top_level.txt +0 -0
|
@@ -42,6 +42,8 @@ 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_production_service_multi_version_v2_model import ApplyProductionServiceMultiVersionV2Model
|
|
45
47
|
from openapi_client.models.apply_production_service_v2_model import ApplyProductionServiceV2Model
|
|
46
48
|
from openapi_client.models.archive_status import ArchiveStatus
|
|
47
49
|
from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
|
|
@@ -114,6 +116,7 @@ from openapi_client.models.cloud_with_cloud_resource_gcp import CloudWithCloudRe
|
|
|
114
116
|
from openapi_client.models.cloudcollaborator_list_response import CloudcollaboratorListResponse
|
|
115
117
|
from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
|
|
116
118
|
from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
|
|
119
|
+
from openapi_client.models.clouddeployment_response import ClouddeploymentResponse
|
|
117
120
|
from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
|
|
118
121
|
from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
|
|
119
122
|
from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
|
|
@@ -135,6 +138,7 @@ from openapi_client.models.cluster_status import ClusterStatus
|
|
|
135
138
|
from openapi_client.models.cluster_status_details import ClusterStatusDetails
|
|
136
139
|
from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
|
|
137
140
|
from openapi_client.models.clusterdashboardnode_list_response import ClusterdashboardnodeListResponse
|
|
141
|
+
from openapi_client.models.clusterdashboardnode_response import ClusterdashboardnodeResponse
|
|
138
142
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
|
139
143
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
|
140
144
|
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
|
@@ -302,6 +306,7 @@ from openapi_client.models.editable_cloud_resource_gcp import EditableCloudResou
|
|
|
302
306
|
from openapi_client.models.email_verification_request import EmailVerificationRequest
|
|
303
307
|
from openapi_client.models.email_verification_response import EmailVerificationResponse
|
|
304
308
|
from openapi_client.models.emailverificationresponse_response import EmailverificationresponseResponse
|
|
309
|
+
from openapi_client.models.entity_type import EntityType
|
|
305
310
|
from openapi_client.models.error import Error
|
|
306
311
|
from openapi_client.models.event_level import EventLevel
|
|
307
312
|
from openapi_client.models.execute_command_response import ExecuteCommandResponse
|
|
@@ -330,7 +335,6 @@ from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
|
|
330
335
|
from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
|
|
331
336
|
from openapi_client.models.http_validation_error import HTTPValidationError
|
|
332
337
|
from openapi_client.models.ha_job_error_types import HaJobErrorTypes
|
|
333
|
-
from openapi_client.models.ha_job_event_level import HaJobEventLevel
|
|
334
338
|
from openapi_client.models.ha_job_event_origin import HaJobEventOrigin
|
|
335
339
|
from openapi_client.models.ha_job_goal_states import HaJobGoalStates
|
|
336
340
|
from openapi_client.models.ha_job_states import HaJobStates
|
|
@@ -351,6 +355,7 @@ from openapi_client.models.internal_production_job import InternalProductionJob
|
|
|
351
355
|
from openapi_client.models.internalproductionjob_response import InternalproductionjobResponse
|
|
352
356
|
from openapi_client.models.job_access import JobAccess
|
|
353
357
|
from openapi_client.models.job_details import JobDetails
|
|
358
|
+
from openapi_client.models.job_event_fields import JobEventFields
|
|
354
359
|
from openapi_client.models.job_queue import JobQueue
|
|
355
360
|
from openapi_client.models.job_queue_config import JobQueueConfig
|
|
356
361
|
from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
|
@@ -420,6 +425,7 @@ from openapi_client.models.machine_pool import MachinePool
|
|
|
420
425
|
from openapi_client.models.machine_pool_search_query import MachinePoolSearchQuery
|
|
421
426
|
from openapi_client.models.machine_pool_search_result import MachinePoolSearchResult
|
|
422
427
|
from openapi_client.models.machine_state_info import MachineStateInfo
|
|
428
|
+
from openapi_client.models.machine_type_partition_filter import MachineTypePartitionFilter
|
|
423
429
|
from openapi_client.models.machinepoolsearchresult_list_response import MachinepoolsearchresultListResponse
|
|
424
430
|
from openapi_client.models.machinestateinfo_list_response import MachinestateinfoListResponse
|
|
425
431
|
from openapi_client.models.metric import Metric
|
|
@@ -459,9 +465,7 @@ from openapi_client.models.nodemetricsresponse_response import Nodemetricsrespon
|
|
|
459
465
|
from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
|
|
460
466
|
from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
|
|
461
467
|
from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
|
|
462
|
-
from openapi_client.models.o_auth_connection_response import OAuthConnectionResponse
|
|
463
468
|
from openapi_client.models.oauth_auth_url_response import OauthAuthUrlResponse
|
|
464
|
-
from openapi_client.models.oauthconnectionresponse_response import OauthconnectionresponseResponse
|
|
465
469
|
from openapi_client.models.object_storage import ObjectStorage
|
|
466
470
|
from openapi_client.models.operation_error import OperationError
|
|
467
471
|
from openapi_client.models.operation_progress import OperationProgress
|
|
@@ -572,7 +576,7 @@ from openapi_client.models.server_session_token import ServerSessionToken
|
|
|
572
576
|
from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
|
|
573
577
|
from openapi_client.models.service_config import ServiceConfig
|
|
574
578
|
from openapi_client.models.service_event_current_state import ServiceEventCurrentState
|
|
575
|
-
from openapi_client.models.
|
|
579
|
+
from openapi_client.models.service_event_fields import ServiceEventFields
|
|
576
580
|
from openapi_client.models.service_event_origin import ServiceEventOrigin
|
|
577
581
|
from openapi_client.models.service_event_scope import ServiceEventScope
|
|
578
582
|
from openapi_client.models.service_event_scope_filter import ServiceEventScopeFilter
|
|
@@ -649,9 +653,12 @@ from openapi_client.models.trainrun_list_response import TrainrunListResponse
|
|
|
649
653
|
from openapi_client.models.try_login_email_response import TryLoginEmailResponse
|
|
650
654
|
from openapi_client.models.tryloginemailresponse_response import TryloginemailresponseResponse
|
|
651
655
|
from openapi_client.models.ux_instance import UXInstance
|
|
656
|
+
from openapi_client.models.unified_event import UnifiedEvent
|
|
652
657
|
from openapi_client.models.unified_job_sort_field import UnifiedJobSortField
|
|
653
658
|
from openapi_client.models.unified_job_status import UnifiedJobStatus
|
|
654
659
|
from openapi_client.models.unified_job_type import UnifiedJobType
|
|
660
|
+
from openapi_client.models.unified_origin_filter import UnifiedOriginFilter
|
|
661
|
+
from openapi_client.models.unifiedevent_list_response import UnifiedeventListResponse
|
|
655
662
|
from openapi_client.models.update_cloud_collaborator import UpdateCloudCollaborator
|
|
656
663
|
from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
|
|
657
664
|
from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
|
|
@@ -705,6 +712,7 @@ from openapi_client.models.workspace_dataplane_artifact import WorkspaceDataplan
|
|
|
705
712
|
from openapi_client.models.workspace_dataplane_artifacts import WorkspaceDataplaneArtifacts
|
|
706
713
|
from openapi_client.models.workspace_dataplane_proxied_artifacts import WorkspaceDataplaneProxiedArtifacts
|
|
707
714
|
from openapi_client.models.workspace_event import WorkspaceEvent
|
|
715
|
+
from openapi_client.models.workspace_event_fields import WorkspaceEventFields
|
|
708
716
|
from openapi_client.models.workspace_event_source import WorkspaceEventSource
|
|
709
717
|
from openapi_client.models.workspace_event_source_filter import WorkspaceEventSourceFilter
|
|
710
718
|
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()
|