getPublicKey2019_03_26 method

Future<GetPublicKeyResult> getPublicKey2019_03_26({
  1. required String id,
})

Get the public key information.

May throw AccessDenied. May throw NoSuchPublicKey.

Parameter id : Request the ID for the public key.

Implementation

Future<GetPublicKeyResult> getPublicKey2019_03_26({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2019-03-26/public-key/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetPublicKeyResult(
    publicKey: PublicKey.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}