
                             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	  S r
S	 rSS
 jrSS jrS rS rSS jrSS jrg)z-Shared resource flags for OS Config commands.    )absolute_import)division)unicode_literals)concepts)concept_parsers)presentation_specsc                  ,    [         R                  " SSS9$ )N	patch_jobzAn OS patch job.name	help_textr    ResourceParameterAttributeConfig     Alib/googlecloudsdk/command_lib/compute/os_config/resource_args.pyPatchJobAttributeConfigr      s    		2	2"4
6 6r   c                  \    [         R                  " SS[         R                  [        5       S9$ )Nzosconfig.projects.patchJobsr
   )resource_name
projectsIdpatchJobsId)r   ResourceSpec DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   r   GetPatchJobResourceSpecr      s*    			#::)+	
- -r   c           	      ~    SU(       a  SOS-   n[         R                  " S[        5       SR                  X 5      SUSS9$ )	a  Creates a resource argument for a OS Config patch job.

Args:
  verb: str, The verb to describe the resource, such as 'to describe'.
  plural: bool, If True, use a resource argument that returns a list.

Returns:
  PresentationSpec for the resource argument.
z	Patch jobs r
   {} {}TFrequiredpluralprefixes)r   ResourcePresentationSpecr   formatverbr!   nouns      r   CreatePatchJobResourceArgr(   '   sC     
v2	.$		4	4nnT 
 r   c                 b    [         R                  " [        X5      /5      R                  U 5        g)zCreates a resource argument for a OS Config patch job.

Args:
  parser: The parser for the command.
  verb: str, The verb to describe the resource, such as 'to describe'.
  plural: bool, If True, use a resource argument that returns a list.
N)r   ConceptParserr(   AddToParserparserr&   r!   s      r   AddPatchJobResourceArgr.   ;   s,     !:
" ! !k&)r   c                  ,    [         R                  " SSS9$ )Npatch_deploymentzAn OS patch deployment.r   r   r   r   r   PatchDeploymentAttributeConfigr1   G   s    		2	2)B
D Dr   c                  \    [         R                  " SS[         R                  [        5       S9$ )Nz"osconfig.projects.patchDeploymentsr0   )r   r   patchDeploymentsId)r   r   r   r1   r   r   r   GetPatchDeploymentResourceSpecr4   L   s*    			*&::79	
; ;r   c           	      ~    SU(       a  SOS-   n[         R                  " S[        5       SR                  X 5      SUSS9$ )	a
  Creates a resource argument for a OS Config patch deployment.

Args:
  verb: str, The verb to describe the resource, such as 'to describe'.
  plural: bool, If True, use a resource argument that returns a list.

Returns:
  PresentationSpec for the resource argument.
zPatch deploymentr   r   r0   r   TFr   )r   r#   r4   r$   r%   s      r    CreatePatchDeploymentResourceArgr6   T   sC     
fs"	5$		4	4$&nnT 
 r   c                 b    [         R                  " [        X5      /5      R                  U 5        g)zCreates a resource argument for a OS Config patch deployment.

Args:
  parser: The parser for the command.
  verb: str, The verb to describe the resource, such as 'to describe'.
  plural: bool, If True, use a resource argument that returns a list.
N)r   r*   r6   r+   r,   s      r   AddPatchDeploymentResourceArgr8   h   s'     '5688CF8Kr   N)F)__doc__
__future__r   r   r    googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r   r(   r.   r1   r4   r6   r8   r   r   r   <module>r=      sF    4 &  ' 5 D G6
-(	*D
;(	Lr   