deleteConfig method
Future<ConfigIdResponse>
deleteConfig({
- required String configId,
- required ConfigCapabilityType configType,
Deletes a Config
.
May throw InvalidParameterException. May throw DependencyException. May throw ResourceNotFoundException.
Parameter configId
:
UUID of a Config
.
Parameter configType
:
Type of a Config
.
Implementation
Future<ConfigIdResponse> deleteConfig({
required String configId,
required ConfigCapabilityType configType,
}) async {
ArgumentError.checkNotNull(configId, 'configId');
ArgumentError.checkNotNull(configType, 'configType');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/config/${Uri.encodeComponent(configType.toValue())}/${Uri.encodeComponent(configId)}',
exceptionFnMap: _exceptionFns,
);
return ConfigIdResponse.fromJson(response);
}