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
Required. Resource name of backup plan which needs to be applied on
workload. Format:
projects/{project}/locations/{location}/backupPlans/{backupPlanId}
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}
Output only. Identifier. The resource name of BackupPlanAssociation in
below format Format :
projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eBackupPlanAssociation\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackupPlanAssociation\u003c/code\u003e class represents a connection between a backup plan and a specific workload, detailing properties such as the associated backup plan, data source, resource, and resource type.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details like the creation and update timestamps, as well as the current state of the \u003ccode\u003eBackupPlanAssociation\u003c/code\u003e, providing an overview of the backup configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, along with having constructors to create instances.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this \u003ccode\u003eBackupPlanAssociation\u003c/code\u003e is listed at version 2.1.0, with earlier versions all the way back to 1.0.0-beta02 also available for usage.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class BackupPlanAssociation (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.BackupPlanAssociation)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.BackupPlanAssociation)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.BackupPlanAssociation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.BackupPlanAssociation)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.BackupPlanAssociation) \n\n public sealed class BackupPlanAssociation : IMessage\u003cBackupPlanAssociation\u003e, IEquatable\u003cBackupPlanAssociation\u003e, IDeepCloneable\u003cBackupPlanAssociation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class BackupPlanAssociation.\n\nA BackupPlanAssociation represents a single BackupPlanAssociation which\ncontains details like workload, backup plan etc \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BackupPlanAssociation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BackupPlanAssociation](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BackupPlanAssociation](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BackupPlanAssociation](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### BackupPlanAssociation()\n\n public BackupPlanAssociation()\n\n### BackupPlanAssociation(BackupPlanAssociation)\n\n public BackupPlanAssociation(BackupPlanAssociation other)\n\nProperties\n----------\n\n### BackupPlan\n\n public string BackupPlan { get; set; }\n\nRequired. Resource name of backup plan which needs to be applied on\nworkload. Format:\nprojects/{project}/locations/{location}/backupPlans/{backupPlanId}\n\n### BackupPlanAsBackupPlanName\n\n public BackupPlanName BackupPlanAsBackupPlanName { get; set; }\n\n[BackupPlanName](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanName)-typed view over the [BackupPlan](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation#Google_Cloud_BackupDR_V1_BackupPlanAssociation_BackupPlan) resource name property.\n\n### BackupPlanAssociationName\n\n public BackupPlanAssociationName BackupPlanAssociationName { get; set; }\n\n[BackupPlanAssociationName](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociationName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.BackupPlanAssociation#Google_Cloud_BackupDR_V1_BackupPlanAssociation_Name) resource name property.\n\n### BackupPlanRevisionId\n\n public string BackupPlanRevisionId { get; set; }\n\nOutput only. The user friendly revision ID of the `BackupPlanRevision`.\n\nExample: v0, v1, v2, etc.\n\n### BackupPlanRevisionName\n\n public string BackupPlanRevisionName { get; set; }\n\nOutput only. The resource id of the `BackupPlanRevision`.\n\nFormat:\n`projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`\n\n### CloudSqlInstanceBackupPlanAssociationProperties\n\n public CloudSqlInstanceBackupPlanAssociationProperties CloudSqlInstanceBackupPlanAssociationProperties { get; set; }\n\nOutput only. Cloud SQL instance's backup plan association properties.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the instance was created.\n\n### DataSource\n\n public string DataSource { get; set; }\n\nOutput only. Resource name of data source which will be used as storage\nlocation for backups taken. Format :\nprojects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Identifier. The resource name of BackupPlanAssociation in\nbelow format Format :\nprojects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}\n\n### Resource\n\n public string Resource { get; set; }\n\nRequired. Immutable. Resource name of workload on which the backup plan is\napplied.\n\nThe format can either be the resource name (e.g.,\n\"projects/my-project/zones/us-central1-a/instances/my-instance\") or the\nfull resource URI (e.g.,\n\"\u003chttps://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance\u003e\").\n\n### ResourcePropertiesCase\n\n public BackupPlanAssociation.ResourcePropertiesOneofCase ResourcePropertiesCase { get; }\n\n### ResourceType\n\n public string ResourceType { get; set; }\n\nRequired. Immutable. Resource type of workload on which backupplan is\napplied\n\n### RulesConfigInfo\n\n public RepeatedField\u003cRuleConfigInfo\u003e RulesConfigInfo { get; }\n\nOutput only. The config info related to backup rules.\n\n### State\n\n public BackupPlanAssociation.Types.State State { get; set; }\n\nOutput only. The BackupPlanAssociation resource state.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time when the instance was updated."]]