getPublicKeyConfig2020_05_31 method

Future<GetPublicKeyConfigResult> getPublicKeyConfig2020_05_31({
  1. required String id,
})

Gets a public key configuration.

May throw AccessDenied. May throw NoSuchPublicKey.

Parameter id : The identifier of the public key whose configuration you are getting.

Implementation

Future<GetPublicKeyConfigResult> getPublicKeyConfig2020_05_31({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2020-05-31/public-key/${Uri.encodeComponent(id)}/config',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetPublicKeyConfigResult(
    publicKeyConfig: PublicKeyConfig.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}