/AWS1/CL_PIP=>GETACTIONTYPE()
¶
About GetActionType¶
Returns information about an action type created for an external provider, where the action is to be used by customers of the external provider. The action can be created with any supported integration model.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_category
TYPE /AWS1/PIPACTIONCATEGORY
/AWS1/PIPACTIONCATEGORY
¶
Defines what kind of action can be taken in the stage. The following are the valid values:
Source
Build
Test
Deploy
Approval
Invoke
Compute
iv_owner
TYPE /AWS1/PIPACTIONTYPEOWNER
/AWS1/PIPACTIONTYPEOWNER
¶
The creator of an action type that was created with any supported integration model. There are two valid values:
AWS
andThirdParty
.
iv_provider
TYPE /AWS1/PIPACTIONPROVIDER
/AWS1/PIPACTIONPROVIDER
¶
The provider of the action type being called. The provider name is specified when the action type is created.
iv_version
TYPE /AWS1/PIPVERSION
/AWS1/PIPVERSION
¶
A string that describes the action type version.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_pipgetactiontypeout
/AWS1/CL_PIPGETACTIONTYPEOUT
¶
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->/aws1/if_pip~getactiontype(
iv_category = |string|
iv_owner = |string|
iv_provider = |string|
iv_version = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_actiontypedeclaration = lo_result->get_actiontype( ).
IF lo_actiontypedeclaration IS NOT INITIAL.
lv_actiontypedescription = lo_actiontypedeclaration->get_description( ).
lo_actiontypeexecutor = lo_actiontypedeclaration->get_executor( ).
IF lo_actiontypeexecutor IS NOT INITIAL.
lo_executorconfiguration = lo_actiontypeexecutor->get_configuration( ).
IF lo_executorconfiguration IS NOT INITIAL.
lo_lambdaexecutorconfigura = lo_executorconfiguration->get_lambdaexecutorconf( ).
IF lo_lambdaexecutorconfigura IS NOT INITIAL.
lv_lambdafunctionarn = lo_lambdaexecutorconfigura->get_lambdafunctionarn( ).
ENDIF.
lo_jobworkerexecutorconfig = lo_executorconfiguration->get_jobworkerexecutorconf( ).
IF lo_jobworkerexecutorconfig IS NOT INITIAL.
LOOP AT lo_jobworkerexecutorconfig->get_pollingaccounts( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_accountid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_jobworkerexecutorconfig->get_pollingserviceprincipals( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_serviceprincipal = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_executortype = lo_actiontypeexecutor->get_type( ).
lv_policystatementstemplat = lo_actiontypeexecutor->get_policystatementstemplate( ).
lv_jobtimeout = lo_actiontypeexecutor->get_jobtimeout( ).
ENDIF.
lo_actiontypeidentifier = lo_actiontypedeclaration->get_id( ).
IF lo_actiontypeidentifier IS NOT INITIAL.
lv_actioncategory = lo_actiontypeidentifier->get_category( ).
lv_actiontypeowner = lo_actiontypeidentifier->get_owner( ).
lv_actionprovider = lo_actiontypeidentifier->get_provider( ).
lv_version = lo_actiontypeidentifier->get_version( ).
ENDIF.
lo_actiontypeartifactdetai = lo_actiontypedeclaration->get_inputartifactdetails( ).
IF lo_actiontypeartifactdetai IS NOT INITIAL.
lv_minimumactiontypeartifa = lo_actiontypeartifactdetai->get_minimumcount( ).
lv_maximumactiontypeartifa = lo_actiontypeartifactdetai->get_maximumcount( ).
ENDIF.
lo_actiontypeartifactdetai = lo_actiontypedeclaration->get_outputartifactdetails( ).
IF lo_actiontypeartifactdetai IS NOT INITIAL.
lv_minimumactiontypeartifa = lo_actiontypeartifactdetai->get_minimumcount( ).
lv_maximumactiontypeartifa = lo_actiontypeartifactdetai->get_maximumcount( ).
ENDIF.
lo_actiontypepermissions = lo_actiontypedeclaration->get_permissions( ).
IF lo_actiontypepermissions IS NOT INITIAL.
LOOP AT lo_actiontypepermissions->get_allowedaccounts( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_allowedaccount = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_actiontypedeclaration->get_properties( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_actionconfigurationkey = lo_row_7->get_name( ).
lv_boolean = lo_row_7->get_optional( ).
lv_boolean = lo_row_7->get_key( ).
lv_boolean = lo_row_7->get_noecho( ).
lv_boolean = lo_row_7->get_queryable( ).
lv_propertydescription = lo_row_7->get_description( ).
ENDIF.
ENDLOOP.
lo_actiontypeurls = lo_actiontypedeclaration->get_urls( ).
IF lo_actiontypeurls IS NOT INITIAL.
lv_url = lo_actiontypeurls->get_configurationurl( ).
lv_urltemplate = lo_actiontypeurls->get_entityurltemplate( ).
lv_urltemplate = lo_actiontypeurls->get_executionurltemplate( ).
lv_urltemplate = lo_actiontypeurls->get_revisionurltemplate( ).
ENDIF.
ENDIF.
ENDIF.