
                         p   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  \R                  \R                  " \R                  R                   5       " S S	\R"                  5      5       5       r\R&                  \R                  " \R                  R(                  5       " S
 S\5      5       5       rg)z+Disable the version of the provided secret.    )api)base)parser_arguments)parser_extensions)args)logc                   .    \ rS rSrSr\S 5       rS rSrg)Disable   am  Disable the version of the provided secret.

Disable the version of the provided secret. It can be re-enabled with
`{parent_command} enable`.

## EXAMPLES

Disable version `123` of the secret named `my-secret`:

  $ {command} 123 --secret=my-secret

Disable version `123` of the secret named `my-secret` using etag:

  $ {command} 123 --secret=my-secret --etag=123
c                     [         R                  " U SSSS9  [         R                  " U SSS9  [         R                  " U SS9  g )N
to disableTpurpose
positionalrequiredFr   hiddendisabledactionsecrets_args
AddVersionAddLocationAddVersionEtagparsers    'lib/surface/secrets/versions/disable.pyArgsDisable.Args-   s=     V\%Hz:    c                 J   [         R                  " U R                  5       5      nUR                  R                  R                  5       n[         R                  " US9R                  X1R                  UR                  S9n[        R                  " 5       R                  U5        U$ )Napi_versionetagsecret_locationsecrets_apiGetApiFromTrackReleaseTrackCONCEPTSversionParseVersionsr
   r&   locationsecrets_logDisabledselfr   r$   version_refresults        r   RunDisable.Run5   s    --d.?.?.ABK--''--/K!!k:BB))T]] C F ##K0Mr!    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r7   __static_attributes__r9   r!   r   r
   r
      s       ; ;r!   r
   c                   ~    \ rS rSrSr\S\R                  4S j5       rS\	R                  S\R                  4S jrSrg	)
DisableBeta?   ap  Disable the version of the provided secret.

Disable the version of the provided secret. It can be re-enabled with
`{parent_command} enable`.

## EXAMPLES

Disable version `123` of the secret named `my-secret`:

  $ {command} 123 --secret=my-secret

Disable version `123` of the secret named `my-secret` using an etag:

  $ {command} 123 --secret=my-secret --etag=123
r   c                     [         R                  " U SSSS9  [         R                  " U SSS9  [         R                  " U SS9  g)	zArgs is called by calliope to gather arguments for secrets versions disable command.

Args:
  parser: An argparse parser that you can use to add arguments that will be
    available to this command.
r   Tr   Fr   r   r   Nr   r   s    r   r   DisableBeta.ArgsR   s?      V\%Hz:r!   r   returnc                 J   [         R                  " U R                  5       5      nUR                  R                  R                  5       n[         R                  " US9R                  X1R                  UR                  S9n[        R                  " 5       R                  U5        U$ )zRun is called by calliope to implement the secret versions disable command.

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

Returns:
  API call to invoke secret version disable.
r#   r%   r(   r3   s        r   r7   DisableBeta.Run`   s     --d.?.?.ABK--''--/K!!k:BB))T]] C F ##K0Mr!   r9   N)r:   r;   r<   r=   r>   r?   r   ArgumentInterceptorr   r   	Namespacer)   r/   r7   r@   r9   r!   r   rB   rB   ?   sI      ;#77 ; ;'11 k6J6J r!   rB   N)r>   googlecloudsdk.api_lib.secretsr   r)   googlecloudsdk.callioper   r   r   "googlecloudsdk.command_lib.secretsr   r   r   r1   UniverseCompatibleReleaseTracksr+   GADeleteCommandr
   DefaultUniverseOnlyBETArB   r9   r!   r   <module>rT      s    2 > ( 4 5 C A D%%(() d     *  F D%%**+/' / , /r!   