
    
                        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	 ddl
mZ ddl
mZ e	j                  e	j                   e	j                  e	j                  j                          G d d	e	j"                                             Zy
)z/Describe command for the Resource Settings CLI.    )absolute_import)division)unicode_literals)utils)base)	argumentsc                   &    e Zd ZdZed        Zd Zy)DescribezGet a resource setting.

  Get a resource setting

  ## EXAMPLES

  To describe the resource settings ``iam-projectCreatorRoles'' with the
  Project ``foo-project'', run:

    $ {command} iam-projectCreatorRoles --project=foo-project
  c                     t        j                  |        t        j                  |        | j                  ddd       y )Nz--effective
store_truezDescribe the effective setting.)actionhelp)r   AddSettingsNameArgToParserAddResourceFlagsToParseradd_argument)parsers    1lib/surface/resource_manager/settings/describe.pyArgszDescribe.Args+   s:    ((0&&v.
.      c                 j   |j                   rTt        j                  |      }t        j                  |      }t        j
                  ||d      }|j                  |      }|S t        j                  |      }t        j                  |      }t        j
                  ||d      }|j                  |      }|S )ad  Get the (effective) resource settings.

    If --effective is not specified, it is a regular resource setting.

    If --effective is specified, it is an effective setting.

    Args:
      args: argparse.Namespace, An object that contains the values for the
        arguments specified in the Args method.

    Returns:
       The retrieved settings.
    TF)		effective	api_utilsGetEffectiveServiceFromArgsr    GetEffectiveSettingsPathFromArgsGetDescribeRequestFromArgsGetGetServiceFromArgsGetSettingsPathFromArgs)selfargssettings_servicesetting_nameget_requestsetting_values         r   RunzDescribe.Run5   s     ~~">>tD;;DAl88
dk '**;7m"55d;2248l88
ek '**;7mr   N)__name__
__module____qualname____doc__staticmethodr   r%    r   r   r
   r
      s     
  "r   r
   N)r)   
__future__r   r   r   0googlecloudsdk.api_lib.resource_manager.settingsr   r   googlecloudsdk.callioper   4googlecloudsdk.command_lib.resource_manager.settingsr   HiddenDefaultUniverseOnlyReleaseTracksReleaseTrackALPHADescribeCommandr
   r+   r   r   <module>r6      ss    6 &  ' O ( J F D%%++,9t## 9 -  9r   