
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 d Z
d	 Zdd
ZddZd Zd ZddZddZy)z-Shared resource flags for OS Config commands.    )absolute_import)division)unicode_literals)concepts)concept_parsers)presentation_specsc                  0    t        j                  dd      S )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                  `    t        j                  ddt         j                  t                     S )Nzosconfig.projects.patchJobsr
   )resource_name
projectsIdpatchJobsId)r   ResourceSpec DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   r   GetPatchJobResourceSpecr      s*    			#::)+	
- -r   c                 z    d|rdndz   }t        j                  dt               dj                  ||       d|d      S )	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(   '   sE     
v2	.$		4	4nnT4 
 r   c                 b    t        j                  t        ||      g      j                  |        y)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.     !:
F" ! !k&)r   c                  0    t        j                  dd      S )Npatch_deploymentzAn OS patch deployment.r   r   r   r   r   PatchDeploymentAttributeConfigr1   G   s    		2	2)B
D Dr   c                  `    t        j                  ddt         j                  t                     S )Nz"osconfig.projects.patchDeploymentsr0   )r   r   patchDeploymentsId)r   r   r   r1   r   r   r   GetPatchDeploymentResourceSpecr4   L   s*    			*&::79	
; ;r   c                 z    d|rdndz   }t        j                  dt               dj                  ||       d|d      S )	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   sE     
fs"	5$		4	4$&nnT4 
 r   c                 b    t        j                  t        ||      g      j                  |        y)a  Creates 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)     'f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   