
    @                         S r SSKJr  SSKJr  SSKJr  SSKJr  S rS rS r	S	 r
S
 rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS rg)z)Common flags for fleet packages commands.    )concepts)deps)
properties)	resourcesc                     U R                   =(       d1    [        R                  R                  R                   R	                  SS9$ NT)required)projectr   VALUEScoreGetargss    @lib/googlecloudsdk/command_lib/container/fleet/packages/flags.py
GetProjectr      s1    		J**//77;;T;JJ    c                     U R                   =(       d1    [        R                  R                  R                   R	                  SS9$ r   )locationr   r   config_deliveryr   r   s    r   GetLocationr      s;    	 
*++;;DDHH I  r   c                 *    U R                  SSSSSS9  g )Nz--lessF
store_truezShow less verbose output.r	   defaultactionhelpadd_argumentparsers    r   AddLessFlagr!   !   s$    &  r   c                 $    U R                  SSS9  g )NnamezResource name.r   r   r   s    r   AddNameFlagr%   +   s    f#34r   c                 $    U R                  SSS9  g )Nreleasez,Release identifier, either a version or tag.r$   r   r   s    r   AddReleaseFlagr(   /   s    D  r   c                 &    U R                  SSSS9  g )Nz--fleet-packageTz$Parent Fleet Package of the Rollout.r	   r   r   r   s    r   AddFleetPackageFlagr+   5   s    1  r   c                 &    U R                  SSSS9  g )Nz--sourceTz3Source file containing Fleet Package configuration.r*   r   r   s    r   AddSourceFlagr-   =   s    @  r   c                 &    U R                  SSSS9  g )Nz
--locationFzGoogle Cloud zone or region.r*   r   r   s    r   AddLocationFlagr/   E   s    U)G  r   c                 &    U R                  SSSS9  g )Nz--descriptionFzResource description.r*   r   r   s    r   AddDescriptionFlagr1   K   s    ,C  r   c                 &    U R                  SSSS9  g )Nz--resource-bundleTzResource Bundle name.r*   r   r   s    r   AddResourceBundleFlagr3   Q   s    D/F  r   c           	      ,    U R                  SSSSSSS9  g )Nz!--skip-creating-variant-resourcesFz7Whether to opt-in to the alternate variant upload flow.Tr   )r	   r   r   hiddenr   r   r   s    r   #AddSkipCreatingVariantResourcesFlagr6   W   s'    )D  r   c           	      2    U R                  SSSSSU S3S9  g )Nz--forceFr   zRIf true, force deletion of any child resources. Otherwise, attempting to delete a z with children will fail.r   r   )r    resource_names     r   AddForceDeleteFlagr9   b   s4    %%2O3LN  	r   c                 &    U R                  SSSS9  g )Nz--lifecycleFzLifecycle of the Release.r*   r   r   s    r   AddLifecycleFlagr;   o   s    e*E  r   c                 (    U R                  SSSSS9  g )Nz--variants-patternF*a*  Glob pattern to Variants of the Release, to be paired with the
        ``--source'' arg.
        ex: --source=/manifests-dir/ --variants-pattern=```**```,
            --source=/manifests-dir/ --variants-pattern=us-```*```.yaml,
            --source=/manifests/dir/ --variants-pattern=```*/*```.yaml)r	   r   r   r   r   s    r   AddVariantsPatternFlagr>   u   s$    J	  	r   c                      [         R                  " SS[        R                  " [        R
                  R                  R                  5      /S9$ )Nr
   zProject ID for the {resource}.r#   	help_textfallthroughs)r    ResourceParameterAttributeConfigr   PropertyFallthroughr   r   r   r
    r   r   ProjectAttributeConfigrF      s>    		2	20,,Z->->-C-C-K-KLM
 r   c                      [         R                  " SS[        R                  " [        R
                  R                  R                  5      /S9$ )Nr   z/Google Cloud zone or region for the {resource}.r@   )r   rC   r   rD   r   r   r   r   rE   r   r   LocationAttributeConfigrH      s@    		2	2A

"
":#4#4#D#D#M#M
N
 r   c                  ,    [         R                  " SSS9$ )Nfleet-packagezFleet Package name.r#   rA   r   rC   rE   r   r   FleetPackageAttributeConfigrM      s    		2	2&;
 r   c                  ,    [         R                  " SSS9$ )NrolloutzRollout name.rK   rL   rE   r   r   RolloutAttributeConfigrP      s    		2	2
 r   c                  b    [         R                  " SS[        5       [        5       [	        5       S9$ )Nz/configdelivery.projects.locations.fleetPackagesrJ   )r8   fleetPackagesIdlocationsId
projectsId)r   ResourceSpecrM   rH   rF   rE   r   r   GetFleetPackageResourceSpecrV      s-    			7#13)+')
 r   c            	      t    [         R                  " SS[        5       [        5       [	        5       [        5       S9$ )Nz8configdelivery.projects.locations.fleetPackages.rolloutsrO   )r8   
rolloutsIdrR   rS   rT   )r   rU   rP   rM   rH   rF   rE   r   r   GetRolloutResourceSpecrY      s3    			@')13)+')
 r   c                 L   ^^ UU4S jnU R                   R                  U5        g)zAdds `--uri` flag to the parser object for list commands.

Args:
  parser: The argparse parser.
  collection: str, The resource collection name.
  api_version: str, The API version to use.
c                 v   > [         R                  R                  U R                  TTS9nUR	                  5       $ )N)
collectionapi_version)r   REGISTRYParseRelativeNamer#   SelfLink)resourceresource_relative_namer]   r\   s     r   _GetResourceUri$AddUriFlags.<locals>._GetResourceUri   s<    &//AA*+ B  "**,,r   N)display_info
AddUriFunc)r    r\   r]   rc   s    `` r   AddUriFlagsrg      s    - 	  1r   N)__doc__ googlecloudsdk.calliope.conceptsr   r   googlecloudsdk.corer   r   r   r   r!   r%   r(   r+   r-   r/   r1   r3   r6   r9   r;   r>   rF   rH   rM   rP   rV   rY   rg   rE   r   r   <module>rk      s    0 5 1 * )K5

2r   