anyscale 0.25.0__py3-none-any.whl → 0.25.2__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 (53) hide show
  1. anyscale/__init__.py +10 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +35 -9
  3. anyscale/_private/anyscale_client/common.py +32 -3
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +69 -6
  5. anyscale/_private/docgen/__main__.py +9 -2
  6. anyscale/_private/docgen/api.md +13 -0
  7. anyscale/_private/docgen/models.md +3 -3
  8. anyscale/client/README.md +4 -0
  9. anyscale/client/openapi_client/__init__.py +2 -0
  10. anyscale/client/openapi_client/api/default_api.py +233 -0
  11. anyscale/client/openapi_client/models/__init__.py +2 -0
  12. anyscale/client/openapi_client/models/baseimagesenum.py +43 -1
  13. anyscale/client/openapi_client/models/decorated_interactive_session.py +1 -57
  14. anyscale/client/openapi_client/models/decorated_job.py +1 -57
  15. anyscale/client/openapi_client/models/decorated_job_submission.py +1 -29
  16. anyscale/client/openapi_client/models/decorated_production_job.py +1 -29
  17. anyscale/client/openapi_client/models/decorated_session.py +1 -57
  18. anyscale/client/openapi_client/models/decorated_unified_job.py +1 -30
  19. anyscale/client/openapi_client/models/ha_jobs_sort_field.py +1 -2
  20. anyscale/client/openapi_client/models/internal_production_job.py +1 -29
  21. anyscale/client/openapi_client/models/jobs_sort_field.py +1 -2
  22. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +123 -0
  23. anyscale/client/openapi_client/models/serve_deployment_state.py +2 -1
  24. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +121 -0
  25. anyscale/client/openapi_client/models/sessions_sort_field.py +1 -2
  26. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +43 -1
  27. anyscale/client/openapi_client/models/unified_job_sort_field.py +1 -2
  28. anyscale/commands/cloud_commands.py +25 -8
  29. anyscale/commands/service_account_commands.py +65 -8
  30. anyscale/controllers/cloud_controller.py +29 -21
  31. anyscale/controllers/cluster_controller.py +1 -9
  32. anyscale/controllers/job_controller.py +0 -3
  33. anyscale/resource_quota/_private/resource_quota_sdk.py +15 -6
  34. anyscale/sdk/anyscale_client/api/default_api.py +119 -0
  35. anyscale/sdk/anyscale_client/models/baseimagesenum.py +43 -1
  36. anyscale/sdk/anyscale_client/models/jobs_sort_field.py +1 -2
  37. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +43 -1
  38. anyscale/service_account/__init__.py +88 -0
  39. anyscale/service_account/_private/service_account_sdk.py +101 -0
  40. anyscale/service_account/commands.py +147 -0
  41. anyscale/service_account/models.py +66 -0
  42. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  43. anyscale/shared_anyscale_utils/utils/id_gen.py +1 -0
  44. anyscale/util.py +8 -0
  45. anyscale/version.py +1 -1
  46. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/METADATA +1 -1
  47. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/RECORD +52 -47
  48. anyscale/controllers/service_account_controller.py +0 -168
  49. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/LICENSE +0 -0
  50. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/NOTICE +0 -0
  51. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/WHEEL +0 -0
  52. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/entry_points.txt +0 -0
  53. {anyscale-0.25.0.dist-info → anyscale-0.25.2.dist-info}/top_level.txt +0 -0
@@ -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
@@ -34,9 +34,8 @@ class HaJobsSortField(object):
34
34
  ENDED_AT = "ENDED_AT"
35
35
  NAME = "NAME"
36
36
  ID = "ID"
37
- COST = "COST"
38
37
 
39
- allowable_values = [STATUS, CREATED_AT, LAST_UPDATED_AT, ENDED_AT, NAME, ID, COST] # noqa: E501
38
+ allowable_values = [STATUS, CREATED_AT, LAST_UPDATED_AT, ENDED_AT, NAME, ID] # noqa: E501
40
39
 
41
40
  """
42
41
  Attributes:
@@ -46,7 +46,6 @@ class InternalProductionJob(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',
@@ -69,7 +68,6 @@ class InternalProductionJob(object):
69
68
  'schedule_id': 'schedule_id',
70
69
  'job_queue_id': 'job_queue_id',
71
70
  'is_service': 'is_service',
72
- 'cost_dollars': 'cost_dollars',
73
71
  'url': 'url',
74
72
  'token': 'token',
75
73
  'access': 'access',
@@ -78,7 +76,7 @@ class InternalProductionJob(object):
78
76
  'cloud_id': 'cloud_id'
79
77
  }
80
78
 
81
- 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, local_vars_configuration=None): # noqa: E501
79
+ 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, local_vars_configuration=None): # noqa: E501
82
80
  """InternalProductionJob - a model defined in OpenAPI""" # noqa: E501
83
81
  if local_vars_configuration is None:
84
82
  local_vars_configuration = Configuration()
@@ -97,7 +95,6 @@ class InternalProductionJob(object):
97
95
  self._schedule_id = None
98
96
  self._job_queue_id = None
99
97
  self._is_service = None
100
- self._cost_dollars = None
101
98
  self._url = None
102
99
  self._token = None
103
100
  self._access = None
@@ -124,8 +121,6 @@ class InternalProductionJob(object):
124
121
  if job_queue_id is not None:
125
122
  self.job_queue_id = job_queue_id
126
123
  self.is_service = is_service
127
- if cost_dollars is not None:
128
- self.cost_dollars = cost_dollars
129
124
  if url is not None:
130
125
  self.url = url
131
126
  if token is not None:
@@ -453,29 +448,6 @@ class InternalProductionJob(object):
453
448
 
454
449
  self._is_service = is_service
455
450
 
456
- @property
457
- def cost_dollars(self):
458
- """Gets the cost_dollars of this InternalProductionJob. # noqa: E501
459
-
460
- The total cost, in dollars, of the ha job. This is the sum of all job runs # noqa: E501
461
-
462
- :return: The cost_dollars of this InternalProductionJob. # noqa: E501
463
- :rtype: float
464
- """
465
- return self._cost_dollars
466
-
467
- @cost_dollars.setter
468
- def cost_dollars(self, cost_dollars):
469
- """Sets the cost_dollars of this InternalProductionJob.
470
-
471
- The total cost, in dollars, of the ha job. This is the sum of all job runs # noqa: E501
472
-
473
- :param cost_dollars: The cost_dollars of this InternalProductionJob. # noqa: E501
474
- :type: float
475
- """
476
-
477
- self._cost_dollars = cost_dollars
478
-
479
451
  @property
480
452
  def url(self):
481
453
  """Gets the url of this InternalProductionJob. # noqa: E501
@@ -33,9 +33,8 @@ class JobsSortField(object):
33
33
  FINISHED_AT = "FINISHED_AT"
34
34
  NAME = "NAME"
35
35
  ID = "ID"
36
- COST = "COST"
37
36
 
38
- allowable_values = [STATUS, CREATED_AT, FINISHED_AT, NAME, ID, COST] # noqa: E501
37
+ allowable_values = [STATUS, CREATED_AT, FINISHED_AT, NAME, ID] # noqa: E501
39
38
 
40
39
  """
41
40
  Attributes:
@@ -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 ServeDeploymentFastApiDocsStatus(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
+ 'status': 'int'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'status': 'status'
41
+ }
42
+
43
+ def __init__(self, status=None, local_vars_configuration=None): # noqa: E501
44
+ """ServeDeploymentFastApiDocsStatus - 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._status = None
50
+ self.discriminator = None
51
+
52
+ self.status = status
53
+
54
+ @property
55
+ def status(self):
56
+ """Gets the status of this ServeDeploymentFastApiDocsStatus. # noqa: E501
57
+
58
+ Status of the fast api docs endpoint # noqa: E501
59
+
60
+ :return: The status of this ServeDeploymentFastApiDocsStatus. # noqa: E501
61
+ :rtype: int
62
+ """
63
+ return self._status
64
+
65
+ @status.setter
66
+ def status(self, status):
67
+ """Sets the status of this ServeDeploymentFastApiDocsStatus.
68
+
69
+ Status of the fast api docs endpoint # noqa: E501
70
+
71
+ :param status: The status of this ServeDeploymentFastApiDocsStatus. # noqa: E501
72
+ :type: int
73
+ """
74
+ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
75
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
76
+
77
+ self._status = status
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, ServeDeploymentFastApiDocsStatus):
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, ServeDeploymentFastApiDocsStatus):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()
@@ -30,12 +30,13 @@ class ServeDeploymentState(object):
30
30
  """
31
31
  HEALTHY = "HEALTHY"
32
32
  UNHEALTHY = "UNHEALTHY"
33
+ DEPLOY_FAILED = "DEPLOY_FAILED"
33
34
  UPDATING = "UPDATING"
34
35
  TERMINATED = "TERMINATED"
35
36
  UPSCALING = "UPSCALING"
36
37
  DOWNSCALING = "DOWNSCALING"
37
38
 
38
- allowable_values = [HEALTHY, UNHEALTHY, UPDATING, TERMINATED, UPSCALING, DOWNSCALING] # noqa: E501
39
+ allowable_values = [HEALTHY, UNHEALTHY, DEPLOY_FAILED, UPDATING, TERMINATED, UPSCALING, DOWNSCALING] # noqa: E501
39
40
 
40
41
  """
41
42
  Attributes:
@@ -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 ServedeploymentfastapidocsstatusResponse(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
+ 'result': 'ServeDeploymentFastApiDocsStatus'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """ServedeploymentfastapidocsstatusResponse - 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._result = None
50
+ self.discriminator = None
51
+
52
+ self.result = result
53
+
54
+ @property
55
+ def result(self):
56
+ """Gets the result of this ServedeploymentfastapidocsstatusResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this ServedeploymentfastapidocsstatusResponse. # noqa: E501
60
+ :rtype: ServeDeploymentFastApiDocsStatus
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this ServedeploymentfastapidocsstatusResponse.
67
+
68
+
69
+ :param result: The result of this ServedeploymentfastapidocsstatusResponse. # noqa: E501
70
+ :type: ServeDeploymentFastApiDocsStatus
71
+ """
72
+ if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
+ raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
74
+
75
+ self._result = result
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, ServedeploymentfastapidocsstatusResponse):
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, ServedeploymentfastapidocsstatusResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()
@@ -31,11 +31,10 @@ class SessionsSortField(object):
31
31
  STATUS = "STATUS"
32
32
  CREATED_AT = "CREATED_AT"
33
33
  LAST_UPDATED_AT = "LAST_UPDATED_AT"
34
- COST = "COST"
35
34
  NAME = "NAME"
36
35
  ID = "ID"
37
36
 
38
- allowable_values = [STATUS, CREATED_AT, LAST_UPDATED_AT, COST, NAME, ID] # noqa: E501
37
+ allowable_values = [STATUS, CREATED_AT, LAST_UPDATED_AT, NAME, ID] # noqa: E501
39
38
 
40
39
  """
41
40
  Attributes: