Ë
    €ÏG  ã                   óv   — d Z ddlmZ ddlmZ ddlmZ dZdZdZdZd	Z	d
Z
dZi Zded<   ded<   i Zd„ Zd„ Zd„ Zy)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   — t        | t        t        t        «      S )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   — t        | t        t        t        «      S )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                 ó0  — t         j                  | | «      }t        j                  ||dz   «      }dj                  | «      }|j                  |«      }||| dœ} |j                  di |¤Ž}	 |j                  di |¤Žt	        j                  di |¤Žz   }
||	|
dœ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¸XÓ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   