/AWS1/IF_SGM=>UPDATECOMPUTEQUOTA()¶
About UpdateComputeQuota¶
Update the compute allocation definition.
Method Signature¶
METHODS /AWS1/IF_SGM~UPDATECOMPUTEQUOTA
IMPORTING
!IV_COMPUTEQUOTAID TYPE /AWS1/SGMCOMPUTEQUOTAID OPTIONAL
!IV_TARGETVERSION TYPE /AWS1/SGMINTEGER OPTIONAL
!IO_COMPUTEQUOTACONFIG TYPE REF TO /AWS1/CL_SGMCOMPUTEQUOTACONFIG OPTIONAL
!IO_COMPUTEQUOTATARGET TYPE REF TO /AWS1/CL_SGMCOMPUTEQUOTATARGET OPTIONAL
!IV_ACTIVATIONSTATE TYPE /AWS1/SGMACTIVATIONSTATE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/SGMENTITYDESCRIPTION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmupdcomputequotarsp
RAISING
/AWS1/CX_SGMCONFLICTEXCEPTION
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMRESOURCENOTFOUND
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_computequotaid TYPE /AWS1/SGMCOMPUTEQUOTAID /AWS1/SGMCOMPUTEQUOTAID¶
ID of the compute allocation definition.
iv_targetversion TYPE /AWS1/SGMINTEGER /AWS1/SGMINTEGER¶
Target version.
Optional arguments:¶
io_computequotaconfig TYPE REF TO /AWS1/CL_SGMCOMPUTEQUOTACONFIG /AWS1/CL_SGMCOMPUTEQUOTACONFIG¶
Configuration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.
io_computequotatarget TYPE REF TO /AWS1/CL_SGMCOMPUTEQUOTATARGET /AWS1/CL_SGMCOMPUTEQUOTATARGET¶
The target entity to allocate compute resources to.
iv_activationstate TYPE /AWS1/SGMACTIVATIONSTATE /AWS1/SGMACTIVATIONSTATE¶
The state of the compute allocation being described. Use to enable or disable compute allocation.
Default is
Enabled.
iv_description TYPE /AWS1/SGMENTITYDESCRIPTION /AWS1/SGMENTITYDESCRIPTION¶
Description of the compute allocation definition.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmupdcomputequotarsp /AWS1/CL_SGMUPDCOMPUTEQUOTARSP¶
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->updatecomputequota(
io_computequotaconfig = new /aws1/cl_sgmcomputequotaconfig(
io_resourcesharingconfig = new /aws1/cl_sgmresourcesharingcfg(
iv_borrowlimit = 123
iv_strategy = |string|
)
it_computequotaresources = VALUE /aws1/cl_sgmcomputequotaresr00=>tt_computequotaresourcecfglist(
(
new /aws1/cl_sgmcomputequotaresr00(
iv_accelerators = 123
iv_count = 123
iv_instancetype = |string|
iv_memoryingib = '0.1'
iv_vcpu = '0.1'
)
)
)
iv_preemptteamtasks = |string|
)
io_computequotatarget = new /aws1/cl_sgmcomputequotatarget(
iv_fairshareweight = 123
iv_teamname = |string|
)
iv_activationstate = |string|
iv_computequotaid = |string|
iv_description = |string|
iv_targetversion = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_computequotaarn = lo_result->get_computequotaarn( ).
lv_integer = lo_result->get_computequotaversion( ).
ENDIF.