
                         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*Enable the version of the provided secret.    )api)base)parser_arguments)parser_extensions)args)logc                   ~    \ 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	)
Create   ah  Enable the version of the provided secret.

Enable the version of the provided secret. It can be disabled with
`{parent_command} disable`.

## EXAMPLES

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

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

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

  $ {command} 123 --secret=my-secret --etag=123
parserc                     [         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 enable command.

Args:
  parser: An argparse parser that you can use to add arguments that will be
    available to this command.
	to enableTpurpose
positionalrequiredFr   hiddenenabledactionNsecrets_args
AddVersionAddLocationAddVersionEtagr   s    &lib/surface/secrets/versions/enable.pyArgsCreate.Args-   s?     t V[Gy9    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 enable command.

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

Returns:
  API call to invoke secret version enable.
api_versionetagsecret_locationsecrets_apiGetApiFromTrackReleaseTrackCONCEPTSversionParseVersionsEnabler'   locationsecrets_logEnabledselfr   r%   version_refresults        r   Run
Create.Run;   s     --d.?.?.ABK--''--/K!!k:AA))T]] B F "";/Mr!    N)__name__
__module____qualname____firstlineno____doc__staticmethodr   ArgumentInterceptorr   r   	Namespacer*   r0   r9   __static_attributes__r;   r!   r   r
   r
      sI      :#77 : :'11 k6J6J r!   r
   c                   .    \ rS rSrSr\S 5       rS rSrg)
CreateBetaN   ak  Enable the version of the provided secret.

Enable the version of the provided secret. It can be disabled with
`{parent_command} disable`.

## EXAMPLES

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

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

Enable version `123` of the secret named `my-secret` using an 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 )Nr   Tr   Fr   r   r   r   r   s    r   r   CreateBeta.Argsa   s=    t V[Gy9r!   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$ )Nr$   r&   r)   r5   s        r   r9   CreateBeta.Runi   s    --d.?.?.ABK--''--/K!!k:AA))T]] B F "";/Mr!   r;   N)	r<   r=   r>   r?   r@   rA   r   r9   rD   r;   r!   r   rF   rF   N   s       : :r!   rF   N)r@   googlecloudsdk.api_lib.secretsr   r*   googlecloudsdk.callioper   r   r   "googlecloudsdk.command_lib.secretsr   r   r   r3   UniverseCompatibleReleaseTracksr,   GACreateCommandr
   DefaultUniverseOnlyBETArF   r;   r!   r   <module>rU      s    1 > ( 4 5 C A D%%(()/T / * /d D%%**+    ,  r!   