Class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyBypassCacheOnRequestHeader

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackendBucketCdnPolicyBypassCacheOnRequestHeader

Returns a new instance of BackendBucketCdnPolicyBypassCacheOnRequestHeader.



3140
3141
3142
# File 'generated/google/apis/compute_alpha/classes.rb', line 3140

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#header_nameString

The header field name to match on when bypassing cache. Values are case- insensitive. Corresponds to the JSON property headerName

Returns:

  • (String)


3138
3139
3140
# File 'generated/google/apis/compute_alpha/classes.rb', line 3138

def header_name
  @header_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3145
3146
3147
# File 'generated/google/apis/compute_alpha/classes.rb', line 3145

def update!(**args)
  @header_name = args[:header_name] if args.key?(:header_name)
end