/AWS1/IF_PRN=>UPDATETEMPLATESYNCCONFIG()¶
About UpdateTemplateSyncConfig¶
Update template sync configuration parameters, except for the templateName and templateType. Repository details
(branch, name, and provider) should be of a linked repository. A linked repository is a repository that has been registered with Proton. For
more information, see CreateRepository.
Method Signature¶
METHODS /AWS1/IF_PRN~UPDATETEMPLATESYNCCONFIG
IMPORTING
!IV_TEMPLATENAME TYPE /AWS1/PRNRESOURCENAME OPTIONAL
!IV_TEMPLATETYPE TYPE /AWS1/PRNTEMPLATETYPE OPTIONAL
!IV_REPOSITORYPROVIDER TYPE /AWS1/PRNREPOSITORYPROVIDER OPTIONAL
!IV_REPOSITORYNAME TYPE /AWS1/PRNREPOSITORYNAME OPTIONAL
!IV_BRANCH TYPE /AWS1/PRNGITBRANCHNAME OPTIONAL
!IV_SUBDIRECTORY TYPE /AWS1/PRNSUBDIRECTORY OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_prnupdtmplsynccfgout
RAISING
/AWS1/CX_PRNACCESSDENIEDEX
/AWS1/CX_PRNCONFLICTEXCEPTION
/AWS1/CX_PRNINTERNALSERVEREX
/AWS1/CX_PRNRESOURCENOTFOUNDEX
/AWS1/CX_PRNTHROTTLINGEX
/AWS1/CX_PRNVALIDATIONEX
/AWS1/CX_PRNCLIENTEXC
/AWS1/CX_PRNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_templatename TYPE /AWS1/PRNRESOURCENAME /AWS1/PRNRESOURCENAME¶
The synced template name.
iv_templatetype TYPE /AWS1/PRNTEMPLATETYPE /AWS1/PRNTEMPLATETYPE¶
The synced template type.
iv_repositoryprovider TYPE /AWS1/PRNREPOSITORYPROVIDER /AWS1/PRNREPOSITORYPROVIDER¶
The repository provider.
iv_repositoryname TYPE /AWS1/PRNREPOSITORYNAME /AWS1/PRNREPOSITORYNAME¶
The repository name (for example,
myrepos/myrepo).
iv_branch TYPE /AWS1/PRNGITBRANCHNAME /AWS1/PRNGITBRANCHNAME¶
The repository branch for your template.
Optional arguments:¶
iv_subdirectory TYPE /AWS1/PRNSUBDIRECTORY /AWS1/PRNSUBDIRECTORY¶
A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_prnupdtmplsynccfgout /AWS1/CL_PRNUPDTMPLSYNCCFGOUT¶
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->updatetemplatesyncconfig(
iv_branch = |string|
iv_repositoryname = |string|
iv_repositoryprovider = |string|
iv_subdirectory = |string|
iv_templatename = |string|
iv_templatetype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_templatesyncconfig = lo_result->get_templatesyncconfig( ).
IF lo_templatesyncconfig IS NOT INITIAL.
lv_resourcename = lo_templatesyncconfig->get_templatename( ).
lv_templatetype = lo_templatesyncconfig->get_templatetype( ).
lv_repositoryprovider = lo_templatesyncconfig->get_repositoryprovider( ).
lv_repositoryname = lo_templatesyncconfig->get_repositoryname( ).
lv_gitbranchname = lo_templatesyncconfig->get_branch( ).
lv_subdirectory = lo_templatesyncconfig->get_subdirectory( ).
ENDIF.
ENDIF.