
    l                        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  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.    )absolute_import)division)unicode_literals)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.Args0   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.Run8   s    --d.?.?.ABK--''--/K!!k:BB))T]] C F ##K0Mr$    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr"   r:   __static_attributes__r<   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	)
DisableBetaB   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.ArgsU   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+   r6   s        r!   r:   DisableBeta.Runc   s     --d.?.?.ABK--''--/K!!k:BB))T]] C F ##K0Mr$   r<   N)r=   r>   r?   r@   rA   rB   r   ArgumentInterceptorr"   r	   	Namespacer,   r2   r:   rC   r<   r$   r!   rE   rE   B   sI      ;#77 ; ;'11 k6J6J r$   rE   N)rA   
__future__r   r   r   googlecloudsdk.api_lib.secretsr   r,   googlecloudsdk.callioper   r   r	   "googlecloudsdk.command_lib.secretsr
   r   r   r4   DefaultUniverseOnlyReleaseTracksr.   GADeleteCommandr   BETArE   r<   r$   r!   <module>rW      s    2 &  ' = ( 4 5 C A D%%(() d     *  F D%%**+/' / , /r$   