
    |                         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 d	d
dZ e	j                  e	j                  j                          G d de	j"                               Zee_        y)z:Describe-custom-constraint command for the Org Policy CLI.    )absolute_import)division)unicode_literals)service)base)	arguments)utilsz+      Describes a custom constraint.
      z      To describe the custom constraint 'custom.myCustomConstraint' associated
      with the Organization '1234', run:

      $ {command} custom.myCustomConstraint --organization=1234
      )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)DescribeCustomConstraintzDescribe a custom constraint.c                 X    t        j                  |        t        j                  |        y )N)r   AddCustomConstraintArgToParser$AddOrganizationResourceFlagsToParser)parsers    6lib/surface/org_policies/describe_custom_constraint.pyArgszDescribeCustomConstraint.Args-   s    ,,V4226:    c                     t        j                  | j                               }t        j                  |      }|j                  |      S )zGets the custom constraint.

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

    Returns:
       The retrieved custom constraint.
    )org_policy_serviceOrgPolicyApiReleaseTrackr	   GetCustomConstraintFromArgsGetCustomConstraint)selfargsorg_policy_apicustom_constraint_names       r   RunzDescribeCustomConstraint.Run2   s@     (44T5F5F5HIN">>tD--.DEEr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r   )   s    %; ;Fr   r   N)r#   
__future__r   r   r    googlecloudsdk.api_lib.orgpolicyr   r   googlecloudsdk.callioper   'googlecloudsdk.command_lib.org_policiesr   r	   DETAILED_HELPReleaseTracksr   GADescribeCommandr   detailed_helpr%   r   r   <module>r/      sy    A &  ' J ( = 9	
	
 D%%(()Ft33 F *F0 *7  &r   