anyscale 0.26.20__py3-none-any.whl → 0.26.22__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 (34) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +103 -43
  2. anyscale/_private/anyscale_client/common.py +37 -7
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +98 -27
  4. anyscale/_private/models/model_base.py +95 -0
  5. anyscale/_private/workload/workload_sdk.py +3 -1
  6. anyscale/aggregated_instance_usage/models.py +4 -4
  7. anyscale/client/README.md +1 -9
  8. anyscale/client/openapi_client/__init__.py +0 -3
  9. anyscale/client/openapi_client/api/default_api.py +151 -715
  10. anyscale/client/openapi_client/models/__init__.py +0 -3
  11. anyscale/commands/cloud_commands.py +15 -4
  12. anyscale/commands/command_examples.py +4 -0
  13. anyscale/commands/list_util.py +107 -0
  14. anyscale/commands/service_commands.py +267 -31
  15. anyscale/commands/util.py +5 -4
  16. anyscale/controllers/cloud_controller.py +358 -49
  17. anyscale/controllers/service_controller.py +7 -86
  18. anyscale/service/__init__.py +53 -3
  19. anyscale/service/_private/service_sdk.py +177 -41
  20. anyscale/service/commands.py +78 -1
  21. anyscale/service/models.py +65 -0
  22. anyscale/util.py +35 -1
  23. anyscale/utils/gcp_utils.py +20 -4
  24. anyscale/version.py +1 -1
  25. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/METADATA +1 -1
  26. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/RECORD +31 -33
  27. anyscale/client/openapi_client/models/organization_public_identifier.py +0 -121
  28. anyscale/client/openapi_client/models/organization_response.py +0 -121
  29. anyscale/client/openapi_client/models/organizationpublicidentifier_response.py +0 -121
  30. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/LICENSE +0 -0
  31. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/NOTICE +0 -0
  32. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/WHEEL +0 -0
  33. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/entry_points.txt +0 -0
  34. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/top_level.txt +0 -0
@@ -15,9 +15,9 @@ import anyscale
15
15
  from anyscale.aggregated_instance_usage.models import DownloadCSVFilters
16
16
 
17
17
  download_csv_filters = DownloadCSVFilters(
18
- # Start date (inclusive) for the usage CSV.
18
+ # Start date (UTC inclusive) for the usage CSV.
19
19
  start_date="2024-10-01",
20
- # End date (inclusive) for the usage CSV.
20
+ # End date (UTC inclusive) for the usage CSV.
21
21
  end_date="2024-10-31",
22
22
  # Optional cloud name to filter by.
23
23
  cloud="cloud_name",
@@ -39,14 +39,14 @@ download_csv_filters = DownloadCSVFilters(
39
39
  raise ValueError("Incorrect date format, should be YYYY-MM-DD")
40
40
 
41
41
  start_date: str = field(
42
- metadata={"docstring": "Start date (inclusive) for the usage CSV."}
42
+ metadata={"docstring": "Start date (UTC inclusive) for the usage CSV."}
43
43
  )
44
44
 
45
45
  def _validate_start_date(self, start_date: str):
46
46
  self._validate_date(start_date)
47
47
 
48
48
  end_date: str = field(
49
- metadata={"docstring": "End date (inclusive) for the usage CSV."}
49
+ metadata={"docstring": "End date (UTC inclusive) for the usage CSV."}
50
50
  )
51
51
 
52
52
  def _validate_end_date(self, end_date: str):
anyscale/client/README.md CHANGED
@@ -164,8 +164,6 @@ Class | Method | HTTP request | Description
164
164
  *DefaultApi* | [**find_cloud_by_name_api_v2_clouds_find_by_name_post**](docs/DefaultApi.md#find_cloud_by_name_api_v2_clouds_find_by_name_post) | **POST** /api/v2/clouds/find_by_name | Find Cloud By Name
165
165
  *DefaultApi* | [**find_dataset_api_v2_datasets_find_get**](docs/DefaultApi.md#find_dataset_api_v2_datasets_find_get) | **GET** /api/v2/datasets/find | Find Dataset
166
166
  *DefaultApi* | [**find_project_by_project_name_api_v2_projects_find_by_name_get**](docs/DefaultApi.md#find_project_by_project_name_api_v2_projects_find_by_name_get) | **GET** /api/v2/projects/find_by_name | Find Project By Project Name
167
- *DefaultApi* | [**find_with_invitation_api_v2_organizations_find_with_invitation_get**](docs/DefaultApi.md#find_with_invitation_api_v2_organizations_find_with_invitation_get) | **GET** /api/v2/organizations/find_with_invitation | Find With Invitation
168
- *DefaultApi* | [**find_with_user_api_v2_organizations_find_with_user_get**](docs/DefaultApi.md#find_with_user_api_v2_organizations_find_with_user_get) | **GET** /api/v2/organizations/find_with_user | Find With User
169
167
  *DefaultApi* | [**finish_session_command_api_v2_session_commands_session_command_id_finish_post**](docs/DefaultApi.md#finish_session_command_api_v2_session_commands_session_command_id_finish_post) | **POST** /api/v2/session_commands/{session_command_id}/finish | Finish Session Command
170
168
  *DefaultApi* | [**generate_cloud_data_bucket_presigned_upload_url_api_v2_clouds_cloud_id_generate_cloud_data_bucket_presigned_upload_url_post**](docs/DefaultApi.md#generate_cloud_data_bucket_presigned_upload_url_api_v2_clouds_cloud_id_generate_cloud_data_bucket_presigned_upload_url_post) | **POST** /api/v2/clouds/{cloud_id}/generate_cloud_data_bucket_presigned_upload_url | Generate Cloud Data Bucket Presigned Upload Url
171
169
  *DefaultApi* | [**generate_cloud_data_bucket_presigned_url_api_v2_clouds_cloud_id_generate_cloud_data_bucket_presigned_url_post**](docs/DefaultApi.md#generate_cloud_data_bucket_presigned_url_api_v2_clouds_cloud_id_generate_cloud_data_bucket_presigned_url_post) | **POST** /api/v2/clouds/{cloud_id}/generate_cloud_data_bucket_presigned_url | Generate Cloud Data Bucket Presigned Url
@@ -209,7 +207,6 @@ Class | Method | HTTP request | Description
209
207
  *DefaultApi* | [**get_job_api_v2_decorated_ha_jobs_production_job_id_get**](docs/DefaultApi.md#get_job_api_v2_decorated_ha_jobs_production_job_id_get) | **GET** /api/v2/decorated_ha_jobs/{production_job_id} | Get Job
210
208
  *DefaultApi* | [**get_job_api_v2_decorated_unified_jobs_job_id_get**](docs/DefaultApi.md#get_job_api_v2_decorated_unified_jobs_job_id_get) | **GET** /api/v2/decorated_unified_jobs/{job_id} | Get Job
211
209
  *DefaultApi* | [**get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get**](docs/DefaultApi.md#get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get) | **GET** /api/v2/decorated_ha_jobs/{production_job_id}/events | Get Job Events
212
- *DefaultApi* | [**get_job_logs_download_api_v2_logs_job_logs_download_job_id_get**](docs/DefaultApi.md#get_job_logs_download_api_v2_logs_job_logs_download_job_id_get) | **GET** /api/v2/logs/job_logs_download/{job_id} | Get Job Logs Download
213
210
  *DefaultApi* | [**get_job_logs_download_v2_api_v2_logs_job_logs_download_v2_job_id_get**](docs/DefaultApi.md#get_job_logs_download_v2_api_v2_logs_job_logs_download_v2_job_id_get) | **GET** /api/v2/logs/job_logs_download_v2/{job_id} | Get Job Logs Download V2
214
211
  *DefaultApi* | [**get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get**](docs/DefaultApi.md#get_job_logs_stream_api_v2_logs_job_logs_stream_job_id_get) | **GET** /api/v2/logs/job_logs_stream/{job_id} | Get Job Logs Stream
215
212
  *DefaultApi* | [**get_job_queue_api_v2_job_queues_job_queue_id_get**](docs/DefaultApi.md#get_job_queue_api_v2_job_queues_job_queue_id_get) | **GET** /api/v2/job_queues/{job_queue_id} | Get Job Queue
@@ -226,7 +223,6 @@ Class | Method | HTTP request | Description
226
223
  *DefaultApi* | [**get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get**](docs/DefaultApi.md#get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get) | **GET** /api/v2/organization_billing/alerts | Get Organization Metronome Usage Alerts
227
224
  *DefaultApi* | [**get_project_api_v2_projects_project_id_get**](docs/DefaultApi.md#get_project_api_v2_projects_project_id_get) | **GET** /api/v2/projects/{project_id} | Get Project
228
225
  *DefaultApi* | [**get_project_default_session_name_api_v2_projects_project_id_default_session_name_get**](docs/DefaultApi.md#get_project_default_session_name_api_v2_projects_project_id_default_session_name_get) | **GET** /api/v2/projects/{project_id}/default_session_name | Get Project Default Session Name
229
- *DefaultApi* | [**get_public_identifier_api_v2_organizations_public_identifier_get**](docs/DefaultApi.md#get_public_identifier_api_v2_organizations_public_identifier_get) | **GET** /api/v2/organizations/public_identifier | Get Public Identifier
230
226
  *DefaultApi* | [**get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get**](docs/DefaultApi.md#get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get) | **GET** /api/v2/recent_activity/cluster_compute_configs | Get Recent Cluster Compute Configs
231
227
  *DefaultApi* | [**get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get**](docs/DefaultApi.md#get_recent_cluster_environments_api_v2_recent_activity_cluster_environment_builds_get) | **GET** /api/v2/recent_activity/cluster_environment_builds | Get Recent Cluster Environments
232
228
  *DefaultApi* | [**get_recent_projects_api_v2_recent_activity_projects_get**](docs/DefaultApi.md#get_recent_projects_api_v2_recent_activity_projects_get) | **GET** /api/v2/recent_activity/projects | Get Recent Projects
@@ -235,7 +231,6 @@ Class | Method | HTTP request | Description
235
231
  *DefaultApi* | [**get_resource_notification_api_v2_resource_notifications_resource_notification_id_get**](docs/DefaultApi.md#get_resource_notification_api_v2_resource_notifications_resource_notification_id_get) | **GET** /api/v2/resource_notifications/{resource_notification_id} | Get Resource Notification
236
232
  *DefaultApi* | [**get_resource_quota_api_v2_resource_quotas_resource_quota_id_get**](docs/DefaultApi.md#get_resource_quota_api_v2_resource_quotas_resource_quota_id_get) | **GET** /api/v2/resource_quotas/{resource_quota_id} | Get Resource Quota
237
233
  *DefaultApi* | [**get_root_cause_for_job_api_v2_iknow_get**](docs/DefaultApi.md#get_root_cause_for_job_api_v2_iknow_get) | **GET** /api/v2/iknow/ | Get Root Cause For Job
238
- *DefaultApi* | [**get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get**](docs/DefaultApi.md#get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get) | **GET** /api/v2/logs/runtime_env_logs_download/{session_id} | Get Runtime Env Logs Download
239
234
  *DefaultApi* | [**get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get**](docs/DefaultApi.md#get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get) | **GET** /api/v2/logs/serve_logs_download/{cluster_id} | Get Serve Logs Download
240
235
  *DefaultApi* | [**get_service_api_v2_services_v2_service_id_get**](docs/DefaultApi.md#get_service_api_v2_services_v2_service_id_get) | **GET** /api/v2/services-v2/{service_id} | Get Service
241
236
  *DefaultApi* | [**get_service_event_verbose_message_api_v2_services_v2_events_event_id_verbose_message_get**](docs/DefaultApi.md#get_service_event_verbose_message_api_v2_services_v2_events_event_id_verbose_message_get) | **GET** /api/v2/services-v2/events/{event_id}/verbose_message | Get Service Event Verbose Message
@@ -299,6 +294,7 @@ Class | Method | HTTP request | Description
299
294
  *DefaultApi* | [**list_project_collaborators_api_v2_projects_project_id_collaborators_users_get**](docs/DefaultApi.md#list_project_collaborators_api_v2_projects_project_id_collaborators_users_get) | **GET** /api/v2/projects/{project_id}/collaborators/users | List Project Collaborators
300
295
  *DefaultApi* | [**list_projects_api_v2_projects_get**](docs/DefaultApi.md#list_projects_api_v2_projects_get) | **GET** /api/v2/projects/ | List Projects
301
296
  *DefaultApi* | [**list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get**](docs/DefaultApi.md#list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get) | **GET** /api/v2/tasks_dashboard/list_ray_sessions | List Ray Sessions
297
+ *DefaultApi* | [**list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get**](docs/DefaultApi.md#list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get) | **GET** /api/v2/experimental_workspaces/templates/recommended | List Recommended Workspace Templates
302
298
  *DefaultApi* | [**list_services_api_v2_services_v2_get**](docs/DefaultApi.md#list_services_api_v2_services_v2_get) | **GET** /api/v2/services-v2/ | List Services
303
299
  *DefaultApi* | [**list_sessions_api_v2_sessions_get**](docs/DefaultApi.md#list_sessions_api_v2_sessions_get) | **GET** /api/v2/sessions/ | List Sessions
304
300
  *DefaultApi* | [**list_workspace_templates_api_v2_experimental_workspaces_templates_get**](docs/DefaultApi.md#list_workspace_templates_api_v2_experimental_workspaces_templates_get) | **GET** /api/v2/experimental_workspaces/templates | List Workspace Templates
@@ -356,7 +352,6 @@ Class | Method | HTTP request | Description
356
352
  *DefaultApi* | [**try_claim_cloud_api_v2_aioa_cloud_waitlist_claim_cloud_post**](docs/DefaultApi.md#try_claim_cloud_api_v2_aioa_cloud_waitlist_claim_cloud_post) | **POST** /api/v2/aioa_cloud_waitlist/claim_cloud | Try Claim Cloud
357
353
  *DefaultApi* | [**try_login_api_v2_users_try_login_post**](docs/DefaultApi.md#try_login_api_v2_users_try_login_post) | **POST** /api/v2/users/try-login | Try Login
358
354
  *DefaultApi* | [**update_cloud_auto_add_user_api_v2_clouds_cloud_id_auto_add_user_put**](docs/DefaultApi.md#update_cloud_auto_add_user_api_v2_clouds_cloud_id_auto_add_user_put) | **PUT** /api/v2/clouds/{cloud_id}/auto_add_user | Update Cloud Auto Add User
359
- *DefaultApi* | [**update_cloud_config_api_v2_clouds_cloud_id_config_put**](docs/DefaultApi.md#update_cloud_config_api_v2_clouds_cloud_id_config_put) | **PUT** /api/v2/clouds/{cloud_id}/config | Update Cloud Config
360
355
  *DefaultApi* | [**update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put**](docs/DefaultApi.md#update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put) | **PUT** /api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config | Update Cloud Deployment Config
361
356
  *DefaultApi* | [**update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put**](docs/DefaultApi.md#update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put) | **PUT** /api/v2/clouds/{cloud_id}/deployments | Update Cloud Deployments
362
357
  *DefaultApi* | [**update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put**](docs/DefaultApi.md#update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put) | **PUT** /api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id} | Update Cloud With Cloud Resource
@@ -776,8 +771,6 @@ Class | Method | HTTP request | Description
776
771
  - [OrganizationPermissionLevel](docs/OrganizationPermissionLevel.md)
777
772
  - [OrganizationProjectCollaborator](docs/OrganizationProjectCollaborator.md)
778
773
  - [OrganizationProjectCollaboratorValue](docs/OrganizationProjectCollaboratorValue.md)
779
- - [OrganizationPublicIdentifier](docs/OrganizationPublicIdentifier.md)
780
- - [OrganizationResponse](docs/OrganizationResponse.md)
781
774
  - [OrganizationSummary](docs/OrganizationSummary.md)
782
775
  - [OrganizationUsageAlert](docs/OrganizationUsageAlert.md)
783
776
  - [OrganizationUsageAlertSeverity](docs/OrganizationUsageAlertSeverity.md)
@@ -788,7 +781,6 @@ Class | Method | HTTP request | Description
788
781
  - [OrganizationinvitationResponse](docs/OrganizationinvitationResponse.md)
789
782
  - [OrganizationinvitationbaseResponse](docs/OrganizationinvitationbaseResponse.md)
790
783
  - [OrganizationprojectcollaboratorListResponse](docs/OrganizationprojectcollaboratorListResponse.md)
791
- - [OrganizationpublicidentifierResponse](docs/OrganizationpublicidentifierResponse.md)
792
784
  - [OrganizationusagealertListResponse](docs/OrganizationusagealertListResponse.md)
793
785
  - [PCPConfig](docs/PCPConfig.md)
794
786
  - [PageQuery](docs/PageQuery.md)
@@ -420,8 +420,6 @@ from openapi_client.models.organization_marketing_questions import OrganizationM
420
420
  from openapi_client.models.organization_permission_level import OrganizationPermissionLevel
421
421
  from openapi_client.models.organization_project_collaborator import OrganizationProjectCollaborator
422
422
  from openapi_client.models.organization_project_collaborator_value import OrganizationProjectCollaboratorValue
423
- from openapi_client.models.organization_public_identifier import OrganizationPublicIdentifier
424
- from openapi_client.models.organization_response import OrganizationResponse
425
423
  from openapi_client.models.organization_summary import OrganizationSummary
426
424
  from openapi_client.models.organization_usage_alert import OrganizationUsageAlert
427
425
  from openapi_client.models.organization_usage_alert_severity import OrganizationUsageAlertSeverity
@@ -432,7 +430,6 @@ from openapi_client.models.organizationinvitation_list_response import Organizat
432
430
  from openapi_client.models.organizationinvitation_response import OrganizationinvitationResponse
433
431
  from openapi_client.models.organizationinvitationbase_response import OrganizationinvitationbaseResponse
434
432
  from openapi_client.models.organizationprojectcollaborator_list_response import OrganizationprojectcollaboratorListResponse
435
- from openapi_client.models.organizationpublicidentifier_response import OrganizationpublicidentifierResponse
436
433
  from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
437
434
  from openapi_client.models.pcp_config import PCPConfig
438
435
  from openapi_client.models.page_query import PageQuery