anyscale 0.26.58__py3-none-any.whl → 0.26.59__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/common.py +1 -1
- anyscale/client/README.md +15 -0
- anyscale/client/openapi_client/__init__.py +10 -0
- anyscale/client/openapi_client/api/default_api.py +602 -2
- anyscale/client/openapi_client/models/__init__.py +10 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/create_internal_production_job.py +31 -3
- anyscale/client/openapi_client/models/create_job_queue_requests.py +31 -3
- anyscale/client/openapi_client/models/email_verification_request.py +175 -0
- anyscale/client/openapi_client/models/email_verification_response.py +120 -0
- anyscale/client/openapi_client/models/emailverificationresponse_response.py +121 -0
- anyscale/client/openapi_client/models/job_queues_query.py +31 -3
- anyscale/client/openapi_client/models/operator_event.py +256 -0
- anyscale/client/openapi_client/models/operator_event_response.py +148 -0
- anyscale/client/openapi_client/models/operator_event_type.py +101 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/client/openapi_client/models/update_job_queue_request.py +31 -3
- anyscale/client/openapi_client/models/use_work_os_response.py +121 -0
- anyscale/client/openapi_client/models/useworkosresponse_response.py +121 -0
- anyscale/client/openapi_client/models/work_os_authorize_url_response.py +120 -0
- anyscale/client/openapi_client/models/workosauthorizeurlresponse_response.py +121 -0
- anyscale/commands/cloud_commands.py +15 -3
- anyscale/commands/command_examples.py +1 -1
- anyscale/controllers/cloud_controller.py +7 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/METADATA +1 -1
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/RECORD +35 -25
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/WHEEL +0 -0
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.58.dist-info → anyscale-0.26.59.dist-info}/top_level.txt +0 -0
@@ -17650,6 +17650,145 @@ class DefaultApi(object):
|
|
17650
17650
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17651
17651
|
collection_formats=collection_formats)
|
17652
17652
|
|
17653
|
+
def get_operator_events_api_v2_dataset_runs_operator_events_get(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
|
17654
|
+
"""Get Operator Events # noqa: E501
|
17655
|
+
|
17656
|
+
This method makes a synchronous HTTP request by default. To make an
|
17657
|
+
asynchronous HTTP request, please pass async_req=True
|
17658
|
+
>>> thread = api.get_operator_events_api_v2_dataset_runs_operator_events_get(cluster_id, session_name, dataset_id, operator_id, async_req=True)
|
17659
|
+
>>> result = thread.get()
|
17660
|
+
|
17661
|
+
:param async_req bool: execute request asynchronously
|
17662
|
+
:param str cluster_id: (required)
|
17663
|
+
:param str session_name: (required)
|
17664
|
+
:param str dataset_id: (required)
|
17665
|
+
:param str operator_id: (required)
|
17666
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17667
|
+
be returned without reading/decoding response
|
17668
|
+
data. Default is True.
|
17669
|
+
:param _request_timeout: timeout setting for this request. If one
|
17670
|
+
number provided, it will be total request
|
17671
|
+
timeout. It can also be a pair (tuple) of
|
17672
|
+
(connection, read) timeouts.
|
17673
|
+
:return: OperatorEventResponse
|
17674
|
+
If the method is called asynchronously,
|
17675
|
+
returns the request thread.
|
17676
|
+
"""
|
17677
|
+
kwargs['_return_http_data_only'] = True
|
17678
|
+
return self.get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(cluster_id, session_name, dataset_id, operator_id, **kwargs) # noqa: E501
|
17679
|
+
|
17680
|
+
def get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
|
17681
|
+
"""Get Operator Events # noqa: E501
|
17682
|
+
|
17683
|
+
This method makes a synchronous HTTP request by default. To make an
|
17684
|
+
asynchronous HTTP request, please pass async_req=True
|
17685
|
+
>>> thread = api.get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(cluster_id, session_name, dataset_id, operator_id, async_req=True)
|
17686
|
+
>>> result = thread.get()
|
17687
|
+
|
17688
|
+
:param async_req bool: execute request asynchronously
|
17689
|
+
:param str cluster_id: (required)
|
17690
|
+
:param str session_name: (required)
|
17691
|
+
:param str dataset_id: (required)
|
17692
|
+
:param str operator_id: (required)
|
17693
|
+
:param _return_http_data_only: response data without head status code
|
17694
|
+
and headers
|
17695
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17696
|
+
be returned without reading/decoding response
|
17697
|
+
data. Default is True.
|
17698
|
+
:param _request_timeout: timeout setting for this request. If one
|
17699
|
+
number provided, it will be total request
|
17700
|
+
timeout. It can also be a pair (tuple) of
|
17701
|
+
(connection, read) timeouts.
|
17702
|
+
:return: tuple(OperatorEventResponse, status_code(int), headers(HTTPHeaderDict))
|
17703
|
+
If the method is called asynchronously,
|
17704
|
+
returns the request thread.
|
17705
|
+
"""
|
17706
|
+
|
17707
|
+
local_var_params = locals()
|
17708
|
+
|
17709
|
+
all_params = [
|
17710
|
+
'cluster_id',
|
17711
|
+
'session_name',
|
17712
|
+
'dataset_id',
|
17713
|
+
'operator_id'
|
17714
|
+
]
|
17715
|
+
all_params.extend(
|
17716
|
+
[
|
17717
|
+
'async_req',
|
17718
|
+
'_return_http_data_only',
|
17719
|
+
'_preload_content',
|
17720
|
+
'_request_timeout'
|
17721
|
+
]
|
17722
|
+
)
|
17723
|
+
|
17724
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
17725
|
+
if key not in all_params:
|
17726
|
+
raise ApiTypeError(
|
17727
|
+
"Got an unexpected keyword argument '%s'"
|
17728
|
+
" to method get_operator_events_api_v2_dataset_runs_operator_events_get" % key
|
17729
|
+
)
|
17730
|
+
local_var_params[key] = val
|
17731
|
+
del local_var_params['kwargs']
|
17732
|
+
# verify the required parameter 'cluster_id' is set
|
17733
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
17734
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
17735
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
|
17736
|
+
# verify the required parameter 'session_name' is set
|
17737
|
+
if self.api_client.client_side_validation and ('session_name' not in local_var_params or # noqa: E501
|
17738
|
+
local_var_params['session_name'] is None): # noqa: E501
|
17739
|
+
raise ApiValueError("Missing the required parameter `session_name` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
|
17740
|
+
# verify the required parameter 'dataset_id' is set
|
17741
|
+
if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
|
17742
|
+
local_var_params['dataset_id'] is None): # noqa: E501
|
17743
|
+
raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
|
17744
|
+
# verify the required parameter 'operator_id' is set
|
17745
|
+
if self.api_client.client_side_validation and ('operator_id' not in local_var_params or # noqa: E501
|
17746
|
+
local_var_params['operator_id'] is None): # noqa: E501
|
17747
|
+
raise ApiValueError("Missing the required parameter `operator_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
|
17748
|
+
|
17749
|
+
collection_formats = {}
|
17750
|
+
|
17751
|
+
path_params = {}
|
17752
|
+
|
17753
|
+
query_params = []
|
17754
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
17755
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
17756
|
+
if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
|
17757
|
+
query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
|
17758
|
+
if 'dataset_id' in local_var_params and local_var_params['dataset_id'] is not None: # noqa: E501
|
17759
|
+
query_params.append(('dataset_id', local_var_params['dataset_id'])) # noqa: E501
|
17760
|
+
if 'operator_id' in local_var_params and local_var_params['operator_id'] is not None: # noqa: E501
|
17761
|
+
query_params.append(('operator_id', local_var_params['operator_id'])) # noqa: E501
|
17762
|
+
|
17763
|
+
header_params = {}
|
17764
|
+
|
17765
|
+
form_params = []
|
17766
|
+
local_var_files = {}
|
17767
|
+
|
17768
|
+
body_params = None
|
17769
|
+
# HTTP header `Accept`
|
17770
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
17771
|
+
['application/json']) # noqa: E501
|
17772
|
+
|
17773
|
+
# Authentication setting
|
17774
|
+
auth_settings = [] # noqa: E501
|
17775
|
+
|
17776
|
+
return self.api_client.call_api(
|
17777
|
+
'/api/v2/dataset_runs/operator_events', 'GET',
|
17778
|
+
path_params,
|
17779
|
+
query_params,
|
17780
|
+
header_params,
|
17781
|
+
body=body_params,
|
17782
|
+
post_params=form_params,
|
17783
|
+
files=local_var_files,
|
17784
|
+
response_type='OperatorEventResponse', # noqa: E501
|
17785
|
+
auth_settings=auth_settings,
|
17786
|
+
async_req=local_var_params.get('async_req'),
|
17787
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
17788
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
17789
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
17790
|
+
collection_formats=collection_formats)
|
17791
|
+
|
17653
17792
|
def get_operator_metrics_api_v2_dataset_runs_operator_get(self, cluster_id, session_name, dataset_id, operator_id, dataset_start_time, dataset_end_time, **kwargs): # noqa: E501
|
17654
17793
|
"""Get Operator Metrics # noqa: E501
|
17655
17794
|
|
@@ -22161,6 +22300,119 @@ class DefaultApi(object):
|
|
22161
22300
|
_request_timeout=local_var_params.get('_request_timeout'),
|
22162
22301
|
collection_formats=collection_formats)
|
22163
22302
|
|
22303
|
+
def get_workos_authorize_url_api_v2_workos_authorize_get(self, **kwargs): # noqa: E501
|
22304
|
+
"""Get Workos Authorize Url # noqa: E501
|
22305
|
+
|
22306
|
+
This method makes a synchronous HTTP request by default. To make an
|
22307
|
+
asynchronous HTTP request, please pass async_req=True
|
22308
|
+
>>> thread = api.get_workos_authorize_url_api_v2_workos_authorize_get(async_req=True)
|
22309
|
+
>>> result = thread.get()
|
22310
|
+
|
22311
|
+
:param async_req bool: execute request asynchronously
|
22312
|
+
:param str email_address:
|
22313
|
+
:param str provider:
|
22314
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
22315
|
+
be returned without reading/decoding response
|
22316
|
+
data. Default is True.
|
22317
|
+
:param _request_timeout: timeout setting for this request. If one
|
22318
|
+
number provided, it will be total request
|
22319
|
+
timeout. It can also be a pair (tuple) of
|
22320
|
+
(connection, read) timeouts.
|
22321
|
+
:return: WorkosauthorizeurlresponseResponse
|
22322
|
+
If the method is called asynchronously,
|
22323
|
+
returns the request thread.
|
22324
|
+
"""
|
22325
|
+
kwargs['_return_http_data_only'] = True
|
22326
|
+
return self.get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(**kwargs) # noqa: E501
|
22327
|
+
|
22328
|
+
def get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(self, **kwargs): # noqa: E501
|
22329
|
+
"""Get Workos Authorize Url # noqa: E501
|
22330
|
+
|
22331
|
+
This method makes a synchronous HTTP request by default. To make an
|
22332
|
+
asynchronous HTTP request, please pass async_req=True
|
22333
|
+
>>> thread = api.get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(async_req=True)
|
22334
|
+
>>> result = thread.get()
|
22335
|
+
|
22336
|
+
:param async_req bool: execute request asynchronously
|
22337
|
+
:param str email_address:
|
22338
|
+
:param str provider:
|
22339
|
+
:param _return_http_data_only: response data without head status code
|
22340
|
+
and headers
|
22341
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
22342
|
+
be returned without reading/decoding response
|
22343
|
+
data. Default is True.
|
22344
|
+
:param _request_timeout: timeout setting for this request. If one
|
22345
|
+
number provided, it will be total request
|
22346
|
+
timeout. It can also be a pair (tuple) of
|
22347
|
+
(connection, read) timeouts.
|
22348
|
+
:return: tuple(WorkosauthorizeurlresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
22349
|
+
If the method is called asynchronously,
|
22350
|
+
returns the request thread.
|
22351
|
+
"""
|
22352
|
+
|
22353
|
+
local_var_params = locals()
|
22354
|
+
|
22355
|
+
all_params = [
|
22356
|
+
'email_address',
|
22357
|
+
'provider'
|
22358
|
+
]
|
22359
|
+
all_params.extend(
|
22360
|
+
[
|
22361
|
+
'async_req',
|
22362
|
+
'_return_http_data_only',
|
22363
|
+
'_preload_content',
|
22364
|
+
'_request_timeout'
|
22365
|
+
]
|
22366
|
+
)
|
22367
|
+
|
22368
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
22369
|
+
if key not in all_params:
|
22370
|
+
raise ApiTypeError(
|
22371
|
+
"Got an unexpected keyword argument '%s'"
|
22372
|
+
" to method get_workos_authorize_url_api_v2_workos_authorize_get" % key
|
22373
|
+
)
|
22374
|
+
local_var_params[key] = val
|
22375
|
+
del local_var_params['kwargs']
|
22376
|
+
|
22377
|
+
collection_formats = {}
|
22378
|
+
|
22379
|
+
path_params = {}
|
22380
|
+
|
22381
|
+
query_params = []
|
22382
|
+
if 'email_address' in local_var_params and local_var_params['email_address'] is not None: # noqa: E501
|
22383
|
+
query_params.append(('email_address', local_var_params['email_address'])) # noqa: E501
|
22384
|
+
if 'provider' in local_var_params and local_var_params['provider'] is not None: # noqa: E501
|
22385
|
+
query_params.append(('provider', local_var_params['provider'])) # noqa: E501
|
22386
|
+
|
22387
|
+
header_params = {}
|
22388
|
+
|
22389
|
+
form_params = []
|
22390
|
+
local_var_files = {}
|
22391
|
+
|
22392
|
+
body_params = None
|
22393
|
+
# HTTP header `Accept`
|
22394
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
22395
|
+
['application/json']) # noqa: E501
|
22396
|
+
|
22397
|
+
# Authentication setting
|
22398
|
+
auth_settings = [] # noqa: E501
|
22399
|
+
|
22400
|
+
return self.api_client.call_api(
|
22401
|
+
'/api/v2/workos/authorize', 'GET',
|
22402
|
+
path_params,
|
22403
|
+
query_params,
|
22404
|
+
header_params,
|
22405
|
+
body=body_params,
|
22406
|
+
post_params=form_params,
|
22407
|
+
files=local_var_files,
|
22408
|
+
response_type='WorkosauthorizeurlresponseResponse', # noqa: E501
|
22409
|
+
auth_settings=auth_settings,
|
22410
|
+
async_req=local_var_params.get('async_req'),
|
22411
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
22412
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
22413
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
22414
|
+
collection_formats=collection_formats)
|
22415
|
+
|
22164
22416
|
def get_workspace_api_v2_experimental_workspaces_workspace_id_get(self, workspace_id, **kwargs): # noqa: E501
|
22165
22417
|
"""Get Workspace # noqa: E501
|
22166
22418
|
|
@@ -24969,6 +25221,7 @@ class DefaultApi(object):
|
|
24969
25221
|
:param str source_cron_job_id: filter by cron_job_id id
|
24970
25222
|
:param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
|
24971
25223
|
:param str cloud_id: cloud_id to filter by
|
25224
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
24972
25225
|
:param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
24973
25226
|
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
24974
25227
|
:param str paging_token:
|
@@ -25005,6 +25258,7 @@ class DefaultApi(object):
|
|
25005
25258
|
:param str source_cron_job_id: filter by cron_job_id id
|
25006
25259
|
:param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
|
25007
25260
|
:param str cloud_id: cloud_id to filter by
|
25261
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
25008
25262
|
:param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
25009
25263
|
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
25010
25264
|
:param str paging_token:
|
@@ -25035,6 +25289,7 @@ class DefaultApi(object):
|
|
25035
25289
|
'source_cron_job_id',
|
25036
25290
|
'archive_status',
|
25037
25291
|
'cloud_id',
|
25292
|
+
'tag_filter',
|
25038
25293
|
'sort_field',
|
25039
25294
|
'sort_order',
|
25040
25295
|
'paging_token',
|
@@ -25086,6 +25341,9 @@ class DefaultApi(object):
|
|
25086
25341
|
query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
|
25087
25342
|
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
25088
25343
|
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
25344
|
+
if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
|
25345
|
+
query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
|
25346
|
+
collection_formats['tag_filter'] = 'multi' # noqa: E501
|
25089
25347
|
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
25090
25348
|
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
25091
25349
|
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
@@ -27865,6 +28123,7 @@ class DefaultApi(object):
|
|
27865
28123
|
|
27866
28124
|
:param async_req bool: execute request asynchronously
|
27867
28125
|
:param str name: Filter by template name (partial match)
|
28126
|
+
:param str text_contains: Filter by template name, description, or labels (partial match)
|
27868
28127
|
:param WorkspaceTemplateComplexity complexity: Filter by complexity level
|
27869
28128
|
:param WorkspaceTemplateCategory category: Filter by category
|
27870
28129
|
:param str labels: Comma-separated list of labels to filter by
|
@@ -27901,6 +28160,7 @@ class DefaultApi(object):
|
|
27901
28160
|
|
27902
28161
|
:param async_req bool: execute request asynchronously
|
27903
28162
|
:param str name: Filter by template name (partial match)
|
28163
|
+
:param str text_contains: Filter by template name, description, or labels (partial match)
|
27904
28164
|
:param WorkspaceTemplateComplexity complexity: Filter by complexity level
|
27905
28165
|
:param WorkspaceTemplateCategory category: Filter by category
|
27906
28166
|
:param str labels: Comma-separated list of labels to filter by
|
@@ -27930,6 +28190,7 @@ class DefaultApi(object):
|
|
27930
28190
|
|
27931
28191
|
all_params = [
|
27932
28192
|
'name',
|
28193
|
+
'text_contains',
|
27933
28194
|
'complexity',
|
27934
28195
|
'category',
|
27935
28196
|
'labels',
|
@@ -27960,8 +28221,8 @@ class DefaultApi(object):
|
|
27960
28221
|
local_var_params[key] = val
|
27961
28222
|
del local_var_params['kwargs']
|
27962
28223
|
|
27963
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] >
|
27964
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `list_templates_api_v2_workspace_templates_get`, must be a value less than or equal to `
|
28224
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
28225
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_templates_api_v2_workspace_templates_get`, must be a value less than or equal to `1000`") # noqa: E501
|
27965
28226
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
27966
28227
|
raise ApiValueError("Invalid value for parameter `count` when calling `list_templates_api_v2_workspace_templates_get`, must be a value greater than or equal to `0`") # noqa: E501
|
27967
28228
|
collection_formats = {}
|
@@ -27971,6 +28232,8 @@ class DefaultApi(object):
|
|
27971
28232
|
query_params = []
|
27972
28233
|
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
27973
28234
|
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
28235
|
+
if 'text_contains' in local_var_params and local_var_params['text_contains'] is not None: # noqa: E501
|
28236
|
+
query_params.append(('text_contains', local_var_params['text_contains'])) # noqa: E501
|
27974
28237
|
if 'complexity' in local_var_params and local_var_params['complexity'] is not None: # noqa: E501
|
27975
28238
|
query_params.append(('complexity', local_var_params['complexity'])) # noqa: E501
|
27976
28239
|
if 'category' in local_var_params and local_var_params['category'] is not None: # noqa: E501
|
@@ -38282,6 +38545,111 @@ class DefaultApi(object):
|
|
38282
38545
|
_request_timeout=local_var_params.get('_request_timeout'),
|
38283
38546
|
collection_formats=collection_formats)
|
38284
38547
|
|
38548
|
+
def use_workos_api_v2_workos_use_workos_get(self, **kwargs): # noqa: E501
|
38549
|
+
"""Use Workos # noqa: E501
|
38550
|
+
|
38551
|
+
Determine whether to use WorkOS based on the user's IP address. This endpoint evaluates the WorkOS feature flag server-side using the client's IP address for targeting. This allows for IP-based rollouts and geographic targeting of the WorkOS authentication flow. Returns: UseWorkOSResponse: Contains boolean indicating whether WorkOS should be enabled # noqa: E501
|
38552
|
+
This method makes a synchronous HTTP request by default. To make an
|
38553
|
+
asynchronous HTTP request, please pass async_req=True
|
38554
|
+
>>> thread = api.use_workos_api_v2_workos_use_workos_get(async_req=True)
|
38555
|
+
>>> result = thread.get()
|
38556
|
+
|
38557
|
+
:param async_req bool: execute request asynchronously
|
38558
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
38559
|
+
be returned without reading/decoding response
|
38560
|
+
data. Default is True.
|
38561
|
+
:param _request_timeout: timeout setting for this request. If one
|
38562
|
+
number provided, it will be total request
|
38563
|
+
timeout. It can also be a pair (tuple) of
|
38564
|
+
(connection, read) timeouts.
|
38565
|
+
:return: UseworkosresponseResponse
|
38566
|
+
If the method is called asynchronously,
|
38567
|
+
returns the request thread.
|
38568
|
+
"""
|
38569
|
+
kwargs['_return_http_data_only'] = True
|
38570
|
+
return self.use_workos_api_v2_workos_use_workos_get_with_http_info(**kwargs) # noqa: E501
|
38571
|
+
|
38572
|
+
def use_workos_api_v2_workos_use_workos_get_with_http_info(self, **kwargs): # noqa: E501
|
38573
|
+
"""Use Workos # noqa: E501
|
38574
|
+
|
38575
|
+
Determine whether to use WorkOS based on the user's IP address. This endpoint evaluates the WorkOS feature flag server-side using the client's IP address for targeting. This allows for IP-based rollouts and geographic targeting of the WorkOS authentication flow. Returns: UseWorkOSResponse: Contains boolean indicating whether WorkOS should be enabled # noqa: E501
|
38576
|
+
This method makes a synchronous HTTP request by default. To make an
|
38577
|
+
asynchronous HTTP request, please pass async_req=True
|
38578
|
+
>>> thread = api.use_workos_api_v2_workos_use_workos_get_with_http_info(async_req=True)
|
38579
|
+
>>> result = thread.get()
|
38580
|
+
|
38581
|
+
:param async_req bool: execute request asynchronously
|
38582
|
+
:param _return_http_data_only: response data without head status code
|
38583
|
+
and headers
|
38584
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
38585
|
+
be returned without reading/decoding response
|
38586
|
+
data. Default is True.
|
38587
|
+
:param _request_timeout: timeout setting for this request. If one
|
38588
|
+
number provided, it will be total request
|
38589
|
+
timeout. It can also be a pair (tuple) of
|
38590
|
+
(connection, read) timeouts.
|
38591
|
+
:return: tuple(UseworkosresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
38592
|
+
If the method is called asynchronously,
|
38593
|
+
returns the request thread.
|
38594
|
+
"""
|
38595
|
+
|
38596
|
+
local_var_params = locals()
|
38597
|
+
|
38598
|
+
all_params = [
|
38599
|
+
]
|
38600
|
+
all_params.extend(
|
38601
|
+
[
|
38602
|
+
'async_req',
|
38603
|
+
'_return_http_data_only',
|
38604
|
+
'_preload_content',
|
38605
|
+
'_request_timeout'
|
38606
|
+
]
|
38607
|
+
)
|
38608
|
+
|
38609
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
38610
|
+
if key not in all_params:
|
38611
|
+
raise ApiTypeError(
|
38612
|
+
"Got an unexpected keyword argument '%s'"
|
38613
|
+
" to method use_workos_api_v2_workos_use_workos_get" % key
|
38614
|
+
)
|
38615
|
+
local_var_params[key] = val
|
38616
|
+
del local_var_params['kwargs']
|
38617
|
+
|
38618
|
+
collection_formats = {}
|
38619
|
+
|
38620
|
+
path_params = {}
|
38621
|
+
|
38622
|
+
query_params = []
|
38623
|
+
|
38624
|
+
header_params = {}
|
38625
|
+
|
38626
|
+
form_params = []
|
38627
|
+
local_var_files = {}
|
38628
|
+
|
38629
|
+
body_params = None
|
38630
|
+
# HTTP header `Accept`
|
38631
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
38632
|
+
['application/json']) # noqa: E501
|
38633
|
+
|
38634
|
+
# Authentication setting
|
38635
|
+
auth_settings = [] # noqa: E501
|
38636
|
+
|
38637
|
+
return self.api_client.call_api(
|
38638
|
+
'/api/v2/workos/use_workos', 'GET',
|
38639
|
+
path_params,
|
38640
|
+
query_params,
|
38641
|
+
header_params,
|
38642
|
+
body=body_params,
|
38643
|
+
post_params=form_params,
|
38644
|
+
files=local_var_files,
|
38645
|
+
response_type='UseworkosresponseResponse', # noqa: E501
|
38646
|
+
auth_settings=auth_settings,
|
38647
|
+
async_req=local_var_params.get('async_req'),
|
38648
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
38649
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
38650
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
38651
|
+
collection_formats=collection_formats)
|
38652
|
+
|
38285
38653
|
def user_resend_email_api_v2_users_resend_email_post(self, user_resend_email_options, **kwargs): # noqa: E501
|
38286
38654
|
"""User Resend Email # noqa: E501
|
38287
38655
|
|
@@ -39083,3 +39451,235 @@ class DefaultApi(object):
|
|
39083
39451
|
_preload_content=local_var_params.get('_preload_content', True),
|
39084
39452
|
_request_timeout=local_var_params.get('_request_timeout'),
|
39085
39453
|
collection_formats=collection_formats)
|
39454
|
+
|
39455
|
+
def workos_callback_api_v2_workos_callback_get(self, code, **kwargs): # noqa: E501
|
39456
|
+
"""Workos Callback # noqa: E501
|
39457
|
+
|
39458
|
+
Callback for WorkOS authentication. WorkOS will call this endpoint with a code after the user authenticates with WorkOS. We use the code to get the user's information from WorkOS and then authenticate the user with Anyscale. # noqa: E501
|
39459
|
+
This method makes a synchronous HTTP request by default. To make an
|
39460
|
+
asynchronous HTTP request, please pass async_req=True
|
39461
|
+
>>> thread = api.workos_callback_api_v2_workos_callback_get(code, async_req=True)
|
39462
|
+
>>> result = thread.get()
|
39463
|
+
|
39464
|
+
:param async_req bool: execute request asynchronously
|
39465
|
+
:param str code: (required)
|
39466
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
39467
|
+
be returned without reading/decoding response
|
39468
|
+
data. Default is True.
|
39469
|
+
:param _request_timeout: timeout setting for this request. If one
|
39470
|
+
number provided, it will be total request
|
39471
|
+
timeout. It can also be a pair (tuple) of
|
39472
|
+
(connection, read) timeouts.
|
39473
|
+
:return: object
|
39474
|
+
If the method is called asynchronously,
|
39475
|
+
returns the request thread.
|
39476
|
+
"""
|
39477
|
+
kwargs['_return_http_data_only'] = True
|
39478
|
+
return self.workos_callback_api_v2_workos_callback_get_with_http_info(code, **kwargs) # noqa: E501
|
39479
|
+
|
39480
|
+
def workos_callback_api_v2_workos_callback_get_with_http_info(self, code, **kwargs): # noqa: E501
|
39481
|
+
"""Workos Callback # noqa: E501
|
39482
|
+
|
39483
|
+
Callback for WorkOS authentication. WorkOS will call this endpoint with a code after the user authenticates with WorkOS. We use the code to get the user's information from WorkOS and then authenticate the user with Anyscale. # noqa: E501
|
39484
|
+
This method makes a synchronous HTTP request by default. To make an
|
39485
|
+
asynchronous HTTP request, please pass async_req=True
|
39486
|
+
>>> thread = api.workos_callback_api_v2_workos_callback_get_with_http_info(code, async_req=True)
|
39487
|
+
>>> result = thread.get()
|
39488
|
+
|
39489
|
+
:param async_req bool: execute request asynchronously
|
39490
|
+
:param str code: (required)
|
39491
|
+
:param _return_http_data_only: response data without head status code
|
39492
|
+
and headers
|
39493
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
39494
|
+
be returned without reading/decoding response
|
39495
|
+
data. Default is True.
|
39496
|
+
:param _request_timeout: timeout setting for this request. If one
|
39497
|
+
number provided, it will be total request
|
39498
|
+
timeout. It can also be a pair (tuple) of
|
39499
|
+
(connection, read) timeouts.
|
39500
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
39501
|
+
If the method is called asynchronously,
|
39502
|
+
returns the request thread.
|
39503
|
+
"""
|
39504
|
+
|
39505
|
+
local_var_params = locals()
|
39506
|
+
|
39507
|
+
all_params = [
|
39508
|
+
'code'
|
39509
|
+
]
|
39510
|
+
all_params.extend(
|
39511
|
+
[
|
39512
|
+
'async_req',
|
39513
|
+
'_return_http_data_only',
|
39514
|
+
'_preload_content',
|
39515
|
+
'_request_timeout'
|
39516
|
+
]
|
39517
|
+
)
|
39518
|
+
|
39519
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
39520
|
+
if key not in all_params:
|
39521
|
+
raise ApiTypeError(
|
39522
|
+
"Got an unexpected keyword argument '%s'"
|
39523
|
+
" to method workos_callback_api_v2_workos_callback_get" % key
|
39524
|
+
)
|
39525
|
+
local_var_params[key] = val
|
39526
|
+
del local_var_params['kwargs']
|
39527
|
+
# verify the required parameter 'code' is set
|
39528
|
+
if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
|
39529
|
+
local_var_params['code'] is None): # noqa: E501
|
39530
|
+
raise ApiValueError("Missing the required parameter `code` when calling `workos_callback_api_v2_workos_callback_get`") # noqa: E501
|
39531
|
+
|
39532
|
+
collection_formats = {}
|
39533
|
+
|
39534
|
+
path_params = {}
|
39535
|
+
|
39536
|
+
query_params = []
|
39537
|
+
if 'code' in local_var_params and local_var_params['code'] is not None: # noqa: E501
|
39538
|
+
query_params.append(('code', local_var_params['code'])) # noqa: E501
|
39539
|
+
|
39540
|
+
header_params = {}
|
39541
|
+
|
39542
|
+
form_params = []
|
39543
|
+
local_var_files = {}
|
39544
|
+
|
39545
|
+
body_params = None
|
39546
|
+
# HTTP header `Accept`
|
39547
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
39548
|
+
['application/json']) # noqa: E501
|
39549
|
+
|
39550
|
+
# Authentication setting
|
39551
|
+
auth_settings = [] # noqa: E501
|
39552
|
+
|
39553
|
+
return self.api_client.call_api(
|
39554
|
+
'/api/v2/workos/callback', 'GET',
|
39555
|
+
path_params,
|
39556
|
+
query_params,
|
39557
|
+
header_params,
|
39558
|
+
body=body_params,
|
39559
|
+
post_params=form_params,
|
39560
|
+
files=local_var_files,
|
39561
|
+
response_type='object', # noqa: E501
|
39562
|
+
auth_settings=auth_settings,
|
39563
|
+
async_req=local_var_params.get('async_req'),
|
39564
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
39565
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
39566
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
39567
|
+
collection_formats=collection_formats)
|
39568
|
+
|
39569
|
+
def workos_verify_email_code_api_v2_workos_email_verification_verify_post(self, email_verification_request, **kwargs): # noqa: E501
|
39570
|
+
"""Workos Verify Email Code # noqa: E501
|
39571
|
+
|
39572
|
+
Verify email with a 6-digit code sent by WorkOS. # noqa: E501
|
39573
|
+
This method makes a synchronous HTTP request by default. To make an
|
39574
|
+
asynchronous HTTP request, please pass async_req=True
|
39575
|
+
>>> thread = api.workos_verify_email_code_api_v2_workos_email_verification_verify_post(email_verification_request, async_req=True)
|
39576
|
+
>>> result = thread.get()
|
39577
|
+
|
39578
|
+
:param async_req bool: execute request asynchronously
|
39579
|
+
:param EmailVerificationRequest email_verification_request: (required)
|
39580
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
39581
|
+
be returned without reading/decoding response
|
39582
|
+
data. Default is True.
|
39583
|
+
:param _request_timeout: timeout setting for this request. If one
|
39584
|
+
number provided, it will be total request
|
39585
|
+
timeout. It can also be a pair (tuple) of
|
39586
|
+
(connection, read) timeouts.
|
39587
|
+
:return: EmailverificationresponseResponse
|
39588
|
+
If the method is called asynchronously,
|
39589
|
+
returns the request thread.
|
39590
|
+
"""
|
39591
|
+
kwargs['_return_http_data_only'] = True
|
39592
|
+
return self.workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(email_verification_request, **kwargs) # noqa: E501
|
39593
|
+
|
39594
|
+
def workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(self, email_verification_request, **kwargs): # noqa: E501
|
39595
|
+
"""Workos Verify Email Code # noqa: E501
|
39596
|
+
|
39597
|
+
Verify email with a 6-digit code sent by WorkOS. # noqa: E501
|
39598
|
+
This method makes a synchronous HTTP request by default. To make an
|
39599
|
+
asynchronous HTTP request, please pass async_req=True
|
39600
|
+
>>> thread = api.workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(email_verification_request, async_req=True)
|
39601
|
+
>>> result = thread.get()
|
39602
|
+
|
39603
|
+
:param async_req bool: execute request asynchronously
|
39604
|
+
:param EmailVerificationRequest email_verification_request: (required)
|
39605
|
+
:param _return_http_data_only: response data without head status code
|
39606
|
+
and headers
|
39607
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
39608
|
+
be returned without reading/decoding response
|
39609
|
+
data. Default is True.
|
39610
|
+
:param _request_timeout: timeout setting for this request. If one
|
39611
|
+
number provided, it will be total request
|
39612
|
+
timeout. It can also be a pair (tuple) of
|
39613
|
+
(connection, read) timeouts.
|
39614
|
+
:return: tuple(EmailverificationresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
39615
|
+
If the method is called asynchronously,
|
39616
|
+
returns the request thread.
|
39617
|
+
"""
|
39618
|
+
|
39619
|
+
local_var_params = locals()
|
39620
|
+
|
39621
|
+
all_params = [
|
39622
|
+
'email_verification_request'
|
39623
|
+
]
|
39624
|
+
all_params.extend(
|
39625
|
+
[
|
39626
|
+
'async_req',
|
39627
|
+
'_return_http_data_only',
|
39628
|
+
'_preload_content',
|
39629
|
+
'_request_timeout'
|
39630
|
+
]
|
39631
|
+
)
|
39632
|
+
|
39633
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
39634
|
+
if key not in all_params:
|
39635
|
+
raise ApiTypeError(
|
39636
|
+
"Got an unexpected keyword argument '%s'"
|
39637
|
+
" to method workos_verify_email_code_api_v2_workos_email_verification_verify_post" % key
|
39638
|
+
)
|
39639
|
+
local_var_params[key] = val
|
39640
|
+
del local_var_params['kwargs']
|
39641
|
+
# verify the required parameter 'email_verification_request' is set
|
39642
|
+
if self.api_client.client_side_validation and ('email_verification_request' not in local_var_params or # noqa: E501
|
39643
|
+
local_var_params['email_verification_request'] is None): # noqa: E501
|
39644
|
+
raise ApiValueError("Missing the required parameter `email_verification_request` when calling `workos_verify_email_code_api_v2_workos_email_verification_verify_post`") # noqa: E501
|
39645
|
+
|
39646
|
+
collection_formats = {}
|
39647
|
+
|
39648
|
+
path_params = {}
|
39649
|
+
|
39650
|
+
query_params = []
|
39651
|
+
|
39652
|
+
header_params = {}
|
39653
|
+
|
39654
|
+
form_params = []
|
39655
|
+
local_var_files = {}
|
39656
|
+
|
39657
|
+
body_params = None
|
39658
|
+
if 'email_verification_request' in local_var_params:
|
39659
|
+
body_params = local_var_params['email_verification_request']
|
39660
|
+
# HTTP header `Accept`
|
39661
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
39662
|
+
['application/json']) # noqa: E501
|
39663
|
+
|
39664
|
+
# HTTP header `Content-Type`
|
39665
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
39666
|
+
['application/json']) # noqa: E501
|
39667
|
+
|
39668
|
+
# Authentication setting
|
39669
|
+
auth_settings = [] # noqa: E501
|
39670
|
+
|
39671
|
+
return self.api_client.call_api(
|
39672
|
+
'/api/v2/workos/email_verification/verify', 'POST',
|
39673
|
+
path_params,
|
39674
|
+
query_params,
|
39675
|
+
header_params,
|
39676
|
+
body=body_params,
|
39677
|
+
post_params=form_params,
|
39678
|
+
files=local_var_files,
|
39679
|
+
response_type='EmailverificationresponseResponse', # noqa: E501
|
39680
|
+
auth_settings=auth_settings,
|
39681
|
+
async_req=local_var_params.get('async_req'),
|
39682
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
39683
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
39684
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
39685
|
+
collection_formats=collection_formats)
|