Skip to content

/AWS1/CL_GUR=>DESCRIBECODEREVIEW()

About DescribeCodeReview

Returns the metadata associated with the code review along with its status.

Method Signature

IMPORTING

Required arguments:

iv_codereviewarn TYPE /AWS1/GURARN /AWS1/GURARN

The Amazon Resource Name (ARN) of the CodeReview object.

RETURNING

oo_output TYPE REF TO /aws1/cl_gurdescrcodereviewrsp /AWS1/CL_GURDESCRCODEREVIEWRSP

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_gur~describecodereview( |string| ).

This is an example of reading all possible response values

lv_name = lo_codereview->get_name( ).
lv_arn = lo_codereview->get_codereviewarn( ).
lv_name = lo_codereview->get_repositoryname( ).
lv_owner = lo_codereview->get_owner( ).
lv_providertype = lo_codereview->get_providertype( ).
lv_jobstate = lo_codereview->get_state( ).
lv_statereason = lo_codereview->get_statereason( ).
lv_timestamp = lo_codereview->get_createdtimestamp( ).
lv_timestamp = lo_codereview->get_lastupdatedtimestamp( ).
lv_type = lo_codereview->get_type( ).
lv_pullrequestid = lo_codereview->get_pullrequestid( ).
lv_commitid = lo_commitdiffsourcecodetyp->get_sourcecommit( ).
lv_commitid = lo_commitdiffsourcecodetyp->get_destinationcommit( ).
lv_commitid = lo_commitdiffsourcecodetyp->get_mergebasecommit( ).
lv_branchname = lo_repositoryheadsourcecod->get_branchname( ).
lv_branchname = lo_branchdiffsourcecodetyp->get_sourcebranchname( ).
lv_branchname = lo_branchdiffsourcecodetyp->get_destinationbranchname( ).
lv_name = lo_s3bucketrepository->get_name( ).
lv_s3bucketname = lo_s3repositorydetails->get_bucketname( ).
lv_sourcecodeartifactsobje = lo_codeartifacts->get_srccodeartifactsobjkey( ).
lv_buildartifactsobjectkey = lo_codeartifacts->get_buildartifactsobjectkey( ).
lv_requestid = lo_requestmetadata->get_requestid( ).
lv_requester = lo_requestmetadata->get_requester( ).
lv_eventname = lo_eventinfo->get_name( ).
lv_eventstate = lo_eventinfo->get_state( ).
lv_vendorname = lo_requestmetadata->get_vendorname( ).
lv_associationarn = lo_codereview->get_associationarn( ).
lv_linesofcodecount = lo_metrics->get_meteredlinesofcodecount( ).
lv_linesofcodecount = lo_metrics->get_supedlinesofcodecount( ).
lv_findingscount = lo_metrics->get_findingscount( ).
LOOP AT lo_codereview->get_analysistypes( ) into lo_row.
  lv_analysistype = lo_row_1->get_value( ).
ENDLOOP.
lv_configfilestate = lo_codereview->get_configfilestate( ).