original_docstring: r"""Updates the Logs Router CMEK settings for the given resource.
  
          Note: CMEK for the Logs Router can currently only be configured
          for GCP organizations. Once configured, it applies to all
          projects and folders in the GCP organization.
  
          [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
          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.
  
          See `Enabling CMEK for Logs
          Router <https://cloud.google.com/logging/docs/routing/managed-encryption>`__
          for more information.
  
          Args:
              request (Union[google.cloud.logging_v2.types.UpdateCmekSettingsRequest, dict]):
                  The request object. The parameters to
                  [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
                  See [Enabling CMEK for Logs
                  Router](https://cloud.google.com/logging/docs/routing/managed-
                  encryption) for more information.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.CmekSettings:
                  Describes the customer-managed encryption key (CMEK) settings associated with
                     a project, folder, organization, billing account, or
                     flexible resource.
  
                     Note: CMEK for the Logs Router can currently only be
                     configured for GCP organizations. Once configured, it
                     applies to all projects and folders in the GCP
                     organization.
  
                     See [Enabling CMEK for Logs
                     Router](\ https://cloud.google.com/logging/docs/routing/managed-encryption)
                     for more information.
  
          
docstring: r"""Updates the Logs Router CMEK settings for the given resource.
  Note: CMEK for the Logs Router can currently only be configured
  for GCP organizations. Once configured, it applies to all
  projects and folders in the GCP organization.
  
  
  
  See `Enabling CMEK for Logs
  Router `
  for more information.
docstring_tokens: r " " " Updates the Logs Router CMEK settings for the given resource . Note : CMEK for the Logs Router can currently only be configured for GCP organizations . Once configured it applies to all projects and folders in the GCP organization . See ` Enabling CMEK for Logs Router ` for more information .
code: async def update_cmek_settings(self,
              request: Union[logging_config.UpdateCmekSettingsRequest, dict] = None,
              *,
              retry: OptionalRetry = gapic_v1.method.DEFAULT,
              timeout: float = None,
              metadata: Sequence[Tuple[str, str]] = (),
              ) -> logging_config.CmekSettings:
          r"""Updates the Logs Router CMEK settings for the given resource.
  
          Note: CMEK for the Logs Router can currently only be configured
          for GCP organizations. Once configured, it applies to all
          projects and folders in the GCP organization.
  
          [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
          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.
  
          See `Enabling CMEK for Logs
          Router <https://cloud.google.com/logging/docs/routing/managed-encryption>`__
          for more information.
  
          Args:
              request (Union[google.cloud.logging_v2.types.UpdateCmekSettingsRequest, dict]):
                  The request object. The parameters to
                  [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
                  See [Enabling CMEK for Logs
                  Router](https://cloud.google.com/logging/docs/routing/managed-
                  encryption) for more information.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.CmekSettings:
                  Describes the customer-managed encryption key (CMEK) settings associated with
                     a project, folder, organization, billing account, or
                     flexible resource.
  
                     Note: CMEK for the Logs Router can currently only be
                     configured for GCP organizations. Once configured, it
                     applies to all projects and folders in the GCP
                     organization.
  
                     See [Enabling CMEK for Logs
                     Router](\ https://cloud.google.com/logging/docs/routing/managed-encryption)
                     for more information.
  
          """
          # Create or coerce a protobuf request object.
          request = logging_config.UpdateCmekSettingsRequest(request)
  
          # Wrap the RPC method; this adds retry and timeout information,
          # and friendly error handling.
          rpc = gapic_v1.method_async.wrap_method(
              self._client._transport.update_cmek_settings,
              default_timeout=None,
              client_info=DEFAULT_CLIENT_INFO,
          )
  
          # Certain fields should be provided within the metadata header;
          # add these here.
          metadata = tuple(metadata) + (
              gapic_v1.routing_header.to_grpc_metadata((
                  ("name", request.name),
              )),
          )
  
          # Send the request.
          response = await rpc(
              request,
              retry=retry,
              timeout=timeout,
              metadata=metadata,
          )
  
          # Done; return the response.
          return response
code_tokens: async def update_cmek_settings ( self , request : Union [ logging_config . UpdateCmekSettingsRequest , dict ] = None , * , retry : OptionalRetry = gapic_v1 . method . DEFAULT , timeout : float = None , metadata : Sequence [ Tuple [ str , str ] ] = ( ) , ) -> logging_config . CmekSettings : request = logging_config . UpdateCmekSettingsRequest ( request ) rpc = gapic_v1 . method_async . wrap_method ( self . _client . _transport . update_cmek_settings , default_timeout = None , client_info = DEFAULT_CLIENT_INFO , ) metadata = tuple ( metadata ) + ( gapic_v1 . routing_header . to_grpc_metadata ( ( ( "name" , request . name ) , ) ) , ) response = await rpc ( request , retry = retry , timeout = timeout , metadata = metadata , ) return response
short_docstring: r"""Updates the Logs Router CMEK settings for the given resource.
short_docstring_tokens: r " " " Updates the Logs Router CMEK settings for the given resource .
comment: r"""Updates the Logs Router CMEK settings for the given resource.
  
          Note: CMEK for the Logs Router can currently only be configured
          for GCP organizations. Once configured, it applies to all
          projects and folders in the GCP organization.
  
          [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
          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.
  
          See `Enabling CMEK for Logs
          Router <https://cloud.google.com/logging/docs/routing/managed-encryption>`__
          for more information.
  
          Args:
              request (Union[google.cloud.logging_v2.types.UpdateCmekSettingsRequest, dict]):
                  The request object. The parameters to
                  [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
                  See [Enabling CMEK for Logs
                  Router](https://cloud.google.com/logging/docs/routing/managed-
                  encryption) for more information.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.CmekSettings:
                  Describes the customer-managed encryption key (CMEK) settings associated with
                     a project, folder, organization, billing account, or
                     flexible resource.
  
                     Note: CMEK for the Logs Router can currently only be
                     configured for GCP organizations. Once configured, it
                     applies to all projects and folders in the GCP
                     organization.
  
                     See [Enabling CMEK for Logs
                     Router](\ https://cloud.google.com/logging/docs/routing/managed-encryption)
                     for more information.
  
          """$SEP$# Create or coerce a protobuf request object.$SEP$# Wrap the RPC method; this adds retry and timeout information,$SEP$# and friendly error handling.$SEP$# Certain fields should be provided within the metadata header;$SEP$# add these here.$SEP$# Send the request.$SEP$# Done; return the response.