
    	                     2   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej                   ej                  ej                  j                  ej                  j                  ej                  j                         G d dej                                      Zy	)
z$'logging settings describe' command.    )absolute_import)division)unicode_literals)util)basec                   &    e Zd ZdZed        Zd Zy)Describea  Display the 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.

  ## EXAMPLES

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

    $ {command} --project=[PROJECT_ID]

  To describe the Logs Router 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]/settings'
    serviceAccountId:
    '[SERVICE_ACCOUNT_ID]@gcp-sa-logging.iam.gserviceaccount.com'
  c                 0    t        j                  | d       y)z Register flags for this command.zsettings to describeN)r   AddParentArgs)parsers    (lib/surface/logging/settings/describe.pyArgszDescribe.Args8   s     	v56    c                     t        j                  |      }t        j                         j                  j	                  t        j
                         j                  |            S )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 settings for the specified project, folder, organizations or
      billing-account.
    )name)r   GetParentFromArgs	GetClientprojectsGetSettingsGetMessages!LoggingProjectsGetSettingsRequest)selfargsparent_names      r   RunzDescribe.Run=   sP     ((.K>>$$00<<+<NP Pr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r	   r	      s!    . 7 7Pr   r	   N)r   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   UniverseCompatibleReleaseTracksReleaseTrackALPHABETAGADescribeCommandr	   r!   r   r   <module>r,      s     + '  ' / ( T..33T5F5F5I5I+Pt## +P +Pr   