2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

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

Reference documentation and code samples for the Backup and DR Service v1 API class BackupPlanAssociation.

A BackupPlanAssociation represents a single BackupPlanAssociation which
contains details like workload, backup plan etc

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[BackupPlanAssociation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BackupPlanAssociation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[BackupPlanAssociation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.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.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### BackupPlanAssociation()

    public BackupPlanAssociation()

### BackupPlanAssociation(BackupPlanAssociation)

    public BackupPlanAssociation(BackupPlanAssociation other)

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

## Properties

### AlloydbClusterBackupPlanAssociationProperties

    public AlloyDBClusterBackupPlanAssociationProperties AlloydbClusterBackupPlanAssociationProperties { get; set; }

Output only. AlloyDB cluster's backup plan association properties.

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

### AutoProtectionPolicyBinding

    public string AutoProtectionPolicyBinding { get; set; }

Output only. The resource name of the `AutoProtectionPolicyBinding` that
manages this association, if any. Format:
`projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.

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

### AutoProtectionPolicyBindingAsAutoProtectionPolicyBindingName

    public AutoProtectionPolicyBindingName AutoProtectionPolicyBindingAsAutoProtectionPolicyBindingName { get; set; }

[AutoProtectionPolicyBindingName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.AutoProtectionPolicyBindingName.md.txt)-typed view over the [AutoProtectionPolicyBinding](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.md.txt#Google_Cloud_BackupDR_V1_BackupPlanAssociation_AutoProtectionPolicyBinding)
resource name property.

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

### BackupPlan

    public string BackupPlan { get; set; }

Required. Resource name of backup plan which needs to be applied on
workload. Format:
projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

### BackupPlanAsBackupPlanName

    public BackupPlanName BackupPlanAsBackupPlanName { get; set; }

[BackupPlanName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanName.md.txt)-typed view over the [BackupPlan](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.md.txt#Google_Cloud_BackupDR_V1_BackupPlanAssociation_BackupPlan) resource name property.

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

### BackupPlanAssociationName

    public BackupPlanAssociationName BackupPlanAssociationName { get; set; }

[BackupPlanAssociationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation.md.txt#Google_Cloud_BackupDR_V1_BackupPlanAssociation_Name) resource name property.

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

### BackupPlanRevisionId

    public string BackupPlanRevisionId { get; set; }

Output only. The user friendly revision ID of the `BackupPlanRevision`.

Example: v0, v1, v2, etc.

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

### BackupPlanRevisionName

    public string BackupPlanRevisionName { get; set; }

Output only. The resource id of the `BackupPlanRevision`.

Format:
`projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`

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

### CloudSqlInstanceBackupPlanAssociationProperties

    public CloudSqlInstanceBackupPlanAssociationProperties CloudSqlInstanceBackupPlanAssociationProperties { get; set; }

Output only. Cloud SQL instance's backup plan association properties.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the instance was created.

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

### DataSource

    public string DataSource { get; set; }

Output only. Resource name of data source which will be used as storage
location for backups taken. Format :
projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

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

### Name

    public string Name { get; set; }

Output only. Identifier. The resource name of BackupPlanAssociation in
below format Format:
projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

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

### Resource

    public string Resource { get; set; }

Required. Immutable. Resource name of workload on which the backup plan is
applied.

The format can either be the resource name (e.g.,
"projects/my-project/zones/us-central1-a/instances/my-instance") or the
full resource URI (e.g.,
"<https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance>").

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

### ResourcePropertiesCase

    public BackupPlanAssociation.ResourcePropertiesOneofCase ResourcePropertiesCase { get; }

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

### ResourceType

    public string ResourceType { get; set; }

Required. Immutable. Resource type of workload on which backupplan is
applied

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

### RulesConfigInfo

    public RepeatedField<RuleConfigInfo> RulesConfigInfo { get; }

Output only. The config info related to backup rules.

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

### State

    public BackupPlanAssociation.Types.State State { get; set; }

Output only. The BackupPlanAssociation resource state.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the instance was updated.

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