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
@@ -33,123 +33,149 @@ class OrganizationMarketingQuestions(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'size': 'CompanySize',
37
36
  'workload': 'str',
38
- 'tech_stack': 'str',
39
- 'source': 'str'
37
+ 'modalities': 'str',
38
+ 'model_types': 'str',
39
+ 'similar_tools': 'str',
40
+ 'cluster_size': 'ClusterSize'
40
41
  }
41
42
 
42
43
  attribute_map = {
43
- 'size': 'size',
44
44
  'workload': 'workload',
45
- 'tech_stack': 'tech_stack',
46
- 'source': 'source'
45
+ 'modalities': 'modalities',
46
+ 'model_types': 'model_types',
47
+ 'similar_tools': 'similar_tools',
48
+ 'cluster_size': 'cluster_size'
47
49
  }
48
50
 
49
- def __init__(self, size=None, workload=None, tech_stack=None, source=None, local_vars_configuration=None): # noqa: E501
51
+ def __init__(self, workload=None, modalities=None, model_types=None, similar_tools=None, cluster_size=None, local_vars_configuration=None): # noqa: E501
50
52
  """OrganizationMarketingQuestions - a model defined in OpenAPI""" # noqa: E501
51
53
  if local_vars_configuration is None:
52
54
  local_vars_configuration = Configuration()
53
55
  self.local_vars_configuration = local_vars_configuration
54
56
 
55
- self._size = None
56
57
  self._workload = None
57
- self._tech_stack = None
58
- self._source = None
58
+ self._modalities = None
59
+ self._model_types = None
60
+ self._similar_tools = None
61
+ self._cluster_size = None
59
62
  self.discriminator = None
60
63
 
61
- if size is not None:
62
- self.size = size
63
64
  if workload is not None:
64
65
  self.workload = workload
65
- if tech_stack is not None:
66
- self.tech_stack = tech_stack
67
- if source is not None:
68
- self.source = source
66
+ if modalities is not None:
67
+ self.modalities = modalities
68
+ if model_types is not None:
69
+ self.model_types = model_types
70
+ if similar_tools is not None:
71
+ self.similar_tools = similar_tools
72
+ if cluster_size is not None:
73
+ self.cluster_size = cluster_size
69
74
 
70
75
  @property
71
- def size(self):
72
- """Gets the size of this OrganizationMarketingQuestions. # noqa: E501
76
+ def workload(self):
77
+ """Gets the workload of this OrganizationMarketingQuestions. # noqa: E501
73
78
 
74
79
 
75
- :return: The size of this OrganizationMarketingQuestions. # noqa: E501
76
- :rtype: CompanySize
80
+ :return: The workload of this OrganizationMarketingQuestions. # noqa: E501
81
+ :rtype: str
77
82
  """
78
- return self._size
83
+ return self._workload
79
84
 
80
- @size.setter
81
- def size(self, size):
82
- """Sets the size of this OrganizationMarketingQuestions.
85
+ @workload.setter
86
+ def workload(self, workload):
87
+ """Sets the workload of this OrganizationMarketingQuestions.
83
88
 
84
89
 
85
- :param size: The size of this OrganizationMarketingQuestions. # noqa: E501
86
- :type: CompanySize
90
+ :param workload: The workload of this OrganizationMarketingQuestions. # noqa: E501
91
+ :type: str
87
92
  """
88
93
 
89
- self._size = size
94
+ self._workload = workload
90
95
 
91
96
  @property
92
- def workload(self):
93
- """Gets the workload of this OrganizationMarketingQuestions. # noqa: E501
97
+ def modalities(self):
98
+ """Gets the modalities of this OrganizationMarketingQuestions. # noqa: E501
94
99
 
95
100
 
96
- :return: The workload of this OrganizationMarketingQuestions. # noqa: E501
101
+ :return: The modalities of this OrganizationMarketingQuestions. # noqa: E501
97
102
  :rtype: str
98
103
  """
99
- return self._workload
104
+ return self._modalities
100
105
 
101
- @workload.setter
102
- def workload(self, workload):
103
- """Sets the workload of this OrganizationMarketingQuestions.
106
+ @modalities.setter
107
+ def modalities(self, modalities):
108
+ """Sets the modalities of this OrganizationMarketingQuestions.
104
109
 
105
110
 
106
- :param workload: The workload of this OrganizationMarketingQuestions. # noqa: E501
111
+ :param modalities: The modalities of this OrganizationMarketingQuestions. # noqa: E501
107
112
  :type: str
108
113
  """
109
114
 
110
- self._workload = workload
115
+ self._modalities = modalities
111
116
 
112
117
  @property
113
- def tech_stack(self):
114
- """Gets the tech_stack of this OrganizationMarketingQuestions. # noqa: E501
118
+ def model_types(self):
119
+ """Gets the model_types of this OrganizationMarketingQuestions. # noqa: E501
115
120
 
116
121
 
117
- :return: The tech_stack of this OrganizationMarketingQuestions. # noqa: E501
122
+ :return: The model_types of this OrganizationMarketingQuestions. # noqa: E501
118
123
  :rtype: str
119
124
  """
120
- return self._tech_stack
125
+ return self._model_types
121
126
 
122
- @tech_stack.setter
123
- def tech_stack(self, tech_stack):
124
- """Sets the tech_stack of this OrganizationMarketingQuestions.
127
+ @model_types.setter
128
+ def model_types(self, model_types):
129
+ """Sets the model_types of this OrganizationMarketingQuestions.
125
130
 
126
131
 
127
- :param tech_stack: The tech_stack of this OrganizationMarketingQuestions. # noqa: E501
132
+ :param model_types: The model_types of this OrganizationMarketingQuestions. # noqa: E501
128
133
  :type: str
129
134
  """
130
135
 
131
- self._tech_stack = tech_stack
136
+ self._model_types = model_types
132
137
 
133
138
  @property
134
- def source(self):
135
- """Gets the source of this OrganizationMarketingQuestions. # noqa: E501
139
+ def similar_tools(self):
140
+ """Gets the similar_tools of this OrganizationMarketingQuestions. # noqa: E501
136
141
 
137
142
 
138
- :return: The source of this OrganizationMarketingQuestions. # noqa: E501
143
+ :return: The similar_tools of this OrganizationMarketingQuestions. # noqa: E501
139
144
  :rtype: str
140
145
  """
141
- return self._source
146
+ return self._similar_tools
142
147
 
143
- @source.setter
144
- def source(self, source):
145
- """Sets the source of this OrganizationMarketingQuestions.
148
+ @similar_tools.setter
149
+ def similar_tools(self, similar_tools):
150
+ """Sets the similar_tools of this OrganizationMarketingQuestions.
146
151
 
147
152
 
148
- :param source: The source of this OrganizationMarketingQuestions. # noqa: E501
153
+ :param similar_tools: The similar_tools of this OrganizationMarketingQuestions. # noqa: E501
149
154
  :type: str
150
155
  """
151
156
 
152
- self._source = source
157
+ self._similar_tools = similar_tools
158
+
159
+ @property
160
+ def cluster_size(self):
161
+ """Gets the cluster_size of this OrganizationMarketingQuestions. # noqa: E501
162
+
163
+
164
+ :return: The cluster_size of this OrganizationMarketingQuestions. # noqa: E501
165
+ :rtype: ClusterSize
166
+ """
167
+ return self._cluster_size
168
+
169
+ @cluster_size.setter
170
+ def cluster_size(self, cluster_size):
171
+ """Sets the cluster_size of this OrganizationMarketingQuestions.
172
+
173
+
174
+ :param cluster_size: The cluster_size of this OrganizationMarketingQuestions. # noqa: E501
175
+ :type: ClusterSize
176
+ """
177
+
178
+ self._cluster_size = cluster_size
153
179
 
154
180
  def to_dict(self):
155
181
  """Returns the model properties as a dict"""
@@ -0,0 +1,210 @@
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 RequestStateInfo(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
+ 'size': 'int',
37
+ 'machine_type': 'str',
38
+ 'workload_info': 'WorkloadInfo',
39
+ 'partition_scores': 'dict(str, int)'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'size': 'size',
44
+ 'machine_type': 'machine_type',
45
+ 'workload_info': 'workload_info',
46
+ 'partition_scores': 'partition_scores'
47
+ }
48
+
49
+ def __init__(self, size=None, machine_type=None, workload_info=None, partition_scores=None, local_vars_configuration=None): # noqa: E501
50
+ """RequestStateInfo - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._size = None
56
+ self._machine_type = None
57
+ self._workload_info = None
58
+ self._partition_scores = None
59
+ self.discriminator = None
60
+
61
+ self.size = size
62
+ self.machine_type = machine_type
63
+ self.workload_info = workload_info
64
+ self.partition_scores = partition_scores
65
+
66
+ @property
67
+ def size(self):
68
+ """Gets the size of this RequestStateInfo. # noqa: E501
69
+
70
+ The size of the request. # noqa: E501
71
+
72
+ :return: The size of this RequestStateInfo. # noqa: E501
73
+ :rtype: int
74
+ """
75
+ return self._size
76
+
77
+ @size.setter
78
+ def size(self, size):
79
+ """Sets the size of this RequestStateInfo.
80
+
81
+ The size of the request. # noqa: E501
82
+
83
+ :param size: The size of this RequestStateInfo. # noqa: E501
84
+ :type: int
85
+ """
86
+ if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501
87
+ raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
88
+
89
+ self._size = size
90
+
91
+ @property
92
+ def machine_type(self):
93
+ """Gets the machine_type of this RequestStateInfo. # noqa: E501
94
+
95
+ The type of the machine. # noqa: E501
96
+
97
+ :return: The machine_type of this RequestStateInfo. # noqa: E501
98
+ :rtype: str
99
+ """
100
+ return self._machine_type
101
+
102
+ @machine_type.setter
103
+ def machine_type(self, machine_type):
104
+ """Sets the machine_type of this RequestStateInfo.
105
+
106
+ The type of the machine. # noqa: E501
107
+
108
+ :param machine_type: The machine_type of this RequestStateInfo. # noqa: E501
109
+ :type: str
110
+ """
111
+ if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
112
+ raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
113
+
114
+ self._machine_type = machine_type
115
+
116
+ @property
117
+ def workload_info(self):
118
+ """Gets the workload_info of this RequestStateInfo. # noqa: E501
119
+
120
+ Workload metadata associated with this request. # noqa: E501
121
+
122
+ :return: The workload_info of this RequestStateInfo. # noqa: E501
123
+ :rtype: WorkloadInfo
124
+ """
125
+ return self._workload_info
126
+
127
+ @workload_info.setter
128
+ def workload_info(self, workload_info):
129
+ """Sets the workload_info of this RequestStateInfo.
130
+
131
+ Workload metadata associated with this request. # noqa: E501
132
+
133
+ :param workload_info: The workload_info of this RequestStateInfo. # noqa: E501
134
+ :type: WorkloadInfo
135
+ """
136
+ if self.local_vars_configuration.client_side_validation and workload_info is None: # noqa: E501
137
+ raise ValueError("Invalid value for `workload_info`, must not be `None`") # noqa: E501
138
+
139
+ self._workload_info = workload_info
140
+
141
+ @property
142
+ def partition_scores(self):
143
+ """Gets the partition_scores of this RequestStateInfo. # noqa: E501
144
+
145
+ The scores of the partitions. # noqa: E501
146
+
147
+ :return: The partition_scores of this RequestStateInfo. # noqa: E501
148
+ :rtype: dict(str, int)
149
+ """
150
+ return self._partition_scores
151
+
152
+ @partition_scores.setter
153
+ def partition_scores(self, partition_scores):
154
+ """Sets the partition_scores of this RequestStateInfo.
155
+
156
+ The scores of the partitions. # noqa: E501
157
+
158
+ :param partition_scores: The partition_scores of this RequestStateInfo. # noqa: E501
159
+ :type: dict(str, int)
160
+ """
161
+ if self.local_vars_configuration.client_side_validation and partition_scores is None: # noqa: E501
162
+ raise ValueError("Invalid value for `partition_scores`, must not be `None`") # noqa: E501
163
+
164
+ self._partition_scores = partition_scores
165
+
166
+ def to_dict(self):
167
+ """Returns the model properties as a dict"""
168
+ result = {}
169
+
170
+ for attr, _ in six.iteritems(self.openapi_types):
171
+ value = getattr(self, attr)
172
+ if isinstance(value, list):
173
+ result[attr] = list(map(
174
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
175
+ value
176
+ ))
177
+ elif hasattr(value, "to_dict"):
178
+ result[attr] = value.to_dict()
179
+ elif isinstance(value, dict):
180
+ result[attr] = dict(map(
181
+ lambda item: (item[0], item[1].to_dict())
182
+ if hasattr(item[1], "to_dict") else item,
183
+ value.items()
184
+ ))
185
+ else:
186
+ result[attr] = value
187
+
188
+ return result
189
+
190
+ def to_str(self):
191
+ """Returns the string representation of the model"""
192
+ return pprint.pformat(self.to_dict())
193
+
194
+ def __repr__(self):
195
+ """For `print` and `pprint`"""
196
+ return self.to_str()
197
+
198
+ def __eq__(self, other):
199
+ """Returns true if both objects are equal"""
200
+ if not isinstance(other, RequestStateInfo):
201
+ return False
202
+
203
+ return self.to_dict() == other.to_dict()
204
+
205
+ def __ne__(self, other):
206
+ """Returns true if both objects are not equal"""
207
+ if not isinstance(other, RequestStateInfo):
208
+ return True
209
+
210
+ 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 PlatformfinetuningjobListResponse(object):
21
+ class SchedulerInfo(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,72 +33,77 @@ class PlatformfinetuningjobListResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'results': 'list[PlatformFineTuningJob]',
37
- 'metadata': 'ListResponseMetadata'
36
+ 'requests': 'list[RequestStateInfo]',
37
+ 'machines': 'list[MachineStateInfo]'
38
38
  }
39
39
 
40
40
  attribute_map = {
41
- 'results': 'results',
42
- 'metadata': 'metadata'
41
+ 'requests': 'requests',
42
+ 'machines': 'machines'
43
43
  }
44
44
 
45
- def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """PlatformfinetuningjobListResponse - a model defined in OpenAPI""" # noqa: E501
45
+ def __init__(self, requests=None, machines=None, local_vars_configuration=None): # noqa: E501
46
+ """SchedulerInfo - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
50
50
 
51
- self._results = None
52
- self._metadata = None
51
+ self._requests = None
52
+ self._machines = None
53
53
  self.discriminator = None
54
54
 
55
- self.results = results
56
- if metadata is not None:
57
- self.metadata = metadata
55
+ self.requests = requests
56
+ self.machines = machines
58
57
 
59
58
  @property
60
- def results(self):
61
- """Gets the results of this PlatformfinetuningjobListResponse. # noqa: E501
59
+ def requests(self):
60
+ """Gets the requests of this SchedulerInfo. # noqa: E501
62
61
 
62
+ Current request states. # noqa: E501
63
63
 
64
- :return: The results of this PlatformfinetuningjobListResponse. # noqa: E501
65
- :rtype: list[PlatformFineTuningJob]
64
+ :return: The requests of this SchedulerInfo. # noqa: E501
65
+ :rtype: list[RequestStateInfo]
66
66
  """
67
- return self._results
67
+ return self._requests
68
68
 
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this PlatformfinetuningjobListResponse.
69
+ @requests.setter
70
+ def requests(self, requests):
71
+ """Sets the requests of this SchedulerInfo.
72
72
 
73
+ Current request states. # noqa: E501
73
74
 
74
- :param results: The results of this PlatformfinetuningjobListResponse. # noqa: E501
75
- :type: list[PlatformFineTuningJob]
75
+ :param requests: The requests of this SchedulerInfo. # noqa: E501
76
+ :type: list[RequestStateInfo]
76
77
  """
77
- if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
- raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
78
+ if self.local_vars_configuration.client_side_validation and requests is None: # noqa: E501
79
+ raise ValueError("Invalid value for `requests`, must not be `None`") # noqa: E501
79
80
 
80
- self._results = results
81
+ self._requests = requests
81
82
 
82
83
  @property
83
- def metadata(self):
84
- """Gets the metadata of this PlatformfinetuningjobListResponse. # noqa: E501
84
+ def machines(self):
85
+ """Gets the machines of this SchedulerInfo. # noqa: E501
85
86
 
87
+ Current machine states. # noqa: E501
86
88
 
87
- :return: The metadata of this PlatformfinetuningjobListResponse. # noqa: E501
88
- :rtype: ListResponseMetadata
89
+ :return: The machines of this SchedulerInfo. # noqa: E501
90
+ :rtype: list[MachineStateInfo]
89
91
  """
90
- return self._metadata
92
+ return self._machines
91
93
 
92
- @metadata.setter
93
- def metadata(self, metadata):
94
- """Sets the metadata of this PlatformfinetuningjobListResponse.
94
+ @machines.setter
95
+ def machines(self, machines):
96
+ """Sets the machines of this SchedulerInfo.
95
97
 
98
+ Current machine states. # noqa: E501
96
99
 
97
- :param metadata: The metadata of this PlatformfinetuningjobListResponse. # noqa: E501
98
- :type: ListResponseMetadata
100
+ :param machines: The machines of this SchedulerInfo. # noqa: E501
101
+ :type: list[MachineStateInfo]
99
102
  """
103
+ if self.local_vars_configuration.client_side_validation and machines is None: # noqa: E501
104
+ raise ValueError("Invalid value for `machines`, must not be `None`") # noqa: E501
100
105
 
101
- self._metadata = metadata
106
+ self._machines = machines
102
107
 
103
108
  def to_dict(self):
104
109
  """Returns the model properties as a dict"""
@@ -134,14 +139,14 @@ class PlatformfinetuningjobListResponse(object):
134
139
 
135
140
  def __eq__(self, other):
136
141
  """Returns true if both objects are equal"""
137
- if not isinstance(other, PlatformfinetuningjobListResponse):
142
+ if not isinstance(other, SchedulerInfo):
138
143
  return False
139
144
 
140
145
  return self.to_dict() == other.to_dict()
141
146
 
142
147
  def __ne__(self, other):
143
148
  """Returns true if both objects are not equal"""
144
- if not isinstance(other, PlatformfinetuningjobListResponse):
149
+ if not isinstance(other, SchedulerInfo):
145
150
  return True
146
151
 
147
152
  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 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()