ó
    €ÏG  ã                   óv   • S 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0 rS\S'   S\S'   0 rS rS rS rg)zCUtilities for generating help docs for GCE compute labels commands.é    )Úabsolute_import)Údivision)Úunicode_literalsaS  
    Labels can be used to identify the {resource} and to filter them. To find a
    {resource} labeled with key-value pair ``k1'', ``v2''

      $ {{parent_command}} list --filter='labels.k1:v2'

    To list only the labels when describing a resource, use --format

      $ {{parent_command}} describe {sample} --format='default(labels)'
z,    Add labels to Google Compute Engine {}.
zE
    *{{command}}* adds labels to a Google Compute Engine {product}.
z}
    To add key-value pairs ``k0''=``v0'' and ``k1''=``v1'' to '{sample}'

      $ {{command}} {sample} --labels=k0=v0,k1=v1
z1    Remove labels from Google Compute Engine {}.
zJ
    *{{command}}* removes labels from a Google Compute Engine {product}.
zw
    To remove existing labels with key ``k0'' and ``k1'' from '{sample}'

      $ {{command}} {sample} --labels=k0,k1
zpersistent diskÚdiskzvirtual machine instanceÚinstancec                 ó6   • [        U [        [        [        5      $ )zÓGenerates the detailed help doc for add-labels command for a resource.

Args:
  resource: The name of the resource. e.g "instance", "image" or "disk"
Returns:
  The detailed help doc for the add-labels command.
)Ú_GenerateDetailedHelpForCommandÚ_ADD_LABELS_BRIEF_DOC_TEMPLATEÚ _ADD_LABELS_DESCRIPTION_TEMPLATEÚ_ADD_LABELS_EXAMPLE_TEMPLATE©Úresources    Ú;lib/googlecloudsdk/command_lib/compute/labels_doc_helper.pyÚ GenerateDetailedHelpForAddLabelsr   C   s   € ô 
)¨Ü)GÜ)IÜ)Eó
Gð Gó    c                 ó6   • [        U [        [        [        5      $ )zÙGenerates the detailed help doc for remove-labels command for a resource.

Args:
  resource: The name of the resource. e.g "instance", "image" or "disk"
Returns:
  The detailed help doc for the remove-labels command.
)r	   Ú!_REMOVE_LABELS_BRIEF_DOC_TEMPLATEÚ#_REMOVE_LABELS_DESCRIPTION_TEMPLATEÚ_REMOVE_LABELS_EXAMPLE_TEMPLATEr   s    r   Ú#GenerateDetailedHelpForRemoveLabelsr   Q   s   € ô 
)¨Ü)JÜ)LÜ)Hó
Jð Jr   c                 ó*  • [         R                  X 5      n[        R                  XDS-   5      nSR                  U 5      nUR                  U5      nXFU S.nUR                  " S0 UD6n	UR                  " S0 UD6[        R                  " S0 UD6-   n
XyU
S.$ )aœ  Generates the detailed help doc for a command.

Args:
  resource: The name of the resource. e.g "instance", "image" or "disk"
  brief_doc_template: The brief doc template to use.
  description_template: The command description template.
  example_template: The example template to use.
Returns:
  The detailed help doc for a command. The returned value is a map with
  two attributes; 'brief' and 'description'.
Úszexample-{0})ÚproductÚsampler   )ÚbriefÚDESCRIPTIONÚEXAMPLES© )Ú"_RESOURCE_NAME_TO_PRODUCT_NAME_MAPÚgetÚ_PRODUCT_NAME_PLURAL_MAPÚformatÚ#_LIST_LABELS_DETAILED_HELP_TEMPLATE)r   Úbrief_doc_templateÚdescription_templateÚexample_templater   Úproduct_pluralr   r   Úformat_kwargsÚdescriptionÚexampless              r   r	   r	   _   s¢   € ô /×2Ñ2°8ÓF€'Ü+×/Ñ/°À3¹ÓG€.Ø×Ñ Ó)€&à
×
#Ñ
# NÓ
3€%Ø%Ø'ñ)€-à$×+Ò+Ñ<¨mÑ<€+à×ÒÑ. Ñ.Ü)×0Ò0ÑA°=ÑAñBð ð À(Ñ	KÐKr   N)Ú__doc__Ú
__future__r   r   r   r#   r
   r   r   r   r   r   r   r!   r   r   r	   r   r   r   Ú<module>r-      s„   ðñ Jå &Ý Ý 'ð	'Ð #ð"Ð ð$Ð  ð Ð ð%Ð !ð'Ð #ð#Ð ð &(Ð "Ø->Ð " 6Ñ *Ø1KÐ " :Ñ .ð Ð òGòJóLr   