
    '	                     n    S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      r
g	)
z)'logging cmek-settings describe' command.    )absolute_import)division)unicode_literals)util)basec                   .    \ rS rSrSr\S 5       rS rSrg)Describe   a  Display the CMEK settings for the Cloud Logging Logs Router.

If *kmsKeyName* is present in the output, then CMEK is enabled for your
project, folder, organization or billing-account. You can also find the Logs
Router service account using this command.

## EXAMPLE

To describe the Logs Router CMEK settings for a project, run:

  $ {command} --project=[PROJECT_ID]

To describe the Logs Router CMEK settings for an organization, run:

  $ {command} --organization=[ORGANIZATION_ID]

  kmsKeyName:
  'projects/my-project/locations/my-location/keyRings/my-keyring/cryptoKeys/key'
  name: 'organizations/[ORGANIZATION_ID]/cmekSettings'
  serviceAccountId:
  '[SERVICE_ACCOUNT_ID]@gcp-sa-logging.iam.gserviceaccount.com'
c                 2    [         R                  " U S5        g)z Register flags for this command.zCMEK settings to describeN)r   AddParentArgs)parsers    -lib/surface/logging/cmek_settings/describe.pyArgsDescribe.Args4   s     	v:;    c                     [         R                  " U5      n[         R                  " 5       R                  R	                  [         R
                  " 5       R                  US95      $ )a
  This is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  The CMEK settings for the specified project, folder, organizations
  or billing-account.
)name)r   GetParentFromArgs	GetClientv2GetCmekSettingsGetMessagesLoggingGetCmekSettingsRequest)selfargsparent_names      r   RunDescribe.Run9   sP     ((.K>>..88k8JL Lr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r   r   r   r	   r	      s!    . < <Lr   r	   N)r$   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   DescribeCommandr	   r   r   r   <module>r+      s/     0 '  ' / (+Lt## +Lr   