anyscale 0.26.69__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.
Files changed (67) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +67 -1
  2. anyscale/_private/anyscale_client/common.py +20 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
  4. anyscale/client/README.md +14 -4
  5. anyscale/client/openapi_client/__init__.py +11 -4
  6. anyscale/client/openapi_client/api/default_api.py +462 -23
  7. anyscale/client/openapi_client/models/__init__.py +11 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  11. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  12. anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
  13. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  14. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  15. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  16. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  17. anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
  18. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  19. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  20. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  21. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  22. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  23. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  24. anyscale/client/openapi_client/models/event_level.py +2 -1
  25. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  26. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  27. anyscale/client/openapi_client/models/partition_info.py +30 -1
  28. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  29. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  30. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  31. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
  32. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  33. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  34. anyscale/client/openapi_client/models/unified_event.py +377 -0
  35. anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
  36. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  37. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  38. anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
  39. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
  40. anyscale/cloud/models.py +2 -2
  41. anyscale/commands/cloud_commands.py +133 -2
  42. anyscale/commands/job_commands.py +1 -1
  43. anyscale/commands/service_commands.py +130 -67
  44. anyscale/commands/setup_k8s.py +546 -31
  45. anyscale/controllers/cloud_controller.py +15 -2
  46. anyscale/controllers/kubernetes_verifier.py +80 -66
  47. anyscale/job/_private/job_sdk.py +47 -1
  48. anyscale/job/commands.py +3 -0
  49. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  50. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  51. anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
  52. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  53. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
  54. anyscale/service/__init__.py +11 -3
  55. anyscale/service/_private/service_sdk.py +361 -35
  56. anyscale/service/commands.py +15 -3
  57. anyscale/service/models.py +12 -0
  58. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  59. anyscale/version.py +1 -1
  60. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
  61. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/RECORD +66 -59
  62. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  63. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
  64. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
  65. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
  66. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
  67. {anyscale-0.26.69.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
@@ -303,6 +306,7 @@ from openapi_client.models.editable_cloud_resource_gcp import EditableCloudResou
303
306
  from openapi_client.models.email_verification_request import EmailVerificationRequest
304
307
  from openapi_client.models.email_verification_response import EmailVerificationResponse
305
308
  from openapi_client.models.emailverificationresponse_response import EmailverificationresponseResponse
309
+ from openapi_client.models.entity_type import EntityType
306
310
  from openapi_client.models.error import Error
307
311
  from openapi_client.models.event_level import EventLevel
308
312
  from openapi_client.models.execute_command_response import ExecuteCommandResponse
@@ -331,7 +335,6 @@ from openapi_client.models.grafana_dashboard import GrafanaDashboard
331
335
  from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
332
336
  from openapi_client.models.http_validation_error import HTTPValidationError
333
337
  from openapi_client.models.ha_job_error_types import HaJobErrorTypes
334
- from openapi_client.models.ha_job_event_level import HaJobEventLevel
335
338
  from openapi_client.models.ha_job_event_origin import HaJobEventOrigin
336
339
  from openapi_client.models.ha_job_goal_states import HaJobGoalStates
337
340
  from openapi_client.models.ha_job_states import HaJobStates
@@ -352,6 +355,7 @@ from openapi_client.models.internal_production_job import InternalProductionJob
352
355
  from openapi_client.models.internalproductionjob_response import InternalproductionjobResponse
353
356
  from openapi_client.models.job_access import JobAccess
354
357
  from openapi_client.models.job_details import JobDetails
358
+ from openapi_client.models.job_event_fields import JobEventFields
355
359
  from openapi_client.models.job_queue import JobQueue
356
360
  from openapi_client.models.job_queue_config import JobQueueConfig
357
361
  from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
@@ -421,6 +425,7 @@ from openapi_client.models.machine_pool import MachinePool
421
425
  from openapi_client.models.machine_pool_search_query import MachinePoolSearchQuery
422
426
  from openapi_client.models.machine_pool_search_result import MachinePoolSearchResult
423
427
  from openapi_client.models.machine_state_info import MachineStateInfo
428
+ from openapi_client.models.machine_type_partition_filter import MachineTypePartitionFilter
424
429
  from openapi_client.models.machinepoolsearchresult_list_response import MachinepoolsearchresultListResponse
425
430
  from openapi_client.models.machinestateinfo_list_response import MachinestateinfoListResponse
426
431
  from openapi_client.models.metric import Metric
@@ -460,9 +465,7 @@ from openapi_client.models.nodemetricsresponse_response import Nodemetricsrespon
460
465
  from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
461
466
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
462
467
  from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
463
- from openapi_client.models.o_auth_connection_response import OAuthConnectionResponse
464
468
  from openapi_client.models.oauth_auth_url_response import OauthAuthUrlResponse
465
- from openapi_client.models.oauthconnectionresponse_response import OauthconnectionresponseResponse
466
469
  from openapi_client.models.object_storage import ObjectStorage
467
470
  from openapi_client.models.operation_error import OperationError
468
471
  from openapi_client.models.operation_progress import OperationProgress
@@ -573,7 +576,7 @@ from openapi_client.models.server_session_token import ServerSessionToken
573
576
  from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
574
577
  from openapi_client.models.service_config import ServiceConfig
575
578
  from openapi_client.models.service_event_current_state import ServiceEventCurrentState
576
- from openapi_client.models.service_event_level import ServiceEventLevel
579
+ from openapi_client.models.service_event_fields import ServiceEventFields
577
580
  from openapi_client.models.service_event_origin import ServiceEventOrigin
578
581
  from openapi_client.models.service_event_scope import ServiceEventScope
579
582
  from openapi_client.models.service_event_scope_filter import ServiceEventScopeFilter
@@ -650,9 +653,12 @@ from openapi_client.models.trainrun_list_response import TrainrunListResponse
650
653
  from openapi_client.models.try_login_email_response import TryLoginEmailResponse
651
654
  from openapi_client.models.tryloginemailresponse_response import TryloginemailresponseResponse
652
655
  from openapi_client.models.ux_instance import UXInstance
656
+ from openapi_client.models.unified_event import UnifiedEvent
653
657
  from openapi_client.models.unified_job_sort_field import UnifiedJobSortField
654
658
  from openapi_client.models.unified_job_status import UnifiedJobStatus
655
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
656
662
  from openapi_client.models.update_cloud_collaborator import UpdateCloudCollaborator
657
663
  from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
658
664
  from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
@@ -706,6 +712,7 @@ from openapi_client.models.workspace_dataplane_artifact import WorkspaceDataplan
706
712
  from openapi_client.models.workspace_dataplane_artifacts import WorkspaceDataplaneArtifacts
707
713
  from openapi_client.models.workspace_dataplane_proxied_artifacts import WorkspaceDataplaneProxiedArtifacts
708
714
  from openapi_client.models.workspace_event import WorkspaceEvent
715
+ from openapi_client.models.workspace_event_fields import WorkspaceEventFields
709
716
  from openapi_client.models.workspace_event_source import WorkspaceEventSource
710
717
  from openapi_client.models.workspace_event_source_filter import WorkspaceEventSourceFilter
711
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()