describeUploadBuffer method

Future<DescribeUploadBufferOutput> describeUploadBuffer({
  1. required String gatewayARN,
})

Returns information about the upload buffer of a gateway. This operation is supported for the stored volume, cached volume, and tape gateway types.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

May throw InvalidGatewayRequestException. May throw InternalServerError.

Implementation

Future<DescribeUploadBufferOutput> describeUploadBuffer({
  required String gatewayARN,
}) async {
  ArgumentError.checkNotNull(gatewayARN, 'gatewayARN');
  _s.validateStringLength(
    'gatewayARN',
    gatewayARN,
    50,
    500,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StorageGateway_20130630.DescribeUploadBuffer'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GatewayARN': gatewayARN,
    },
  );

  return DescribeUploadBufferOutput.fromJson(jsonResponse.body);
}