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 DependencyException. May throw InvalidParameterException. 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 {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/config/${Uri.encodeComponent(configType.value)}/${Uri.encodeComponent(configId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetConfigResponse.fromJson(response);
}