class Google::Apis::ComputeBeta::CacheKeyPolicy
Message containing what to include in the cache key for a request for Cloud CDN.
Attributes
If true, requests to different hosts will be cached separately. Corresponds to the JSON property `includeHost` @return [Boolean]
If true, requests to different hosts will be cached separately. Corresponds to the JSON property `includeHost` @return [Boolean]
Allows HTTP request headers (by name) to be used in the cache key. Corresponds to the JSON property `includeHttpHeaders` @return [Array<String>]
If true, http and https requests will be cached separately. Corresponds to the JSON property `includeProtocol` @return [Boolean]
If true, http and https requests will be cached separately. Corresponds to the JSON property `includeProtocol` @return [Boolean]
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Corresponds to the JSON property `includeQueryString` @return [Boolean]
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Corresponds to the JSON property `includeQueryString` @return [Boolean]
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist
or query_string_blacklist
, not both. '&' and '=' will be percent encoded and not treated as delimiters. Corresponds to the JSON property `queryStringBlacklist` @return [Array<String>]
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist
or query_string_blacklist
, not both. '&' and '=' will be percent encoded and not treated as delimiters. Corresponds to the JSON property `queryStringWhitelist` @return [Array<String>]
Public Class Methods
# File lib/google/apis/compute_beta/classes.rb, line 4708 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_beta/classes.rb, line 4713 def update!(**args) @include_host = args[:include_host] if args.key?(:include_host) @include_http_headers = args[:include_http_headers] if args.key?(:include_http_headers) @include_named_cookies = args[:include_named_cookies] if args.key?(:include_named_cookies) @include_protocol = args[:include_protocol] if args.key?(:include_protocol) @include_query_string = args[:include_query_string] if args.key?(:include_query_string) @query_string_blacklist = args[:query_string_blacklist] if args.key?(:query_string_blacklist) @query_string_whitelist = args[:query_string_whitelist] if args.key?(:query_string_whitelist) end