
                             S r SSKJr  SSKJr  SSKJr  SSKJr   SS jr SS jr SS jr	 SS	 jr
 SS
 jrSS jr SS jrSS jr SS jrg)z-Flag helpers for the source-manager commands.    )absolute_import)division)unicode_literals)arg_parsersc           	      ,    U R                  SSSSUSS9  g )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                 *    U R                  SSSSUS9  g )Nz--validate-onlyvalidate_onlyr	   Fr
   r   r   r   r   r   s     r   AddValidateOnlyr   &   s&     	  r   c                 (    U R                  SSSUS9  g )Nz
--instanceinstanceTr
   r   r   r   r   s     r   AddInstancer   6   s      	d  r   c                 (    U R                  SSSUS9  g )Nz--descriptiondescriptionFr   r   r   s     r   AddDescriptionr!   ?   s      	ME	  r   c           
          U R                  SUS9nUR                  SSSSS9  UR                  SSS	[        R                  " 5       S/ S
S9  UR                  SSSSS9  UR                  SSSSS9  g)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                 (    U R                  SSSUS9  g )Nz	--kms-keykms_keyFr   r   r   s     r   	AddKmsKeyr3   r   s    	E	  r   c           	      R    U R                  SSSUU[        R                  " 5       S9  g )Nz
--max-waitmax_waitF)r
   r   r   r   r(   )r   r   Duration)r   default_max_waitr   s      r   
AddMaxWaitr8   x   s2    
 	!  r   c           	          U R                  SUS9nUR                  SSSSSSS9  UR                  S	S
SSS9  UR                  SSSS[        R                  " 5       SS9  g)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                 *    U R                  SSSSUS9  g )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   