getCmekSettings method

Future<CmekSettings> getCmekSettings(
  1. GetCmekSettingsRequest request
)

Gets the Logging CMEK settings for the given resource.

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. 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<CmekSettings> getCmekSettings(GetCmekSettingsRequest request) async {
  final url = Uri.https(_host, '/v2/${request.name}/cmekSettings');
  final response = await _client.get(url);
  return CmekSettings.fromJson(response);
}