getSettings method
Gets the Log Router settings for the given resource.
Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.
See Enabling CMEK for Log Router for more information.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Future<Settings> getSettings(GetSettingsRequest request) async {
final url = Uri.https(_host, '/v2/${request.name}/settings');
final response = await _client.get(url);
return Settings.fromJson(response);
}