Class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::BackendServiceCdnPolicy
 
- 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 service.
Instance Attribute Summary collapse
- 
  
    
      #cache_key_policy  ⇒ Google::Apis::ComputeAlpha::CacheKeyPolicy 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Message containing what to include in the cache key for a request for Cloud CDN. 
- 
  
    
      #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 service. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BackendServiceCdnPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of BackendServiceCdnPolicy. 
- 
  
    
      #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) ⇒ BackendServiceCdnPolicy
Returns a new instance of BackendServiceCdnPolicy
| 2854 2855 2856 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2854 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cache_key_policy ⇒ Google::Apis::ComputeAlpha::CacheKeyPolicy
Message containing what to include in the cache key for a request for Cloud
CDN.
Corresponds to the JSON property cacheKeyPolicy
| 2836 2837 2838 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2836 def cache_key_policy @cache_key_policy end | 
#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 backend 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
| 2846 2847 2848 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2846 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 service.
Corresponds to the JSON property signedUrlKeyNames
| 2852 2853 2854 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2852 def signed_url_key_names @signed_url_key_names end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2859 2860 2861 2862 2863 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2859 def update!(**args) @cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy) @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 |