/AWS1/IF_IOS=>UPDATEPIPELINE()¶
About UpdatePipeline¶
Updates an existing pipeline in the specified workspace. Only the fields provided in the request are updated; fields not included in the request are preserved unchanged. You can update the pipeline description, environment variables, and the list of compute nodes independently.
Method Signature¶
METHODS /AWS1/IF_IOS~UPDATEPIPELINE
IMPORTING
!IV_WORKSPACENAME TYPE /AWS1/IOSWORKSPACENAME OPTIONAL
!IV_PIPELINENAME TYPE /AWS1/IOSRESOURCENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOSDESCRIPTION OPTIONAL
!IT_ENVIRONMENTVARIABLES TYPE /AWS1/CL_IOSENVVARIABLESMAP_W=>TT_ENVIRONMENTVARIABLESMAP OPTIONAL
!IT_COMPUTATIONS TYPE /AWS1/CL_IOSCOMPUTENODE=>TT_COMPUTENODELIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iosupdateplinresponse
RAISING
/AWS1/CX_IOSACCESSDENIEDEX
/AWS1/CX_IOSCNFLCTOPERATIONEX
/AWS1/CX_IOSINTERNALFAILUREEX
/AWS1/CX_IOSINVALIDREQUESTEX
/AWS1/CX_IOSLIMITEXCEEDEDEX
/AWS1/CX_IOSRESOURCENOTFOUNDEX
/AWS1/CX_IOSTHROTTLINGEX
/AWS1/CX_IOSCLIENTEXC
/AWS1/CX_IOSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workspacename TYPE /AWS1/IOSWORKSPACENAME /AWS1/IOSWORKSPACENAME¶
The name of the workspace.
iv_pipelinename TYPE /AWS1/IOSRESOURCENAME /AWS1/IOSRESOURCENAME¶
The name of the pipeline to update.
Optional arguments:¶
iv_description TYPE /AWS1/IOSDESCRIPTION /AWS1/IOSDESCRIPTION¶
A new description for the pipeline.
it_environmentvariables TYPE /AWS1/CL_IOSENVVARIABLESMAP_W=>TT_ENVIRONMENTVARIABLESMAP TT_ENVIRONMENTVARIABLESMAP¶
Updated environment variables shared across all compute nodes.
it_computations TYPE /AWS1/CL_IOSCOMPUTENODE=>TT_COMPUTENODELIST TT_COMPUTENODELIST¶
Updated list of compute nodes forming the pipeline DAG.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iosupdateplinresponse /AWS1/CL_IOSUPDATEPLINRESPONSE¶
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->updatepipeline(
it_computations = VALUE /aws1/cl_ioscomputenode=>tt_computenodelist(
(
new /aws1/cl_ioscomputenode(
it_dependson = VALUE /aws1/cl_ioscompnodenamelist_w=>tt_computenodenamelist(
( new /aws1/cl_ioscompnodenamelist_w( |string| ) )
)
it_environmentvariables = VALUE /aws1/cl_iosenvvariablesmap_w=>tt_environmentvariablesmap(
(
VALUE /aws1/cl_iosenvvariablesmap_w=>ts_envvariablesmap_maprow(
key = |string|
value = new /aws1/cl_iosenvvariablesmap_w( |string| )
)
)
)
iv_computenodename = |string|
iv_taskname = |string|
)
)
)
it_environmentvariables = VALUE /aws1/cl_iosenvvariablesmap_w=>tt_environmentvariablesmap(
(
VALUE /aws1/cl_iosenvvariablesmap_w=>ts_envvariablesmap_maprow(
key = |string|
value = new /aws1/cl_iosenvvariablesmap_w( |string| )
)
)
)
iv_description = |string|
iv_pipelinename = |string|
iv_workspacename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_version = lo_result->get_version( ).
lo_resourcestatus = lo_result->get_status( ).
IF lo_resourcestatus IS NOT INITIAL.
lo_resourceerror = lo_resourcestatus->get_error( ).
IF lo_resourceerror IS NOT INITIAL.
lv_resourceerrorcode = lo_resourceerror->get_code( ).
lv_string = lo_resourceerror->get_message( ).
ENDIF.
lv_resourcestate = lo_resourcestatus->get_state( ).
ENDIF.
ENDIF.