Compute Engine v1 API - Class BackendBucketCdnPolicyNegativeCachingPolicy (2.9.0)

public sealed class BackendBucketCdnPolicyNegativeCachingPolicy : IMessage<BackendBucketCdnPolicyNegativeCachingPolicy>, IEquatable<BackendBucketCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendBucketCdnPolicyNegativeCachingPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class BackendBucketCdnPolicyNegativeCachingPolicy.

Specify CDN TTLs for response error codes.

Inheritance

object > BackendBucketCdnPolicyNegativeCachingPolicy

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

BackendBucketCdnPolicyNegativeCachingPolicy()

public BackendBucketCdnPolicyNegativeCachingPolicy()

BackendBucketCdnPolicyNegativeCachingPolicy(BackendBucketCdnPolicyNegativeCachingPolicy)

public BackendBucketCdnPolicyNegativeCachingPolicy(BackendBucketCdnPolicyNegativeCachingPolicy other)
Parameter
NameDescription
otherBackendBucketCdnPolicyNegativeCachingPolicy

Properties

Code

public int Code { get; set; }

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.

Property Value
TypeDescription
int

HasCode

public bool HasCode { get; }

Gets whether the "code" field is set

Property Value
TypeDescription
bool

HasTtl

public bool HasTtl { get; }

Gets whether the "ttl" field is set

Property Value
TypeDescription
bool

Ttl

public int Ttl { get; set; }

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.

Property Value
TypeDescription
int