/AWS1/IF_GLU=>UPDATEJOBFROMSOURCECONTROL()¶
About UpdateJobFromSourceControl¶
Synchronizes a job from the source control repository. This operation takes the job artifacts that are located in the remote repository and updates the Glue internal stores with these artifacts.
This API supports optional parameters which take in the repository information.
Method Signature¶
METHODS /AWS1/IF_GLU~UPDATEJOBFROMSOURCECONTROL
IMPORTING
!IV_JOBNAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_PROVIDER TYPE /AWS1/GLUSOURCECONTROLPROVIDER OPTIONAL
!IV_REPOSITORYNAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_REPOSITORYOWNER TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_BRANCHNAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_FOLDER TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_COMMITID TYPE /AWS1/GLUCOMMITIDSTRING OPTIONAL
!IV_AUTHSTRATEGY TYPE /AWS1/GLUSOURCECTLAUTHSTRAG OPTIONAL
!IV_AUTHTOKEN TYPE /AWS1/GLUAUTHTOKENSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gluupdjobfrmsrcctlrsp
RAISING
/AWS1/CX_GLUACCESSDENIEDEX
/AWS1/CX_GLUALREADYEXISTSEX
/AWS1/CX_GLUENTITYNOTFOUNDEX
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUOPERATIONTIMEOUTEX
/AWS1/CX_GLUVALIDATIONEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_jobname TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The name of the Glue job to be synchronized to or from the remote repository.
iv_provider TYPE /AWS1/GLUSOURCECONTROLPROVIDER /AWS1/GLUSOURCECONTROLPROVIDER¶
The provider for the remote repository. Possible values: GITHUB, AWS_CODE_COMMIT, GITLAB, BITBUCKET.
iv_repositoryname TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The name of the remote repository that contains the job artifacts. For BitBucket providers,
RepositoryNameshould includeWorkspaceName. Use the format./
iv_repositoryowner TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The owner of the remote repository that contains the job artifacts.
iv_branchname TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
An optional branch in the remote repository.
iv_folder TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
An optional folder in the remote repository.
iv_commitid TYPE /AWS1/GLUCOMMITIDSTRING /AWS1/GLUCOMMITIDSTRING¶
A commit ID for a commit in the remote repository.
iv_authstrategy TYPE /AWS1/GLUSOURCECTLAUTHSTRAG /AWS1/GLUSOURCECTLAUTHSTRAG¶
The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.
iv_authtoken TYPE /AWS1/GLUAUTHTOKENSTRING /AWS1/GLUAUTHTOKENSTRING¶
The value of the authorization token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gluupdjobfrmsrcctlrsp /AWS1/CL_GLUUPDJOBFRMSRCCTLRSP¶
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->updatejobfromsourcecontrol(
iv_authstrategy = |string|
iv_authtoken = |string|
iv_branchname = |string|
iv_commitid = |string|
iv_folder = |string|
iv_jobname = |string|
iv_provider = |string|
iv_repositoryname = |string|
iv_repositoryowner = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_namestring = lo_result->get_jobname( ).
ENDIF.