class Google::Apis::ComputeBeta::CacheKeyPolicy

Message containing what to include in the cache key for a request for Cloud CDN.

Attributes

include_host[RW]

If true, requests to different hosts will be cached separately. Corresponds to the JSON property `includeHost` @return [Boolean]

include_host?[RW]

If true, requests to different hosts will be cached separately. Corresponds to the JSON property `includeHost` @return [Boolean]

include_http_headers[RW]

Allows HTTP request headers (by name) to be used in the cache key. Corresponds to the JSON property `includeHttpHeaders` @return [Array<String>]

include_named_cookies[RW]

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates. Corresponds to the JSON property `includeNamedCookies` @return [Array<String>]

include_protocol[RW]

If true, http and https requests will be cached separately. Corresponds to the JSON property `includeProtocol` @return [Boolean]

include_protocol?[RW]

If true, http and https requests will be cached separately. Corresponds to the JSON property `includeProtocol` @return [Boolean]

include_query_string[RW]

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]

include_query_string?[RW]

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]

query_string_blacklist[RW]

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>]

query_string_whitelist[RW]

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

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 4708
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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