anyscale 0.26.17__py3-none-any.whl → 0.26.20__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 (61) hide show
  1. anyscale/_private/docgen/models.md +3 -3
  2. anyscale/anyscale-cloud-setup.yaml +0 -4
  3. anyscale/client/README.md +18 -38
  4. anyscale/client/openapi_client/__init__.py +14 -20
  5. anyscale/client/openapi_client/api/default_api.py +460 -2097
  6. anyscale/client/openapi_client/models/__init__.py +14 -20
  7. anyscale/client/openapi_client/models/aws_config.py +402 -0
  8. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  9. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  10. anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
  11. anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
  12. anyscale/client/openapi_client/models/file_storage.py +206 -0
  13. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  14. anyscale/client/openapi_client/models/{session_details.py → job_queue_sort_directive.py} +39 -39
  15. anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py} +20 -34
  16. anyscale/client/openapi_client/models/job_queues_query.py +31 -3
  17. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  18. anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
  19. anyscale/client/openapi_client/models/object_storage.py +178 -0
  20. anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
  21. anyscale/client/openapi_client/models/production_job_state_transition.py +2 -2
  22. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/client/openapi_client/models/{external_service_status.py → update_job_queue_request.py} +39 -36
  24. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  25. anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
  26. anyscale/commands/cloud_commands.py +55 -7
  27. anyscale/commands/command_examples.py +58 -0
  28. anyscale/commands/job_commands.py +2 -2
  29. anyscale/commands/job_queue_commands.py +172 -0
  30. anyscale/connect_utils/prepare_cluster.py +19 -14
  31. anyscale/controllers/cloud_controller.py +60 -3
  32. anyscale/controllers/job_controller.py +215 -3
  33. anyscale/scripts.py +3 -0
  34. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  35. anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
  36. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  37. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  38. anyscale/util.py +3 -1
  39. anyscale/utils/connect_helpers.py +34 -0
  40. anyscale/version.py +1 -1
  41. anyscale/workspace/_private/workspace_sdk.py +19 -6
  42. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
  43. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/RECORD +48 -53
  44. anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
  45. anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
  46. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
  47. anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
  48. anyscale/client/openapi_client/models/create_session_response.py +0 -174
  49. anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
  50. anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
  51. anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
  52. anyscale/client/openapi_client/models/session_describe.py +0 -175
  53. anyscale/client/openapi_client/models/session_history_item.py +0 -146
  54. anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
  55. anyscale/client/openapi_client/models/update_compute_template.py +0 -146
  56. anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
  57. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/LICENSE +0 -0
  58. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
  59. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
  60. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
  61. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/top_level.txt +0 -0
@@ -14,6 +14,7 @@
14
14
  from __future__ import absolute_import
15
15
 
16
16
  # import models into model package
17
+ from openapi_client.models.aws_config import AWSConfig
17
18
  from openapi_client.models.aws_memory_db_cluster_config import AWSMemoryDBClusterConfig
18
19
  from openapi_client.models.access_config import AccessConfig
19
20
  from openapi_client.models.actor_status import ActorStatus
@@ -43,8 +44,6 @@ from openapi_client.models.application_type import ApplicationType
43
44
  from openapi_client.models.applied_snapshot import AppliedSnapshot
44
45
  from openapi_client.models.apply_production_service_v2_model import ApplyProductionServiceV2Model
45
46
  from openapi_client.models.archive_status import ArchiveStatus
46
- from openapi_client.models.archived_logs_info import ArchivedLogsInfo
47
- from openapi_client.models.archivedlogsinfo_response import ArchivedlogsinfoResponse
48
47
  from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
49
48
  from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
50
49
  from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
@@ -90,6 +89,7 @@ from openapi_client.models.cloud_data_bucket_presigned_url_request import CloudD
90
89
  from openapi_client.models.cloud_data_bucket_presigned_url_response import CloudDataBucketPresignedUrlResponse
91
90
  from openapi_client.models.cloud_data_bucket_presigned_url_scheme import CloudDataBucketPresignedUrlScheme
92
91
  from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucketRequestScope
92
+ from openapi_client.models.cloud_deployment import CloudDeployment
93
93
  from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
94
94
  from openapi_client.models.cloud_hosting_type import CloudHostingType
95
95
  from openapi_client.models.cloud_list_response import CloudListResponse
@@ -115,6 +115,7 @@ from openapi_client.models.cloud_with_cloud_resource_gcp import CloudWithCloudRe
115
115
  from openapi_client.models.cloudcollaborator_list_response import CloudcollaboratorListResponse
116
116
  from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
117
117
  from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
118
+ from openapi_client.models.clouddeployment_list_response import ClouddeploymentListResponse
118
119
  from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
119
120
  from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
120
121
  from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
@@ -159,7 +160,6 @@ from openapi_client.models.create_compute_template import CreateComputeTemplate
159
160
  from openapi_client.models.create_compute_template_config import CreateComputeTemplateConfig
160
161
  from openapi_client.models.create_dataset import CreateDataset
161
162
  from openapi_client.models.create_experimental_workspace import CreateExperimentalWorkspace
162
- from openapi_client.models.create_experimental_workspace_from_job import CreateExperimentalWorkspaceFromJob
163
163
  from openapi_client.models.create_instance_usage_budget import CreateInstanceUsageBudget
164
164
  from openapi_client.models.create_internal_production_job import CreateInternalProductionJob
165
165
  from openapi_client.models.create_job_queue_config import CreateJobQueueConfig
@@ -177,9 +177,6 @@ from openapi_client.models.create_production_job_config import CreateProductionJ
177
177
  from openapi_client.models.create_resource_notification import CreateResourceNotification
178
178
  from openapi_client.models.create_resource_quota import CreateResourceQuota
179
179
  from openapi_client.models.create_schedule import CreateSchedule
180
- from openapi_client.models.create_session_from_snapshot_options import CreateSessionFromSnapshotOptions
181
- from openapi_client.models.create_session_in_db import CreateSessionInDb
182
- from openapi_client.models.create_session_response import CreateSessionResponse
183
180
  from openapi_client.models.create_user import CreateUser
184
181
  from openapi_client.models.create_user_project_collaborator import CreateUserProjectCollaborator
185
182
  from openapi_client.models.create_user_project_collaborator_value import CreateUserProjectCollaboratorValue
@@ -189,7 +186,6 @@ from openapi_client.models.createcomputetemplateconfig_response import Createcom
189
186
  from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
190
187
  from openapi_client.models.createmachineresponse_response import CreatemachineresponseResponse
191
188
  from openapi_client.models.createotpreturnapimodel_response import CreateotpreturnapimodelResponse
192
- from openapi_client.models.createsessionresponse_response import CreatesessionresponseResponse
193
189
  from openapi_client.models.credit_card_information import CreditCardInformation
194
190
  from openapi_client.models.customer_alert_status import CustomerAlertStatus
195
191
  from openapi_client.models.dataplane_services import DataplaneServices
@@ -271,16 +267,15 @@ from openapi_client.models.experimental_workspace import ExperimentalWorkspace
271
267
  from openapi_client.models.experimental_workspaces_sort_field import ExperimentalWorkspacesSortField
272
268
  from openapi_client.models.experimentalworkspace_list_response import ExperimentalworkspaceListResponse
273
269
  from openapi_client.models.experimentalworkspace_response import ExperimentalworkspaceResponse
274
- from openapi_client.models.external_service_status import ExternalServiceStatus
275
- from openapi_client.models.external_service_status_response import ExternalServiceStatusResponse
276
270
  from openapi_client.models.external_terminal_command import ExternalTerminalCommand
277
- from openapi_client.models.externalservicestatusresponse_response import ExternalservicestatusresponseResponse
278
271
  from openapi_client.models.feature_flag_response import FeatureFlagResponse
279
272
  from openapi_client.models.featureflagresponse_response import FeatureflagresponseResponse
273
+ from openapi_client.models.file_storage import FileStorage
280
274
  from openapi_client.models.fine_tune_type import FineTuneType
281
275
  from openapi_client.models.fine_tuned_model import FineTunedModel
282
276
  from openapi_client.models.finetunedmodel_list_response import FinetunedmodelListResponse
283
277
  from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
278
+ from openapi_client.models.gcp_config import GCPConfig
284
279
  from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
285
280
  from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
286
281
  from openapi_client.models.grafana_dashboard import GrafanaDashboard
@@ -315,6 +310,8 @@ from openapi_client.models.job_details import JobDetails
315
310
  from openapi_client.models.job_queue import JobQueue
316
311
  from openapi_client.models.job_queue_config import JobQueueConfig
317
312
  from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
313
+ from openapi_client.models.job_queue_sort_directive import JobQueueSortDirective
314
+ from openapi_client.models.job_queue_sort_field import JobQueueSortField
318
315
  from openapi_client.models.job_queue_spec import JobQueueSpec
319
316
  from openapi_client.models.job_queue_state import JobQueueState
320
317
  from openapi_client.models.job_queues_query import JobQueuesQuery
@@ -326,6 +323,7 @@ from openapi_client.models.jobqueue_response import JobqueueResponse
326
323
  from openapi_client.models.jobs_sort_field import JobsSortField
327
324
  from openapi_client.models.jobwithreport_list_response import JobwithreportListResponse
328
325
  from openapi_client.models.json_patch_operation import JsonPatchOperation
326
+ from openapi_client.models.kubernetes_config import KubernetesConfig
329
327
  from openapi_client.models.kubernetes_manager_registration_request import KubernetesManagerRegistrationRequest
330
328
  from openapi_client.models.kubernetes_manager_registration_response import KubernetesManagerRegistrationResponse
331
329
  from openapi_client.models.kubernetesmanagerregistrationresponse_response import KubernetesmanagerregistrationresponseResponse
@@ -383,8 +381,8 @@ from openapi_client.models.mini_user import MiniUser
383
381
  from openapi_client.models.minibuild_list_response import MinibuildListResponse
384
382
  from openapi_client.models.minicomputetemplate_list_response import MinicomputetemplateListResponse
385
383
  from openapi_client.models.miniproject_list_response import MiniprojectListResponse
386
- from openapi_client.models.monitor_logs_extension import MonitorLogsExtension
387
384
  from openapi_client.models.nfs_mount_target import NFSMountTarget
385
+ from openapi_client.models.networking_mode import NetworkingMode
388
386
  from openapi_client.models.node_registration_aws import NodeRegistrationAWS
389
387
  from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
390
388
  from openapi_client.models.node_registration_k8_s import NodeRegistrationK8S
@@ -394,6 +392,7 @@ from openapi_client.models.node_type import NodeType
394
392
  from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
395
393
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
396
394
  from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
395
+ from openapi_client.models.object_storage import ObjectStorage
397
396
  from openapi_client.models.operator_branch import OperatorBranch
398
397
  from openapi_client.models.operator_id import OperatorId
399
398
  from openapi_client.models.operator_metrics import OperatorMetrics
@@ -421,6 +420,7 @@ from openapi_client.models.organizationinvitationbase_response import Organizati
421
420
  from openapi_client.models.organizationprojectcollaborator_list_response import OrganizationprojectcollaboratorListResponse
422
421
  from openapi_client.models.organizationpublicidentifier_response import OrganizationpublicidentifierResponse
423
422
  from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
423
+ from openapi_client.models.pcp_config import PCPConfig
424
424
  from openapi_client.models.page_query import PageQuery
425
425
  from openapi_client.models.pause_schedule import PauseSchedule
426
426
  from openapi_client.models.permission_level import PermissionLevel
@@ -505,9 +505,6 @@ from openapi_client.models.session_command import SessionCommand
505
505
  from openapi_client.models.session_command_finish_options import SessionCommandFinishOptions
506
506
  from openapi_client.models.session_command_id import SessionCommandId
507
507
  from openapi_client.models.session_command_types import SessionCommandTypes
508
- from openapi_client.models.session_describe import SessionDescribe
509
- from openapi_client.models.session_details import SessionDetails
510
- from openapi_client.models.session_history_item import SessionHistoryItem
511
508
  from openapi_client.models.session_list_response import SessionListResponse
512
509
  from openapi_client.models.session_response import SessionResponse
513
510
  from openapi_client.models.session_ssh_key import SessionSshKey
@@ -517,9 +514,6 @@ from openapi_client.models.session_state_data import SessionStateData
517
514
  from openapi_client.models.session_stopping_data import SessionStoppingData
518
515
  from openapi_client.models.sessioncommand_list_response import SessioncommandListResponse
519
516
  from openapi_client.models.sessioncommandid_response import SessioncommandidResponse
520
- from openapi_client.models.sessiondescribe_response import SessiondescribeResponse
521
- from openapi_client.models.sessiondetails_response import SessiondetailsResponse
522
- from openapi_client.models.sessionhistoryitem_list_response import SessionhistoryitemListResponse
523
517
  from openapi_client.models.sessions_sort_field import SessionsSortField
524
518
  from openapi_client.models.sessionsshkey_response import SessionsshkeyResponse
525
519
  from openapi_client.models.show_otp_source_return_api_model import ShowOTPSourceReturnApiModel
@@ -568,8 +562,7 @@ from openapi_client.models.update_cloud_collaborator import UpdateCloudCollabora
568
562
  from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
569
563
  from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
570
564
  from openapi_client.models.update_cluster_dns import UpdateClusterDns
571
- from openapi_client.models.update_compute_template import UpdateComputeTemplate
572
- from openapi_client.models.update_compute_template_config import UpdateComputeTemplateConfig
565
+ from openapi_client.models.update_job_queue_request import UpdateJobQueueRequest
573
566
  from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
574
567
  from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
575
568
  from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
@@ -599,7 +592,6 @@ from openapi_client.models.waitlist_status_type import WaitlistStatusType
599
592
  from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
600
593
  from openapi_client.models.wand_b_run_details import WandBRunDetails
601
594
  from openapi_client.models.web_terminal import WebTerminal
602
- from openapi_client.models.webterminal_list_response import WebterminalListResponse
603
595
  from openapi_client.models.webterminal_response import WebterminalResponse
604
596
  from openapi_client.models.worker_node_type import WorkerNodeType
605
597
  from openapi_client.models.workload_info import WorkloadInfo
@@ -614,12 +606,14 @@ from openapi_client.models.workspace_readme import WorkspaceReadme
614
606
  from openapi_client.models.workspace_snapshot_states import WorkspaceSnapshotStates
615
607
  from openapi_client.models.workspace_template import WorkspaceTemplate
616
608
  from openapi_client.models.workspace_template_cluster_environment_metadata import WorkspaceTemplateClusterEnvironmentMetadata
609
+ from openapi_client.models.workspace_template_readme import WorkspaceTemplateReadme
617
610
  from openapi_client.models.workspacedataplaneartifacts_response import WorkspacedataplaneartifactsResponse
618
611
  from openapi_client.models.workspacedataplaneproxiedartifacts_response import WorkspacedataplaneproxiedartifactsResponse
619
612
  from openapi_client.models.workspaceevent_list_response import WorkspaceeventListResponse
620
613
  from openapi_client.models.workspacereadme_response import WorkspacereadmeResponse
621
614
  from openapi_client.models.workspacetemplate_list_response import WorkspacetemplateListResponse
622
615
  from openapi_client.models.workspacetemplateclusterenvironmentmetadata_response import WorkspacetemplateclusterenvironmentmetadataResponse
616
+ from openapi_client.models.workspacetemplatereadme_response import WorkspacetemplatereadmeResponse
623
617
  from openapi_client.models.write_cloud import WriteCloud
624
618
  from openapi_client.models.write_cluster_config import WriteClusterConfig
625
619
  from openapi_client.models.write_project import WriteProject
@@ -0,0 +1,402 @@
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 AWSConfig(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
+ 'vpc_id': 'str',
37
+ 'subnet_ids': 'list[str]',
38
+ 'zones': 'list[str]',
39
+ 'security_group_ids': 'list[str]',
40
+ 'anyscale_iam_role_id': 'str',
41
+ 'external_id': 'str',
42
+ 'cluster_iam_role_id': 'str',
43
+ 'memorydb_cluster_name': 'str',
44
+ 'memorydb_cluster_arn': 'str',
45
+ 'memorydb_cluster_endpoint': 'str',
46
+ 'cloudformation_id': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'vpc_id': 'vpc_id',
51
+ 'subnet_ids': 'subnet_ids',
52
+ 'zones': 'zones',
53
+ 'security_group_ids': 'security_group_ids',
54
+ 'anyscale_iam_role_id': 'anyscale_iam_role_id',
55
+ 'external_id': 'external_id',
56
+ 'cluster_iam_role_id': 'cluster_iam_role_id',
57
+ 'memorydb_cluster_name': 'memorydb_cluster_name',
58
+ 'memorydb_cluster_arn': 'memorydb_cluster_arn',
59
+ 'memorydb_cluster_endpoint': 'memorydb_cluster_endpoint',
60
+ 'cloudformation_id': 'cloudformation_id'
61
+ }
62
+
63
+ def __init__(self, vpc_id=None, subnet_ids=None, zones=None, security_group_ids=None, anyscale_iam_role_id=None, external_id=None, cluster_iam_role_id=None, memorydb_cluster_name=None, memorydb_cluster_arn=None, memorydb_cluster_endpoint=None, cloudformation_id=None, local_vars_configuration=None): # noqa: E501
64
+ """AWSConfig - a model defined in OpenAPI""" # noqa: E501
65
+ if local_vars_configuration is None:
66
+ local_vars_configuration = Configuration()
67
+ self.local_vars_configuration = local_vars_configuration
68
+
69
+ self._vpc_id = None
70
+ self._subnet_ids = None
71
+ self._zones = None
72
+ self._security_group_ids = None
73
+ self._anyscale_iam_role_id = None
74
+ self._external_id = None
75
+ self._cluster_iam_role_id = None
76
+ self._memorydb_cluster_name = None
77
+ self._memorydb_cluster_arn = None
78
+ self._memorydb_cluster_endpoint = None
79
+ self._cloudformation_id = None
80
+ self.discriminator = None
81
+
82
+ if vpc_id is not None:
83
+ self.vpc_id = vpc_id
84
+ if subnet_ids is not None:
85
+ self.subnet_ids = subnet_ids
86
+ if zones is not None:
87
+ self.zones = zones
88
+ if security_group_ids is not None:
89
+ self.security_group_ids = security_group_ids
90
+ if anyscale_iam_role_id is not None:
91
+ self.anyscale_iam_role_id = anyscale_iam_role_id
92
+ if external_id is not None:
93
+ self.external_id = external_id
94
+ if cluster_iam_role_id is not None:
95
+ self.cluster_iam_role_id = cluster_iam_role_id
96
+ if memorydb_cluster_name is not None:
97
+ self.memorydb_cluster_name = memorydb_cluster_name
98
+ if memorydb_cluster_arn is not None:
99
+ self.memorydb_cluster_arn = memorydb_cluster_arn
100
+ if memorydb_cluster_endpoint is not None:
101
+ self.memorydb_cluster_endpoint = memorydb_cluster_endpoint
102
+ if cloudformation_id is not None:
103
+ self.cloudformation_id = cloudformation_id
104
+
105
+ @property
106
+ def vpc_id(self):
107
+ """Gets the vpc_id of this AWSConfig. # noqa: E501
108
+
109
+ The VPC ID. # noqa: E501
110
+
111
+ :return: The vpc_id of this AWSConfig. # noqa: E501
112
+ :rtype: str
113
+ """
114
+ return self._vpc_id
115
+
116
+ @vpc_id.setter
117
+ def vpc_id(self, vpc_id):
118
+ """Sets the vpc_id of this AWSConfig.
119
+
120
+ The VPC ID. # noqa: E501
121
+
122
+ :param vpc_id: The vpc_id of this AWSConfig. # noqa: E501
123
+ :type: str
124
+ """
125
+
126
+ self._vpc_id = vpc_id
127
+
128
+ @property
129
+ def subnet_ids(self):
130
+ """Gets the subnet_ids of this AWSConfig. # noqa: E501
131
+
132
+ List of subnet IDs. # noqa: E501
133
+
134
+ :return: The subnet_ids of this AWSConfig. # noqa: E501
135
+ :rtype: list[str]
136
+ """
137
+ return self._subnet_ids
138
+
139
+ @subnet_ids.setter
140
+ def subnet_ids(self, subnet_ids):
141
+ """Sets the subnet_ids of this AWSConfig.
142
+
143
+ List of subnet IDs. # noqa: E501
144
+
145
+ :param subnet_ids: The subnet_ids of this AWSConfig. # noqa: E501
146
+ :type: list[str]
147
+ """
148
+
149
+ self._subnet_ids = subnet_ids
150
+
151
+ @property
152
+ def zones(self):
153
+ """Gets the zones of this AWSConfig. # noqa: E501
154
+
155
+ The availability zone corresponding to each subnet ID. # noqa: E501
156
+
157
+ :return: The zones of this AWSConfig. # noqa: E501
158
+ :rtype: list[str]
159
+ """
160
+ return self._zones
161
+
162
+ @zones.setter
163
+ def zones(self, zones):
164
+ """Sets the zones of this AWSConfig.
165
+
166
+ The availability zone corresponding to each subnet ID. # noqa: E501
167
+
168
+ :param zones: The zones of this AWSConfig. # noqa: E501
169
+ :type: list[str]
170
+ """
171
+
172
+ self._zones = zones
173
+
174
+ @property
175
+ def security_group_ids(self):
176
+ """Gets the security_group_ids of this AWSConfig. # noqa: E501
177
+
178
+ List of security group IDs. # noqa: E501
179
+
180
+ :return: The security_group_ids of this AWSConfig. # noqa: E501
181
+ :rtype: list[str]
182
+ """
183
+ return self._security_group_ids
184
+
185
+ @security_group_ids.setter
186
+ def security_group_ids(self, security_group_ids):
187
+ """Sets the security_group_ids of this AWSConfig.
188
+
189
+ List of security group IDs. # noqa: E501
190
+
191
+ :param security_group_ids: The security_group_ids of this AWSConfig. # noqa: E501
192
+ :type: list[str]
193
+ """
194
+
195
+ self._security_group_ids = security_group_ids
196
+
197
+ @property
198
+ def anyscale_iam_role_id(self):
199
+ """Gets the anyscale_iam_role_id of this AWSConfig. # noqa: E501
200
+
201
+ The Anyscale IAM role ARN. # noqa: E501
202
+
203
+ :return: The anyscale_iam_role_id of this AWSConfig. # noqa: E501
204
+ :rtype: str
205
+ """
206
+ return self._anyscale_iam_role_id
207
+
208
+ @anyscale_iam_role_id.setter
209
+ def anyscale_iam_role_id(self, anyscale_iam_role_id):
210
+ """Sets the anyscale_iam_role_id of this AWSConfig.
211
+
212
+ The Anyscale IAM role ARN. # noqa: E501
213
+
214
+ :param anyscale_iam_role_id: The anyscale_iam_role_id of this AWSConfig. # noqa: E501
215
+ :type: str
216
+ """
217
+
218
+ self._anyscale_iam_role_id = anyscale_iam_role_id
219
+
220
+ @property
221
+ def external_id(self):
222
+ """Gets the external_id of this AWSConfig. # noqa: E501
223
+
224
+ The trust policy external ID for the cross-account IAM role # noqa: E501
225
+
226
+ :return: The external_id of this AWSConfig. # noqa: E501
227
+ :rtype: str
228
+ """
229
+ return self._external_id
230
+
231
+ @external_id.setter
232
+ def external_id(self, external_id):
233
+ """Sets the external_id of this AWSConfig.
234
+
235
+ The trust policy external ID for the cross-account IAM role # noqa: E501
236
+
237
+ :param external_id: The external_id of this AWSConfig. # noqa: E501
238
+ :type: str
239
+ """
240
+
241
+ self._external_id = external_id
242
+
243
+ @property
244
+ def cluster_iam_role_id(self):
245
+ """Gets the cluster_iam_role_id of this AWSConfig. # noqa: E501
246
+
247
+ The IAM role ARN used by Ray clusters. # noqa: E501
248
+
249
+ :return: The cluster_iam_role_id of this AWSConfig. # noqa: E501
250
+ :rtype: str
251
+ """
252
+ return self._cluster_iam_role_id
253
+
254
+ @cluster_iam_role_id.setter
255
+ def cluster_iam_role_id(self, cluster_iam_role_id):
256
+ """Sets the cluster_iam_role_id of this AWSConfig.
257
+
258
+ The IAM role ARN used by Ray clusters. # noqa: E501
259
+
260
+ :param cluster_iam_role_id: The cluster_iam_role_id of this AWSConfig. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._cluster_iam_role_id = cluster_iam_role_id
265
+
266
+ @property
267
+ def memorydb_cluster_name(self):
268
+ """Gets the memorydb_cluster_name of this AWSConfig. # noqa: E501
269
+
270
+ The MemoryDB cluster name. # noqa: E501
271
+
272
+ :return: The memorydb_cluster_name of this AWSConfig. # noqa: E501
273
+ :rtype: str
274
+ """
275
+ return self._memorydb_cluster_name
276
+
277
+ @memorydb_cluster_name.setter
278
+ def memorydb_cluster_name(self, memorydb_cluster_name):
279
+ """Sets the memorydb_cluster_name of this AWSConfig.
280
+
281
+ The MemoryDB cluster name. # noqa: E501
282
+
283
+ :param memorydb_cluster_name: The memorydb_cluster_name of this AWSConfig. # noqa: E501
284
+ :type: str
285
+ """
286
+
287
+ self._memorydb_cluster_name = memorydb_cluster_name
288
+
289
+ @property
290
+ def memorydb_cluster_arn(self):
291
+ """Gets the memorydb_cluster_arn of this AWSConfig. # noqa: E501
292
+
293
+ The MemoryDB cluster ARN. # noqa: E501
294
+
295
+ :return: The memorydb_cluster_arn of this AWSConfig. # noqa: E501
296
+ :rtype: str
297
+ """
298
+ return self._memorydb_cluster_arn
299
+
300
+ @memorydb_cluster_arn.setter
301
+ def memorydb_cluster_arn(self, memorydb_cluster_arn):
302
+ """Sets the memorydb_cluster_arn of this AWSConfig.
303
+
304
+ The MemoryDB cluster ARN. # noqa: E501
305
+
306
+ :param memorydb_cluster_arn: The memorydb_cluster_arn of this AWSConfig. # noqa: E501
307
+ :type: str
308
+ """
309
+
310
+ self._memorydb_cluster_arn = memorydb_cluster_arn
311
+
312
+ @property
313
+ def memorydb_cluster_endpoint(self):
314
+ """Gets the memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
315
+
316
+ The MemoryDB cluster endpoint. # noqa: E501
317
+
318
+ :return: The memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
319
+ :rtype: str
320
+ """
321
+ return self._memorydb_cluster_endpoint
322
+
323
+ @memorydb_cluster_endpoint.setter
324
+ def memorydb_cluster_endpoint(self, memorydb_cluster_endpoint):
325
+ """Sets the memorydb_cluster_endpoint of this AWSConfig.
326
+
327
+ The MemoryDB cluster endpoint. # noqa: E501
328
+
329
+ :param memorydb_cluster_endpoint: The memorydb_cluster_endpoint of this AWSConfig. # noqa: E501
330
+ :type: str
331
+ """
332
+
333
+ self._memorydb_cluster_endpoint = memorydb_cluster_endpoint
334
+
335
+ @property
336
+ def cloudformation_id(self):
337
+ """Gets the cloudformation_id of this AWSConfig. # noqa: E501
338
+
339
+ The CloudFormation stack ID, for deployments with Anyscale-managed resources. # noqa: E501
340
+
341
+ :return: The cloudformation_id of this AWSConfig. # noqa: E501
342
+ :rtype: str
343
+ """
344
+ return self._cloudformation_id
345
+
346
+ @cloudformation_id.setter
347
+ def cloudformation_id(self, cloudformation_id):
348
+ """Sets the cloudformation_id of this AWSConfig.
349
+
350
+ The CloudFormation stack ID, for deployments with Anyscale-managed resources. # noqa: E501
351
+
352
+ :param cloudformation_id: The cloudformation_id of this AWSConfig. # noqa: E501
353
+ :type: str
354
+ """
355
+
356
+ self._cloudformation_id = cloudformation_id
357
+
358
+ def to_dict(self):
359
+ """Returns the model properties as a dict"""
360
+ result = {}
361
+
362
+ for attr, _ in six.iteritems(self.openapi_types):
363
+ value = getattr(self, attr)
364
+ if isinstance(value, list):
365
+ result[attr] = list(map(
366
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
367
+ value
368
+ ))
369
+ elif hasattr(value, "to_dict"):
370
+ result[attr] = value.to_dict()
371
+ elif isinstance(value, dict):
372
+ result[attr] = dict(map(
373
+ lambda item: (item[0], item[1].to_dict())
374
+ if hasattr(item[1], "to_dict") else item,
375
+ value.items()
376
+ ))
377
+ else:
378
+ result[attr] = value
379
+
380
+ return result
381
+
382
+ def to_str(self):
383
+ """Returns the string representation of the model"""
384
+ return pprint.pformat(self.to_dict())
385
+
386
+ def __repr__(self):
387
+ """For `print` and `pprint`"""
388
+ return self.to_str()
389
+
390
+ def __eq__(self, other):
391
+ """Returns true if both objects are equal"""
392
+ if not isinstance(other, AWSConfig):
393
+ return False
394
+
395
+ return self.to_dict() == other.to_dict()
396
+
397
+ def __ne__(self, other):
398
+ """Returns true if both objects are not equal"""
399
+ if not isinstance(other, AWSConfig):
400
+ return True
401
+
402
+ return self.to_dict() != other.to_dict()