/AWS1/IF_BDO=>UPDATEREGISTRY()¶
About UpdateRegistry¶
Updates an existing registry. This operation uses PATCH semantics, so you only need to specify the fields you want to change.
Method Signature¶
METHODS /AWS1/IF_BDO~UPDATEREGISTRY
IMPORTING
!IV_REGISTRYID TYPE /AWS1/BDOREGISTRYIDENTIFIER OPTIONAL
!IV_NAME TYPE /AWS1/BDOREGISTRYNAME OPTIONAL
!IO_DESCRIPTION TYPE REF TO /AWS1/CL_BDOUPDATEDDESCRIPTION OPTIONAL
!IO_AUTHORIZERCONFIGURATION TYPE REF TO /AWS1/CL_BDOUPDATEDAUTHRCONF OPTIONAL
!IO_APPROVALCONFIGURATION TYPE REF TO /AWS1/CL_BDOUPDATEDAPPRCONF OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdoupdateregresponse
RAISING
/AWS1/CX_BDOACCESSDENIEDEX
/AWS1/CX_BDOCONFLICTEXCEPTION
/AWS1/CX_BDOINTERNALSERVEREX
/AWS1/CX_BDORESOURCENOTFOUNDEX
/AWS1/CX_BDOSERVICEQUOTAEXCDEX
/AWS1/CX_BDOTHROTTLINGEX
/AWS1/CX_BDOVALIDATIONEX
/AWS1/CX_BDOCLIENTEXC
/AWS1/CX_BDOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_registryid TYPE /AWS1/BDOREGISTRYIDENTIFIER /AWS1/BDOREGISTRYIDENTIFIER¶
The identifier of the registry to update. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.
Optional arguments:¶
iv_name TYPE /AWS1/BDOREGISTRYNAME /AWS1/BDOREGISTRYNAME¶
The updated name of the registry.
io_description TYPE REF TO /AWS1/CL_BDOUPDATEDDESCRIPTION /AWS1/CL_BDOUPDATEDDESCRIPTION¶
The updated description of the registry. To clear the description, include the
UpdatedDescriptionwrapper withoptionalValuenot specified.
io_authorizerconfiguration TYPE REF TO /AWS1/CL_BDOUPDATEDAUTHRCONF /AWS1/CL_BDOUPDATEDAUTHRCONF¶
The updated authorizer configuration for the registry. Changing the authorizer configuration can break existing consumers of the registry who are using the authorization type prior to the update.
io_approvalconfiguration TYPE REF TO /AWS1/CL_BDOUPDATEDAPPRCONF /AWS1/CL_BDOUPDATEDAPPRCONF¶
The updated approval configuration for registry records. The updated configuration only affects new records that move to
PENDING_APPROVALstatus after the change. Existing records already inPENDING_APPROVALstatus are not affected.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdoupdateregresponse /AWS1/CL_BDOUPDATEREGRESPONSE¶
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->updateregistry(
io_approvalconfiguration = new /aws1/cl_bdoupdatedapprconf( new /aws1/cl_bdoapprovalconf( ABAP_TRUE ) )
io_authorizerconfiguration = new /aws1/cl_bdoupdatedauthrconf(
io_optionalvalue = new /aws1/cl_bdoauthorizerconf(
io_customjwtauthorizer = new /aws1/cl_bdocustomjwtauthrconf(
it_allowedaudience = VALUE /aws1/cl_bdoalwedaudiencelst_w=>tt_allowedaudiencelist(
( new /aws1/cl_bdoalwedaudiencelst_w( |string| ) )
)
it_allowedclients = VALUE /aws1/cl_bdoallowedclislist_w=>tt_allowedclientslist(
( new /aws1/cl_bdoallowedclislist_w( |string| ) )
)
it_allowedscopes = VALUE /aws1/cl_bdoalwdscopestype_w=>tt_allowedscopestype(
( new /aws1/cl_bdoalwdscopestype_w( |string| ) )
)
it_customclaims = VALUE /aws1/cl_bdocustclaimvldtntype=>tt_customclaimvalidationstype(
(
new /aws1/cl_bdocustclaimvldtntype(
io_authorizingclaimmatchval = new /aws1/cl_bdoauthorizingclaim00(
io_claimmatchvalue = new /aws1/cl_bdoclaimmatchvaltype(
it_matchvaluestringlist = VALUE /aws1/cl_bdomatchvalstrlist_w=>tt_matchvaluestringlist(
( new /aws1/cl_bdomatchvalstrlist_w( |string| ) )
)
iv_matchvaluestring = |string|
)
iv_claimmatchoperator = |string|
)
iv_inboundtokenclaimname = |string|
iv_indbtokenclaimvaluetype = |string|
)
)
)
iv_discoveryurl = |string|
)
)
)
io_description = new /aws1/cl_bdoupdateddescription( |string| )
iv_name = |string|
iv_registryid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_registryname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_registryid = lo_result->get_registryid( ).
lv_registryarn = lo_result->get_registryarn( ).
lv_registryauthorizertype = lo_result->get_authorizertype( ).
lo_authorizerconfiguration = lo_result->get_authorizerconfiguration( ).
IF lo_authorizerconfiguration IS NOT INITIAL.
lo_customjwtauthorizerconf = lo_authorizerconfiguration->get_customjwtauthorizer( ).
IF lo_customjwtauthorizerconf IS NOT INITIAL.
lv_discoveryurl = lo_customjwtauthorizerconf->get_discoveryurl( ).
LOOP AT lo_customjwtauthorizerconf->get_allowedaudience( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_allowedaudience = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_allowedclients( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_allowedclient = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_allowedscopes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_allowedscopetype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_customclaims( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_inboundtokenclaimnamety = lo_row_7->get_inboundtokenclaimname( ).
lv_inboundtokenclaimvaluet = lo_row_7->get_indbtokenclaimvaluetype( ).
lo_authorizingclaimmatchva = lo_row_7->get_authorizingclaimmatchval( ).
IF lo_authorizingclaimmatchva IS NOT INITIAL.
lo_claimmatchvaluetype = lo_authorizingclaimmatchva->get_claimmatchvalue( ).
IF lo_claimmatchvaluetype IS NOT INITIAL.
lv_matchvaluestring = lo_claimmatchvaluetype->get_matchvaluestring( ).
LOOP AT lo_claimmatchvaluetype->get_matchvaluestringlist( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_matchvaluestring = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_claimmatchoperatortype = lo_authorizingclaimmatchva->get_claimmatchoperator( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lo_approvalconfiguration = lo_result->get_approvalconfiguration( ).
IF lo_approvalconfiguration IS NOT INITIAL.
lv_boolean = lo_approvalconfiguration->get_autoapproval( ).
ENDIF.
lv_registrystatus = lo_result->get_status( ).
lv_string = lo_result->get_statusreason( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_datetimestamp = lo_result->get_updatedat( ).
ENDIF.