anyscale 0.24.88__py3-none-any.whl → 0.24.91__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 (115) hide show
  1. anyscale/__init__.py +46 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +148 -28
  3. anyscale/_private/anyscale_client/common.py +74 -1
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +165 -1
  5. anyscale/_private/docgen/README.md +1 -1
  6. anyscale/_private/docgen/__main__.py +62 -19
  7. anyscale/_private/docgen/api.md +0 -20
  8. anyscale/_private/docgen/generator.py +3 -2
  9. anyscale/_private/docgen/models.md +1 -46
  10. anyscale/_private/workload/workload_config.py +1 -1
  11. anyscale/aggregated_instance_usage/__init__.py +1 -1
  12. anyscale/aggregated_instance_usage/commands.py +2 -4
  13. anyscale/aggregated_instance_usage/models.py +8 -8
  14. anyscale/client/README.md +15 -22
  15. anyscale/client/openapi_client/__init__.py +10 -14
  16. anyscale/client/openapi_client/api/default_api.py +634 -957
  17. anyscale/client/openapi_client/models/__init__.py +10 -14
  18. anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
  19. anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
  20. anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
  21. anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
  22. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  23. anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
  24. anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
  25. anyscale/client/openapi_client/models/{fine_tuning_job_status.py → describemachinepoolresponse_response.py} +34 -16
  26. anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
  27. anyscale/client/openapi_client/models/machine_state_info.py +326 -0
  28. anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
  29. anyscale/client/openapi_client/models/request_state_info.py +210 -0
  30. anyscale/client/openapi_client/models/{sessionevent_list_response.py → scheduler_info.py} +43 -38
  31. anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
  32. anyscale/client/openapi_client/models/usage_by_user.py +30 -3
  33. anyscale/client/openapi_client/models/workload_info.py +210 -0
  34. anyscale/cloud/__init__.py +83 -0
  35. anyscale/cloud/_private/cloud_sdk.py +25 -0
  36. anyscale/cloud/commands.py +45 -0
  37. anyscale/cloud/models.py +91 -0
  38. anyscale/cluster_compute.py +1 -1
  39. anyscale/commands/aggregated_instance_usage_commands.py +4 -4
  40. anyscale/commands/cloud_commands.py +38 -2
  41. anyscale/commands/command_examples.py +61 -0
  42. anyscale/commands/job_commands.py +15 -3
  43. anyscale/commands/machine_pool_commands.py +113 -1
  44. anyscale/commands/organization_invitation_commands.py +98 -0
  45. anyscale/commands/project_commands.py +52 -2
  46. anyscale/commands/resource_quota_commands.py +98 -11
  47. anyscale/commands/service_commands.py +1 -1
  48. anyscale/commands/session_commands_hidden.py +5 -1
  49. anyscale/commands/user_commands.py +1 -1
  50. anyscale/commands/util.py +1 -1
  51. anyscale/commands/workspace_commands.py +1 -1
  52. anyscale/connect.py +1 -1
  53. anyscale/connect_utils/project.py +7 -4
  54. anyscale/controllers/cloud_controller.py +6 -6
  55. anyscale/controllers/cloud_functional_verification_controller.py +1 -1
  56. anyscale/controllers/cluster_controller.py +2 -2
  57. anyscale/controllers/compute_config_controller.py +1 -1
  58. anyscale/controllers/experimental_integrations_controller.py +1 -1
  59. anyscale/controllers/job_controller.py +8 -3
  60. anyscale/controllers/list_controller.py +2 -2
  61. anyscale/controllers/machine_pool_controller.py +12 -1
  62. anyscale/controllers/project_controller.py +4 -3
  63. anyscale/controllers/schedule_controller.py +1 -1
  64. anyscale/controllers/service_controller.py +1 -1
  65. anyscale/controllers/workspace_controller.py +1 -1
  66. anyscale/models/job_model.py +1 -1
  67. anyscale/organization_invitation/__init__.py +61 -0
  68. anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
  69. anyscale/organization_invitation/commands.py +84 -0
  70. anyscale/organization_invitation/models.py +45 -0
  71. anyscale/project/__init__.py +35 -0
  72. anyscale/project/_private/project_sdk.py +27 -0
  73. anyscale/project/commands.py +56 -0
  74. anyscale/project/models.py +91 -0
  75. anyscale/{project.py → project_utils.py} +3 -4
  76. anyscale/resource_quota/__init__.py +99 -0
  77. anyscale/resource_quota/_private/resource_quota_sdk.py +111 -0
  78. anyscale/resource_quota/commands.py +150 -0
  79. anyscale/resource_quota/models.py +303 -0
  80. anyscale/scripts.py +4 -0
  81. anyscale/sdk/anyscale_client/__init__.py +0 -5
  82. anyscale/sdk/anyscale_client/api/default_api.py +0 -150
  83. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  84. anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
  85. anyscale/sdk/anyscale_client/sdk.py +1 -1
  86. anyscale/user/__init__.py +1 -1
  87. anyscale/user/commands.py +1 -1
  88. anyscale/user/models.py +25 -15
  89. anyscale/util.py +15 -0
  90. anyscale/utils/cloud_utils.py +1 -1
  91. anyscale/version.py +1 -1
  92. anyscale/workspace_utils.py +1 -1
  93. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/METADATA +1 -5
  94. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/RECORD +100 -94
  95. anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
  96. anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
  97. anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
  98. anyscale/client/openapi_client/models/log_level_types.py +0 -100
  99. anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
  100. anyscale/client/openapi_client/models/platformfinetuningjob_list_response.py +0 -147
  101. anyscale/client/openapi_client/models/session_event.py +0 -267
  102. anyscale/client/openapi_client/models/session_event_cause.py +0 -150
  103. anyscale/controllers/resource_quota_controller.py +0 -183
  104. anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
  105. anyscale/sdk/anyscale_client/models/session_event.py +0 -267
  106. anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
  107. anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
  108. anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
  109. anyscale/utils/imports/azure.py +0 -14
  110. /anyscale/{cloud.py → cloud_utils.py} +0 -0
  111. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/LICENSE +0 -0
  112. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/NOTICE +0 -0
  113. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/WHEEL +0 -0
  114. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/entry_points.txt +0 -0
  115. {anyscale-0.24.88.dist-info → anyscale-0.24.91.dist-info}/top_level.txt +0 -0
@@ -109,6 +109,7 @@ from openapi_client.models.cloud_data_bucket_presigned_url_request import CloudD
109
109
  from openapi_client.models.cloud_data_bucket_presigned_url_response import CloudDataBucketPresignedUrlResponse
110
110
  from openapi_client.models.cloud_data_bucket_presigned_url_scheme import CloudDataBucketPresignedUrlScheme
111
111
  from openapi_client.models.cloud_data_bucket_request_scope import CloudDataBucketRequestScope
112
+ from openapi_client.models.cloud_deployment_config import CloudDeploymentConfig
112
113
  from openapi_client.models.cloud_hosting_type import CloudHostingType
113
114
  from openapi_client.models.cloud_list_response import CloudListResponse
114
115
  from openapi_client.models.cloud_name_options import CloudNameOptions
@@ -133,6 +134,7 @@ from openapi_client.models.cloud_with_cloud_resource_gcp import CloudWithCloudRe
133
134
  from openapi_client.models.cloudcollaborator_list_response import CloudcollaboratorListResponse
134
135
  from openapi_client.models.clouddatabucketpresigneduploadinfo_response import ClouddatabucketpresigneduploadinfoResponse
135
136
  from openapi_client.models.clouddatabucketpresignedurlresponse_response import ClouddatabucketpresignedurlresponseResponse
137
+ from openapi_client.models.clouddeploymentconfig_response import ClouddeploymentconfigResponse
136
138
  from openapi_client.models.cloudoverviewdashboard_response import CloudoverviewdashboardResponse
137
139
  from openapi_client.models.cloudregionandzones_response import CloudregionandzonesResponse
138
140
  from openapi_client.models.cloudresource_response import CloudresourceResponse
@@ -147,6 +149,7 @@ from openapi_client.models.cluster_event import ClusterEvent
147
149
  from openapi_client.models.cluster_events_output import ClusterEventsOutput
148
150
  from openapi_client.models.cluster_features import ClusterFeatures
149
151
  from openapi_client.models.cluster_management_stack_versions import ClusterManagementStackVersions
152
+ from openapi_client.models.cluster_size import ClusterSize
150
153
  from openapi_client.models.cluster_startup import ClusterStartup
151
154
  from openapi_client.models.cluster_status import ClusterStatus
152
155
  from openapi_client.models.cluster_status_details import ClusterStatusDetails
@@ -155,7 +158,6 @@ from openapi_client.models.clusterconfig_response import ClusterconfigResponse
155
158
  from openapi_client.models.clusterconfigwithsessionidletimeout_response import ClusterconfigwithsessionidletimeoutResponse
156
159
  from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
157
160
  from openapi_client.models.clusterfeatures_response import ClusterfeaturesResponse
158
- from openapi_client.models.company_size import CompanySize
159
161
  from openapi_client.models.compute_node_type import ComputeNodeType
160
162
  from openapi_client.models.compute_stack import ComputeStack
161
163
  from openapi_client.models.compute_template import ComputeTemplate
@@ -184,8 +186,6 @@ from openapi_client.models.create_compute_template_config import CreateComputeTe
184
186
  from openapi_client.models.create_dataset import CreateDataset
185
187
  from openapi_client.models.create_experimental_workspace import CreateExperimentalWorkspace
186
188
  from openapi_client.models.create_experimental_workspace_from_job import CreateExperimentalWorkspaceFromJob
187
- from openapi_client.models.create_fine_tuning_hyperparameters import CreateFineTuningHyperparameters
188
- from openapi_client.models.create_fine_tuning_job_product_request import CreateFineTuningJobProductRequest
189
189
  from openapi_client.models.create_instance_usage_budget import CreateInstanceUsageBudget
190
190
  from openapi_client.models.create_internal_production_job import CreateInternalProductionJob
191
191
  from openapi_client.models.create_job_queue_config import CreateJobQueueConfig
@@ -282,6 +282,9 @@ from openapi_client.models.delete_machine_request import DeleteMachineRequest
282
282
  from openapi_client.models.deleted_platform_fine_tuned_model import DeletedPlatformFineTunedModel
283
283
  from openapi_client.models.deletedplatformfinetunedmodel_response import DeletedplatformfinetunedmodelResponse
284
284
  from openapi_client.models.deletemachinepoolresponse_response import DeletemachinepoolresponseResponse
285
+ from openapi_client.models.describe_machine_pool_request import DescribeMachinePoolRequest
286
+ from openapi_client.models.describe_machine_pool_response import DescribeMachinePoolResponse
287
+ from openapi_client.models.describemachinepoolresponse_response import DescribemachinepoolresponseResponse
285
288
  from openapi_client.models.detach_machine_pool_from_cloud_request import DetachMachinePoolFromCloudRequest
286
289
  from openapi_client.models.detachmachinepoolfromcloudresponse_response import DetachmachinepoolfromcloudresponseResponse
287
290
  from openapi_client.models.dismissal_type import DismissalType
@@ -306,10 +309,8 @@ from openapi_client.models.feature_flag_response import FeatureFlagResponse
306
309
  from openapi_client.models.featureflagresponse_response import FeatureflagresponseResponse
307
310
  from openapi_client.models.fine_tune_type import FineTuneType
308
311
  from openapi_client.models.fine_tuned_model import FineTunedModel
309
- from openapi_client.models.fine_tuning_job_status import FineTuningJobStatus
310
312
  from openapi_client.models.finetunedmodel_list_response import FinetunedmodelListResponse
311
313
  from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
312
- from openapi_client.models.finish_ft_job_request import FinishFTJobRequest
313
314
  from openapi_client.models.finish_ft_job_request_v2 import FinishFTJobRequestV2
314
315
  from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
315
316
  from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
@@ -379,7 +380,6 @@ from openapi_client.models.log_file_chunk import LogFileChunk
379
380
  from openapi_client.models.log_filter import LogFilter
380
381
  from openapi_client.models.log_item import LogItem
381
382
  from openapi_client.models.log_item_batch import LogItemBatch
382
- from openapi_client.models.log_level_types import LogLevelTypes
383
383
  from openapi_client.models.log_stream import LogStream
384
384
  from openapi_client.models.logdetails_response import LogdetailsResponse
385
385
  from openapi_client.models.logdownloadresult_response import LogdownloadresultResponse
@@ -394,6 +394,7 @@ from openapi_client.models.machine_allocation_state import MachineAllocationStat
394
394
  from openapi_client.models.machine_connection_state import MachineConnectionState
395
395
  from openapi_client.models.machine_info import MachineInfo
396
396
  from openapi_client.models.machine_pool import MachinePool
397
+ from openapi_client.models.machine_state_info import MachineStateInfo
397
398
  from openapi_client.models.metronome_customer_info_model import MetronomeCustomerInfoModel
398
399
  from openapi_client.models.metronome_dashboard_type import MetronomeDashboardType
399
400
  from openapi_client.models.metronomecustomerinfomodel_list_response import MetronomecustomerinfomodelListResponse
@@ -455,9 +456,6 @@ from openapi_client.models.organizationusagealert_list_response import Organizat
455
456
  from openapi_client.models.page_query import PageQuery
456
457
  from openapi_client.models.pause_schedule import PauseSchedule
457
458
  from openapi_client.models.permission_level import PermissionLevel
458
- from openapi_client.models.platform_fine_tuning_job import PlatformFineTuningJob
459
- from openapi_client.models.platformfinetuningjob_list_response import PlatformfinetuningjobListResponse
460
- from openapi_client.models.platformfinetuningjob_response import PlatformfinetuningjobResponse
461
459
  from openapi_client.models.product_autoscaler_flag import ProductAutoscalerFlag
462
460
  from openapi_client.models.product_type import ProductType
463
461
  from openapi_client.models.productautoscalerflag_response import ProductautoscalerflagResponse
@@ -499,6 +497,7 @@ from openapi_client.models.replica_state import ReplicaState
499
497
  from openapi_client.models.request_email_magic_link_response import RequestEmailMagicLinkResponse
500
498
  from openapi_client.models.request_otp_return_api_model import RequestOTPReturnApiModel
501
499
  from openapi_client.models.request_password_reset_params import RequestPasswordResetParams
500
+ from openapi_client.models.request_state_info import RequestStateInfo
502
501
  from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
503
502
  from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
504
503
  from openapi_client.models.reset_password_params import ResetPasswordParams
@@ -507,13 +506,13 @@ from openapi_client.models.resource_quota_status import ResourceQuotaStatus
507
506
  from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
508
507
  from openapi_client.models.resourcequota_response import ResourcequotaResponse
509
508
  from openapi_client.models.resources import Resources
510
- from openapi_client.models.resubmit_ft_job_request import ResubmitFTJobRequest
511
509
  from openapi_client.models.rollback_service_model import RollbackServiceModel
512
510
  from openapi_client.models.rollout_strategy import RolloutStrategy
513
511
  from openapi_client.models.s3_download_location import S3DownloadLocation
514
512
  from openapi_client.models.sso_login_info import SSOLoginInfo
515
513
  from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
516
514
  from openapi_client.models.schedule_config import ScheduleConfig
515
+ from openapi_client.models.scheduler_info import SchedulerInfo
517
516
  from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
518
517
  from openapi_client.models.serve_deployment_logs import ServeDeploymentLogs
519
518
  from openapi_client.models.serve_deployment_state import ServeDeploymentState
@@ -546,9 +545,6 @@ from openapi_client.models.session_create_message import SessionCreateMessage
546
545
  from openapi_client.models.session_delete_message import SessionDeleteMessage
547
546
  from openapi_client.models.session_describe import SessionDescribe
548
547
  from openapi_client.models.session_details import SessionDetails
549
- from openapi_client.models.session_event import SessionEvent
550
- from openapi_client.models.session_event_cause import SessionEventCause
551
- from openapi_client.models.session_event_types import SessionEventTypes
552
548
  from openapi_client.models.session_execute_message import SessionExecuteMessage
553
549
  from openapi_client.models.session_finish_command_message import SessionFinishCommandMessage
554
550
  from openapi_client.models.session_history_item import SessionHistoryItem
@@ -566,7 +562,6 @@ from openapi_client.models.sessioncommand_list_response import SessioncommandLis
566
562
  from openapi_client.models.sessioncommandid_response import SessioncommandidResponse
567
563
  from openapi_client.models.sessiondescribe_response import SessiondescribeResponse
568
564
  from openapi_client.models.sessiondetails_response import SessiondetailsResponse
569
- from openapi_client.models.sessionevent_list_response import SessioneventListResponse
570
565
  from openapi_client.models.sessionhistoryitem_list_response import SessionhistoryitemListResponse
571
566
  from openapi_client.models.sessions_sort_field import SessionsSortField
572
567
  from openapi_client.models.sessionsshkey_response import SessionsshkeyResponse
@@ -644,6 +639,7 @@ from openapi_client.models.web_terminal import WebTerminal
644
639
  from openapi_client.models.webterminal_list_response import WebterminalListResponse
645
640
  from openapi_client.models.webterminal_response import WebterminalResponse
646
641
  from openapi_client.models.worker_node_type import WorkerNodeType
642
+ from openapi_client.models.workload_info import WorkloadInfo
647
643
  from openapi_client.models.workload_type import WorkloadType
648
644
  from openapi_client.models.workspace_dataplane_artifact import WorkspaceDataplaneArtifact
649
645
  from openapi_client.models.workspace_dataplane_artifacts import WorkspaceDataplaneArtifacts
@@ -18,32 +18,13 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class SessionEventTypes(object):
21
+ class CloudDeploymentConfig(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
25
25
  Do not edit the class manually.
26
26
  """
27
27
 
28
- """
29
- allowed enum values
30
- """
31
- EDITED = "edited"
32
- TERMINATE_COMMAND = "terminate_command"
33
- START_COMMAND = "start_command"
34
- RUNNING = "running"
35
- TERMINATED = "terminated"
36
- AWAITING_FILE_MOUNTS = "awaiting_file_mounts"
37
- STARTING = "starting"
38
- UPDATING = "updating"
39
- TERMINATING = "terminating"
40
- CREATED = "created"
41
- TERMINATING_ERRORED = "terminating_errored"
42
- UPDATING_ERRORED = "updating_errored"
43
- STARTUP_ERRORED = "startup_errored"
44
-
45
- allowable_values = [EDITED, TERMINATE_COMMAND, START_COMMAND, RUNNING, TERMINATED, AWAITING_FILE_MOUNTS, STARTING, UPDATING, TERMINATING, CREATED, TERMINATING_ERRORED, UPDATING_ERRORED, STARTUP_ERRORED] # noqa: E501
46
-
47
28
  """
48
29
  Attributes:
49
30
  openapi_types (dict): The key is attribute name
@@ -52,18 +33,48 @@ class SessionEventTypes(object):
52
33
  and the value is json key in definition.
53
34
  """
54
35
  openapi_types = {
36
+ 'spec': 'object'
55
37
  }
56
38
 
57
39
  attribute_map = {
40
+ 'spec': 'spec'
58
41
  }
59
42
 
60
- def __init__(self, local_vars_configuration=None): # noqa: E501
61
- """SessionEventTypes - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, spec=None, local_vars_configuration=None): # noqa: E501
44
+ """CloudDeploymentConfig - a model defined in OpenAPI""" # noqa: E501
62
45
  if local_vars_configuration is None:
63
46
  local_vars_configuration = Configuration()
64
47
  self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._spec = None
65
50
  self.discriminator = None
66
51
 
52
+ if spec is not None:
53
+ self.spec = spec
54
+
55
+ @property
56
+ def spec(self):
57
+ """Gets the spec of this CloudDeploymentConfig. # noqa: E501
58
+
59
+ Configurations of the cloud deployment. # noqa: E501
60
+
61
+ :return: The spec of this CloudDeploymentConfig. # noqa: E501
62
+ :rtype: object
63
+ """
64
+ return self._spec
65
+
66
+ @spec.setter
67
+ def spec(self, spec):
68
+ """Sets the spec of this CloudDeploymentConfig.
69
+
70
+ Configurations of the cloud deployment. # noqa: E501
71
+
72
+ :param spec: The spec of this CloudDeploymentConfig. # noqa: E501
73
+ :type: object
74
+ """
75
+
76
+ self._spec = spec
77
+
67
78
  def to_dict(self):
68
79
  """Returns the model properties as a dict"""
69
80
  result = {}
@@ -98,14 +109,14 @@ class SessionEventTypes(object):
98
109
 
99
110
  def __eq__(self, other):
100
111
  """Returns true if both objects are equal"""
101
- if not isinstance(other, SessionEventTypes):
112
+ if not isinstance(other, CloudDeploymentConfig):
102
113
  return False
103
114
 
104
115
  return self.to_dict() == other.to_dict()
105
116
 
106
117
  def __ne__(self, other):
107
118
  """Returns true if both objects are not equal"""
108
- if not isinstance(other, SessionEventTypes):
119
+ if not isinstance(other, CloudDeploymentConfig):
109
120
  return True
110
121
 
111
122
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class PlatformfinetuningjobResponse(object):
21
+ class ClouddeploymentconfigResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class PlatformfinetuningjobResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'PlatformFineTuningJob'
36
+ 'result': 'CloudDeploymentConfig'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class PlatformfinetuningjobResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """PlatformfinetuningjobResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """ClouddeploymentconfigResponse - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -53,21 +53,21 @@ class PlatformfinetuningjobResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this PlatformfinetuningjobResponse. # noqa: E501
56
+ """Gets the result of this ClouddeploymentconfigResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this PlatformfinetuningjobResponse. # noqa: E501
60
- :rtype: PlatformFineTuningJob
59
+ :return: The result of this ClouddeploymentconfigResponse. # noqa: E501
60
+ :rtype: CloudDeploymentConfig
61
61
  """
62
62
  return self._result
63
63
 
64
64
  @result.setter
65
65
  def result(self, result):
66
- """Sets the result of this PlatformfinetuningjobResponse.
66
+ """Sets the result of this ClouddeploymentconfigResponse.
67
67
 
68
68
 
69
- :param result: The result of this PlatformfinetuningjobResponse. # noqa: E501
70
- :type: PlatformFineTuningJob
69
+ :param result: The result of this ClouddeploymentconfigResponse. # noqa: E501
70
+ :type: CloudDeploymentConfig
71
71
  """
72
72
  if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
73
  raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
@@ -108,14 +108,14 @@ class PlatformfinetuningjobResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, PlatformfinetuningjobResponse):
111
+ if not isinstance(other, ClouddeploymentconfigResponse):
112
112
  return False
113
113
 
114
114
  return self.to_dict() == other.to_dict()
115
115
 
116
116
  def __ne__(self, other):
117
117
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, PlatformfinetuningjobResponse):
118
+ if not isinstance(other, ClouddeploymentconfigResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class CompanySize(object):
21
+ class ClusterSize(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -28,13 +28,13 @@ class CompanySize(object):
28
28
  """
29
29
  allowed enum values
30
30
  """
31
- _1_10 = "1 - 10"
32
- _11_50 = "11 - 50"
33
- _51_200 = "51 - 200"
34
- _201_500 = "201 - 500"
35
- _500 = "> 500"
31
+ _1_NODE = "1 node"
32
+ _2_10_NODES = "2-10 nodes"
33
+ _10_100_NODES = "10-100 nodes"
34
+ _100_NODES = "100+ nodes"
35
+ N_A = "N/A"
36
36
 
37
- allowable_values = [_1_10, _11_50, _51_200, _201_500, _500] # noqa: E501
37
+ allowable_values = [_1_NODE, _2_10_NODES, _10_100_NODES, _100_NODES, N_A] # noqa: E501
38
38
 
39
39
  """
40
40
  Attributes:
@@ -50,7 +50,7 @@ class CompanySize(object):
50
50
  }
51
51
 
52
52
  def __init__(self, local_vars_configuration=None): # noqa: E501
53
- """CompanySize - a model defined in OpenAPI""" # noqa: E501
53
+ """ClusterSize - a model defined in OpenAPI""" # noqa: E501
54
54
  if local_vars_configuration is None:
55
55
  local_vars_configuration = Configuration()
56
56
  self.local_vars_configuration = local_vars_configuration
@@ -90,14 +90,14 @@ class CompanySize(object):
90
90
 
91
91
  def __eq__(self, other):
92
92
  """Returns true if both objects are equal"""
93
- if not isinstance(other, CompanySize):
93
+ if not isinstance(other, ClusterSize):
94
94
  return False
95
95
 
96
96
  return self.to_dict() == other.to_dict()
97
97
 
98
98
  def __ne__(self, other):
99
99
  """Returns true if both objects are not equal"""
100
- if not isinstance(other, CompanySize):
100
+ if not isinstance(other, ClusterSize):
101
101
  return True
102
102
 
103
103
  return self.to_dict() != other.to_dict()
@@ -30,8 +30,9 @@ class ClusterStatusDetails(object):
30
30
  """
31
31
  LAUNCHING_NODES = "LAUNCHING_NODES"
32
32
  CONFIGURING_HEAD_NODE = "CONFIGURING_HEAD_NODE"
33
+ UPDATING_CONTAINERS = "UPDATING_CONTAINERS"
33
34
 
34
- allowable_values = [LAUNCHING_NODES, CONFIGURING_HEAD_NODE] # noqa: E501
35
+ allowable_values = [LAUNCHING_NODES, CONFIGURING_HEAD_NODE, UPDATING_CONTAINERS] # noqa: E501
35
36
 
36
37
  """
37
38
  Attributes:
@@ -44,6 +44,7 @@ class CreateExperimentalWorkspace(object):
44
44
  'cloned_job_id': 'str',
45
45
  'cloned_workspace_id': 'str',
46
46
  'template_id': 'str',
47
+ 'template_url': 'str',
47
48
  'skip_start': 'bool'
48
49
  }
49
50
 
@@ -59,10 +60,11 @@ class CreateExperimentalWorkspace(object):
59
60
  'cloned_job_id': 'cloned_job_id',
60
61
  'cloned_workspace_id': 'cloned_workspace_id',
61
62
  'template_id': 'template_id',
63
+ 'template_url': 'template_url',
62
64
  'skip_start': 'skip_start'
63
65
  }
64
66
 
65
- def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, skip_start=None, local_vars_configuration=None): # noqa: E501
67
+ def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, template_url=None, skip_start=None, local_vars_configuration=None): # noqa: E501
66
68
  """CreateExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
67
69
  if local_vars_configuration is None:
68
70
  local_vars_configuration = Configuration()
@@ -79,6 +81,7 @@ class CreateExperimentalWorkspace(object):
79
81
  self._cloned_job_id = None
80
82
  self._cloned_workspace_id = None
81
83
  self._template_id = None
84
+ self._template_url = None
82
85
  self._skip_start = None
83
86
  self.discriminator = None
84
87
 
@@ -99,6 +102,8 @@ class CreateExperimentalWorkspace(object):
99
102
  self.cloned_workspace_id = cloned_workspace_id
100
103
  if template_id is not None:
101
104
  self.template_id = template_id
105
+ if template_url is not None:
106
+ self.template_url = template_url
102
107
  if skip_start is not None:
103
108
  self.skip_start = skip_start
104
109
 
@@ -365,6 +370,29 @@ class CreateExperimentalWorkspace(object):
365
370
 
366
371
  self._template_id = template_id
367
372
 
373
+ @property
374
+ def template_url(self):
375
+ """Gets the template_url of this CreateExperimentalWorkspace. # noqa: E501
376
+
377
+ The template's URL to use. When this is specified, the template_id is only used for generating the build id. # noqa: E501
378
+
379
+ :return: The template_url of this CreateExperimentalWorkspace. # noqa: E501
380
+ :rtype: str
381
+ """
382
+ return self._template_url
383
+
384
+ @template_url.setter
385
+ def template_url(self, template_url):
386
+ """Sets the template_url of this CreateExperimentalWorkspace.
387
+
388
+ The template's URL to use. When this is specified, the template_id is only used for generating the build id. # noqa: E501
389
+
390
+ :param template_url: The template_url of this CreateExperimentalWorkspace. # noqa: E501
391
+ :type: str
392
+ """
393
+
394
+ self._template_url = template_url
395
+
368
396
  @property
369
397
  def skip_start(self):
370
398
  """Gets the skip_start of this CreateExperimentalWorkspace. # noqa: E501
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class ResubmitFTJobRequest(object):
21
+ class DescribeMachinePoolRequest(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,46 +33,47 @@ class ResubmitFTJobRequest(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'finetuning_job_id': 'str'
36
+ 'machine_pool_name': 'str'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'finetuning_job_id': 'finetuning_job_id'
40
+ 'machine_pool_name': 'machine_pool_name'
41
41
  }
42
42
 
43
- def __init__(self, finetuning_job_id=None, local_vars_configuration=None): # noqa: E501
44
- """ResubmitFTJobRequest - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
+ """DescribeMachinePoolRequest - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
48
48
 
49
- self._finetuning_job_id = None
49
+ self._machine_pool_name = None
50
50
  self.discriminator = None
51
51
 
52
- self.finetuning_job_id = finetuning_job_id
52
+ if machine_pool_name is not None:
53
+ self.machine_pool_name = machine_pool_name
53
54
 
54
55
  @property
55
- def finetuning_job_id(self):
56
- """Gets the finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
56
+ def machine_pool_name(self):
57
+ """Gets the machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
57
58
 
59
+ The name of the machine pool. # noqa: E501
58
60
 
59
- :return: The finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
61
+ :return: The machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
60
62
  :rtype: str
61
63
  """
62
- return self._finetuning_job_id
64
+ return self._machine_pool_name
63
65
 
64
- @finetuning_job_id.setter
65
- def finetuning_job_id(self, finetuning_job_id):
66
- """Sets the finetuning_job_id of this ResubmitFTJobRequest.
66
+ @machine_pool_name.setter
67
+ def machine_pool_name(self, machine_pool_name):
68
+ """Sets the machine_pool_name of this DescribeMachinePoolRequest.
67
69
 
70
+ The name of the machine pool. # noqa: E501
68
71
 
69
- :param finetuning_job_id: The finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
72
+ :param machine_pool_name: The machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
70
73
  :type: str
71
74
  """
72
- if self.local_vars_configuration.client_side_validation and finetuning_job_id is None: # noqa: E501
73
- raise ValueError("Invalid value for `finetuning_job_id`, must not be `None`") # noqa: E501
74
75
 
75
- self._finetuning_job_id = finetuning_job_id
76
+ self._machine_pool_name = machine_pool_name
76
77
 
77
78
  def to_dict(self):
78
79
  """Returns the model properties as a dict"""
@@ -108,14 +109,14 @@ class ResubmitFTJobRequest(object):
108
109
 
109
110
  def __eq__(self, other):
110
111
  """Returns true if both objects are equal"""
111
- if not isinstance(other, ResubmitFTJobRequest):
112
+ if not isinstance(other, DescribeMachinePoolRequest):
112
113
  return False
113
114
 
114
115
  return self.to_dict() == other.to_dict()
115
116
 
116
117
  def __ne__(self, other):
117
118
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, ResubmitFTJobRequest):
119
+ if not isinstance(other, DescribeMachinePoolRequest):
119
120
  return True
120
121
 
121
122
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,123 @@
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 DescribeMachinePoolResponse(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
+ 'scheduler_info': 'SchedulerInfo'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'scheduler_info': 'scheduler_info'
41
+ }
42
+
43
+ def __init__(self, scheduler_info=None, local_vars_configuration=None): # noqa: E501
44
+ """DescribeMachinePoolResponse - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._scheduler_info = None
50
+ self.discriminator = None
51
+
52
+ self.scheduler_info = scheduler_info
53
+
54
+ @property
55
+ def scheduler_info(self):
56
+ """Gets the scheduler_info of this DescribeMachinePoolResponse. # noqa: E501
57
+
58
+ State provided by the scheduler. # noqa: E501
59
+
60
+ :return: The scheduler_info of this DescribeMachinePoolResponse. # noqa: E501
61
+ :rtype: SchedulerInfo
62
+ """
63
+ return self._scheduler_info
64
+
65
+ @scheduler_info.setter
66
+ def scheduler_info(self, scheduler_info):
67
+ """Sets the scheduler_info of this DescribeMachinePoolResponse.
68
+
69
+ State provided by the scheduler. # noqa: E501
70
+
71
+ :param scheduler_info: The scheduler_info of this DescribeMachinePoolResponse. # noqa: E501
72
+ :type: SchedulerInfo
73
+ """
74
+ if self.local_vars_configuration.client_side_validation and scheduler_info is None: # noqa: E501
75
+ raise ValueError("Invalid value for `scheduler_info`, must not be `None`") # noqa: E501
76
+
77
+ self._scheduler_info = scheduler_info
78
+
79
+ def to_dict(self):
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.openapi_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+
101
+ return result
102
+
103
+ def to_str(self):
104
+ """Returns the string representation of the model"""
105
+ return pprint.pformat(self.to_dict())
106
+
107
+ def __repr__(self):
108
+ """For `print` and `pprint`"""
109
+ return self.to_str()
110
+
111
+ def __eq__(self, other):
112
+ """Returns true if both objects are equal"""
113
+ if not isinstance(other, DescribeMachinePoolResponse):
114
+ return False
115
+
116
+ return self.to_dict() == other.to_dict()
117
+
118
+ def __ne__(self, other):
119
+ """Returns true if both objects are not equal"""
120
+ if not isinstance(other, DescribeMachinePoolResponse):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()