
    
                     X    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 Z
ddZd	 Zy
)z<Flags for the `compute public-advertised-prefixes` commands.    )absolute_import)division)unicode_literals)base)flagsc                  0    t        j                  dd      S )Nzpublic advertised prefixz compute.publicAdvertisedPrefixes)resource_nameglobal_collection)compute_flagsResourceArgument     Jlib/googlecloudsdk/command_lib/compute/public_advertised_prefixes/flags.pyMakePublicAdvertisedPrefixesArgr      s    		'	'.:
< <r   c                    | j                  ddd       | j                  dd       | j                  dd	       d
dg}| j                  d|d       ddg}|r(t        j                  d|d      j                  |        yy)z?Adds public advertised prefixes create related flags to parser.z--rangeTzDIP range allocated to this public advertised prefix, in CIDR format.)requiredhelpz--dns-verification-ipzXIP address to use for verification. It must be within the IP range specified in --range.)r   z--descriptionz-Description of this public advertised prefix.GLOBALREGIONALz--pdp-scopez;Specifies how child public delegated prefix will be scoped.)choicesr   internalexternalz--ipv6-access-typez?Specifies the IPv6 access type of the public advertised prefix.r   help_strN)add_argumentr   ChoiceArgumentAddToParser)parserinclude_ipv6_access_typer   ipv6_access_type_choicess       r   AddCreatePapArgsToParserr!      s     	
P	   	#   	K   z"'H  
 )*5(M	 k& r   c                     t        j                  ddgd      j                  |        | j                  dddd	       | j                  d
ddd	       y)z?Adds public advertised prefixes update related flags to parser.z--statuszptr-configuredz'The status of public advertised prefix.r   z--announce-prefix
store_trueFz:Specify if the prefix will be announced. Default is false.)actiondefaultr   z--withdraw-prefixz:Specify if the prefix will be withdrawn. Default is false.N)r   r   r   r   )r   s    r   AddUpdatePapArgsToParserr&   D   sk     8: ;F+f:MG	  I
 	G	  Ir   N)F)__doc__
__future__r   r   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r   r   r!   r&   r   r   r   <module>r+      s+    C &  ' ( E<"JIr   