Class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyBypassCacheOnRequestHeader
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BackendServiceCdnPolicyBypassCacheOnRequestHeader
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.
Instance Attribute Summary collapse
-
#header_name ⇒ String
The header field name to match on when bypassing cache.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendServiceCdnPolicyBypassCacheOnRequestHeader
constructor
A new instance of BackendServiceCdnPolicyBypassCacheOnRequestHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendServiceCdnPolicyBypassCacheOnRequestHeader
Returns a new instance of BackendServiceCdnPolicyBypassCacheOnRequestHeader.
4197 4198 4199 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#header_name ⇒ String
The header field name to match on when bypassing cache. Values are case-
insensitive.
Corresponds to the JSON property headerName
4195 4196 4197 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4195 def header_name @header_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4202 4203 4204 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 4202 def update!(**args) @header_name = args[:header_name] if args.key?(:header_name) end |