
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ 	 ddZ	 ddZ	 ddZ		 dd	Z
	 dd
ZddZ	 ddZddZ	 ddZy)z-Flag helpers for the source-manager commands.    )absolute_import)division)unicode_literals)arg_parsersc                 2    | j                  dddd|d       y )Nz--allow-missingallow_missingF
store_true)destrequireddefaulthelpactionadd_argumentparser	help_texts     6lib/googlecloudsdk/command_lib/source_manager/flags.pyAddAllowMissingr      s)     	      c                 0    | j                  dddd|       y )Nz--validate-onlyvalidate_onlyr	   Fr
   r   r   r   r   r   s     r   AddValidateOnlyr   &   s&     	  r   c                 .    | j                  ddd|       y )Nz
--instanceinstanceTr
   r   r   r   r   s     r   AddInstancer   6   s      	d  r   c                 .    | j                  ddd|       y )Nz--descriptiondescriptionFr   r   r   s     r   AddDescriptionr!   ?   s      	ME	  r   c           	          | j                  d|      }|j                  dddd       |j                  ddd	t        j                         dg d
       |j                  dddd       |j                  dddd       y)zAdd flags for initial config.Fr   r   z--default-branchdefault_branchz&Default branch name of the repository.r   z--gitignores
gitignores
GITIGNORESzList of gitignore template names user can choose from. Full list can be found here: https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#InitialConfig)r
   metavartyper   r   r   z	--licenselicensezLicense template name user can choose from. Full list can be found here: https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#InitialConfigz--readmereadmez:README template name. Valid template name(s) are: default.N	add_groupr   r   ArgListr   r   groups      r   AddInitialConfigGroupr0   H   s     

E	

:%3	    A   A  	 G	  r   c                 .    | j                  ddd|       y )Nz	--kms-keykms_keyFr   r   r   s     r   	AddKmsKeyr3   r   s    	E	  r   c           	      V    | j                  ddd||t        j                                y )Nz
--max-waitmax_waitF)r
   r   r   r   r(   )r   r   Duration)r   default_max_waitr   s      r   
AddMaxWaitr8   x   s2    
 	!  r   c                     | j                  d|      }|j                  dddddd       |j                  d	d
dd       |j                  ddddt        j                         d       y)zAdd flags for private config.Fr#   z--is-private
is_privatestore_constTz$Bool indicator for private instance.)r
   r   constr   r   z	--ca-poolca_poolz"CA Pool path for private instance.r   z--psc-allowed-projectspsc_allowed_projectsPROJECTSz[List of additional projects allowed to connect to the instance via private service connect.)r
   r   r'   r(   r   Nr+   r.   s      r   AddPrivateConfigGroupr@      s    


E	

:%1   /	   ! &  
r   c                 0    | j                  dddd|       y )Nz&--enable-workforce-identity-federation$enable_workforce_identity_federationr	   Fr   r   r   s     r   $AddEnableWorkforceIdentityFederationrC      s&     	.1  r   N)zrIf set to true, and the resource is not found, the request will succeed but no action will be taken on the server.)zxIf set to true, the request is validated and the user is provided with an expected result, but no actual change is made.)z$A Secure Source Manager instance ID.)z<Description of the repository. Cannot exceed 500 characters.)z(Repository initialization configuration.)z,KMS key used to encrypt instance optionally.)zTime to synchronously wait for the operation to complete, after which the operation continues asynchronously. Ignored if `--no-async` isn't specified. See $ gcloud topic datetimes for information on time formats.)zPrivate instance configuration.)z:Bool indicator for workforce identity federation instance.)__doc__
__future__r   r   r   googlecloudsdk.callioper   r   r   r   r!   r0   r3   r8   r@   rC    r   r   <module>rH      sm    4 &  ' /
 C"	=$ 5 M A'T eB K
r   