diff --git a/docs/resources/google_compute_backend_service.md b/docs/resources/google_compute_backend_service.md index 8d39ef8ae..ec2250ae5 100644 --- a/docs/resources/google_compute_backend_service.md +++ b/docs/resources/google_compute_backend_service.md @@ -51,6 +51,8 @@ Properties that can be accessed from the `google_compute_backend_service` resour * `cacheKeyPolicy`: The CacheKeyPolicy for this CdnPolicy. + * `signedUrlCacheMaxAgeSec`: Maximum number of seconds the response to a signed URL request will be considered fresh, defaults to 1hr (3600s). After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave 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. + * `connection_draining`: Settings for connection draining * `drainingTimeoutSec`: Time for which instance will be drained (not accept new connections, but still work to finish started). diff --git a/libraries/google/compute/property/backendservice_cdn_policy.rb b/libraries/google/compute/property/backendservice_cdn_policy.rb index bdeb1d573..89d0dd9b4 100644 --- a/libraries/google/compute/property/backendservice_cdn_policy.rb +++ b/libraries/google/compute/property/backendservice_cdn_policy.rb @@ -20,9 +20,12 @@ module Property class BackendServiceCdnPolicy attr_reader :cache_key_policy + attr_reader :signed_url_cache_max_age_sec + def initialize(args = nil) return if args.nil? @cache_key_policy = GoogleInSpec::Compute::Property::BackendServiceCdnPolicyCacheKeyPolicy.new(args['cacheKeyPolicy']) + @signed_url_cache_max_age_sec = args['signedUrlCacheMaxAgeSec'] end end end