anyscale 0.26.14__py3-none-any.whl → 0.26.16__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 (75) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +4 -2
  2. anyscale/_private/anyscale_client/common.py +6 -4
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +16 -7
  4. anyscale/_private/docgen/__main__.py +4 -4
  5. anyscale/_private/docgen/generator.py +2 -2
  6. anyscale/_private/models/model_base.py +5 -2
  7. anyscale/_private/sdk/__init__.py +2 -2
  8. anyscale/_private/utils/progress_util.py +2 -2
  9. anyscale/_private/workload/workload_sdk.py +10 -7
  10. anyscale/aggregated_instance_usage/commands.py +6 -2
  11. anyscale/anyscale-cloud-setup.yaml +4 -0
  12. anyscale/client/README.md +8 -11
  13. anyscale/client/openapi_client/__init__.py +6 -8
  14. anyscale/client/openapi_client/api/default_api.py +292 -377
  15. anyscale/client/openapi_client/models/__init__.py +6 -8
  16. anyscale/client/openapi_client/models/alert_type.py +11 -2
  17. anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
  18. anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
  19. anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
  20. anyscale/client/openapi_client/models/metric.py +133 -3
  21. anyscale/client/openapi_client/models/ray_session.py +121 -0
  22. anyscale/client/openapi_client/models/task_exception_group_aggregate.py +28 -1
  23. anyscale/client/openapi_client/models/{taskexceptiongroupaggregate_list_response.py → task_exception_group_aggregate_response.py} +52 -25
  24. anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +28 -1
  25. anyscale/client/openapi_client/models/{taskfunctionnamegroupaggregate_list_response.py → task_function_name_group_aggregate_response.py} +52 -25
  26. anyscale/client/openapi_client/models/task_job_group_aggregate.py +28 -1
  27. anyscale/client/openapi_client/models/{taskjobgroupaggregate_list_response.py → task_job_group_aggregate_response.py} +52 -25
  28. anyscale/client/openapi_client/models/task_table_row.py +19 -19
  29. anyscale/cloud/__init__.py +2 -2
  30. anyscale/cloud/_private/cloud_sdk.py +2 -2
  31. anyscale/cloud/commands.py +9 -6
  32. anyscale/cloud_resource.py +1 -1
  33. anyscale/cloud_utils.py +11 -6
  34. anyscale/cluster_compute.py +6 -5
  35. anyscale/cluster_env.py +10 -5
  36. anyscale/commands/login_commands.py +24 -3
  37. anyscale/commands/schedule_commands.py +2 -1
  38. anyscale/compute_config/_private/compute_config_sdk.py +1 -1
  39. anyscale/compute_config/commands.py +15 -7
  40. anyscale/connect_utils/prepare_cluster.py +14 -4
  41. anyscale/controllers/cloud_controller.py +9 -9
  42. anyscale/controllers/cloud_functional_verification_controller.py +4 -2
  43. anyscale/controllers/cluster_controller.py +1 -0
  44. anyscale/controllers/job_controller.py +1 -1
  45. anyscale/controllers/service_controller.py +2 -1
  46. anyscale/image/commands.py +6 -6
  47. anyscale/job/commands.py +12 -12
  48. anyscale/organization_invitation/commands.py +11 -7
  49. anyscale/project/__init__.py +2 -2
  50. anyscale/project/_private/project_sdk.py +2 -2
  51. anyscale/project/commands.py +3 -3
  52. anyscale/project_utils.py +5 -4
  53. anyscale/resource_quota/commands.py +18 -10
  54. anyscale/schedule/commands.py +12 -8
  55. anyscale/sdk/anyscale_client/sdk.py +5 -4
  56. anyscale/service/commands.py +17 -17
  57. anyscale/service_account/commands.py +12 -10
  58. anyscale/user/commands.py +5 -3
  59. anyscale/utils/connect_helpers.py +16 -3
  60. anyscale/utils/gcp_utils.py +25 -9
  61. anyscale/utils/runtime_env.py +3 -1
  62. anyscale/version.py +1 -1
  63. anyscale/workspace/__init__.py +10 -5
  64. anyscale/workspace/_private/workspace_sdk.py +9 -7
  65. anyscale/workspace/commands.py +25 -23
  66. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/METADATA +1 -1
  67. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/RECORD +72 -74
  68. anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
  69. anyscale/client/openapi_client/models/buffer_registration.py +0 -285
  70. anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
  71. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/LICENSE +0 -0
  72. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/NOTICE +0 -0
  73. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/WHEEL +0 -0
  74. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/entry_points.txt +0 -0
  75. {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/top_level.txt +0 -0
@@ -47,7 +47,6 @@ from openapi_client.models.archived_logs_info import ArchivedLogsInfo
47
47
  from openapi_client.models.archivedlogsinfo_response import ArchivedlogsinfoResponse
48
48
  from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
49
49
  from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
50
- from openapi_client.models.aviary_model_config_v2 import AviaryModelConfigV2
51
50
  from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
52
51
  from openapi_client.models.aws_region_info import AwsRegionInfo
53
52
  from openapi_client.models.awsregionandzones_response import AwsregionandzonesResponse
@@ -61,7 +60,6 @@ from openapi_client.models.batched_result_organization_invitation_base import Ba
61
60
  from openapi_client.models.billing_information import BillingInformation
62
61
  from openapi_client.models.billing_version_code import BillingVersionCode
63
62
  from openapi_client.models.body_aws_marketplace_registration_api_v2_organization_billing_aws_marketplace_registration_post import BodyAwsMarketplaceRegistrationApiV2OrganizationBillingAwsMarketplaceRegistrationPost
64
- from openapi_client.models.buffer_registration import BufferRegistration
65
63
  from openapi_client.models.build import Build
66
64
  from openapi_client.models.build_log_response import BuildLogResponse
67
65
  from openapi_client.models.build_registration import BuildRegistration
@@ -283,7 +281,6 @@ from openapi_client.models.fine_tune_type import FineTuneType
283
281
  from openapi_client.models.fine_tuned_model import FineTunedModel
284
282
  from openapi_client.models.finetunedmodel_list_response import FinetunedmodelListResponse
285
283
  from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
286
- from openapi_client.models.finish_ft_job_request_v2 import FinishFTJobRequestV2
287
284
  from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
288
285
  from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
289
286
  from openapi_client.models.grafana_dashboard import GrafanaDashboard
@@ -331,11 +328,13 @@ from openapi_client.models.lb_resource import LBResource
331
328
  from openapi_client.models.lbresource_response import LbresourceResponse
332
329
  from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
333
330
  from openapi_client.models.list_machines_response import ListMachinesResponse
331
+ from openapi_client.models.list_ray_sessions_response import ListRaySessionsResponse
334
332
  from openapi_client.models.list_resource_notifications_query import ListResourceNotificationsQuery
335
333
  from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQuery
336
334
  from openapi_client.models.list_response_metadata import ListResponseMetadata
337
335
  from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
338
336
  from openapi_client.models.listmachinesresponse_response import ListmachinesresponseResponse
337
+ from openapi_client.models.listraysessionsresponse_response import ListraysessionsresponseResponse
339
338
  from openapi_client.models.log_download_config import LogDownloadConfig
340
339
  from openapi_client.models.log_download_request import LogDownloadRequest
341
340
  from openapi_client.models.log_download_result import LogDownloadResult
@@ -420,9 +419,7 @@ from openapi_client.models.organizationusagealert_list_response import Organizat
420
419
  from openapi_client.models.page_query import PageQuery
421
420
  from openapi_client.models.pause_schedule import PauseSchedule
422
421
  from openapi_client.models.permission_level import PermissionLevel
423
- from openapi_client.models.product_autoscaler_flag import ProductAutoscalerFlag
424
422
  from openapi_client.models.product_type import ProductType
425
- from openapi_client.models.productautoscalerflag_response import ProductautoscalerflagResponse
426
423
  from openapi_client.models.production_job import ProductionJob
427
424
  from openapi_client.models.production_job_config import ProductionJobConfig
428
425
  from openapi_client.models.production_job_event import ProductionJobEvent
@@ -446,6 +443,7 @@ from openapi_client.models.python_modules import PythonModules
446
443
  from openapi_client.models.quota import Quota
447
444
  from openapi_client.models.ray_gcs_external_storage_config import RayGCSExternalStorageConfig
448
445
  from openapi_client.models.ray_runtime_env_config import RayRuntimeEnvConfig
446
+ from openapi_client.models.ray_session import RaySession
449
447
  from openapi_client.models.read_billing_version import ReadBillingVersion
450
448
  from openapi_client.models.readbillingversion_list_response import ReadbillingversionListResponse
451
449
  from openapi_client.models.replica_details import ReplicaDetails
@@ -530,18 +528,18 @@ from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdW
530
528
  from openapi_client.models.support_requests_query import SupportRequestsQuery
531
529
  from openapi_client.models.system_workload_name import SystemWorkloadName
532
530
  from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
531
+ from openapi_client.models.task_exception_group_aggregate_response import TaskExceptionGroupAggregateResponse
533
532
  from openapi_client.models.task_function_name_group_aggregate import TaskFunctionNameGroupAggregate
533
+ from openapi_client.models.task_function_name_group_aggregate_response import TaskFunctionNameGroupAggregateResponse
534
534
  from openapi_client.models.task_grouped_aggregate_metrics import TaskGroupedAggregateMetrics
535
535
  from openapi_client.models.task_job_group_aggregate import TaskJobGroupAggregate
536
+ from openapi_client.models.task_job_group_aggregate_response import TaskJobGroupAggregateResponse
536
537
  from openapi_client.models.task_state import TaskState
537
538
  from openapi_client.models.task_summary import TaskSummary
538
539
  from openapi_client.models.task_table_config import TaskTableConfig
539
540
  from openapi_client.models.task_table_response import TaskTableResponse
540
541
  from openapi_client.models.task_table_row import TaskTableRow
541
542
  from openapi_client.models.task_type import TaskType
542
- from openapi_client.models.taskexceptiongroupaggregate_list_response import TaskexceptiongroupaggregateListResponse
543
- from openapi_client.models.taskfunctionnamegroupaggregate_list_response import TaskfunctionnamegroupaggregateListResponse
544
- from openapi_client.models.taskjobgroupaggregate_list_response import TaskjobgroupaggregateListResponse
545
543
  from openapi_client.models.tasksummary_response import TasksummaryResponse
546
544
  from openapi_client.models.templatized_compute_configs import TemplatizedComputeConfigs
547
545
  from openapi_client.models.templatized_decorated_application_templates import TemplatizedDecoratedApplicationTemplates
@@ -33,8 +33,17 @@ class AlertType(object):
33
33
  LOW_REMAINING_DAYS_IN_PLAN_REACHED = "low_remaining_days_in_plan_reached"
34
34
  LOW_REMAINING_CREDIT_PERCENTAGE_REACHED = "low_remaining_credit_percentage_reached"
35
35
  USAGE_THRESHOLD_REACHED = "usage_threshold_reached"
36
-
37
- allowable_values = [LOW_CREDIT_BALANCE_REACHED, SPEND_THRESHOLD_REACHED, LOW_REMAINING_DAYS_IN_PLAN_REACHED, LOW_REMAINING_CREDIT_PERCENTAGE_REACHED, USAGE_THRESHOLD_REACHED] # noqa: E501
36
+ LOW_REMAINING_COMMIT_BALANCE_REACHED = "low_remaining_commit_balance_reached"
37
+ LOW_REMAINING_COMMIT_PERCENTAGE_REACHED = "low_remaining_commit_percentage_reached"
38
+ LOW_REMAINING_DAYS_FOR_COMMIT_SEGMENT_REACHED = "low_remaining_days_for_commit_segment_reached"
39
+ LOW_REMAINING_CONTRACT_CREDIT_BALANCE_REACHED = "low_remaining_contract_credit_balance_reached"
40
+ LOW_REMAINING_CONTRACT_CREDIT_PERCENTAGE_REACHED = "low_remaining_contract_credit_percentage_reached"
41
+ LOW_REMAINING_DAYS_FOR_CONTRACT_CREDIT_SEGMENT_REACHED = "low_remaining_days_for_contract_credit_segment_reached"
42
+ LOW_REMAINING_CONTRACT_CREDIT_AND_COMMIT_BALANCE_REACHED = "low_remaining_contract_credit_and_commit_balance_reached"
43
+ MONTHLY_INVOICE_TOTAL_SPEND_THRESHOLD_REACHED = "monthly_invoice_total_spend_threshold_reached"
44
+ INVOICE_TOTAL_REACHED = "invoice_total_reached"
45
+
46
+ allowable_values = [LOW_CREDIT_BALANCE_REACHED, SPEND_THRESHOLD_REACHED, LOW_REMAINING_DAYS_IN_PLAN_REACHED, LOW_REMAINING_CREDIT_PERCENTAGE_REACHED, USAGE_THRESHOLD_REACHED, LOW_REMAINING_COMMIT_BALANCE_REACHED, LOW_REMAINING_COMMIT_PERCENTAGE_REACHED, LOW_REMAINING_DAYS_FOR_COMMIT_SEGMENT_REACHED, LOW_REMAINING_CONTRACT_CREDIT_BALANCE_REACHED, LOW_REMAINING_CONTRACT_CREDIT_PERCENTAGE_REACHED, LOW_REMAINING_DAYS_FOR_CONTRACT_CREDIT_SEGMENT_REACHED, LOW_REMAINING_CONTRACT_CREDIT_AND_COMMIT_BALANCE_REACHED, MONTHLY_INVOICE_TOTAL_SPEND_THRESHOLD_REACHED, INVOICE_TOTAL_REACHED] # noqa: E501
38
47
 
39
48
  """
40
49
  Attributes:
@@ -39,8 +39,7 @@ class CreateJobQueueRequests(object):
39
39
  'cluster_environment_build_id': 'str',
40
40
  'max_concurrency': 'int',
41
41
  'idle_timeout_sec': 'int',
42
- 'project_id': 'str',
43
- 'cloud_id': 'str'
42
+ 'project_id': 'str'
44
43
  }
45
44
 
46
45
  attribute_map = {
@@ -50,11 +49,10 @@ class CreateJobQueueRequests(object):
50
49
  'cluster_environment_build_id': 'cluster_environment_build_id',
51
50
  'max_concurrency': 'max_concurrency',
52
51
  'idle_timeout_sec': 'idle_timeout_sec',
53
- 'project_id': 'project_id',
54
- 'cloud_id': 'cloud_id'
52
+ 'project_id': 'project_id'
55
53
  }
56
54
 
57
- def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, project_id=None, cloud_id=None, local_vars_configuration=None): # noqa: E501
55
+ def __init__(self, job_queue_name=None, execution_mode=None, compute_config_id=None, cluster_environment_build_id=None, max_concurrency=1, idle_timeout_sec=None, project_id=None, local_vars_configuration=None): # noqa: E501
58
56
  """CreateJobQueueRequests - a model defined in OpenAPI""" # noqa: E501
59
57
  if local_vars_configuration is None:
60
58
  local_vars_configuration = Configuration()
@@ -67,7 +65,6 @@ class CreateJobQueueRequests(object):
67
65
  self._max_concurrency = None
68
66
  self._idle_timeout_sec = None
69
67
  self._project_id = None
70
- self._cloud_id = None
71
68
  self.discriminator = None
72
69
 
73
70
  if job_queue_name is not None:
@@ -80,7 +77,6 @@ class CreateJobQueueRequests(object):
80
77
  self.max_concurrency = max_concurrency
81
78
  self.idle_timeout_sec = idle_timeout_sec
82
79
  self.project_id = project_id
83
- self.cloud_id = cloud_id
84
80
 
85
81
  @property
86
82
  def job_queue_name(self):
@@ -251,31 +247,6 @@ class CreateJobQueueRequests(object):
251
247
 
252
248
  self._project_id = project_id
253
249
 
254
- @property
255
- def cloud_id(self):
256
- """Gets the cloud_id of this CreateJobQueueRequests. # noqa: E501
257
-
258
- The cloud id to which the job queue belongs to. # noqa: E501
259
-
260
- :return: The cloud_id of this CreateJobQueueRequests. # noqa: E501
261
- :rtype: str
262
- """
263
- return self._cloud_id
264
-
265
- @cloud_id.setter
266
- def cloud_id(self, cloud_id):
267
- """Sets the cloud_id of this CreateJobQueueRequests.
268
-
269
- The cloud id to which the job queue belongs to. # noqa: E501
270
-
271
- :param cloud_id: The cloud_id of this CreateJobQueueRequests. # noqa: E501
272
- :type: str
273
- """
274
- if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
275
- raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
276
-
277
- self._cloud_id = cloud_id
278
-
279
250
  def to_dict(self):
280
251
  """Returns the model properties as a dict"""
281
252
  result = {}
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class ProductAutoscalerFlag(object):
21
+ class ListRaySessionsResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,47 +33,46 @@ class ProductAutoscalerFlag(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'enable_product_autoscaler': 'bool'
36
+ 'results': 'list[RaySession]'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'enable_product_autoscaler': 'enable_product_autoscaler'
40
+ 'results': 'results'
41
41
  }
42
42
 
43
- def __init__(self, enable_product_autoscaler=False, local_vars_configuration=None): # noqa: E501
44
- """ProductAutoscalerFlag - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, results=None, local_vars_configuration=None): # noqa: E501
44
+ """ListRaySessionsResponse - 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._enable_product_autoscaler = None
49
+ self._results = None
50
50
  self.discriminator = None
51
51
 
52
- if enable_product_autoscaler is not None:
53
- self.enable_product_autoscaler = enable_product_autoscaler
52
+ self.results = results
54
53
 
55
54
  @property
56
- def enable_product_autoscaler(self):
57
- """Gets the enable_product_autoscaler of this ProductAutoscalerFlag. # noqa: E501
55
+ def results(self):
56
+ """Gets the results of this ListRaySessionsResponse. # noqa: E501
58
57
 
59
- Product autoscaler flag. # noqa: E501
60
58
 
61
- :return: The enable_product_autoscaler of this ProductAutoscalerFlag. # noqa: E501
62
- :rtype: bool
59
+ :return: The results of this ListRaySessionsResponse. # noqa: E501
60
+ :rtype: list[RaySession]
63
61
  """
64
- return self._enable_product_autoscaler
62
+ return self._results
65
63
 
66
- @enable_product_autoscaler.setter
67
- def enable_product_autoscaler(self, enable_product_autoscaler):
68
- """Sets the enable_product_autoscaler of this ProductAutoscalerFlag.
64
+ @results.setter
65
+ def results(self, results):
66
+ """Sets the results of this ListRaySessionsResponse.
69
67
 
70
- Product autoscaler flag. # noqa: E501
71
68
 
72
- :param enable_product_autoscaler: The enable_product_autoscaler of this ProductAutoscalerFlag. # noqa: E501
73
- :type: bool
69
+ :param results: The results of this ListRaySessionsResponse. # noqa: E501
70
+ :type: list[RaySession]
74
71
  """
72
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
73
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
75
74
 
76
- self._enable_product_autoscaler = enable_product_autoscaler
75
+ self._results = results
77
76
 
78
77
  def to_dict(self):
79
78
  """Returns the model properties as a dict"""
@@ -109,14 +108,14 @@ class ProductAutoscalerFlag(object):
109
108
 
110
109
  def __eq__(self, other):
111
110
  """Returns true if both objects are equal"""
112
- if not isinstance(other, ProductAutoscalerFlag):
111
+ if not isinstance(other, ListRaySessionsResponse):
113
112
  return False
114
113
 
115
114
  return self.to_dict() == other.to_dict()
116
115
 
117
116
  def __ne__(self, other):
118
117
  """Returns true if both objects are not equal"""
119
- if not isinstance(other, ProductAutoscalerFlag):
118
+ if not isinstance(other, ListRaySessionsResponse):
120
119
  return True
121
120
 
122
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 ProductautoscalerflagResponse(object):
21
+ class ListraysessionsresponseResponse(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 ProductautoscalerflagResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'ProductAutoscalerFlag'
36
+ 'result': 'ListRaySessionsResponse'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class ProductautoscalerflagResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """ProductautoscalerflagResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """ListraysessionsresponseResponse - 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 ProductautoscalerflagResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this ProductautoscalerflagResponse. # noqa: E501
56
+ """Gets the result of this ListraysessionsresponseResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this ProductautoscalerflagResponse. # noqa: E501
60
- :rtype: ProductAutoscalerFlag
59
+ :return: The result of this ListraysessionsresponseResponse. # noqa: E501
60
+ :rtype: ListRaySessionsResponse
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 ProductautoscalerflagResponse.
66
+ """Sets the result of this ListraysessionsresponseResponse.
67
67
 
68
68
 
69
- :param result: The result of this ProductautoscalerflagResponse. # noqa: E501
70
- :type: ProductAutoscalerFlag
69
+ :param result: The result of this ListraysessionsresponseResponse. # noqa: E501
70
+ :type: ListRaySessionsResponse
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 ProductautoscalerflagResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, ProductautoscalerflagResponse):
111
+ if not isinstance(other, ListraysessionsresponseResponse):
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, ProductautoscalerflagResponse):
118
+ if not isinstance(other, ListraysessionsresponseResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -36,17 +36,27 @@ class Metric(object):
36
36
  'name': 'str',
37
37
  'current_value': 'float',
38
38
  'max_over_time': 'float',
39
- 'rate': 'float'
39
+ 'min_over_time': 'float',
40
+ 'median_over_time': 'float',
41
+ 'rate': 'float',
42
+ 'max_rate': 'float',
43
+ 'min_rate': 'float',
44
+ 'median_rate': 'float'
40
45
  }
41
46
 
42
47
  attribute_map = {
43
48
  'name': 'name',
44
49
  'current_value': 'current_value',
45
50
  'max_over_time': 'max_over_time',
46
- 'rate': 'rate'
51
+ 'min_over_time': 'min_over_time',
52
+ 'median_over_time': 'median_over_time',
53
+ 'rate': 'rate',
54
+ 'max_rate': 'max_rate',
55
+ 'min_rate': 'min_rate',
56
+ 'median_rate': 'median_rate'
47
57
  }
48
58
 
49
- def __init__(self, name=None, current_value=None, max_over_time=None, rate=None, local_vars_configuration=None): # noqa: E501
59
+ def __init__(self, name=None, current_value=None, max_over_time=None, min_over_time=None, median_over_time=None, rate=None, max_rate=None, min_rate=None, median_rate=None, local_vars_configuration=None): # noqa: E501
50
60
  """Metric - a model defined in OpenAPI""" # noqa: E501
51
61
  if local_vars_configuration is None:
52
62
  local_vars_configuration = Configuration()
@@ -55,7 +65,12 @@ class Metric(object):
55
65
  self._name = None
56
66
  self._current_value = None
57
67
  self._max_over_time = None
68
+ self._min_over_time = None
69
+ self._median_over_time = None
58
70
  self._rate = None
71
+ self._max_rate = None
72
+ self._min_rate = None
73
+ self._median_rate = None
59
74
  self.discriminator = None
60
75
 
61
76
  self.name = name
@@ -63,8 +78,18 @@ class Metric(object):
63
78
  self.current_value = current_value
64
79
  if max_over_time is not None:
65
80
  self.max_over_time = max_over_time
81
+ if min_over_time is not None:
82
+ self.min_over_time = min_over_time
83
+ if median_over_time is not None:
84
+ self.median_over_time = median_over_time
66
85
  if rate is not None:
67
86
  self.rate = rate
87
+ if max_rate is not None:
88
+ self.max_rate = max_rate
89
+ if min_rate is not None:
90
+ self.min_rate = min_rate
91
+ if median_rate is not None:
92
+ self.median_rate = median_rate
68
93
 
69
94
  @property
70
95
  def name(self):
@@ -131,6 +156,48 @@ class Metric(object):
131
156
 
132
157
  self._max_over_time = max_over_time
133
158
 
159
+ @property
160
+ def min_over_time(self):
161
+ """Gets the min_over_time of this Metric. # noqa: E501
162
+
163
+
164
+ :return: The min_over_time of this Metric. # noqa: E501
165
+ :rtype: float
166
+ """
167
+ return self._min_over_time
168
+
169
+ @min_over_time.setter
170
+ def min_over_time(self, min_over_time):
171
+ """Sets the min_over_time of this Metric.
172
+
173
+
174
+ :param min_over_time: The min_over_time of this Metric. # noqa: E501
175
+ :type: float
176
+ """
177
+
178
+ self._min_over_time = min_over_time
179
+
180
+ @property
181
+ def median_over_time(self):
182
+ """Gets the median_over_time of this Metric. # noqa: E501
183
+
184
+
185
+ :return: The median_over_time of this Metric. # noqa: E501
186
+ :rtype: float
187
+ """
188
+ return self._median_over_time
189
+
190
+ @median_over_time.setter
191
+ def median_over_time(self, median_over_time):
192
+ """Sets the median_over_time of this Metric.
193
+
194
+
195
+ :param median_over_time: The median_over_time of this Metric. # noqa: E501
196
+ :type: float
197
+ """
198
+
199
+ self._median_over_time = median_over_time
200
+
134
201
  @property
135
202
  def rate(self):
136
203
  """Gets the rate of this Metric. # noqa: E501
@@ -152,6 +219,69 @@ class Metric(object):
152
219
 
153
220
  self._rate = rate
154
221
 
222
+ @property
223
+ def max_rate(self):
224
+ """Gets the max_rate of this Metric. # noqa: E501
225
+
226
+
227
+ :return: The max_rate of this Metric. # noqa: E501
228
+ :rtype: float
229
+ """
230
+ return self._max_rate
231
+
232
+ @max_rate.setter
233
+ def max_rate(self, max_rate):
234
+ """Sets the max_rate of this Metric.
235
+
236
+
237
+ :param max_rate: The max_rate of this Metric. # noqa: E501
238
+ :type: float
239
+ """
240
+
241
+ self._max_rate = max_rate
242
+
243
+ @property
244
+ def min_rate(self):
245
+ """Gets the min_rate of this Metric. # noqa: E501
246
+
247
+
248
+ :return: The min_rate of this Metric. # noqa: E501
249
+ :rtype: float
250
+ """
251
+ return self._min_rate
252
+
253
+ @min_rate.setter
254
+ def min_rate(self, min_rate):
255
+ """Sets the min_rate of this Metric.
256
+
257
+
258
+ :param min_rate: The min_rate of this Metric. # noqa: E501
259
+ :type: float
260
+ """
261
+
262
+ self._min_rate = min_rate
263
+
264
+ @property
265
+ def median_rate(self):
266
+ """Gets the median_rate of this Metric. # noqa: E501
267
+
268
+
269
+ :return: The median_rate of this Metric. # noqa: E501
270
+ :rtype: float
271
+ """
272
+ return self._median_rate
273
+
274
+ @median_rate.setter
275
+ def median_rate(self, median_rate):
276
+ """Sets the median_rate of this Metric.
277
+
278
+
279
+ :param median_rate: The median_rate of this Metric. # noqa: E501
280
+ :type: float
281
+ """
282
+
283
+ self._median_rate = median_rate
284
+
155
285
  def to_dict(self):
156
286
  """Returns the model properties as a dict"""
157
287
  result = {}
@@ -0,0 +1,121 @@
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 RaySession(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
+ 'ray_session_name': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'ray_session_name': 'ray_session_name'
41
+ }
42
+
43
+ def __init__(self, ray_session_name=None, local_vars_configuration=None): # noqa: E501
44
+ """RaySession - 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._ray_session_name = None
50
+ self.discriminator = None
51
+
52
+ self.ray_session_name = ray_session_name
53
+
54
+ @property
55
+ def ray_session_name(self):
56
+ """Gets the ray_session_name of this RaySession. # noqa: E501
57
+
58
+
59
+ :return: The ray_session_name of this RaySession. # noqa: E501
60
+ :rtype: str
61
+ """
62
+ return self._ray_session_name
63
+
64
+ @ray_session_name.setter
65
+ def ray_session_name(self, ray_session_name):
66
+ """Sets the ray_session_name of this RaySession.
67
+
68
+
69
+ :param ray_session_name: The ray_session_name of this RaySession. # noqa: E501
70
+ :type: str
71
+ """
72
+ if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
73
+ raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
74
+
75
+ self._ray_session_name = ray_session_name
76
+
77
+ def to_dict(self):
78
+ """Returns the model properties as a dict"""
79
+ result = {}
80
+
81
+ for attr, _ in six.iteritems(self.openapi_types):
82
+ value = getattr(self, attr)
83
+ if isinstance(value, list):
84
+ result[attr] = list(map(
85
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
+ value
87
+ ))
88
+ elif hasattr(value, "to_dict"):
89
+ result[attr] = value.to_dict()
90
+ elif isinstance(value, dict):
91
+ result[attr] = dict(map(
92
+ lambda item: (item[0], item[1].to_dict())
93
+ if hasattr(item[1], "to_dict") else item,
94
+ value.items()
95
+ ))
96
+ else:
97
+ result[attr] = value
98
+
99
+ return result
100
+
101
+ def to_str(self):
102
+ """Returns the string representation of the model"""
103
+ return pprint.pformat(self.to_dict())
104
+
105
+ def __repr__(self):
106
+ """For `print` and `pprint`"""
107
+ return self.to_str()
108
+
109
+ def __eq__(self, other):
110
+ """Returns true if both objects are equal"""
111
+ if not isinstance(other, RaySession):
112
+ return False
113
+
114
+ return self.to_dict() == other.to_dict()
115
+
116
+ def __ne__(self, other):
117
+ """Returns true if both objects are not equal"""
118
+ if not isinstance(other, RaySession):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()