anyscale 0.26.0__py3-none-any.whl → 0.26.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.
- anyscale/_private/anyscale_client/anyscale_client.py +13 -1
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/_private/docgen/models.md +2 -2
- anyscale/client/README.md +21 -10
- anyscale/client/openapi_client/__init__.py +15 -6
- anyscale/client/openapi_client/api/default_api.py +322 -83
- anyscale/client/openapi_client/models/__init__.py +15 -6
- anyscale/client/openapi_client/models/{customer_billing_type.py → actor_status.py} +7 -8
- anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +81 -3
- anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
- anyscale/client/openapi_client/models/create_organization_configuration.py +3 -3
- anyscale/client/openapi_client/models/{create_resource_alert.py → create_resource_notification.py} +40 -40
- anyscale/client/openapi_client/models/job_details.py +173 -0
- anyscale/client/openapi_client/models/{list_resource_alerts_query.py → list_resource_notifications_query.py} +24 -24
- anyscale/client/openapi_client/models/machine_launch_failure.py +152 -0
- anyscale/client/openapi_client/models/organization_configuration.py +3 -3
- anyscale/client/openapi_client/models/organization_configuration_response.py +3 -3
- anyscale/client/openapi_client/models/resource_alert_event_type.py +5 -1
- anyscale/client/openapi_client/models/{resource_alert.py → resource_notification.py} +64 -64
- anyscale/client/openapi_client/models/resourcenotification_list_response.py +147 -0
- anyscale/client/openapi_client/models/{resourcealert_response.py → resourcenotification_response.py} +11 -11
- anyscale/client/openapi_client/models/run_attempt_status.py +103 -0
- anyscale/client/openapi_client/models/run_status.py +106 -0
- anyscale/client/openapi_client/models/scheduler_info.py +32 -3
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
- anyscale/client/openapi_client/models/tool.py +2 -1
- anyscale/client/openapi_client/models/train_resources.py +121 -0
- anyscale/client/openapi_client/models/train_run.py +387 -0
- anyscale/client/openapi_client/models/train_run_attempt.py +308 -0
- anyscale/client/openapi_client/models/train_worker.py +363 -0
- anyscale/client/openapi_client/models/{resourcealert_list_response.py → trainrun_list_response.py} +15 -15
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/commands/machine_pool_commands.py +15 -10
- anyscale/resource_quota/commands.py +1 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +59 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +59 -1
- anyscale/service/_private/service_sdk.py +2 -3
- anyscale/shared_anyscale_utils/constants.py +3 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/METADATA +1 -1
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/RECORD +47 -37
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/LICENSE +0 -0
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/NOTICE +0 -0
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/WHEEL +0 -0
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/top_level.txt +0 -0
@@ -4974,7 +4974,7 @@ class DefaultApi(object):
|
|
4974
4974
|
>>> result = thread.get()
|
4975
4975
|
|
4976
4976
|
:param async_req bool: execute request asynchronously
|
4977
|
-
:param
|
4977
|
+
:param str customer_billing_type: (required)
|
4978
4978
|
:param str invite_code:
|
4979
4979
|
:param datetime expires_at:
|
4980
4980
|
:param str description:
|
@@ -5002,7 +5002,7 @@ class DefaultApi(object):
|
|
5002
5002
|
>>> result = thread.get()
|
5003
5003
|
|
5004
5004
|
:param async_req bool: execute request asynchronously
|
5005
|
-
:param
|
5005
|
+
:param str customer_billing_type: (required)
|
5006
5006
|
:param str invite_code:
|
5007
5007
|
:param datetime expires_at:
|
5008
5008
|
:param str description:
|
@@ -6960,16 +6960,16 @@ class DefaultApi(object):
|
|
6960
6960
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6961
6961
|
collection_formats=collection_formats)
|
6962
6962
|
|
6963
|
-
def
|
6964
|
-
"""Create Resource
|
6963
|
+
def create_resource_notification_api_v2_resource_notifications_post(self, create_resource_notification, **kwargs): # noqa: E501
|
6964
|
+
"""Create Resource Notification # noqa: E501
|
6965
6965
|
|
6966
6966
|
This method makes a synchronous HTTP request by default. To make an
|
6967
6967
|
asynchronous HTTP request, please pass async_req=True
|
6968
|
-
>>> thread = api.
|
6968
|
+
>>> thread = api.create_resource_notification_api_v2_resource_notifications_post(create_resource_notification, async_req=True)
|
6969
6969
|
>>> result = thread.get()
|
6970
6970
|
|
6971
6971
|
:param async_req bool: execute request asynchronously
|
6972
|
-
:param
|
6972
|
+
:param CreateResourceNotification create_resource_notification: (required)
|
6973
6973
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6974
6974
|
be returned without reading/decoding response
|
6975
6975
|
data. Default is True.
|
@@ -6977,23 +6977,23 @@ class DefaultApi(object):
|
|
6977
6977
|
number provided, it will be total request
|
6978
6978
|
timeout. It can also be a pair (tuple) of
|
6979
6979
|
(connection, read) timeouts.
|
6980
|
-
:return:
|
6980
|
+
:return: ResourcenotificationResponse
|
6981
6981
|
If the method is called asynchronously,
|
6982
6982
|
returns the request thread.
|
6983
6983
|
"""
|
6984
6984
|
kwargs['_return_http_data_only'] = True
|
6985
|
-
return self.
|
6985
|
+
return self.create_resource_notification_api_v2_resource_notifications_post_with_http_info(create_resource_notification, **kwargs) # noqa: E501
|
6986
6986
|
|
6987
|
-
def
|
6988
|
-
"""Create Resource
|
6987
|
+
def create_resource_notification_api_v2_resource_notifications_post_with_http_info(self, create_resource_notification, **kwargs): # noqa: E501
|
6988
|
+
"""Create Resource Notification # noqa: E501
|
6989
6989
|
|
6990
6990
|
This method makes a synchronous HTTP request by default. To make an
|
6991
6991
|
asynchronous HTTP request, please pass async_req=True
|
6992
|
-
>>> thread = api.
|
6992
|
+
>>> thread = api.create_resource_notification_api_v2_resource_notifications_post_with_http_info(create_resource_notification, async_req=True)
|
6993
6993
|
>>> result = thread.get()
|
6994
6994
|
|
6995
6995
|
:param async_req bool: execute request asynchronously
|
6996
|
-
:param
|
6996
|
+
:param CreateResourceNotification create_resource_notification: (required)
|
6997
6997
|
:param _return_http_data_only: response data without head status code
|
6998
6998
|
and headers
|
6999
6999
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -7003,7 +7003,7 @@ class DefaultApi(object):
|
|
7003
7003
|
number provided, it will be total request
|
7004
7004
|
timeout. It can also be a pair (tuple) of
|
7005
7005
|
(connection, read) timeouts.
|
7006
|
-
:return: tuple(
|
7006
|
+
:return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
|
7007
7007
|
If the method is called asynchronously,
|
7008
7008
|
returns the request thread.
|
7009
7009
|
"""
|
@@ -7011,7 +7011,7 @@ class DefaultApi(object):
|
|
7011
7011
|
local_var_params = locals()
|
7012
7012
|
|
7013
7013
|
all_params = [
|
7014
|
-
'
|
7014
|
+
'create_resource_notification'
|
7015
7015
|
]
|
7016
7016
|
all_params.extend(
|
7017
7017
|
[
|
@@ -7026,14 +7026,14 @@ class DefaultApi(object):
|
|
7026
7026
|
if key not in all_params:
|
7027
7027
|
raise ApiTypeError(
|
7028
7028
|
"Got an unexpected keyword argument '%s'"
|
7029
|
-
" to method
|
7029
|
+
" to method create_resource_notification_api_v2_resource_notifications_post" % key
|
7030
7030
|
)
|
7031
7031
|
local_var_params[key] = val
|
7032
7032
|
del local_var_params['kwargs']
|
7033
|
-
# verify the required parameter '
|
7034
|
-
if self.api_client.client_side_validation and ('
|
7035
|
-
local_var_params['
|
7036
|
-
raise ApiValueError("Missing the required parameter `
|
7033
|
+
# verify the required parameter 'create_resource_notification' is set
|
7034
|
+
if self.api_client.client_side_validation and ('create_resource_notification' not in local_var_params or # noqa: E501
|
7035
|
+
local_var_params['create_resource_notification'] is None): # noqa: E501
|
7036
|
+
raise ApiValueError("Missing the required parameter `create_resource_notification` when calling `create_resource_notification_api_v2_resource_notifications_post`") # noqa: E501
|
7037
7037
|
|
7038
7038
|
collection_formats = {}
|
7039
7039
|
|
@@ -7047,8 +7047,8 @@ class DefaultApi(object):
|
|
7047
7047
|
local_var_files = {}
|
7048
7048
|
|
7049
7049
|
body_params = None
|
7050
|
-
if '
|
7051
|
-
body_params = local_var_params['
|
7050
|
+
if 'create_resource_notification' in local_var_params:
|
7051
|
+
body_params = local_var_params['create_resource_notification']
|
7052
7052
|
# HTTP header `Accept`
|
7053
7053
|
header_params['Accept'] = self.api_client.select_header_accept(
|
7054
7054
|
['application/json']) # noqa: E501
|
@@ -7061,14 +7061,14 @@ class DefaultApi(object):
|
|
7061
7061
|
auth_settings = [] # noqa: E501
|
7062
7062
|
|
7063
7063
|
return self.api_client.call_api(
|
7064
|
-
'/api/v2/
|
7064
|
+
'/api/v2/resource_notifications/', 'POST',
|
7065
7065
|
path_params,
|
7066
7066
|
query_params,
|
7067
7067
|
header_params,
|
7068
7068
|
body=body_params,
|
7069
7069
|
post_params=form_params,
|
7070
7070
|
files=local_var_files,
|
7071
|
-
response_type='
|
7071
|
+
response_type='ResourcenotificationResponse', # noqa: E501
|
7072
7072
|
auth_settings=auth_settings,
|
7073
7073
|
async_req=local_var_params.get('async_req'),
|
7074
7074
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -9175,16 +9175,16 @@ class DefaultApi(object):
|
|
9175
9175
|
_request_timeout=local_var_params.get('_request_timeout'),
|
9176
9176
|
collection_formats=collection_formats)
|
9177
9177
|
|
9178
|
-
def
|
9179
|
-
"""Delete Resource
|
9178
|
+
def delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete(self, resource_notification_id, **kwargs): # noqa: E501
|
9179
|
+
"""Delete Resource Notification # noqa: E501
|
9180
9180
|
|
9181
9181
|
This method makes a synchronous HTTP request by default. To make an
|
9182
9182
|
asynchronous HTTP request, please pass async_req=True
|
9183
|
-
>>> thread = api.
|
9183
|
+
>>> thread = api.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete(resource_notification_id, async_req=True)
|
9184
9184
|
>>> result = thread.get()
|
9185
9185
|
|
9186
9186
|
:param async_req bool: execute request asynchronously
|
9187
|
-
:param str
|
9187
|
+
:param str resource_notification_id: (required)
|
9188
9188
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
9189
9189
|
be returned without reading/decoding response
|
9190
9190
|
data. Default is True.
|
@@ -9197,18 +9197,18 @@ class DefaultApi(object):
|
|
9197
9197
|
returns the request thread.
|
9198
9198
|
"""
|
9199
9199
|
kwargs['_return_http_data_only'] = True
|
9200
|
-
return self.
|
9200
|
+
return self.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(resource_notification_id, **kwargs) # noqa: E501
|
9201
9201
|
|
9202
|
-
def
|
9203
|
-
"""Delete Resource
|
9202
|
+
def delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
|
9203
|
+
"""Delete Resource Notification # noqa: E501
|
9204
9204
|
|
9205
9205
|
This method makes a synchronous HTTP request by default. To make an
|
9206
9206
|
asynchronous HTTP request, please pass async_req=True
|
9207
|
-
>>> thread = api.
|
9207
|
+
>>> thread = api.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(resource_notification_id, async_req=True)
|
9208
9208
|
>>> result = thread.get()
|
9209
9209
|
|
9210
9210
|
:param async_req bool: execute request asynchronously
|
9211
|
-
:param str
|
9211
|
+
:param str resource_notification_id: (required)
|
9212
9212
|
:param _return_http_data_only: response data without head status code
|
9213
9213
|
and headers
|
9214
9214
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -9226,7 +9226,7 @@ class DefaultApi(object):
|
|
9226
9226
|
local_var_params = locals()
|
9227
9227
|
|
9228
9228
|
all_params = [
|
9229
|
-
'
|
9229
|
+
'resource_notification_id'
|
9230
9230
|
]
|
9231
9231
|
all_params.extend(
|
9232
9232
|
[
|
@@ -9241,20 +9241,20 @@ class DefaultApi(object):
|
|
9241
9241
|
if key not in all_params:
|
9242
9242
|
raise ApiTypeError(
|
9243
9243
|
"Got an unexpected keyword argument '%s'"
|
9244
|
-
" to method
|
9244
|
+
" to method delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete" % key
|
9245
9245
|
)
|
9246
9246
|
local_var_params[key] = val
|
9247
9247
|
del local_var_params['kwargs']
|
9248
|
-
# verify the required parameter '
|
9249
|
-
if self.api_client.client_side_validation and ('
|
9250
|
-
local_var_params['
|
9251
|
-
raise ApiValueError("Missing the required parameter `
|
9248
|
+
# verify the required parameter 'resource_notification_id' is set
|
9249
|
+
if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
|
9250
|
+
local_var_params['resource_notification_id'] is None): # noqa: E501
|
9251
|
+
raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete`") # noqa: E501
|
9252
9252
|
|
9253
9253
|
collection_formats = {}
|
9254
9254
|
|
9255
9255
|
path_params = {}
|
9256
|
-
if '
|
9257
|
-
path_params['
|
9256
|
+
if 'resource_notification_id' in local_var_params:
|
9257
|
+
path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
|
9258
9258
|
|
9259
9259
|
query_params = []
|
9260
9260
|
|
@@ -9272,7 +9272,7 @@ class DefaultApi(object):
|
|
9272
9272
|
auth_settings = [] # noqa: E501
|
9273
9273
|
|
9274
9274
|
return self.api_client.call_api(
|
9275
|
-
'/api/v2/
|
9275
|
+
'/api/v2/resource_notifications/{resource_notification_id}', 'DELETE',
|
9276
9276
|
path_params,
|
9277
9277
|
query_params,
|
9278
9278
|
header_params,
|
@@ -22208,16 +22208,16 @@ class DefaultApi(object):
|
|
22208
22208
|
_request_timeout=local_var_params.get('_request_timeout'),
|
22209
22209
|
collection_formats=collection_formats)
|
22210
22210
|
|
22211
|
-
def
|
22212
|
-
"""Get Resource
|
22211
|
+
def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get(self, resource_notification_id, **kwargs): # noqa: E501
|
22212
|
+
"""Get Resource Notification # noqa: E501
|
22213
22213
|
|
22214
22214
|
This method makes a synchronous HTTP request by default. To make an
|
22215
22215
|
asynchronous HTTP request, please pass async_req=True
|
22216
|
-
>>> thread = api.
|
22216
|
+
>>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get(resource_notification_id, async_req=True)
|
22217
22217
|
>>> result = thread.get()
|
22218
22218
|
|
22219
22219
|
:param async_req bool: execute request asynchronously
|
22220
|
-
:param str
|
22220
|
+
:param str resource_notification_id: (required)
|
22221
22221
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
22222
22222
|
be returned without reading/decoding response
|
22223
22223
|
data. Default is True.
|
@@ -22225,23 +22225,23 @@ class DefaultApi(object):
|
|
22225
22225
|
number provided, it will be total request
|
22226
22226
|
timeout. It can also be a pair (tuple) of
|
22227
22227
|
(connection, read) timeouts.
|
22228
|
-
:return:
|
22228
|
+
:return: ResourcenotificationResponse
|
22229
22229
|
If the method is called asynchronously,
|
22230
22230
|
returns the request thread.
|
22231
22231
|
"""
|
22232
22232
|
kwargs['_return_http_data_only'] = True
|
22233
|
-
return self.
|
22233
|
+
return self.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, **kwargs) # noqa: E501
|
22234
22234
|
|
22235
|
-
def
|
22236
|
-
"""Get Resource
|
22235
|
+
def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
|
22236
|
+
"""Get Resource Notification # noqa: E501
|
22237
22237
|
|
22238
22238
|
This method makes a synchronous HTTP request by default. To make an
|
22239
22239
|
asynchronous HTTP request, please pass async_req=True
|
22240
|
-
>>> thread = api.
|
22240
|
+
>>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, async_req=True)
|
22241
22241
|
>>> result = thread.get()
|
22242
22242
|
|
22243
22243
|
:param async_req bool: execute request asynchronously
|
22244
|
-
:param str
|
22244
|
+
:param str resource_notification_id: (required)
|
22245
22245
|
:param _return_http_data_only: response data without head status code
|
22246
22246
|
and headers
|
22247
22247
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -22251,7 +22251,7 @@ class DefaultApi(object):
|
|
22251
22251
|
number provided, it will be total request
|
22252
22252
|
timeout. It can also be a pair (tuple) of
|
22253
22253
|
(connection, read) timeouts.
|
22254
|
-
:return: tuple(
|
22254
|
+
:return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
|
22255
22255
|
If the method is called asynchronously,
|
22256
22256
|
returns the request thread.
|
22257
22257
|
"""
|
@@ -22259,7 +22259,7 @@ class DefaultApi(object):
|
|
22259
22259
|
local_var_params = locals()
|
22260
22260
|
|
22261
22261
|
all_params = [
|
22262
|
-
'
|
22262
|
+
'resource_notification_id'
|
22263
22263
|
]
|
22264
22264
|
all_params.extend(
|
22265
22265
|
[
|
@@ -22274,20 +22274,20 @@ class DefaultApi(object):
|
|
22274
22274
|
if key not in all_params:
|
22275
22275
|
raise ApiTypeError(
|
22276
22276
|
"Got an unexpected keyword argument '%s'"
|
22277
|
-
" to method
|
22277
|
+
" to method get_resource_notification_api_v2_resource_notifications_resource_notification_id_get" % key
|
22278
22278
|
)
|
22279
22279
|
local_var_params[key] = val
|
22280
22280
|
del local_var_params['kwargs']
|
22281
|
-
# verify the required parameter '
|
22282
|
-
if self.api_client.client_side_validation and ('
|
22283
|
-
local_var_params['
|
22284
|
-
raise ApiValueError("Missing the required parameter `
|
22281
|
+
# verify the required parameter 'resource_notification_id' is set
|
22282
|
+
if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
|
22283
|
+
local_var_params['resource_notification_id'] is None): # noqa: E501
|
22284
|
+
raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `get_resource_notification_api_v2_resource_notifications_resource_notification_id_get`") # noqa: E501
|
22285
22285
|
|
22286
22286
|
collection_formats = {}
|
22287
22287
|
|
22288
22288
|
path_params = {}
|
22289
|
-
if '
|
22290
|
-
path_params['
|
22289
|
+
if 'resource_notification_id' in local_var_params:
|
22290
|
+
path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
|
22291
22291
|
|
22292
22292
|
query_params = []
|
22293
22293
|
|
@@ -22305,14 +22305,14 @@ class DefaultApi(object):
|
|
22305
22305
|
auth_settings = [] # noqa: E501
|
22306
22306
|
|
22307
22307
|
return self.api_client.call_api(
|
22308
|
-
'/api/v2/
|
22308
|
+
'/api/v2/resource_notifications/{resource_notification_id}', 'GET',
|
22309
22309
|
path_params,
|
22310
22310
|
query_params,
|
22311
22311
|
header_params,
|
22312
22312
|
body=body_params,
|
22313
22313
|
post_params=form_params,
|
22314
22314
|
files=local_var_files,
|
22315
|
-
response_type='
|
22315
|
+
response_type='ResourcenotificationResponse', # noqa: E501
|
22316
22316
|
auth_settings=auth_settings,
|
22317
22317
|
async_req=local_var_params.get('async_req'),
|
22318
22318
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -25399,6 +25399,118 @@ class DefaultApi(object):
|
|
25399
25399
|
_request_timeout=local_var_params.get('_request_timeout'),
|
25400
25400
|
collection_formats=collection_formats)
|
25401
25401
|
|
25402
|
+
def get_train_runs_api_v2_train_runs_get(self, cluster_id, **kwargs): # noqa: E501
|
25403
|
+
"""Get Train Runs # noqa: E501
|
25404
|
+
|
25405
|
+
This method makes a synchronous HTTP request by default. To make an
|
25406
|
+
asynchronous HTTP request, please pass async_req=True
|
25407
|
+
>>> thread = api.get_train_runs_api_v2_train_runs_get(cluster_id, async_req=True)
|
25408
|
+
>>> result = thread.get()
|
25409
|
+
|
25410
|
+
:param async_req bool: execute request asynchronously
|
25411
|
+
:param str cluster_id: (required)
|
25412
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
25413
|
+
be returned without reading/decoding response
|
25414
|
+
data. Default is True.
|
25415
|
+
:param _request_timeout: timeout setting for this request. If one
|
25416
|
+
number provided, it will be total request
|
25417
|
+
timeout. It can also be a pair (tuple) of
|
25418
|
+
(connection, read) timeouts.
|
25419
|
+
:return: TrainrunListResponse
|
25420
|
+
If the method is called asynchronously,
|
25421
|
+
returns the request thread.
|
25422
|
+
"""
|
25423
|
+
kwargs['_return_http_data_only'] = True
|
25424
|
+
return self.get_train_runs_api_v2_train_runs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
25425
|
+
|
25426
|
+
def get_train_runs_api_v2_train_runs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
25427
|
+
"""Get Train Runs # noqa: E501
|
25428
|
+
|
25429
|
+
This method makes a synchronous HTTP request by default. To make an
|
25430
|
+
asynchronous HTTP request, please pass async_req=True
|
25431
|
+
>>> thread = api.get_train_runs_api_v2_train_runs_get_with_http_info(cluster_id, async_req=True)
|
25432
|
+
>>> result = thread.get()
|
25433
|
+
|
25434
|
+
:param async_req bool: execute request asynchronously
|
25435
|
+
:param str cluster_id: (required)
|
25436
|
+
:param _return_http_data_only: response data without head status code
|
25437
|
+
and headers
|
25438
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
25439
|
+
be returned without reading/decoding response
|
25440
|
+
data. Default is True.
|
25441
|
+
:param _request_timeout: timeout setting for this request. If one
|
25442
|
+
number provided, it will be total request
|
25443
|
+
timeout. It can also be a pair (tuple) of
|
25444
|
+
(connection, read) timeouts.
|
25445
|
+
:return: tuple(TrainrunListResponse, status_code(int), headers(HTTPHeaderDict))
|
25446
|
+
If the method is called asynchronously,
|
25447
|
+
returns the request thread.
|
25448
|
+
"""
|
25449
|
+
|
25450
|
+
local_var_params = locals()
|
25451
|
+
|
25452
|
+
all_params = [
|
25453
|
+
'cluster_id'
|
25454
|
+
]
|
25455
|
+
all_params.extend(
|
25456
|
+
[
|
25457
|
+
'async_req',
|
25458
|
+
'_return_http_data_only',
|
25459
|
+
'_preload_content',
|
25460
|
+
'_request_timeout'
|
25461
|
+
]
|
25462
|
+
)
|
25463
|
+
|
25464
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
25465
|
+
if key not in all_params:
|
25466
|
+
raise ApiTypeError(
|
25467
|
+
"Got an unexpected keyword argument '%s'"
|
25468
|
+
" to method get_train_runs_api_v2_train_runs_get" % key
|
25469
|
+
)
|
25470
|
+
local_var_params[key] = val
|
25471
|
+
del local_var_params['kwargs']
|
25472
|
+
# verify the required parameter 'cluster_id' is set
|
25473
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
25474
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
25475
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_train_runs_api_v2_train_runs_get`") # noqa: E501
|
25476
|
+
|
25477
|
+
collection_formats = {}
|
25478
|
+
|
25479
|
+
path_params = {}
|
25480
|
+
|
25481
|
+
query_params = []
|
25482
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
25483
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
25484
|
+
|
25485
|
+
header_params = {}
|
25486
|
+
|
25487
|
+
form_params = []
|
25488
|
+
local_var_files = {}
|
25489
|
+
|
25490
|
+
body_params = None
|
25491
|
+
# HTTP header `Accept`
|
25492
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
25493
|
+
['application/json']) # noqa: E501
|
25494
|
+
|
25495
|
+
# Authentication setting
|
25496
|
+
auth_settings = [] # noqa: E501
|
25497
|
+
|
25498
|
+
return self.api_client.call_api(
|
25499
|
+
'/api/v2/train_runs/', 'GET',
|
25500
|
+
path_params,
|
25501
|
+
query_params,
|
25502
|
+
header_params,
|
25503
|
+
body=body_params,
|
25504
|
+
post_params=form_params,
|
25505
|
+
files=local_var_files,
|
25506
|
+
response_type='TrainrunListResponse', # noqa: E501
|
25507
|
+
auth_settings=auth_settings,
|
25508
|
+
async_req=local_var_params.get('async_req'),
|
25509
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
25510
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
25511
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
25512
|
+
collection_formats=collection_formats)
|
25513
|
+
|
25402
25514
|
def get_user_info_api_v2_userinfo_get(self, **kwargs): # noqa: E501
|
25403
25515
|
"""Get User Info # noqa: E501
|
25404
25516
|
|
@@ -37011,16 +37123,16 @@ class DefaultApi(object):
|
|
37011
37123
|
_request_timeout=local_var_params.get('_request_timeout'),
|
37012
37124
|
collection_formats=collection_formats)
|
37013
37125
|
|
37014
|
-
def
|
37015
|
-
"""Search Resource
|
37126
|
+
def search_resource_notifications_api_v2_resource_notifications_search_post(self, list_resource_notifications_query, **kwargs): # noqa: E501
|
37127
|
+
"""Search Resource Notifications # noqa: E501
|
37016
37128
|
|
37017
37129
|
This method makes a synchronous HTTP request by default. To make an
|
37018
37130
|
asynchronous HTTP request, please pass async_req=True
|
37019
|
-
>>> thread = api.
|
37131
|
+
>>> thread = api.search_resource_notifications_api_v2_resource_notifications_search_post(list_resource_notifications_query, async_req=True)
|
37020
37132
|
>>> result = thread.get()
|
37021
37133
|
|
37022
37134
|
:param async_req bool: execute request asynchronously
|
37023
|
-
:param
|
37135
|
+
:param ListResourceNotificationsQuery list_resource_notifications_query: (required)
|
37024
37136
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
37025
37137
|
be returned without reading/decoding response
|
37026
37138
|
data. Default is True.
|
@@ -37028,23 +37140,23 @@ class DefaultApi(object):
|
|
37028
37140
|
number provided, it will be total request
|
37029
37141
|
timeout. It can also be a pair (tuple) of
|
37030
37142
|
(connection, read) timeouts.
|
37031
|
-
:return:
|
37143
|
+
:return: ResourcenotificationListResponse
|
37032
37144
|
If the method is called asynchronously,
|
37033
37145
|
returns the request thread.
|
37034
37146
|
"""
|
37035
37147
|
kwargs['_return_http_data_only'] = True
|
37036
|
-
return self.
|
37148
|
+
return self.search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(list_resource_notifications_query, **kwargs) # noqa: E501
|
37037
37149
|
|
37038
|
-
def
|
37039
|
-
"""Search Resource
|
37150
|
+
def search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(self, list_resource_notifications_query, **kwargs): # noqa: E501
|
37151
|
+
"""Search Resource Notifications # noqa: E501
|
37040
37152
|
|
37041
37153
|
This method makes a synchronous HTTP request by default. To make an
|
37042
37154
|
asynchronous HTTP request, please pass async_req=True
|
37043
|
-
>>> thread = api.
|
37155
|
+
>>> thread = api.search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(list_resource_notifications_query, async_req=True)
|
37044
37156
|
>>> result = thread.get()
|
37045
37157
|
|
37046
37158
|
:param async_req bool: execute request asynchronously
|
37047
|
-
:param
|
37159
|
+
:param ListResourceNotificationsQuery list_resource_notifications_query: (required)
|
37048
37160
|
:param _return_http_data_only: response data without head status code
|
37049
37161
|
and headers
|
37050
37162
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -37054,7 +37166,7 @@ class DefaultApi(object):
|
|
37054
37166
|
number provided, it will be total request
|
37055
37167
|
timeout. It can also be a pair (tuple) of
|
37056
37168
|
(connection, read) timeouts.
|
37057
|
-
:return: tuple(
|
37169
|
+
:return: tuple(ResourcenotificationListResponse, status_code(int), headers(HTTPHeaderDict))
|
37058
37170
|
If the method is called asynchronously,
|
37059
37171
|
returns the request thread.
|
37060
37172
|
"""
|
@@ -37062,7 +37174,7 @@ class DefaultApi(object):
|
|
37062
37174
|
local_var_params = locals()
|
37063
37175
|
|
37064
37176
|
all_params = [
|
37065
|
-
'
|
37177
|
+
'list_resource_notifications_query'
|
37066
37178
|
]
|
37067
37179
|
all_params.extend(
|
37068
37180
|
[
|
@@ -37077,14 +37189,14 @@ class DefaultApi(object):
|
|
37077
37189
|
if key not in all_params:
|
37078
37190
|
raise ApiTypeError(
|
37079
37191
|
"Got an unexpected keyword argument '%s'"
|
37080
|
-
" to method
|
37192
|
+
" to method search_resource_notifications_api_v2_resource_notifications_search_post" % key
|
37081
37193
|
)
|
37082
37194
|
local_var_params[key] = val
|
37083
37195
|
del local_var_params['kwargs']
|
37084
|
-
# verify the required parameter '
|
37085
|
-
if self.api_client.client_side_validation and ('
|
37086
|
-
local_var_params['
|
37087
|
-
raise ApiValueError("Missing the required parameter `
|
37196
|
+
# verify the required parameter 'list_resource_notifications_query' is set
|
37197
|
+
if self.api_client.client_side_validation and ('list_resource_notifications_query' not in local_var_params or # noqa: E501
|
37198
|
+
local_var_params['list_resource_notifications_query'] is None): # noqa: E501
|
37199
|
+
raise ApiValueError("Missing the required parameter `list_resource_notifications_query` when calling `search_resource_notifications_api_v2_resource_notifications_search_post`") # noqa: E501
|
37088
37200
|
|
37089
37201
|
collection_formats = {}
|
37090
37202
|
|
@@ -37098,8 +37210,8 @@ class DefaultApi(object):
|
|
37098
37210
|
local_var_files = {}
|
37099
37211
|
|
37100
37212
|
body_params = None
|
37101
|
-
if '
|
37102
|
-
body_params = local_var_params['
|
37213
|
+
if 'list_resource_notifications_query' in local_var_params:
|
37214
|
+
body_params = local_var_params['list_resource_notifications_query']
|
37103
37215
|
# HTTP header `Accept`
|
37104
37216
|
header_params['Accept'] = self.api_client.select_header_accept(
|
37105
37217
|
['application/json']) # noqa: E501
|
@@ -37112,14 +37224,14 @@ class DefaultApi(object):
|
|
37112
37224
|
auth_settings = [] # noqa: E501
|
37113
37225
|
|
37114
37226
|
return self.api_client.call_api(
|
37115
|
-
'/api/v2/
|
37227
|
+
'/api/v2/resource_notifications/search', 'POST',
|
37116
37228
|
path_params,
|
37117
37229
|
query_params,
|
37118
37230
|
header_params,
|
37119
37231
|
body=body_params,
|
37120
37232
|
post_params=form_params,
|
37121
37233
|
files=local_var_files,
|
37122
|
-
response_type='
|
37234
|
+
response_type='ResourcenotificationListResponse', # noqa: E501
|
37123
37235
|
auth_settings=auth_settings,
|
37124
37236
|
async_req=local_var_params.get('async_req'),
|
37125
37237
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -41075,6 +41187,133 @@ class DefaultApi(object):
|
|
41075
41187
|
_request_timeout=local_var_params.get('_request_timeout'),
|
41076
41188
|
collection_formats=collection_formats)
|
41077
41189
|
|
41190
|
+
def update_resource_notification_api_v2_resource_notifications_resource_notification_id_put(self, resource_notification_id, create_resource_notification, **kwargs): # noqa: E501
|
41191
|
+
"""Update Resource Notification # noqa: E501
|
41192
|
+
|
41193
|
+
Full update of the resource notification. This will replace the resource notification with the new data. For example, if None is passed as one of the fields, we will clear out that field. # noqa: E501
|
41194
|
+
This method makes a synchronous HTTP request by default. To make an
|
41195
|
+
asynchronous HTTP request, please pass async_req=True
|
41196
|
+
>>> thread = api.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put(resource_notification_id, create_resource_notification, async_req=True)
|
41197
|
+
>>> result = thread.get()
|
41198
|
+
|
41199
|
+
:param async_req bool: execute request asynchronously
|
41200
|
+
:param str resource_notification_id: (required)
|
41201
|
+
:param CreateResourceNotification create_resource_notification: (required)
|
41202
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
41203
|
+
be returned without reading/decoding response
|
41204
|
+
data. Default is True.
|
41205
|
+
:param _request_timeout: timeout setting for this request. If one
|
41206
|
+
number provided, it will be total request
|
41207
|
+
timeout. It can also be a pair (tuple) of
|
41208
|
+
(connection, read) timeouts.
|
41209
|
+
:return: ResourcenotificationResponse
|
41210
|
+
If the method is called asynchronously,
|
41211
|
+
returns the request thread.
|
41212
|
+
"""
|
41213
|
+
kwargs['_return_http_data_only'] = True
|
41214
|
+
return self.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(resource_notification_id, create_resource_notification, **kwargs) # noqa: E501
|
41215
|
+
|
41216
|
+
def update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(self, resource_notification_id, create_resource_notification, **kwargs): # noqa: E501
|
41217
|
+
"""Update Resource Notification # noqa: E501
|
41218
|
+
|
41219
|
+
Full update of the resource notification. This will replace the resource notification with the new data. For example, if None is passed as one of the fields, we will clear out that field. # noqa: E501
|
41220
|
+
This method makes a synchronous HTTP request by default. To make an
|
41221
|
+
asynchronous HTTP request, please pass async_req=True
|
41222
|
+
>>> thread = api.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(resource_notification_id, create_resource_notification, async_req=True)
|
41223
|
+
>>> result = thread.get()
|
41224
|
+
|
41225
|
+
:param async_req bool: execute request asynchronously
|
41226
|
+
:param str resource_notification_id: (required)
|
41227
|
+
:param CreateResourceNotification create_resource_notification: (required)
|
41228
|
+
:param _return_http_data_only: response data without head status code
|
41229
|
+
and headers
|
41230
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
41231
|
+
be returned without reading/decoding response
|
41232
|
+
data. Default is True.
|
41233
|
+
:param _request_timeout: timeout setting for this request. If one
|
41234
|
+
number provided, it will be total request
|
41235
|
+
timeout. It can also be a pair (tuple) of
|
41236
|
+
(connection, read) timeouts.
|
41237
|
+
:return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
|
41238
|
+
If the method is called asynchronously,
|
41239
|
+
returns the request thread.
|
41240
|
+
"""
|
41241
|
+
|
41242
|
+
local_var_params = locals()
|
41243
|
+
|
41244
|
+
all_params = [
|
41245
|
+
'resource_notification_id',
|
41246
|
+
'create_resource_notification'
|
41247
|
+
]
|
41248
|
+
all_params.extend(
|
41249
|
+
[
|
41250
|
+
'async_req',
|
41251
|
+
'_return_http_data_only',
|
41252
|
+
'_preload_content',
|
41253
|
+
'_request_timeout'
|
41254
|
+
]
|
41255
|
+
)
|
41256
|
+
|
41257
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
41258
|
+
if key not in all_params:
|
41259
|
+
raise ApiTypeError(
|
41260
|
+
"Got an unexpected keyword argument '%s'"
|
41261
|
+
" to method update_resource_notification_api_v2_resource_notifications_resource_notification_id_put" % key
|
41262
|
+
)
|
41263
|
+
local_var_params[key] = val
|
41264
|
+
del local_var_params['kwargs']
|
41265
|
+
# verify the required parameter 'resource_notification_id' is set
|
41266
|
+
if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
|
41267
|
+
local_var_params['resource_notification_id'] is None): # noqa: E501
|
41268
|
+
raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `update_resource_notification_api_v2_resource_notifications_resource_notification_id_put`") # noqa: E501
|
41269
|
+
# verify the required parameter 'create_resource_notification' is set
|
41270
|
+
if self.api_client.client_side_validation and ('create_resource_notification' not in local_var_params or # noqa: E501
|
41271
|
+
local_var_params['create_resource_notification'] is None): # noqa: E501
|
41272
|
+
raise ApiValueError("Missing the required parameter `create_resource_notification` when calling `update_resource_notification_api_v2_resource_notifications_resource_notification_id_put`") # noqa: E501
|
41273
|
+
|
41274
|
+
collection_formats = {}
|
41275
|
+
|
41276
|
+
path_params = {}
|
41277
|
+
if 'resource_notification_id' in local_var_params:
|
41278
|
+
path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
|
41279
|
+
|
41280
|
+
query_params = []
|
41281
|
+
|
41282
|
+
header_params = {}
|
41283
|
+
|
41284
|
+
form_params = []
|
41285
|
+
local_var_files = {}
|
41286
|
+
|
41287
|
+
body_params = None
|
41288
|
+
if 'create_resource_notification' in local_var_params:
|
41289
|
+
body_params = local_var_params['create_resource_notification']
|
41290
|
+
# HTTP header `Accept`
|
41291
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
41292
|
+
['application/json']) # noqa: E501
|
41293
|
+
|
41294
|
+
# HTTP header `Content-Type`
|
41295
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
41296
|
+
['application/json']) # noqa: E501
|
41297
|
+
|
41298
|
+
# Authentication setting
|
41299
|
+
auth_settings = [] # noqa: E501
|
41300
|
+
|
41301
|
+
return self.api_client.call_api(
|
41302
|
+
'/api/v2/resource_notifications/{resource_notification_id}', 'PUT',
|
41303
|
+
path_params,
|
41304
|
+
query_params,
|
41305
|
+
header_params,
|
41306
|
+
body=body_params,
|
41307
|
+
post_params=form_params,
|
41308
|
+
files=local_var_files,
|
41309
|
+
response_type='ResourcenotificationResponse', # noqa: E501
|
41310
|
+
auth_settings=auth_settings,
|
41311
|
+
async_req=local_var_params.get('async_req'),
|
41312
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
41313
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
41314
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
41315
|
+
collection_formats=collection_formats)
|
41316
|
+
|
41078
41317
|
def update_resource_quota_api_v2_resource_quotas_resource_quota_id_patch(self, resource_quota_id, update_resource_quota, **kwargs): # noqa: E501
|
41079
41318
|
"""Update Resource Quota # noqa: E501
|
41080
41319
|
|