
                            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K
Jr  SSK
Jr  \	R                  " \	R                  R                  \	R                  R                   5       " S	 S
\	R"                  5      5       r\	R                  " \	R                  R&                  5       " S S\5      5       rSSSS.r\\l        \\l        g)zC`gcloud access-context-manager perimeters dry-run enforce` command.    )absolute_import)division)unicode_literals)zones)base)
perimeters)policiesc                   2    \ rS rSrSrSr\S 5       rS rSr	g)EnforcePerimeterDryRun   5Enforces a Service Perimeter's dry-run configuration.v1c                 T    [         R                  " U S5        U R                  SSSS9  g )Nzto resetz--async
store_truezZReturn immediately, without waiting for the operation in
            progress to complete.)actionhelp)r   AddResourceArgadd_argument)parsers    @lib/surface/access_context_manager/perimeters/dry_run/enforce.pyArgsEnforcePerimeterDryRun.Args    s0    fj1
%  &    c                     [         R                  " U R                  S9nUR                  R                  R                  5       n[        R                  " X15        UR                  U5      $ )N)version)		zones_apiClient_API_VERSIONCONCEPTS	perimeterParser	   ValidateAccessPolicyArgEnforceDryRunConfig)selfargsclientperimeter_refs       r   RunEnforcePerimeterDryRun.Run)   sO    d&7&78FMM++113M$$]9%%m44r    N)
__name__
__module____qualname____firstlineno____doc__r   staticmethodr   r(   __static_attributes__r*   r   r   r   r      s!    =,& &5r   r   c                       \ rS rSrSrSrSrg)EnforcePerimeterDryRunAlpha0   r   v1alphar*   N)r+   r,   r-   r.   r/   r   r1   r*   r   r   r3   r3   0   s
    =,r   r3   r   ag          Copies a Service Perimeter's dry-run mode configuration to its
        enforcement mode configuration and unsets the explicit dry-run spec.
        After this operation succeeds, the Service Perimeter will not have
        an explicit dry-run mode configuration, and, instead, the previous
        dry-run mode configuration will become the enforcement mode
        configuration. The operation will not be performed if there is no
        explicit dry-run mode configuration or if the dry-run mode
        configuration is incompatible with the overall enforcement mode VPC
        Service Controls policy.zo        To enforce the dry-run mode configuration for a Service Perimeter:


          $ {command} my-perimeter)briefDESCRIPTIONEXAMPLESN)r/   
__future__r   r   r   +googlecloudsdk.api_lib.accesscontextmanagerr   r   googlecloudsdk.callioper   /googlecloudsdk.command_lib.accesscontextmanagerr   r	   ReleaseTracksReleaseTrackBETAGAUpdateCommandr   ALPHAr3   detailed_helpr*   r   r   <module>rD      s    J &  ' J ( F D D%%**D,=,=,@,@A5T// 5 B5( D%%++,"8  - 	A		$	&( -:  )'4  $r   