ComputeRegionBackendServiceRegionBackendServiceCdnPolicy class

cdn_policy block. Only honored when enableCdn is true. The regional schema omits the global resource's bypass_cache_on_request_headers and request_coalescing fields.

Annotations
  • @immutable

Constructors

ComputeRegionBackendServiceRegionBackendServiceCdnPolicy({RegionBackendServiceCacheMode? cacheMode, TfArg<int>? clientTtl, TfArg<int>? defaultTtl, TfArg<int>? maxTtl, TfArg<bool>? negativeCaching, TfArg<int>? serveWhileStale, TfArg<int>? signedUrlCacheMaxAgeSec, ComputeRegionBackendServiceRegionBackendServiceCdnCacheKeyPolicy? cacheKeyPolicy, List<ComputeRegionBackendServiceRegionBackendServiceCdnNegativeCachingPolicy>? negativeCachingPolicy})
const

Properties

cacheKeyPolicy ComputeRegionBackendServiceRegionBackendServiceCdnCacheKeyPolicy?
Cache key policy — which request components participate in the cache key.
final
cacheMode RegionBackendServiceCacheMode?
Cache mode. Defaults to CACHE_ALL_STATIC when CDN is enabled.
final
clientTtl → TfArg<int>?
Max TTL (seconds) for content served to clients.
final
defaultTtl → TfArg<int>?
Default TTL for cached content with no upstream Cache-Control.
final
hashCode int
The hash code for this object.
no setterinherited
maxTtl → TfArg<int>?
Hard ceiling on cached content TTL.
final
negativeCaching → TfArg<bool>?
Negative caching for selected status codes.
final
negativeCachingPolicy List<ComputeRegionBackendServiceRegionBackendServiceCdnNegativeCachingPolicy>?
Per-status-code negative-cache TTLs. Only honored when negativeCaching is true.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serveWhileStale → TfArg<int>?
Serve cached content during origin revalidation/errors (seconds).
final
signedUrlCacheMaxAgeSec → TfArg<int>?
TTL for signed-URL responses (defaults to 3600).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited