Class CachePolicyNegativeCachingPolicy (0.11.0)

CachePolicyNegativeCachingPolicy(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Attributes

Name Description
code int
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status code more than once. This field is a member of oneof_ _code.
ttl google.cloud.compute_v1beta.types.Duration
The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from the cache before the defined TTL. This field is a member of oneof_ _ttl.