anyscale 0.24.88__py3-none-any.whl → 0.25.5__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 (148) hide show
  1. anyscale/__init__.py +56 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +179 -28
  3. anyscale/_private/anyscale_client/common.py +109 -2
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +239 -1
  5. anyscale/_private/docgen/README.md +1 -1
  6. anyscale/_private/docgen/__main__.py +71 -21
  7. anyscale/_private/docgen/api.md +13 -20
  8. anyscale/_private/docgen/generator.py +3 -2
  9. anyscale/_private/docgen/models.md +4 -49
  10. anyscale/_private/workload/workload_config.py +21 -7
  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 +25 -22
  15. anyscale/client/openapi_client/__init__.py +16 -14
  16. anyscale/client/openapi_client/api/default_api.py +1139 -959
  17. anyscale/client/openapi_client/models/__init__.py +16 -14
  18. anyscale/client/openapi_client/models/baseimagesenum.py +43 -1
  19. anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
  20. anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
  21. anyscale/client/openapi_client/models/{log_level_types.py → cluster_event_source.py} +12 -7
  22. anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
  23. anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
  24. anyscale/client/openapi_client/models/{sessionevent_list_response.py → clusterevent_list_response.py} +15 -15
  25. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  26. anyscale/client/openapi_client/models/create_notification_channel_record.py +29 -3
  27. anyscale/client/openapi_client/models/decorated_interactive_session.py +1 -57
  28. anyscale/client/openapi_client/models/decorated_job.py +1 -57
  29. anyscale/client/openapi_client/models/decorated_job_submission.py +1 -29
  30. anyscale/client/openapi_client/models/decorated_production_job.py +1 -29
  31. anyscale/client/openapi_client/models/decorated_session.py +1 -57
  32. anyscale/client/openapi_client/models/decorated_unified_job.py +1 -30
  33. anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
  34. anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
  35. anyscale/client/openapi_client/models/describemachinepoolresponse_response.py +121 -0
  36. anyscale/client/openapi_client/models/ha_jobs_sort_field.py +1 -2
  37. anyscale/client/openapi_client/models/internal_production_job.py +1 -29
  38. anyscale/client/openapi_client/models/jobs_sort_field.py +1 -2
  39. anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
  40. anyscale/client/openapi_client/models/machine_state_info.py +326 -0
  41. anyscale/client/openapi_client/models/{fine_tuning_job_status.py → notification_channel_slack_config.py} +34 -16
  42. anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
  43. anyscale/client/openapi_client/models/request_state_info.py +210 -0
  44. anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
  45. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +123 -0
  46. anyscale/client/openapi_client/models/serve_deployment_state.py +2 -1
  47. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +121 -0
  48. anyscale/client/openapi_client/models/sessions_sort_field.py +1 -2
  49. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +43 -1
  50. anyscale/client/openapi_client/models/unified_job_sort_field.py +1 -2
  51. anyscale/client/openapi_client/models/update_cloud_collaborator.py +121 -0
  52. anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
  53. anyscale/client/openapi_client/models/usage_by_user.py +30 -3
  54. anyscale/client/openapi_client/models/workload_info.py +210 -0
  55. anyscale/cloud/__init__.py +83 -0
  56. anyscale/cloud/_private/cloud_sdk.py +25 -0
  57. anyscale/cloud/commands.py +45 -0
  58. anyscale/cloud/models.py +91 -0
  59. anyscale/cluster_compute.py +1 -1
  60. anyscale/commands/aggregated_instance_usage_commands.py +4 -4
  61. anyscale/commands/cloud_commands.py +87 -14
  62. anyscale/commands/command_examples.py +65 -0
  63. anyscale/commands/job_commands.py +15 -3
  64. anyscale/commands/machine_pool_commands.py +113 -1
  65. anyscale/commands/organization_invitation_commands.py +98 -0
  66. anyscale/commands/project_commands.py +52 -2
  67. anyscale/commands/resource_quota_commands.py +98 -11
  68. anyscale/commands/service_account_commands.py +65 -8
  69. anyscale/commands/service_commands.py +61 -1
  70. anyscale/commands/session_commands_hidden.py +5 -1
  71. anyscale/commands/user_commands.py +1 -1
  72. anyscale/commands/util.py +2 -2
  73. anyscale/commands/workspace_commands.py +1 -1
  74. anyscale/connect.py +1 -1
  75. anyscale/connect_utils/project.py +7 -4
  76. anyscale/controllers/cloud_controller.py +63 -30
  77. anyscale/controllers/cloud_functional_verification_controller.py +1 -1
  78. anyscale/controllers/cluster_controller.py +3 -11
  79. anyscale/controllers/compute_config_controller.py +1 -1
  80. anyscale/controllers/experimental_integrations_controller.py +1 -1
  81. anyscale/controllers/job_controller.py +8 -6
  82. anyscale/controllers/list_controller.py +2 -2
  83. anyscale/controllers/machine_pool_controller.py +12 -1
  84. anyscale/controllers/project_controller.py +4 -3
  85. anyscale/controllers/schedule_controller.py +1 -1
  86. anyscale/controllers/service_controller.py +1 -1
  87. anyscale/controllers/workspace_controller.py +1 -1
  88. anyscale/models/job_model.py +1 -1
  89. anyscale/organization_invitation/__init__.py +61 -0
  90. anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
  91. anyscale/organization_invitation/commands.py +84 -0
  92. anyscale/organization_invitation/models.py +45 -0
  93. anyscale/project/__init__.py +35 -0
  94. anyscale/project/_private/project_sdk.py +27 -0
  95. anyscale/project/commands.py +56 -0
  96. anyscale/project/models.py +91 -0
  97. anyscale/{project.py → project_utils.py} +3 -4
  98. anyscale/resource_quota/__init__.py +99 -0
  99. anyscale/resource_quota/_private/resource_quota_sdk.py +120 -0
  100. anyscale/resource_quota/commands.py +150 -0
  101. anyscale/resource_quota/models.py +303 -0
  102. anyscale/scripts.py +4 -0
  103. anyscale/sdk/anyscale_client/__init__.py +0 -5
  104. anyscale/sdk/anyscale_client/api/default_api.py +119 -150
  105. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  106. anyscale/sdk/anyscale_client/models/baseimagesenum.py +43 -1
  107. anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
  108. anyscale/sdk/anyscale_client/models/jobs_sort_field.py +1 -2
  109. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +43 -1
  110. anyscale/sdk/anyscale_client/sdk.py +1 -1
  111. anyscale/service/__init__.py +21 -0
  112. anyscale/service/_private/service_sdk.py +13 -0
  113. anyscale/service/commands.py +35 -0
  114. anyscale/service_account/__init__.py +88 -0
  115. anyscale/service_account/_private/service_account_sdk.py +101 -0
  116. anyscale/service_account/commands.py +147 -0
  117. anyscale/service_account/models.py +66 -0
  118. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  119. anyscale/shared_anyscale_utils/utils/id_gen.py +2 -0
  120. anyscale/user/__init__.py +1 -1
  121. anyscale/user/commands.py +1 -1
  122. anyscale/user/models.py +25 -15
  123. anyscale/util.py +23 -0
  124. anyscale/utils/cloud_utils.py +1 -1
  125. anyscale/version.py +1 -1
  126. anyscale/workspace_utils.py +1 -1
  127. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/METADATA +1 -5
  128. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/RECORD +134 -119
  129. anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
  130. anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
  131. anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
  132. anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
  133. anyscale/client/openapi_client/models/session_event.py +0 -267
  134. anyscale/client/openapi_client/models/session_event_cause.py +0 -150
  135. anyscale/controllers/resource_quota_controller.py +0 -183
  136. anyscale/controllers/service_account_controller.py +0 -168
  137. anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
  138. anyscale/sdk/anyscale_client/models/session_event.py +0 -267
  139. anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
  140. anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
  141. anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
  142. anyscale/utils/imports/azure.py +0 -14
  143. /anyscale/{cloud.py → cloud_utils.py} +0 -0
  144. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/LICENSE +0 -0
  145. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/NOTICE +0 -0
  146. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/WHEEL +0 -0
  147. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/entry_points.txt +0 -0
  148. {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/top_level.txt +0 -0
@@ -55,8 +55,6 @@ class DecoratedJob(object):
55
55
  'creator': 'MiniUser',
56
56
  'namespace': 'MiniNamespace',
57
57
  'runtime_environment': 'MiniRuntimeEnvironment',
58
- 'cost_dollars': 'float',
59
- 'is_colocated': 'bool',
60
58
  'access': 'JobAccess',
61
59
  'integration_details': 'IntegrationDetails'
62
60
  }
@@ -84,13 +82,11 @@ class DecoratedJob(object):
84
82
  'creator': 'creator',
85
83
  'namespace': 'namespace',
86
84
  'runtime_environment': 'runtime_environment',
87
- 'cost_dollars': 'cost_dollars',
88
- 'is_colocated': 'is_colocated',
89
85
  'access': 'access',
90
86
  'integration_details': 'integration_details'
91
87
  }
92
88
 
93
- def __init__(self, id=None, ray_session_name=None, ray_job_id=None, name=None, status=None, created_at=None, finished_at=None, ha_job_id=None, ray_job_submission_id=None, cluster_id=None, namespace_id='DEPRECATED_NAMESPACE_ID', environment_id=None, project_id=None, creator_id=None, integration_execution_details_id=None, bucket_log_prefix=None, bucket_log_prefix_streaming=None, project=None, cluster=None, creator=None, namespace=None, runtime_environment=None, cost_dollars=None, is_colocated=None, access=None, integration_details=None, local_vars_configuration=None): # noqa: E501
89
+ def __init__(self, id=None, ray_session_name=None, ray_job_id=None, name=None, status=None, created_at=None, finished_at=None, ha_job_id=None, ray_job_submission_id=None, cluster_id=None, namespace_id='DEPRECATED_NAMESPACE_ID', environment_id=None, project_id=None, creator_id=None, integration_execution_details_id=None, bucket_log_prefix=None, bucket_log_prefix_streaming=None, project=None, cluster=None, creator=None, namespace=None, runtime_environment=None, access=None, integration_details=None, local_vars_configuration=None): # noqa: E501
94
90
  """DecoratedJob - a model defined in OpenAPI""" # noqa: E501
95
91
  if local_vars_configuration is None:
96
92
  local_vars_configuration = Configuration()
@@ -118,8 +114,6 @@ class DecoratedJob(object):
118
114
  self._creator = None
119
115
  self._namespace = None
120
116
  self._runtime_environment = None
121
- self._cost_dollars = None
122
- self._is_colocated = None
123
117
  self._access = None
124
118
  self._integration_details = None
125
119
  self.discriminator = None
@@ -157,10 +151,6 @@ class DecoratedJob(object):
157
151
  if namespace is not None:
158
152
  self.namespace = namespace
159
153
  self.runtime_environment = runtime_environment
160
- if cost_dollars is not None:
161
- self.cost_dollars = cost_dollars
162
- if is_colocated is not None:
163
- self.is_colocated = is_colocated
164
154
  if access is not None:
165
155
  self.access = access
166
156
  if integration_details is not None:
@@ -654,52 +644,6 @@ class DecoratedJob(object):
654
644
 
655
645
  self._runtime_environment = runtime_environment
656
646
 
657
- @property
658
- def cost_dollars(self):
659
- """Gets the cost_dollars of this DecoratedJob. # noqa: E501
660
-
661
- The total cost, in dollars, of the job's cluster during the time the job was running # noqa: E501
662
-
663
- :return: The cost_dollars of this DecoratedJob. # noqa: E501
664
- :rtype: float
665
- """
666
- return self._cost_dollars
667
-
668
- @cost_dollars.setter
669
- def cost_dollars(self, cost_dollars):
670
- """Sets the cost_dollars of this DecoratedJob.
671
-
672
- The total cost, in dollars, of the job's cluster during the time the job was running # noqa: E501
673
-
674
- :param cost_dollars: The cost_dollars of this DecoratedJob. # noqa: E501
675
- :type: float
676
- """
677
-
678
- self._cost_dollars = cost_dollars
679
-
680
- @property
681
- def is_colocated(self):
682
- """Gets the is_colocated of this DecoratedJob. # noqa: E501
683
-
684
- Whether or not this job was colocated with another job on the same cluster at the same time # noqa: E501
685
-
686
- :return: The is_colocated of this DecoratedJob. # noqa: E501
687
- :rtype: bool
688
- """
689
- return self._is_colocated
690
-
691
- @is_colocated.setter
692
- def is_colocated(self, is_colocated):
693
- """Sets the is_colocated of this DecoratedJob.
694
-
695
- Whether or not this job was colocated with another job on the same cluster at the same time # noqa: E501
696
-
697
- :param is_colocated: The is_colocated of this DecoratedJob. # noqa: E501
698
- :type: bool
699
- """
700
-
701
- self._is_colocated = is_colocated
702
-
703
647
  @property
704
648
  def access(self):
705
649
  """Gets the access of this DecoratedJob. # noqa: E501
@@ -47,7 +47,6 @@ class DecoratedJobSubmission(object):
47
47
  'cluster': 'MiniCluster',
48
48
  'creator': 'MiniUser',
49
49
  'runtime_environment': 'MiniRuntimeEnvironment',
50
- 'cost_dollars': 'float',
51
50
  'project': 'MiniProject',
52
51
  'access': 'JobAccess'
53
52
  }
@@ -67,12 +66,11 @@ class DecoratedJobSubmission(object):
67
66
  'cluster': 'cluster',
68
67
  'creator': 'creator',
69
68
  'runtime_environment': 'runtime_environment',
70
- 'cost_dollars': 'cost_dollars',
71
69
  'project': 'project',
72
70
  'access': 'access'
73
71
  }
74
72
 
75
- def __init__(self, id=None, status=None, created_at=None, finished_at=None, ha_job_id=None, ray_job_submission_id=None, ray_session_name=None, cluster_id=None, environment_id=None, creator_id=None, name=None, cluster=None, creator=None, runtime_environment=None, cost_dollars=None, project=None, access=None, local_vars_configuration=None): # noqa: E501
73
+ def __init__(self, id=None, status=None, created_at=None, finished_at=None, ha_job_id=None, ray_job_submission_id=None, ray_session_name=None, cluster_id=None, environment_id=None, creator_id=None, name=None, cluster=None, creator=None, runtime_environment=None, project=None, access=None, local_vars_configuration=None): # noqa: E501
76
74
  """DecoratedJobSubmission - a model defined in OpenAPI""" # noqa: E501
77
75
  if local_vars_configuration is None:
78
76
  local_vars_configuration = Configuration()
@@ -92,7 +90,6 @@ class DecoratedJobSubmission(object):
92
90
  self._cluster = None
93
91
  self._creator = None
94
92
  self._runtime_environment = None
95
- self._cost_dollars = None
96
93
  self._project = None
97
94
  self._access = None
98
95
  self.discriminator = None
@@ -120,8 +117,6 @@ class DecoratedJobSubmission(object):
120
117
  self.creator = creator
121
118
  if runtime_environment is not None:
122
119
  self.runtime_environment = runtime_environment
123
- if cost_dollars is not None:
124
- self.cost_dollars = cost_dollars
125
120
  if project is not None:
126
121
  self.project = project
127
122
  if access is not None:
@@ -459,29 +454,6 @@ class DecoratedJobSubmission(object):
459
454
 
460
455
  self._runtime_environment = runtime_environment
461
456
 
462
- @property
463
- def cost_dollars(self):
464
- """Gets the cost_dollars of this DecoratedJobSubmission. # noqa: E501
465
-
466
- The total cost, in dollars, of the job's cluster during the time the job was running # noqa: E501
467
-
468
- :return: The cost_dollars of this DecoratedJobSubmission. # noqa: E501
469
- :rtype: float
470
- """
471
- return self._cost_dollars
472
-
473
- @cost_dollars.setter
474
- def cost_dollars(self, cost_dollars):
475
- """Sets the cost_dollars of this DecoratedJobSubmission.
476
-
477
- The total cost, in dollars, of the job's cluster during the time the job was running # noqa: E501
478
-
479
- :param cost_dollars: The cost_dollars of this DecoratedJobSubmission. # noqa: E501
480
- :type: float
481
- """
482
-
483
- self._cost_dollars = cost_dollars
484
-
485
457
  @property
486
458
  def project(self):
487
459
  """Gets the project of this DecoratedJobSubmission. # noqa: E501
@@ -46,7 +46,6 @@ class DecoratedProductionJob(object):
46
46
  'schedule_id': 'str',
47
47
  'job_queue_id': 'str',
48
48
  'is_service': 'bool',
49
- 'cost_dollars': 'float',
50
49
  'url': 'str',
51
50
  'token': 'str',
52
51
  'access': 'UserServiceAccessTypes',
@@ -74,7 +73,6 @@ class DecoratedProductionJob(object):
74
73
  'schedule_id': 'schedule_id',
75
74
  'job_queue_id': 'job_queue_id',
76
75
  'is_service': 'is_service',
77
- 'cost_dollars': 'cost_dollars',
78
76
  'url': 'url',
79
77
  'token': 'token',
80
78
  'access': 'access',
@@ -88,7 +86,7 @@ class DecoratedProductionJob(object):
88
86
  'integration_details': 'integration_details'
89
87
  }
90
88
 
91
- def __init__(self, id=None, name=None, description=None, created_at=None, creator_id=None, config=None, job_queue_config=None, state=None, project_id=None, last_job_run_id=None, schedule_id=None, job_queue_id=None, is_service=None, cost_dollars=None, url=None, token=None, access=None, healthcheck_url=None, archived_at=None, cloud_id=None, project=None, creator=None, last_job_run=None, schedule=None, integration_details=None, local_vars_configuration=None): # noqa: E501
89
+ def __init__(self, id=None, name=None, description=None, created_at=None, creator_id=None, config=None, job_queue_config=None, state=None, project_id=None, last_job_run_id=None, schedule_id=None, job_queue_id=None, is_service=None, url=None, token=None, access=None, healthcheck_url=None, archived_at=None, cloud_id=None, project=None, creator=None, last_job_run=None, schedule=None, integration_details=None, local_vars_configuration=None): # noqa: E501
92
90
  """DecoratedProductionJob - a model defined in OpenAPI""" # noqa: E501
93
91
  if local_vars_configuration is None:
94
92
  local_vars_configuration = Configuration()
@@ -107,7 +105,6 @@ class DecoratedProductionJob(object):
107
105
  self._schedule_id = None
108
106
  self._job_queue_id = None
109
107
  self._is_service = None
110
- self._cost_dollars = None
111
108
  self._url = None
112
109
  self._token = None
113
110
  self._access = None
@@ -139,8 +136,6 @@ class DecoratedProductionJob(object):
139
136
  if job_queue_id is not None:
140
137
  self.job_queue_id = job_queue_id
141
138
  self.is_service = is_service
142
- if cost_dollars is not None:
143
- self.cost_dollars = cost_dollars
144
139
  if url is not None:
145
140
  self.url = url
146
141
  if token is not None:
@@ -476,29 +471,6 @@ class DecoratedProductionJob(object):
476
471
 
477
472
  self._is_service = is_service
478
473
 
479
- @property
480
- def cost_dollars(self):
481
- """Gets the cost_dollars of this DecoratedProductionJob. # noqa: E501
482
-
483
- The total cost, in dollars, of the ha job. This is the sum of all job runs # noqa: E501
484
-
485
- :return: The cost_dollars of this DecoratedProductionJob. # noqa: E501
486
- :rtype: float
487
- """
488
- return self._cost_dollars
489
-
490
- @cost_dollars.setter
491
- def cost_dollars(self, cost_dollars):
492
- """Sets the cost_dollars of this DecoratedProductionJob.
493
-
494
- The total cost, in dollars, of the ha job. This is the sum of all job runs # noqa: E501
495
-
496
- :param cost_dollars: The cost_dollars of this DecoratedProductionJob. # noqa: E501
497
- :type: float
498
- """
499
-
500
- self._cost_dollars = cost_dollars
501
-
502
474
  @property
503
475
  def url(self):
504
476
  """Gets the url of this DecoratedProductionJob. # noqa: E501
@@ -89,8 +89,6 @@ class DecoratedSession(object):
89
89
  'creator': 'MiniUser',
90
90
  'compute_template': 'MiniComputeTemplate',
91
91
  'idle_time_remaining_seconds': 'int',
92
- 'cost_since_created_dollars': 'float',
93
- 'cost_since_restarted_dollars': 'float',
94
92
  'access': 'SessionAccess',
95
93
  'project': 'MiniProject'
96
94
  }
@@ -152,13 +150,11 @@ class DecoratedSession(object):
152
150
  'creator': 'creator',
153
151
  'compute_template': 'compute_template',
154
152
  'idle_time_remaining_seconds': 'idle_time_remaining_seconds',
155
- 'cost_since_created_dollars': 'cost_since_created_dollars',
156
- 'cost_since_restarted_dollars': 'cost_since_restarted_dollars',
157
153
  'access': 'access',
158
154
  'project': 'project'
159
155
  }
160
156
 
161
- def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, cost_since_created_dollars=None, cost_since_restarted_dollars=None, access=None, project=None, local_vars_configuration=None): # noqa: E501
157
+ def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, access=None, project=None, local_vars_configuration=None): # noqa: E501
162
158
  """DecoratedSession - a model defined in OpenAPI""" # noqa: E501
163
159
  if local_vars_configuration is None:
164
160
  local_vars_configuration = Configuration()
@@ -220,8 +216,6 @@ class DecoratedSession(object):
220
216
  self._creator = None
221
217
  self._compute_template = None
222
218
  self._idle_time_remaining_seconds = None
223
- self._cost_since_created_dollars = None
224
- self._cost_since_restarted_dollars = None
225
219
  self._access = None
226
220
  self._project = None
227
221
  self.discriminator = None
@@ -323,10 +317,6 @@ class DecoratedSession(object):
323
317
  self.compute_template = compute_template
324
318
  if idle_time_remaining_seconds is not None:
325
319
  self.idle_time_remaining_seconds = idle_time_remaining_seconds
326
- if cost_since_created_dollars is not None:
327
- self.cost_since_created_dollars = cost_since_created_dollars
328
- if cost_since_restarted_dollars is not None:
329
- self.cost_since_restarted_dollars = cost_since_restarted_dollars
330
320
  if access is not None:
331
321
  self.access = access
332
322
  if project is not None:
@@ -1650,52 +1640,6 @@ class DecoratedSession(object):
1650
1640
 
1651
1641
  self._idle_time_remaining_seconds = idle_time_remaining_seconds
1652
1642
 
1653
- @property
1654
- def cost_since_created_dollars(self):
1655
- """Gets the cost_since_created_dollars of this DecoratedSession. # noqa: E501
1656
-
1657
- The total cost, in dollars, of the cluster since it was created # noqa: E501
1658
-
1659
- :return: The cost_since_created_dollars of this DecoratedSession. # noqa: E501
1660
- :rtype: float
1661
- """
1662
- return self._cost_since_created_dollars
1663
-
1664
- @cost_since_created_dollars.setter
1665
- def cost_since_created_dollars(self, cost_since_created_dollars):
1666
- """Sets the cost_since_created_dollars of this DecoratedSession.
1667
-
1668
- The total cost, in dollars, of the cluster since it was created # noqa: E501
1669
-
1670
- :param cost_since_created_dollars: The cost_since_created_dollars of this DecoratedSession. # noqa: E501
1671
- :type: float
1672
- """
1673
-
1674
- self._cost_since_created_dollars = cost_since_created_dollars
1675
-
1676
- @property
1677
- def cost_since_restarted_dollars(self):
1678
- """Gets the cost_since_restarted_dollars of this DecoratedSession. # noqa: E501
1679
-
1680
- The total cost, in dollars, of the cluster since it was last started/restarted # noqa: E501
1681
-
1682
- :return: The cost_since_restarted_dollars of this DecoratedSession. # noqa: E501
1683
- :rtype: float
1684
- """
1685
- return self._cost_since_restarted_dollars
1686
-
1687
- @cost_since_restarted_dollars.setter
1688
- def cost_since_restarted_dollars(self, cost_since_restarted_dollars):
1689
- """Sets the cost_since_restarted_dollars of this DecoratedSession.
1690
-
1691
- The total cost, in dollars, of the cluster since it was last started/restarted # noqa: E501
1692
-
1693
- :param cost_since_restarted_dollars: The cost_since_restarted_dollars of this DecoratedSession. # noqa: E501
1694
- :type: float
1695
- """
1696
-
1697
- self._cost_since_restarted_dollars = cost_since_restarted_dollars
1698
-
1699
1643
  @property
1700
1644
  def access(self):
1701
1645
  """Gets the access of this DecoratedSession. # noqa: E501
@@ -40,7 +40,6 @@ class DecoratedUnifiedJob(object):
40
40
  'finished_at': 'datetime',
41
41
  'archived_at': 'datetime',
42
42
  'status': 'UnifiedJobStatus',
43
- 'cost': 'float',
44
43
  'position_in_job_queue': 'int',
45
44
  'last_job_run_id': 'str',
46
45
  'project': 'MiniProject',
@@ -56,7 +55,6 @@ class DecoratedUnifiedJob(object):
56
55
  'finished_at': 'finished_at',
57
56
  'archived_at': 'archived_at',
58
57
  'status': 'status',
59
- 'cost': 'cost',
60
58
  'position_in_job_queue': 'position_in_job_queue',
61
59
  'last_job_run_id': 'last_job_run_id',
62
60
  'project': 'project',
@@ -64,7 +62,7 @@ class DecoratedUnifiedJob(object):
64
62
  'creator': 'creator'
65
63
  }
66
64
 
67
- def __init__(self, id=None, name=None, job_type=None, created_at=None, finished_at=None, archived_at=None, status=None, cost=None, position_in_job_queue=None, last_job_run_id=None, project=None, cluster=None, creator=None, local_vars_configuration=None): # noqa: E501
65
+ def __init__(self, id=None, name=None, job_type=None, created_at=None, finished_at=None, archived_at=None, status=None, position_in_job_queue=None, last_job_run_id=None, project=None, cluster=None, creator=None, local_vars_configuration=None): # noqa: E501
68
66
  """DecoratedUnifiedJob - a model defined in OpenAPI""" # noqa: E501
69
67
  if local_vars_configuration is None:
70
68
  local_vars_configuration = Configuration()
@@ -77,7 +75,6 @@ class DecoratedUnifiedJob(object):
77
75
  self._finished_at = None
78
76
  self._archived_at = None
79
77
  self._status = None
80
- self._cost = None
81
78
  self._position_in_job_queue = None
82
79
  self._last_job_run_id = None
83
80
  self._project = None
@@ -94,7 +91,6 @@ class DecoratedUnifiedJob(object):
94
91
  if archived_at is not None:
95
92
  self.archived_at = archived_at
96
93
  self.status = status
97
- self.cost = cost
98
94
  if position_in_job_queue is not None:
99
95
  self.position_in_job_queue = position_in_job_queue
100
96
  if last_job_run_id is not None:
@@ -275,31 +271,6 @@ class DecoratedUnifiedJob(object):
275
271
 
276
272
  self._status = status
277
273
 
278
- @property
279
- def cost(self):
280
- """Gets the cost of this DecoratedUnifiedJob. # noqa: E501
281
-
282
- The cost of the Job. # noqa: E501
283
-
284
- :return: The cost of this DecoratedUnifiedJob. # noqa: E501
285
- :rtype: float
286
- """
287
- return self._cost
288
-
289
- @cost.setter
290
- def cost(self, cost):
291
- """Sets the cost of this DecoratedUnifiedJob.
292
-
293
- The cost of the Job. # noqa: E501
294
-
295
- :param cost: The cost of this DecoratedUnifiedJob. # noqa: E501
296
- :type: float
297
- """
298
- if self.local_vars_configuration.client_side_validation and cost is None: # noqa: E501
299
- raise ValueError("Invalid value for `cost`, must not be `None`") # noqa: E501
300
-
301
- self._cost = cost
302
-
303
274
  @property
304
275
  def position_in_job_queue(self):
305
276
  """Gets the position_in_job_queue of this DecoratedUnifiedJob. # 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()