1.12.0 (latest) 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Analytics Hub v1 API class ExpirationPolicy.

A policy that specifies the conditions for resource expiration (i.e.,
automatic resource deletion).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ExpirationPolicy

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ExpirationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.ExpirationPolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExpirationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.ExpirationPolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ExpirationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.ExpirationPolicy.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.AnalyticsHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.AnalyticsHub.V1/latest/Google.Cloud.BigQuery.AnalyticsHub.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.dll

## Constructors

### ExpirationPolicy()

    public ExpirationPolicy()

### ExpirationPolicy(ExpirationPolicy)

    public ExpirationPolicy(ExpirationPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ExpirationPolicy` |

## Properties

### Ttl

    public Duration Ttl { get; set; }

Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of `ttl`. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for `ttl` depend on the type of the
associated resource, as well. If `ttl` is not set, the associated resource
never expires.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |