anyscale 0.26.23__py3-none-any.whl → 0.26.24__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 +1 -1
- anyscale/_private/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +39 -182
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/client/README.md +2 -35
- anyscale/client/openapi_client/__init__.py +2 -21
- anyscale/client/openapi_client/api/default_api.py +275 -1868
- anyscale/client/openapi_client/models/__init__.py +2 -21
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
- anyscale/client/openapi_client/models/cloud_providers.py +2 -1
- anyscale/client/openapi_client/models/compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
- anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
- anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/cluster_compute.py +4 -4
- anyscale/commands/anyscale_api/sessions_commands.py +1 -70
- anyscale/commands/cloud_commands.py +5 -4
- anyscale/commands/image_commands.py +2 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/workspace_commands_v2.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +1 -3
- anyscale/controllers/cloud_controller.py +12 -6
- anyscale/controllers/cloud_functional_verification_controller.py +2 -2
- anyscale/image/commands.py +1 -1
- anyscale/sdk/anyscale_client/__init__.py +2 -15
- anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
- anyscale/sdk/anyscale_client/models/__init__.py +2 -15
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
- anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
- anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
- anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
- anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
- anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/RECORD +52 -84
- anyscale/client/openapi_client/models/bank_account_information.py +0 -239
- anyscale/client/openapi_client/models/billing_information.py +0 -181
- anyscale/client/openapi_client/models/credit_card_information.py +0 -268
- anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
- anyscale/client/openapi_client/models/invoice.py +0 -413
- anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
- anyscale/client/openapi_client/models/invoice_status.py +0 -102
- anyscale/client/openapi_client/models/invoices_query.py +0 -150
- anyscale/client/openapi_client/models/log_stream.py +0 -151
- anyscale/client/openapi_client/models/logstream_response.py +0 -121
- anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
- anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
- anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
- anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
- anyscale/client/openapi_client/models/product_type.py +0 -100
- anyscale/client/openapi_client/models/service_usage.py +0 -353
- anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
- anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
- anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
- anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
- anyscale/client/openapi_client/models/write_session.py +0 -147
- anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
- anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_build.py +0 -263
- anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
- anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
- anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
- anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/update_session.py +0 -150
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -52,11 +52,9 @@ from openapi_client.models.awsregionandzones_response import AwsregionandzonesRe
|
|
52
52
|
from openapi_client.models.baseimagesenum import BASEIMAGESENUM
|
53
53
|
from openapi_client.models.backend_server_api_product_models_dataset_runs_dataset_response import BackendServerApiProductModelsDatasetRunsDatasetResponse
|
54
54
|
from openapi_client.models.backend_server_api_product_routers_datasets_router_dataset_response import BackendServerApiProductRoutersDatasetsRouterDatasetResponse
|
55
|
-
from openapi_client.models.bank_account_information import BankAccountInformation
|
56
55
|
from openapi_client.models.base_job_status import BaseJobStatus
|
57
56
|
from openapi_client.models.batch_response_batched_result_organization_invitation_base import BatchResponseBatchedResultOrganizationInvitationBase
|
58
57
|
from openapi_client.models.batched_result_organization_invitation_base import BatchedResultOrganizationInvitationBase
|
59
|
-
from openapi_client.models.billing_information import BillingInformation
|
60
58
|
from openapi_client.models.billing_version_code import BillingVersionCode
|
61
59
|
from openapi_client.models.body_aws_marketplace_registration_api_v2_organization_billing_aws_marketplace_registration_post import BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost
|
62
60
|
from openapi_client.models.build import Build
|
@@ -90,7 +88,9 @@ from openapi_client.models.cloud_data_bucket_presigned_url_response import Cloud
|
|
90
88
|
from openapi_client.models.cloud_data_bucket_presigned_url_scheme import CloudDataBucketPresignedUrlScheme
|
91
89
|
from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucketRequestScope
|
92
90
|
from openapi_client.models.cloud_deployment import CloudDeployment
|
91
|
+
from openapi_client.models.cloud_deployment_compute_config import CloudDeploymentComputeConfig
|
93
92
|
from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
|
93
|
+
from openapi_client.models.cloud_deployment_selector import CloudDeploymentSelector
|
94
94
|
from openapi_client.models.cloud_hosting_type import CloudHostingType
|
95
95
|
from openapi_client.models.cloud_list_response import CloudListResponse
|
96
96
|
from openapi_client.models.cloud_name_options import CloudNameOptions
|
@@ -186,7 +186,6 @@ from openapi_client.models.createcomputetemplateconfig_response import Createcom
|
|
186
186
|
from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
|
187
187
|
from openapi_client.models.createmachineresponse_response import CreatemachineresponseResponse
|
188
188
|
from openapi_client.models.createotpreturnapimodel_response import CreateotpreturnapimodelResponse
|
189
|
-
from openapi_client.models.credit_card_information import CreditCardInformation
|
190
189
|
from openapi_client.models.customer_alert_status import CustomerAlertStatus
|
191
190
|
from openapi_client.models.dataplane_services import DataplaneServices
|
192
191
|
from openapi_client.models.dataset import Dataset
|
@@ -243,7 +242,6 @@ from openapi_client.models.decoratedsession_response import DecoratedsessionResp
|
|
243
242
|
from openapi_client.models.decoratedsupportrequest_list_response import DecoratedsupportrequestListResponse
|
244
243
|
from openapi_client.models.decoratedsupportrequest_response import DecoratedsupportrequestResponse
|
245
244
|
from openapi_client.models.decoratedunifiedjob_list_response import DecoratedunifiedjobListResponse
|
246
|
-
from openapi_client.models.decoratedunifiedjob_response import DecoratedunifiedjobResponse
|
247
245
|
from openapi_client.models.delete_machine_pool_request import DeleteMachinePoolRequest
|
248
246
|
from openapi_client.models.delete_machine_request import DeleteMachineRequest
|
249
247
|
from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
|
@@ -301,10 +299,6 @@ from openapi_client.models.instanceusagebudget_response import Instanceusagebudg
|
|
301
299
|
from openapi_client.models.integration_details import IntegrationDetails
|
302
300
|
from openapi_client.models.internal_production_job import InternalProductionJob
|
303
301
|
from openapi_client.models.internalproductionjob_response import InternalproductionjobResponse
|
304
|
-
from openapi_client.models.invoice import Invoice
|
305
|
-
from openapi_client.models.invoice_list_response import InvoiceListResponse
|
306
|
-
from openapi_client.models.invoice_status import InvoiceStatus
|
307
|
-
from openapi_client.models.invoices_query import InvoicesQuery
|
308
302
|
from openapi_client.models.job_access import JobAccess
|
309
303
|
from openapi_client.models.job_details import JobDetails
|
310
304
|
from openapi_client.models.job_queue import JobQueue
|
@@ -345,13 +339,11 @@ from openapi_client.models.log_file_chunk import LogFileChunk
|
|
345
339
|
from openapi_client.models.log_filter import LogFilter
|
346
340
|
from openapi_client.models.log_item import LogItem
|
347
341
|
from openapi_client.models.log_item_batch import LogItemBatch
|
348
|
-
from openapi_client.models.log_stream import LogStream
|
349
342
|
from openapi_client.models.logdownloadresult_response import LogdownloadresultResponse
|
350
343
|
from openapi_client.models.login_user_params import LoginUserParams
|
351
344
|
from openapi_client.models.logitembatch_response import LogitembatchResponse
|
352
345
|
from openapi_client.models.logs_output import LogsOutput
|
353
346
|
from openapi_client.models.logsoutput_response import LogsoutputResponse
|
354
|
-
from openapi_client.models.logstream_response import LogstreamResponse
|
355
347
|
from openapi_client.models.long_running_workload import LongRunningWorkload
|
356
348
|
from openapi_client.models.longrunningworkload_list_response import LongrunningworkloadListResponse
|
357
349
|
from openapi_client.models.machine_allocation_state import MachineAllocationState
|
@@ -380,7 +372,6 @@ from openapi_client.models.mini_schedule import MiniSchedule
|
|
380
372
|
from openapi_client.models.mini_user import MiniUser
|
381
373
|
from openapi_client.models.minibuild_list_response import MinibuildListResponse
|
382
374
|
from openapi_client.models.minicomputetemplate_list_response import MinicomputetemplateListResponse
|
383
|
-
from openapi_client.models.miniproject_list_response import MiniprojectListResponse
|
384
375
|
from openapi_client.models.nfs_mount_target import NFSMountTarget
|
385
376
|
from openapi_client.models.networking_mode import NetworkingMode
|
386
377
|
from openapi_client.models.node_registration_aws import NodeRegistrationAWS
|
@@ -404,8 +395,6 @@ from openapi_client.models.organization_invitation import OrganizationInvitation
|
|
404
395
|
from openapi_client.models.organization_invitation_base import OrganizationInvitationBase
|
405
396
|
from openapi_client.models.organization_marketing_questions import OrganizationMarketingQuestions
|
406
397
|
from openapi_client.models.organization_permission_level import OrganizationPermissionLevel
|
407
|
-
from openapi_client.models.organization_project_collaborator import OrganizationProjectCollaborator
|
408
|
-
from openapi_client.models.organization_project_collaborator_value import OrganizationProjectCollaboratorValue
|
409
398
|
from openapi_client.models.organization_summary import OrganizationSummary
|
410
399
|
from openapi_client.models.organization_usage_alert import OrganizationUsageAlert
|
411
400
|
from openapi_client.models.organization_usage_alert_severity import OrganizationUsageAlertSeverity
|
@@ -415,13 +404,11 @@ from openapi_client.models.organizationconfigurationresponse_response import Org
|
|
415
404
|
from openapi_client.models.organizationinvitation_list_response import OrganizationinvitationListResponse
|
416
405
|
from openapi_client.models.organizationinvitation_response import OrganizationinvitationResponse
|
417
406
|
from openapi_client.models.organizationinvitationbase_response import OrganizationinvitationbaseResponse
|
418
|
-
from openapi_client.models.organizationprojectcollaborator_list_response import OrganizationprojectcollaboratorListResponse
|
419
407
|
from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
|
420
408
|
from openapi_client.models.pcp_config import PCPConfig
|
421
409
|
from openapi_client.models.page_query import PageQuery
|
422
410
|
from openapi_client.models.pause_schedule import PauseSchedule
|
423
411
|
from openapi_client.models.permission_level import PermissionLevel
|
424
|
-
from openapi_client.models.product_type import ProductType
|
425
412
|
from openapi_client.models.production_job import ProductionJob
|
426
413
|
from openapi_client.models.production_job_config import ProductionJobConfig
|
427
414
|
from openapi_client.models.production_job_event import ProductionJobEvent
|
@@ -493,7 +480,6 @@ from openapi_client.models.service_goal_states import ServiceGoalStates
|
|
493
480
|
from openapi_client.models.service_observability_urls import ServiceObservabilityUrls
|
494
481
|
from openapi_client.models.service_sort_field import ServiceSortField
|
495
482
|
from openapi_client.models.service_type import ServiceType
|
496
|
-
from openapi_client.models.service_usage import ServiceUsage
|
497
483
|
from openapi_client.models.service_version_state import ServiceVersionState
|
498
484
|
from openapi_client.models.serviceeventverbosemessagemodel_list_response import ServiceeventverbosemessagemodelListResponse
|
499
485
|
from openapi_client.models.session import Session
|
@@ -537,10 +523,6 @@ from openapi_client.models.task_table_response import TaskTableResponse
|
|
537
523
|
from openapi_client.models.task_table_row import TaskTableRow
|
538
524
|
from openapi_client.models.task_type import TaskType
|
539
525
|
from openapi_client.models.tasksummary_response import TasksummaryResponse
|
540
|
-
from openapi_client.models.templatized_compute_configs import TemplatizedComputeConfigs
|
541
|
-
from openapi_client.models.templatized_decorated_application_templates import TemplatizedDecoratedApplicationTemplates
|
542
|
-
from openapi_client.models.templatizedcomputeconfigs_response import TemplatizedcomputeconfigsResponse
|
543
|
-
from openapi_client.models.templatizeddecoratedapplicationtemplates_response import TemplatizeddecoratedapplicationtemplatesResponse
|
544
526
|
from openapi_client.models.text_query import TextQuery
|
545
527
|
from openapi_client.models.tool import Tool
|
546
528
|
from openapi_client.models.tracing_config import TracingConfig
|
@@ -614,5 +596,4 @@ from openapi_client.models.workspacetemplatereadme_response import Workspacetemp
|
|
614
596
|
from openapi_client.models.write_cloud import WriteCloud
|
615
597
|
from openapi_client.models.write_cluster_config import WriteClusterConfig
|
616
598
|
from openapi_client.models.write_project import WriteProject
|
617
|
-
from openapi_client.models.write_session import WriteSession
|
618
599
|
from openapi_client.models.write_support_request import WriteSupportRequest
|
@@ -32,8 +32,9 @@ class CloudDataBucketFileType(object):
|
|
32
32
|
DATASETS = "datasets"
|
33
33
|
AUDIT_LOGS = "audit_logs"
|
34
34
|
SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES = "system_storage/workspace_tracking_dependencies"
|
35
|
+
SYSTEM_STORAGE_WORKSPACES = "system_storage/workspaces"
|
35
36
|
|
36
|
-
allowable_values = [RUNTIME_ENV_PACKAGES, DATASETS, AUDIT_LOGS, SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES] # noqa: E501
|
37
|
+
allowable_values = [RUNTIME_ENV_PACKAGES, DATASETS, AUDIT_LOGS, SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES, SYSTEM_STORAGE_WORKSPACES] # noqa: E501
|
37
38
|
|
38
39
|
"""
|
39
40
|
Attributes:
|
@@ -122,7 +122,7 @@ class CloudDeployment(object):
|
|
122
122
|
def provider(self):
|
123
123
|
"""Gets the provider of this CloudDeployment. # noqa: E501
|
124
124
|
|
125
|
-
The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
|
125
|
+
The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
|
126
126
|
|
127
127
|
:return: The provider of this CloudDeployment. # noqa: E501
|
128
128
|
:rtype: CloudProviders
|
@@ -133,7 +133,7 @@ class CloudDeployment(object):
|
|
133
133
|
def provider(self, provider):
|
134
134
|
"""Sets the provider of this CloudDeployment.
|
135
135
|
|
136
|
-
The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
|
136
|
+
The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
|
137
137
|
|
138
138
|
:param provider: The provider of this CloudDeployment. # noqa: E501
|
139
139
|
:type: CloudProviders
|
@@ -0,0 +1,291 @@
|
|
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 CloudDeploymentComputeConfig(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
|
+
'cloud_deployment': 'CloudDeploymentSelector',
|
37
|
+
'allowed_azs': 'list[str]',
|
38
|
+
'head_node_type': 'ComputeNodeType',
|
39
|
+
'worker_node_types': 'list[WorkerNodeType]',
|
40
|
+
'advanced_configurations_json': 'object',
|
41
|
+
'auto_select_worker_config': 'bool',
|
42
|
+
'flags': 'object'
|
43
|
+
}
|
44
|
+
|
45
|
+
attribute_map = {
|
46
|
+
'cloud_deployment': 'cloud_deployment',
|
47
|
+
'allowed_azs': 'allowed_azs',
|
48
|
+
'head_node_type': 'head_node_type',
|
49
|
+
'worker_node_types': 'worker_node_types',
|
50
|
+
'advanced_configurations_json': 'advanced_configurations_json',
|
51
|
+
'auto_select_worker_config': 'auto_select_worker_config',
|
52
|
+
'flags': 'flags'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, cloud_deployment=None, allowed_azs=None, head_node_type=None, worker_node_types=None, advanced_configurations_json=None, auto_select_worker_config=False, flags=None, local_vars_configuration=None): # noqa: E501
|
56
|
+
"""CloudDeploymentComputeConfig - a model defined in OpenAPI""" # noqa: E501
|
57
|
+
if local_vars_configuration is None:
|
58
|
+
local_vars_configuration = Configuration()
|
59
|
+
self.local_vars_configuration = local_vars_configuration
|
60
|
+
|
61
|
+
self._cloud_deployment = None
|
62
|
+
self._allowed_azs = None
|
63
|
+
self._head_node_type = None
|
64
|
+
self._worker_node_types = None
|
65
|
+
self._advanced_configurations_json = None
|
66
|
+
self._auto_select_worker_config = None
|
67
|
+
self._flags = None
|
68
|
+
self.discriminator = None
|
69
|
+
|
70
|
+
if cloud_deployment is not None:
|
71
|
+
self.cloud_deployment = cloud_deployment
|
72
|
+
if allowed_azs is not None:
|
73
|
+
self.allowed_azs = allowed_azs
|
74
|
+
self.head_node_type = head_node_type
|
75
|
+
if worker_node_types is not None:
|
76
|
+
self.worker_node_types = worker_node_types
|
77
|
+
if advanced_configurations_json is not None:
|
78
|
+
self.advanced_configurations_json = advanced_configurations_json
|
79
|
+
if auto_select_worker_config is not None:
|
80
|
+
self.auto_select_worker_config = auto_select_worker_config
|
81
|
+
if flags is not None:
|
82
|
+
self.flags = flags
|
83
|
+
|
84
|
+
@property
|
85
|
+
def cloud_deployment(self):
|
86
|
+
"""Gets the cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
87
|
+
|
88
|
+
The cloud deployment to use for this compute config. If not specified, the default cloud deployment for the cloud will be used. # noqa: E501
|
89
|
+
|
90
|
+
:return: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
91
|
+
:rtype: CloudDeploymentSelector
|
92
|
+
"""
|
93
|
+
return self._cloud_deployment
|
94
|
+
|
95
|
+
@cloud_deployment.setter
|
96
|
+
def cloud_deployment(self, cloud_deployment):
|
97
|
+
"""Sets the cloud_deployment of this CloudDeploymentComputeConfig.
|
98
|
+
|
99
|
+
The cloud deployment to use for this compute config. If not specified, the default cloud deployment for the cloud will be used. # noqa: E501
|
100
|
+
|
101
|
+
:param cloud_deployment: The cloud_deployment of this CloudDeploymentComputeConfig. # noqa: E501
|
102
|
+
:type: CloudDeploymentSelector
|
103
|
+
"""
|
104
|
+
|
105
|
+
self._cloud_deployment = cloud_deployment
|
106
|
+
|
107
|
+
@property
|
108
|
+
def allowed_azs(self):
|
109
|
+
"""Gets the allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
110
|
+
|
111
|
+
The availability zones that sessions are allowed to be launched in, e.g. \"us-west-2a\". If not specified or \"any\" is provided as the option, any AZ may be used. If \"any\" is provided, it must be the only item in the list. # noqa: E501
|
112
|
+
|
113
|
+
:return: The allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
114
|
+
:rtype: list[str]
|
115
|
+
"""
|
116
|
+
return self._allowed_azs
|
117
|
+
|
118
|
+
@allowed_azs.setter
|
119
|
+
def allowed_azs(self, allowed_azs):
|
120
|
+
"""Sets the allowed_azs of this CloudDeploymentComputeConfig.
|
121
|
+
|
122
|
+
The availability zones that sessions are allowed to be launched in, e.g. \"us-west-2a\". If not specified or \"any\" is provided as the option, any AZ may be used. If \"any\" is provided, it must be the only item in the list. # noqa: E501
|
123
|
+
|
124
|
+
:param allowed_azs: The allowed_azs of this CloudDeploymentComputeConfig. # noqa: E501
|
125
|
+
:type: list[str]
|
126
|
+
"""
|
127
|
+
|
128
|
+
self._allowed_azs = allowed_azs
|
129
|
+
|
130
|
+
@property
|
131
|
+
def head_node_type(self):
|
132
|
+
"""Gets the head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
133
|
+
|
134
|
+
Node configuration to use for the head node. # noqa: E501
|
135
|
+
|
136
|
+
:return: The head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
137
|
+
:rtype: ComputeNodeType
|
138
|
+
"""
|
139
|
+
return self._head_node_type
|
140
|
+
|
141
|
+
@head_node_type.setter
|
142
|
+
def head_node_type(self, head_node_type):
|
143
|
+
"""Sets the head_node_type of this CloudDeploymentComputeConfig.
|
144
|
+
|
145
|
+
Node configuration to use for the head node. # noqa: E501
|
146
|
+
|
147
|
+
:param head_node_type: The head_node_type of this CloudDeploymentComputeConfig. # noqa: E501
|
148
|
+
:type: ComputeNodeType
|
149
|
+
"""
|
150
|
+
if self.local_vars_configuration.client_side_validation and head_node_type is None: # noqa: E501
|
151
|
+
raise ValueError("Invalid value for `head_node_type`, must not be `None`") # noqa: E501
|
152
|
+
|
153
|
+
self._head_node_type = head_node_type
|
154
|
+
|
155
|
+
@property
|
156
|
+
def worker_node_types(self):
|
157
|
+
"""Gets the worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
158
|
+
|
159
|
+
A list of node types to use for worker nodes. # noqa: E501
|
160
|
+
|
161
|
+
:return: The worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
162
|
+
:rtype: list[WorkerNodeType]
|
163
|
+
"""
|
164
|
+
return self._worker_node_types
|
165
|
+
|
166
|
+
@worker_node_types.setter
|
167
|
+
def worker_node_types(self, worker_node_types):
|
168
|
+
"""Sets the worker_node_types of this CloudDeploymentComputeConfig.
|
169
|
+
|
170
|
+
A list of node types to use for worker nodes. # noqa: E501
|
171
|
+
|
172
|
+
:param worker_node_types: The worker_node_types of this CloudDeploymentComputeConfig. # noqa: E501
|
173
|
+
:type: list[WorkerNodeType]
|
174
|
+
"""
|
175
|
+
|
176
|
+
self._worker_node_types = worker_node_types
|
177
|
+
|
178
|
+
@property
|
179
|
+
def advanced_configurations_json(self):
|
180
|
+
"""Gets the advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
181
|
+
|
182
|
+
Advanced configurations for this compute node type to pass to the cloud provider when launching this instance. # noqa: E501
|
183
|
+
|
184
|
+
:return: The advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
185
|
+
:rtype: object
|
186
|
+
"""
|
187
|
+
return self._advanced_configurations_json
|
188
|
+
|
189
|
+
@advanced_configurations_json.setter
|
190
|
+
def advanced_configurations_json(self, advanced_configurations_json):
|
191
|
+
"""Sets the advanced_configurations_json of this CloudDeploymentComputeConfig.
|
192
|
+
|
193
|
+
Advanced configurations for this compute node type to pass to the cloud provider when launching this instance. # noqa: E501
|
194
|
+
|
195
|
+
:param advanced_configurations_json: The advanced_configurations_json of this CloudDeploymentComputeConfig. # noqa: E501
|
196
|
+
:type: object
|
197
|
+
"""
|
198
|
+
|
199
|
+
self._advanced_configurations_json = advanced_configurations_json
|
200
|
+
|
201
|
+
@property
|
202
|
+
def auto_select_worker_config(self):
|
203
|
+
"""Gets the auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
204
|
+
|
205
|
+
If set to true, worker node groups will automatically be selected based on workload. # noqa: E501
|
206
|
+
|
207
|
+
:return: The auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
208
|
+
:rtype: bool
|
209
|
+
"""
|
210
|
+
return self._auto_select_worker_config
|
211
|
+
|
212
|
+
@auto_select_worker_config.setter
|
213
|
+
def auto_select_worker_config(self, auto_select_worker_config):
|
214
|
+
"""Sets the auto_select_worker_config of this CloudDeploymentComputeConfig.
|
215
|
+
|
216
|
+
If set to true, worker node groups will automatically be selected based on workload. # noqa: E501
|
217
|
+
|
218
|
+
:param auto_select_worker_config: The auto_select_worker_config of this CloudDeploymentComputeConfig. # noqa: E501
|
219
|
+
:type: bool
|
220
|
+
"""
|
221
|
+
|
222
|
+
self._auto_select_worker_config = auto_select_worker_config
|
223
|
+
|
224
|
+
@property
|
225
|
+
def flags(self):
|
226
|
+
"""Gets the flags of this CloudDeploymentComputeConfig. # noqa: E501
|
227
|
+
|
228
|
+
A set of advanced cluster-level flags that can be used to configure a particular workload. # noqa: E501
|
229
|
+
|
230
|
+
:return: The flags of this CloudDeploymentComputeConfig. # noqa: E501
|
231
|
+
:rtype: object
|
232
|
+
"""
|
233
|
+
return self._flags
|
234
|
+
|
235
|
+
@flags.setter
|
236
|
+
def flags(self, flags):
|
237
|
+
"""Sets the flags of this CloudDeploymentComputeConfig.
|
238
|
+
|
239
|
+
A set of advanced cluster-level flags that can be used to configure a particular workload. # noqa: E501
|
240
|
+
|
241
|
+
:param flags: The flags of this CloudDeploymentComputeConfig. # noqa: E501
|
242
|
+
:type: object
|
243
|
+
"""
|
244
|
+
|
245
|
+
self._flags = flags
|
246
|
+
|
247
|
+
def to_dict(self):
|
248
|
+
"""Returns the model properties as a dict"""
|
249
|
+
result = {}
|
250
|
+
|
251
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
252
|
+
value = getattr(self, attr)
|
253
|
+
if isinstance(value, list):
|
254
|
+
result[attr] = list(map(
|
255
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
256
|
+
value
|
257
|
+
))
|
258
|
+
elif hasattr(value, "to_dict"):
|
259
|
+
result[attr] = value.to_dict()
|
260
|
+
elif isinstance(value, dict):
|
261
|
+
result[attr] = dict(map(
|
262
|
+
lambda item: (item[0], item[1].to_dict())
|
263
|
+
if hasattr(item[1], "to_dict") else item,
|
264
|
+
value.items()
|
265
|
+
))
|
266
|
+
else:
|
267
|
+
result[attr] = value
|
268
|
+
|
269
|
+
return result
|
270
|
+
|
271
|
+
def to_str(self):
|
272
|
+
"""Returns the string representation of the model"""
|
273
|
+
return pprint.pformat(self.to_dict())
|
274
|
+
|
275
|
+
def __repr__(self):
|
276
|
+
"""For `print` and `pprint`"""
|
277
|
+
return self.to_str()
|
278
|
+
|
279
|
+
def __eq__(self, other):
|
280
|
+
"""Returns true if both objects are equal"""
|
281
|
+
if not isinstance(other, CloudDeploymentComputeConfig):
|
282
|
+
return False
|
283
|
+
|
284
|
+
return self.to_dict() == other.to_dict()
|
285
|
+
|
286
|
+
def __ne__(self, other):
|
287
|
+
"""Returns true if both objects are not equal"""
|
288
|
+
if not isinstance(other, CloudDeploymentComputeConfig):
|
289
|
+
return True
|
290
|
+
|
291
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,206 @@
|
|
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 CloudDeploymentSelector(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'id': 'str',
|
37
|
+
'compute_stack': 'ComputeStack',
|
38
|
+
'provider': 'CloudProviders',
|
39
|
+
'region': 'str'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'id': 'id',
|
44
|
+
'compute_stack': 'compute_stack',
|
45
|
+
'provider': 'provider',
|
46
|
+
'region': 'region'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, id=None, compute_stack=None, provider=None, region=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""CloudDeploymentSelector - a model defined in OpenAPI""" # noqa: E501
|
51
|
+
if local_vars_configuration is None:
|
52
|
+
local_vars_configuration = Configuration()
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
54
|
+
|
55
|
+
self._id = None
|
56
|
+
self._compute_stack = None
|
57
|
+
self._provider = None
|
58
|
+
self._region = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if compute_stack is not None:
|
64
|
+
self.compute_stack = compute_stack
|
65
|
+
if provider is not None:
|
66
|
+
self.provider = provider
|
67
|
+
if region is not None:
|
68
|
+
self.region = region
|
69
|
+
|
70
|
+
@property
|
71
|
+
def id(self):
|
72
|
+
"""Gets the id of this CloudDeploymentSelector. # noqa: E501
|
73
|
+
|
74
|
+
Cloud deployment ID. Note that this is not the same as the cloud ID. # noqa: E501
|
75
|
+
|
76
|
+
:return: The id of this CloudDeploymentSelector. # noqa: E501
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._id
|
80
|
+
|
81
|
+
@id.setter
|
82
|
+
def id(self, id):
|
83
|
+
"""Sets the id of this CloudDeploymentSelector.
|
84
|
+
|
85
|
+
Cloud deployment ID. Note that this is not the same as the cloud ID. # noqa: E501
|
86
|
+
|
87
|
+
:param id: The id of this CloudDeploymentSelector. # noqa: E501
|
88
|
+
:type: str
|
89
|
+
"""
|
90
|
+
|
91
|
+
self._id = id
|
92
|
+
|
93
|
+
@property
|
94
|
+
def compute_stack(self):
|
95
|
+
"""Gets the compute_stack of this CloudDeploymentSelector. # noqa: E501
|
96
|
+
|
97
|
+
Cloud deployment compute stack, e.g., `VM` or `K8S`. # noqa: E501
|
98
|
+
|
99
|
+
:return: The compute_stack of this CloudDeploymentSelector. # noqa: E501
|
100
|
+
:rtype: ComputeStack
|
101
|
+
"""
|
102
|
+
return self._compute_stack
|
103
|
+
|
104
|
+
@compute_stack.setter
|
105
|
+
def compute_stack(self, compute_stack):
|
106
|
+
"""Sets the compute_stack of this CloudDeploymentSelector.
|
107
|
+
|
108
|
+
Cloud deployment compute stack, e.g., `VM` or `K8S`. # noqa: E501
|
109
|
+
|
110
|
+
:param compute_stack: The compute_stack of this CloudDeploymentSelector. # noqa: E501
|
111
|
+
:type: ComputeStack
|
112
|
+
"""
|
113
|
+
|
114
|
+
self._compute_stack = compute_stack
|
115
|
+
|
116
|
+
@property
|
117
|
+
def provider(self):
|
118
|
+
"""Gets the provider of this CloudDeploymentSelector. # noqa: E501
|
119
|
+
|
120
|
+
Cloud deployment provider name, e.g., `AWS` or `GCP`. # noqa: E501
|
121
|
+
|
122
|
+
:return: The provider of this CloudDeploymentSelector. # noqa: E501
|
123
|
+
:rtype: CloudProviders
|
124
|
+
"""
|
125
|
+
return self._provider
|
126
|
+
|
127
|
+
@provider.setter
|
128
|
+
def provider(self, provider):
|
129
|
+
"""Sets the provider of this CloudDeploymentSelector.
|
130
|
+
|
131
|
+
Cloud deployment provider name, e.g., `AWS` or `GCP`. # noqa: E501
|
132
|
+
|
133
|
+
:param provider: The provider of this CloudDeploymentSelector. # noqa: E501
|
134
|
+
:type: CloudProviders
|
135
|
+
"""
|
136
|
+
|
137
|
+
self._provider = provider
|
138
|
+
|
139
|
+
@property
|
140
|
+
def region(self):
|
141
|
+
"""Gets the region of this CloudDeploymentSelector. # noqa: E501
|
142
|
+
|
143
|
+
Cloud deployment region, e.g., `us-west-2`. # noqa: E501
|
144
|
+
|
145
|
+
:return: The region of this CloudDeploymentSelector. # noqa: E501
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._region
|
149
|
+
|
150
|
+
@region.setter
|
151
|
+
def region(self, region):
|
152
|
+
"""Sets the region of this CloudDeploymentSelector.
|
153
|
+
|
154
|
+
Cloud deployment region, e.g., `us-west-2`. # noqa: E501
|
155
|
+
|
156
|
+
:param region: The region of this CloudDeploymentSelector. # noqa: E501
|
157
|
+
:type: str
|
158
|
+
"""
|
159
|
+
|
160
|
+
self._region = region
|
161
|
+
|
162
|
+
def to_dict(self):
|
163
|
+
"""Returns the model properties as a dict"""
|
164
|
+
result = {}
|
165
|
+
|
166
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
167
|
+
value = getattr(self, attr)
|
168
|
+
if isinstance(value, list):
|
169
|
+
result[attr] = list(map(
|
170
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
171
|
+
value
|
172
|
+
))
|
173
|
+
elif hasattr(value, "to_dict"):
|
174
|
+
result[attr] = value.to_dict()
|
175
|
+
elif isinstance(value, dict):
|
176
|
+
result[attr] = dict(map(
|
177
|
+
lambda item: (item[0], item[1].to_dict())
|
178
|
+
if hasattr(item[1], "to_dict") else item,
|
179
|
+
value.items()
|
180
|
+
))
|
181
|
+
else:
|
182
|
+
result[attr] = value
|
183
|
+
|
184
|
+
return result
|
185
|
+
|
186
|
+
def to_str(self):
|
187
|
+
"""Returns the string representation of the model"""
|
188
|
+
return pprint.pformat(self.to_dict())
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print` and `pprint`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, CloudDeploymentSelector):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.to_dict() == other.to_dict()
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
if not isinstance(other, CloudDeploymentSelector):
|
204
|
+
return True
|
205
|
+
|
206
|
+
return self.to_dict() != other.to_dict()
|
@@ -33,8 +33,9 @@ class CloudProviders(object):
|
|
33
33
|
CLOUDGATEWAY = "CLOUDGATEWAY"
|
34
34
|
PCP = "PCP"
|
35
35
|
GENERIC = "GENERIC"
|
36
|
+
AZURE = "AZURE"
|
36
37
|
|
37
|
-
allowable_values = [AWS, GCP, CLOUDGATEWAY, PCP, GENERIC] # noqa: E501
|
38
|
+
allowable_values = [AWS, GCP, CLOUDGATEWAY, PCP, GENERIC, AZURE] # noqa: E501
|
38
39
|
|
39
40
|
"""
|
40
41
|
Attributes:
|