Class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Message containing what to include in the cache key for a request for Cloud CDN.
Instance Attribute Summary collapse
-
#include_http_headers ⇒ Array<String>
Allows HTTP request headers (by name) to be used in the cache key.
-
#query_string_whitelist ⇒ Array<String>
Names of query string parameters to include in cache keys.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendBucketCdnPolicyCacheKeyPolicy
constructor
A new instance of BackendBucketCdnPolicyCacheKeyPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendBucketCdnPolicyCacheKeyPolicy
Returns a new instance of BackendBucketCdnPolicyCacheKeyPolicy.
2934 2935 2936 |
# File 'lib/google/apis/compute_beta/classes.rb', line 2934 def initialize(**args) update!(**args) end |
Instance Attribute Details
#include_http_headers ⇒ Array<String>
Allows HTTP request headers (by name) to be used in the cache key.
Corresponds to the JSON property includeHttpHeaders
2925 2926 2927 |
# File 'lib/google/apis/compute_beta/classes.rb', line 2925 def include_http_headers @include_http_headers end |
#query_string_whitelist ⇒ Array<String>
Names of query string parameters to include in cache keys. All other
parameters will be excluded. '&' and '=' will be percent encoded and not
treated as delimiters.
Corresponds to the JSON property queryStringWhitelist
2932 2933 2934 |
# File 'lib/google/apis/compute_beta/classes.rb', line 2932 def query_string_whitelist @query_string_whitelist end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2939 2940 2941 2942 |
# File 'lib/google/apis/compute_beta/classes.rb', line 2939 def update!(**args) @include_http_headers = args[:include_http_headers] if args.key?(:include_http_headers) @query_string_whitelist = args[:query_string_whitelist] if args.key?(:query_string_whitelist) end |