Class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BackendBucketCdnPolicy
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Message containing Cloud CDN configuration for a backend bucket.
Instance Attribute Summary collapse
-
#signed_url_cache_max_age_sec ⇒ Fixnum
Number of seconds up to which the response to a signed URL request will be cached in the CDN.
-
#signed_url_key_names ⇒ Array<String>
[Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend bucket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendBucketCdnPolicy
constructor
A new instance of BackendBucketCdnPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ BackendBucketCdnPolicy
Returns a new instance of BackendBucketCdnPolicy
2335 2336 2337 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#signed_url_cache_max_age_sec ⇒ Fixnum
Number of seconds up to which the response to a signed URL request will be
cached in the CDN. After this time period, the Signed URL will be revalidated
before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN
will internally act as though all responses from this bucket had a ?Cache-
Control: public, max-age=[TTL]? header, regardless of any existing Cache-
Control header. The actual headers served in responses will not be altered.
Corresponds to the JSON property signedUrlCacheMaxAgeSec
2327 2328 2329 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2327 def signed_url_cache_max_age_sec @signed_url_cache_max_age_sec end |
#signed_url_key_names ⇒ Array<String>
[Output Only] Names of the keys currently configured for Cloud CDN Signed URL
on this backend bucket.
Corresponds to the JSON property signedUrlKeyNames
2333 2334 2335 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2333 def signed_url_key_names @signed_url_key_names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2340 2341 2342 2343 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2340 def update!(**args) @signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec) @signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names) end |