/AWS1/IF_HPP=>UPDATEQUEUE()¶
About UpdateQueue¶
Updates the compute node group configuration of a queue. Use this API to change the compute node groups that the queue can send jobs to.
Method Signature¶
METHODS /AWS1/IF_HPP~UPDATEQUEUE
IMPORTING
!IV_CLUSTERIDENTIFIER TYPE /AWS1/HPPCLUSTERIDENTIFIER OPTIONAL
!IV_QUEUEIDENTIFIER TYPE /AWS1/HPPQUEUEIDENTIFIER OPTIONAL
!IT_COMPUTENODEGROUPCONFS TYPE /AWS1/CL_HPPCOMPUTENODEGRPCONF=>TT_COMPUTENODEGROUPCONFLIST OPTIONAL
!IO_SLURMCONFIGURATION TYPE REF TO /AWS1/CL_HPPUPQUEUESLURMCONF00 OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/HPPSBCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hppupdatequeuersp
RAISING
/AWS1/CX_HPPACCESSDENIEDEX
/AWS1/CX_HPPCONFLICTEXCEPTION
/AWS1/CX_HPPINTERNALSERVEREX
/AWS1/CX_HPPRESOURCENOTFOUNDEX
/AWS1/CX_HPPSERVICEQUOTAEXCDEX
/AWS1/CX_HPPTHROTTLINGEX
/AWS1/CX_HPPVALIDATIONEX
/AWS1/CX_HPPCLIENTEXC
/AWS1/CX_HPPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clusteridentifier TYPE /AWS1/HPPCLUSTERIDENTIFIER /AWS1/HPPCLUSTERIDENTIFIER¶
The name or ID of the cluster of the queue.
iv_queueidentifier TYPE /AWS1/HPPQUEUEIDENTIFIER /AWS1/HPPQUEUEIDENTIFIER¶
The name or ID of the queue.
Optional arguments:¶
it_computenodegroupconfs TYPE /AWS1/CL_HPPCOMPUTENODEGRPCONF=>TT_COMPUTENODEGROUPCONFLIST TT_COMPUTENODEGROUPCONFLIST¶
The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
io_slurmconfiguration TYPE REF TO /AWS1/CL_HPPUPQUEUESLURMCONF00 /AWS1/CL_HPPUPQUEUESLURMCONF00¶
Additional options related to the Slurm scheduler.
iv_clienttoken TYPE /AWS1/HPPSBCLIENTTOKEN /AWS1/HPPSBCLIENTTOKEN¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hppupdatequeuersp /AWS1/CL_HPPUPDATEQUEUERSP¶
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->updatequeue(
io_slurmconfiguration = new /aws1/cl_hppupqueueslurmconf00(
it_slurmcustomsettings = VALUE /aws1/cl_hppslurmcustomsetting=>tt_slurmcustomsettings(
(
new /aws1/cl_hppslurmcustomsetting(
iv_parametername = |string|
iv_parametervalue = |string|
)
)
)
)
it_computenodegroupconfs = VALUE /aws1/cl_hppcomputenodegrpconf=>tt_computenodegroupconflist(
( new /aws1/cl_hppcomputenodegrpconf( |string| ) )
)
iv_clienttoken = |string|
iv_clusteridentifier = |string|
iv_queueidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_queue = lo_result->get_queue( ).
IF lo_queue IS NOT INITIAL.
lv_queuename = lo_queue->get_name( ).
lv_string = lo_queue->get_id( ).
lv_string = lo_queue->get_arn( ).
lv_string = lo_queue->get_clusterid( ).
lv_timestamp = lo_queue->get_createdat( ).
lv_timestamp = lo_queue->get_modifiedat( ).
lv_queuestatus = lo_queue->get_status( ).
LOOP AT lo_queue->get_computenodegroupconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_computenodegroupid( ).
ENDIF.
ENDLOOP.
lo_queueslurmconfiguration = lo_queue->get_slurmconfiguration( ).
IF lo_queueslurmconfiguration IS NOT INITIAL.
LOOP AT lo_queueslurmconfiguration->get_slurmcustomsettings( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_parametername( ).
lv_string = lo_row_3->get_parametervalue( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_queue->get_errorinfo( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_code( ).
lv_string = lo_row_5->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.