/AWS1/IF_BRK=>SEARCHQUANTUMTASKS()¶
About SearchQuantumTasks¶
Searches for tasks that match the specified filter values.
Method Signature¶
METHODS /AWS1/IF_BRK~SEARCHQUANTUMTASKS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/BRKSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BRKINTEGER OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_BRKSRCHQUANTUMTSKSF00=>TT_SRCHQUANTUMTASKSFILTERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_brksrchquantumtsksrsp
RAISING
/AWS1/CX_BRKACCESSDENIEDEX
/AWS1/CX_BRKINTERNALSERVICEEX
/AWS1/CX_BRKTHROTTLINGEX
/AWS1/CX_BRKVALIDATIONEX
/AWS1/CX_BRKCLIENTEXC
/AWS1/CX_BRKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_filters TYPE /AWS1/CL_BRKSRCHQUANTUMTSKSF00=>TT_SRCHQUANTUMTASKSFILTERLIST TT_SRCHQUANTUMTASKSFILTERLIST¶
Array of
SearchQuantumTasksFilterobjects to use when searching for quantum tasks.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/BRKSTRING /AWS1/BRKSTRING¶
A token used for pagination of results returned in the response. Use the token returned from the previous request to continue search where the previous request ended.
iv_maxresults TYPE /AWS1/BRKINTEGER /AWS1/BRKINTEGER¶
Maximum number of results to return in the response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_brksrchquantumtsksrsp /AWS1/CL_BRKSRCHQUANTUMTSKSRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->searchquantumtasks(
it_filters = VALUE /aws1/cl_brksrchquantumtsksf00=>tt_srchquantumtasksfilterlist(
(
new /aws1/cl_brksrchquantumtsksf00(
it_values = VALUE /aws1/cl_brkstring256list_w=>tt_string256list(
( new /aws1/cl_brkstring256list_w( |string| ) )
)
iv_name = |string|
iv_operator = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_quantumtasks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_quantumtaskarn = lo_row_1->get_quantumtaskarn( ).
lv_quantumtaskstatus = lo_row_1->get_status( ).
lv_devicearn = lo_row_1->get_devicearn( ).
lv_long = lo_row_1->get_shots( ).
lv_string = lo_row_1->get_outputs3bucket( ).
lv_string = lo_row_1->get_outputs3directory( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_endedat( ).
LOOP AT lo_row_1->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.