getStorageConfigurations method

Future<List<StorageConfiguration>> getStorageConfigurations()

This operation lists all existing storage configurations for the device.

Access Class: READ_MEDIA

Implementation

Future<List<StorageConfiguration>> getStorageConfigurations() async {
  loggy.debug('getStorageConfigurations');

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

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

  return GetStorageConfigurationsResponse.fromJson(
    responseEnvelope.body.response!,
  ).storageConfigurations;
}