describeWorkingStorage method

Future<DescribeWorkingStorageOutput> describeWorkingStorage({
  1. required String gatewayARN,
})

Returns information about the working storage of a gateway. This operation is only supported in the stored volumes gateway type. This operation is deprecated in cached volumes API version (20120630). Use DescribeUploadBuffer instead. The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

May throw InvalidGatewayRequestException. May throw InternalServerError.

Implementation

Future<DescribeWorkingStorageOutput> describeWorkingStorage({
  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.DescribeWorkingStorage'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'GatewayARN': gatewayARN,
    },
  );

  return DescribeWorkingStorageOutput.fromJson(jsonResponse.body);
}