getConfig method

Future<GetConfigResponse> getConfig({
  1. required String configId,
  2. required ConfigCapabilityType configType,
})

Returns Config information.

Only one Config response can be returned.

May throw InvalidParameterException. May throw DependencyException. May throw ResourceNotFoundException.

Parameter configId : UUID of a Config.

Parameter configType : Type of a Config.

Implementation

Future<GetConfigResponse> getConfig({
  required String configId,
  required ConfigCapabilityType configType,
}) async {
  ArgumentError.checkNotNull(configId, 'configId');
  ArgumentError.checkNotNull(configType, 'configType');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/config/${Uri.encodeComponent(configType.toValue())}/${Uri.encodeComponent(configId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetConfigResponse.fromJson(response);
}