/AWS1/IF_GUR=>LISTREPOSITORYASSOCIATIONS()¶
About ListRepositoryAssociations¶
Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association. You can filter the returned list by ProviderType, Name, State, and Owner.
Method Signature¶
METHODS /AWS1/IF_GUR~LISTREPOSITORYASSOCIATIONS
IMPORTING
!IT_PROVIDERTYPES TYPE /AWS1/CL_GURPROVIDERTYPES_W=>TT_PROVIDERTYPES OPTIONAL
!IT_STATES TYPE /AWS1/CL_GURREPOSITORYASSOCI01=>TT_REPOSITORYASSOCIATIONSTATES OPTIONAL
!IT_NAMES TYPE /AWS1/CL_GURNAMES_W=>TT_NAMES OPTIONAL
!IT_OWNERS TYPE /AWS1/CL_GUROWNERS_W=>TT_OWNERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/GURMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/GURNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gurlstrepositoryass01
RAISING
/AWS1/CX_GURINTERNALSERVEREX
/AWS1/CX_GURTHROTTLINGEX
/AWS1/CX_GURVALIDATIONEX
/AWS1/CX_GURCLIENTEXC
/AWS1/CX_GURSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_providertypes TYPE /AWS1/CL_GURPROVIDERTYPES_W=>TT_PROVIDERTYPES TT_PROVIDERTYPES¶
List of provider types to use as a filter.
it_states TYPE /AWS1/CL_GURREPOSITORYASSOCI01=>TT_REPOSITORYASSOCIATIONSTATES TT_REPOSITORYASSOCIATIONSTATES¶
List of repository association states to use as a filter.
The valid repository association states are:
Associated: The repository association is complete.
Associating: CodeGuru Reviewer is:
Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review.
If your repository
ProviderTypeisGitHub,GitHub Enterprise Server, orBitbucket, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered.Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository.
Failed: The repository failed to associate or disassociate.
Disassociating: CodeGuru Reviewer is removing the repository's pull request notifications and source code access.
Disassociated: CodeGuru Reviewer successfully disassociated the repository. You can create a new association with this repository if you want to review source code in it later. You can control access to code reviews created in anassociated repository with tags after it has been disassociated. For more information, see Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide.
it_names TYPE /AWS1/CL_GURNAMES_W=>TT_NAMES TT_NAMES¶
List of repository names to use as a filter.
it_owners TYPE /AWS1/CL_GUROWNERS_W=>TT_OWNERS TT_OWNERS¶
List of owners to use as a filter. For Amazon Web Services CodeCommit, it is the name of the CodeCommit account that was used to associate the repository. For other repository source providers, such as Bitbucket and GitHub Enterprise Server, this is name of the account that was used to associate the repository.
iv_maxresults TYPE /AWS1/GURMAXRESULTS /AWS1/GURMAXRESULTS¶
The maximum number of repository association results returned by
ListRepositoryAssociationsin paginated output. When this parameter is used,ListRepositoryAssociationsonly returnsmaxResultsresults in a single page with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListRepositoryAssociationsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used,ListRepositoryAssociationsreturns up to 100 results and anextTokenvalue if applicable.
iv_nexttoken TYPE /AWS1/GURNEXTTOKEN /AWS1/GURNEXTTOKEN¶
The
nextTokenvalue returned from a previous paginatedListRepositoryAssociationsrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.Treat this token as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gurlstrepositoryass01 /AWS1/CL_GURLSTREPOSITORYASS01¶
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->listrepositoryassociations(
it_names = VALUE /aws1/cl_gurnames_w=>tt_names(
( new /aws1/cl_gurnames_w( |string| ) )
)
it_owners = VALUE /aws1/cl_gurowners_w=>tt_owners(
( new /aws1/cl_gurowners_w( |string| ) )
)
it_providertypes = VALUE /aws1/cl_gurprovidertypes_w=>tt_providertypes(
( new /aws1/cl_gurprovidertypes_w( |string| ) )
)
it_states = VALUE /aws1/cl_gurrepositoryassoci01=>tt_repositoryassociationstates(
( new /aws1/cl_gurrepositoryassoci01( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_repositoryassociations00( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_associationarn( ).
lv_connectionarn = lo_row_1->get_connectionarn( ).
lv_timestamp = lo_row_1->get_lastupdatedtimestamp( ).
lv_associationid = lo_row_1->get_associationid( ).
lv_name = lo_row_1->get_name( ).
lv_owner = lo_row_1->get_owner( ).
lv_providertype = lo_row_1->get_providertype( ).
lv_repositoryassociationst = lo_row_1->get_state( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.