ó
    €Ï€  ã            
       ó„  • S 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	\R                  5      rS!S jr\R                  " S\SS
S
S\
S9r\R                  " S\SS
S\
S9r\R                  " SS\SSSS9r\R                  " SS\SSS9r\R                  " SSS\SSSS9rS"S jrS"S jr S!S jrS rS rS!S jrS rg )#z;Flags and helpers for the compute backend-buckets commands.é    )Úarg_parsers)Ú
completers)Úflags)Ú	arg_utilszrThe name of the Google Cloud Storage bucket to serve from. The storage
        bucket must be in the same project.zT    table(
      name,
      bucketName:label=GCS_BUCKET_NAME,
      enableCdn
    )c                   ó(   ^ • \ rS rSrU 4S jrSrU =r$ )ÚBackendBucketsCompleteré%   c                 ó4   >• [         [        U ]
  " SSSS.UD6  g )Núcompute.backendBucketsz"compute backend-buckets list --uri)Ú
collectionÚlist_command© )Úsuperr   Ú__init__)ÚselfÚkwargsÚ	__class__s     €Ú?lib/googlecloudsdk/command_lib/compute/backend_buckets/flags.pyr   Ú BackendBucketsCompleter.__init__'   s(   ø€ Ü	Ô
! 4Ò1ð Ø+Ø9ñð óó    r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r   %   s   ø† ÷ó r   r   Fc                 ó:   • [         R                  " SSU [        SS9$ )NÚbackend_bucket_nameúbackend bucketr   )ÚnameÚresource_nameÚpluralÚ	completerÚglobal_collection©Úcompute_flagsÚResourceArgumentr   )r"   s    r   ÚBackendBucketArgumentr(   /   s$   € Ü	×	'Ò	'Ø Ø$ØÜ'Ø0ñ
ð r   r   z--gcs-bucket-namer   )r!   r#   r    r"   Úrequiredr$   Údetailed_help)r!   r#   r    r"   r$   r*   r   Túcompute.regionBackendBuckets)r    r!   r#   r"   Úregional_collectionr$   )r    r!   r#   r,   r$   Úbackend_bucketzÍID of the backend bucket or fully qualified identifier for the
          backend bucket.

          To set the backend_bucket attribute:
          + provide the argument backend_bucket on the command line.)r    r!   r)   r#   r,   r$   Ú
short_helpc                 ó:   • [         R                  " SSU [        SS9$ )Nr   ú--default-backend-bucketr   )r!   r    r)   r#   r$   r%   ©r)   s    r   ÚBackendBucketArgumentForUrlMapr2   l   s$   € Ü	×	'Ò	'Ø$Ø%ØÜ'Ø0ñ
ð r   c           
      ó>   • [         R                  " SSU [        SSSS9$ )Nr   r0   r   r+   z=If not specified it will be set to the region of the URL map.)r!   r    r)   r#   r$   r,   Úregion_explanationr%   r1   s    r   Ú.RegionSupportingBackendBucketArgumentForUrlMapr5   v   s*   € Ü	×	'Ò	'Ø$Ø%ØÜ'Ø0Ø8à
Iñ

ð 
r   c                 óØ   • U(       a  [         U l        O[        5       U l        U R                  R                  XS9  UR	                  SSS9  UR	                  S[
        R                  SS9  g)	aC  Adds top-level backend bucket arguments that can be updated.

Args:
  cls: type, Class to add backend bucket argument to.
  parser: The argparse parser.
  operation_type: str, operation_type forwarded to AddArgument(...)
  support_regional_global_flags: bool, whether backend bucket supports
    regional and global flags.
)Úoperation_typez--descriptionz8An optional, textual description for the backend bucket.)Úhelpz--enable-cdnzŸ      Enable Cloud CDN for the backend bucket. Cloud CDN can cache HTTP
      responses from a backend bucket at the edge of the network, close to
      users.)Úactionr8   N)Ú"GLOBAL_REGIONAL_BACKEND_BUCKET_ARGÚBACKEND_BUCKET_ARGr(   ÚAddArgumentÚadd_argumentr   ÚStoreTrueFalseAction)ÚclsÚparserr7   Úsupport_regional_global_flagss       r   ÚAddUpdatableArgsrB   „   sp   € ö #Ü?€CÕä2Ó4€CÔØ×Ñ×$Ñ$ VÐ$ÑKà×ÑØØEð ñ ð
 	×ÑØÜ×-Ñ-ðð ò r   c                 ó˜   • U R                  S[        R                  " 5       SSS9  U R                  S[        R                  " 5       SSS9  g)	zNAdds cache key includeHttpHeader and includeNamedCookie flags to the argparse.z--cache-key-include-http-headerÚHEADER_FIELD_NAMEz±      Specifies a comma-separated list of HTTP headers, by field name, to
      include in cache keys. Only the request URL is included in the cache
      key by default.
      ©ÚtypeÚmetavarr8   z"--cache-key-query-string-whitelistÚQUERY_STRINGzÕ      Specifies a comma-separated list of query string parameters to include
      in cache keys. Default parameters are always included. '&' and '=' are
      percent encoded and not treated as delimiters.
      N)r=   r   ÚArgList©r@   s    r   ÚAddCacheKeyExtendedCachingArgsrK   ¥   sX   € à×ÑØ'Ü×ÒÓ Ø!ð
ð	 ñ 	ð 	×ÑØ*Ü×ÒÓ Øð
ð	 ò 	r   c                 óF   • U R                  SSS/[        R                  SS9$ )z(Add support for --compression-mode flag.z--compression-modeÚDISABLEDÚ	AUTOMATICaâ        Compress text responses using Brotli or gzip compression, based on
      the client's Accept-Encoding header. Two modes are supported:
      AUTOMATIC (recommended) - automatically uses the best compression based
      on the Accept-Encoding header sent by the client. In most cases, this
      will result in Brotli compression being favored.
      DISABLED - disables compression. Existing compressed responses cached
      by Cloud CDN will not be served to clients.
      )ÚchoicesrF   r8   ©r=   r   ÚChoiceToEnumNamerJ   s    r   ÚAddCompressionModerR   ¾   s3   € à	×	Ñ	ØØ˜;Ð'Ü×%Ñ%ð
ð	 
ð 
ð r   c                 ó\   • U R                  SU(       a  SS/OS/[        R                  SSS9$ )z-Add support for --load-balancing-scheme flag.z--load-balancing-schemeÚINTERNAL_MANAGEDÚEXTERNAL_MANAGEDFzÓ      The load balancing scheme of the backend bucket.
      If left blank, the backend bucket will be compatible with Global External
      Application Load Balancer or Classic Application Load Balancer.
      )rO   rF   r)   r8   rP   )r@   Úenable_external_manageds     r   ÚAddLoadBalancingSchemerW   Ð   sB   € à	×	Ñ	Øæ	 ð "Ð#5Ñ6àÐÜ×%Ñ%Øð
ð 
ð 
ð r   c                 óL   • U R                  S[        R                  " 5       SSS9$ )z-Add support for --resource-manager-tags flag.z--resource-manager-tagsz	KEY=VALUEz`      Comma-separated list of Resource Manager tags
      to apply to the backend bucket.
      rE   )r=   r   ÚArgDictrJ   s    r   ÚAddResourceManagerTagsrZ   á   s1   € à	×	Ñ	ØÜ×ÒÓ Øð
ð	 
ð 
ð r   N)F)T)Ú__doc__Úgooglecloudsdk.callioper   Ú"googlecloudsdk.command_lib.computer   Úcompute_completersr   r&   Ú$googlecloudsdk.command_lib.util.apisr   Ú_GCS_BUCKET_DETAILED_HELPÚDEFAULT_LIST_FORMATÚListCommandCompleterr   r(   r'   ÚGCS_BUCKET_ARGÚREQUIRED_GCS_BUCKET_ARGÚ(GLOBAL_REGIONAL_MULTI_BACKEND_BUCKET_ARGr:   Ú&GLOBAL_REGIONAL_BACKEND_BUCKET_ARG_IAMr2   r5   rB   rK   rR   rW   rZ   r   r   r   Ú<module>rg      s*  ðñ  Bõ 0Ý OÝ EÝ :ð/Ð ð	Ð ôÐ0×EÑEô ôð ×/Ò/Ø"Ø%Ø	ØØØ.Ø+ñ€ð (×8Ò8Ø"Ø%Ø	ØØ.Ø+ñÐ ð ,9×+IÒ+IØ	Ø"Ø%ØØ6Ø.ñ,Ð (ð &3×%CÒ%CØ	Ø"Ø%Ø6Ø.ñ&Ð "ð *7×)GÒ)GØ	Ø"ØØ%Ø6Ø.ðHñ*Ð &ôôð @EôòBò2ô$ó"
r   