GoogleApi.Compute.V1.Model.BackendServiceCdnPolicyNegativeCachingPolicy (google_api_compute v0.41.0) View Source

Specify CDN TTLs for response error codes.

Attributes

  • code (type: integer(), default: nil) - 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 are can be specified as values, and you cannot specify a status code more than once.
  • ttl (type: integer(), default: nil) - The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Compute.V1.Model.BackendServiceCdnPolicyNegativeCachingPolicy{
  code: integer() | nil,
  ttl: integer() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.