
    p                     V    S 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g)z9Shared resource flags for Secure Source Manager commands.    )concepts)concept_parsersc                  ,    [         R                  " SSS9$ )NregionzSecure Source Manager location.)name	help_textr    ResourceParameterAttributeConfig     >lib/googlecloudsdk/command_lib/source_manager/resource_args.pyRegionAttributeConfigr      s    		2	21
3 3r   c                  *    [         R                  " SS9$ )Ninstancer   r	   r   r   r   InstanceAttributeConfigr      s    		2	2
	CCr   c                  *    [         R                  " SS9$ )N
repositoryr   r	   r   r   r   RepositoryAttributeConfigr       s    		2	2	EEr   c                  ^    [         R                  " SS[        5       [         R                  SS9$ )Nz&securesourcemanager.projects.locationslocationF)resource_namelocationsId
projectsIddisable_auto_completers)r   ResourceSpecr    DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   GetRegionResourceSpecr   $   s-    			.')::#
 r   c            	      p    [         R                  " SS[        5       [        5       [         R                  SS9$ )Nz0securesourcemanager.projects.locations.instancesr   F)r   instancesIdr   r   r   )r   r   r   r   r   r   r   r   GetInstanceResourceSpecr!   .   s3    			8)+')::#
% %r   c            	      p    [         R                  " SS[        5       [        5       [         R                  SS9$ )Nz3securesourcemanager.projects.locations.repositoriesr   F)r   repositoriesIdr   r   r   )r   r   r   r   r   r   r   r   GetRepositoryResourceSpecr$   8   s3    			; .0')::#
 r   c                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd a resource argument for a Secure Source Manager location.

NOTE: Must be used only if it's the only resource arg in the command.

Args:
  parser: the parser for the command.
  verb: str, the verb to describe the resource, such as 'to update'.
z--regionz&The Secure Source Manager location {}.TrequiredN)r   ConceptParserForResourcer   formatAddToParserparserverbs     r   AddRegionResourceArgr/   C   sC     ++.55d;	 , 
 Kr   c                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd a resource argument for a Secure Source Manager instance.

NOTE: Must be used only if it's the only resource arg in the command.

Args:
  parser: the parser for the command.
  verb: str, the verb to describe the resource, such as 'to update'.
r   z&The Secure Source Manager instance {}.Tr&   N)r   r(   r)   r!   r*   r+   r,   s     r   AddInstanceResourceArgr1   T   sC     ++.55d;	 , 
 Kr   c                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd a resource argument for a Secure Source Manager repository.

NOTE: Must be used only if it's the only resource arg in the command.

Args:
  parser: the parser for the command.
  verb: str, the verb to describe the resource, such as 'to update'.
r   z(The Secure Source Manager repository {}.Tr&   N)r   r(   r)   r$   r*   r+   r,   s     r   AddRepositoryResourceArgr3   e   sC     ++!077=	 , 
 Kr   N)__doc__ googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r   r   r!   r$   r/   r1   r3   r   r   r   <module>r7      sB    @ 6 D3DF%""r   