getStorageConfiguration method

Future<StorageConfiguration> getStorageConfiguration(
  1. String referenceToken
)

This operation retrieves the Storage configuration associated with the given storage configuration token

Access Class: READ_MEDIA

Implementation

Future<StorageConfiguration> getStorageConfiguration(
    String referenceToken) async {
  loggy.debug('getStorageConfigurations');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request:
            DeviceManagementRequest.getStorageConfiguration(referenceToken),
      ));

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return GetStorageConfigurationResponse.fromJson(
          responseEnvelope.body.response!)
      .storageConfiguration;
}