deleteResourcePolicy method

Future<void> deleteResourcePolicy({
  1. String? registryName,
})

Delete the resource-based policy attached to the specified registry.

May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException.

Parameter registryName : The name of the registry.

Implementation

Future<void> deleteResourcePolicy({
  String? registryName,
}) async {
  final $query = <String, List<String>>{
    if (registryName != null) 'registryName': [registryName],
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v1/policy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}