getRule method
Gets information about a Recycle Bin retention rule.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter identifier :
The unique ID of the retention rule.
Implementation
Future<GetRuleResponse> getRule({
required String identifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/rules/${Uri.encodeComponent(identifier)}',
exceptionFnMap: _exceptionFns,
);
return GetRuleResponse.fromJson(response);
}