/// Updates the Log Router settings for the given resource.
///
/// Note: Settings for the Log Router can currently only be configured for
/// Google Cloud organizations. Once configured, it applies to all projects and
/// folders in the Google Cloud organization.
///
/// [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
/// will fail if 1) `kms_key_name` is invalid, or 2) the associated service
/// account does not have the required
/// `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
/// 3) access to the key is disabled. 4) `location_id` is not supported by
/// Logging. 5) `location_id` violate OrgPolicy.
///
/// See [Enabling CMEK for Log
/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
/// for more information.
Updates the Log Router settings for the given resource.
Note: Settings for the Log Router can currently only be configured for
Google Cloud organizations. Once configured, it applies to all projects and
folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
will fail if 1) `kms_key_name` is invalid, or 2) the associated service
account does not have the required
`roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
3) access to the key is disabled. 4) `location_id` is not supported by
Logging.

See [Enabling CMEK for Log
Router]
for more information.
Updates the Log Router settings for the given resource . Note : Settings for the Log Router can currently only be configured for Google Cloud organizations . Once configured it applies to all projects and folders in the Google Cloud organization . [ UpdateSettings ] [ google . logging . v2 . ConfigServiceV2 . UpdateSettings ] will fail if 1 ) ` kms_key_name ` is invalid or 2 ) the associated service account does not have the required ` roles / cloudkms . cryptoKeyEncrypterDecrypter ` role assigned for the key or 3 ) access to the key is disabled . 4 ) ` location_id ` is not supported by Logging . See [ Enabling CMEK for Log Router ] for more information .
pub async fn update_settings(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateSettingsRequest>,
        ) -> Result<tonic::Response<super::Settings>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.logging.v2.ConfigServiceV2/UpdateSettings",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn update_settings ( & mut self , request : impl tonic :: IntoRequest < super :: UpdateSettingsRequest > , ) -> Result < tonic :: Response < super :: Settings > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Updates the Log Router settings for the given resource.
Updates the Log Router settings for the given resource .
&mut self
request
impl tonic::IntoRequest<super::UpdateSettingsRequest>