ó
    €Ï­
  ã                   óZ   • S r SSKJr  SSKJr  SSKJr  SSKJr  S
S jrS
S jr  SS jr	g	)z+Flags for GCE Cloud CDN Signed URL support.é    )Úabsolute_import)Údivision)Úunicode_literals)Úarg_parsersc                 ó&   • U R                  SUSS9  g)z@Adds the Cloud CDN Signed URL key name argument to the argparse.z
--key-namez%Name of the Cloud CDN Signed URL key.)ÚrequiredÚhelpN©Úadd_argument©Úparserr   s     Ú:lib/googlecloudsdk/command_lib/compute/signed_url_flags.pyÚAddCdnSignedUrlKeyNamer      s   € à×ÑØØØ2ð ò 4ó    c                 ó(   • U R                  SUSSS9  g)z@Adds the Cloud CDN Signed URL key file argument to the argparse.z
--key-fileÚLOCAL_FILE_PATHa<        The file containing the RFC 4648 Section 5 base64url encoded 128-bit
      secret key for Cloud CDN Signed URL. It is vital that the key is
      strongly random. One way to generate such a key is with the following
      command:

          head -c 16 /dev/random | base64 | tr +/ -_ > [KEY_FILE_NAME]

      )r   Úmetavarr	   Nr
   r   s     r   ÚAddCdnSignedUrlKeyFiler       s#   € à×ÑØØØð
ð	 ò r   c                 ól   • U R                  SU[        R                  " 5       SR                  U5      S9  g)zEAdds the Cloud CDN Signed URL cache max age argument to the argparse.z--signed-url-cache-max-ageaÉ        The amount of time up to which the response to a signed URL request
      will be cached in the CDN. After this time period, the Signed URL will
      be revalidated before being served. Cloud CDN will internally act as
      though all responses from this backend had a
      `Cache-Control: public, max-age=[TTL]` header, regardless of any
      existing Cache-Control header. The actual headers served in responses
      will not be altered.{}

      For example, specifying `12h` will cause the responses to signed URL
      requests to be cached in the CDN up to 12 hours.
      See $ gcloud topic datetimes for information on duration formats.

      This flag only affects signed URL requests.
      )r   Útyper	   N)r   r   ÚDurationÚformat)r   r   Úunspecified_helps      r   ÚAddSignedUrlCacheMaxAger   1   s;   € ð
 	×ÑØ"ØÜ×ÒÓ!ð
÷ ‰&Ð!Ó
"ð% ò $r   N)F)Fz, If unspecified, the default value is 3600s.)
Ú__doc__Ú
__future__r   r   r   Úgooglecloudsdk.callioper   r   r   r   © r   r   Ú<module>r      s-   ðñ 2å &Ý Ý 'å /ô4ôð& ØCõ$r   