public sealed class CachePolicyNegativeCachingPolicy : IMessage<CachePolicyNegativeCachingPolicy>, IEquatable<CachePolicyNegativeCachingPolicy>, IDeepCloneable<CachePolicyNegativeCachingPolicy>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class CachePolicyNegativeCachingPolicy.
Specify CDN TTLs for response error codes.
Implements
IMessageCachePolicyNegativeCachingPolicy, IEquatableCachePolicyNegativeCachingPolicy, IDeepCloneableCachePolicyNegativeCachingPolicy, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
CachePolicyNegativeCachingPolicy()
public CachePolicyNegativeCachingPolicy()CachePolicyNegativeCachingPolicy(CachePolicyNegativeCachingPolicy)
public CachePolicyNegativeCachingPolicy(CachePolicyNegativeCachingPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
CachePolicyNegativeCachingPolicy |
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 can be specified as values, and you cannot specify a status code more than once.
| Property Value | |
|---|---|
| Type | Description |
int |
|
HasCode
public bool HasCode { get; }Gets whether the "code" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Ttl
public Duration 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). Infrequently accessed objects may be evicted from the cache before the defined TTL.
| Property Value | |
|---|---|
| Type | Description |
Duration |
|