[[["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 page provides documentation for the \u003ccode\u003eTargetResource\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetResource\u003c/code\u003e class represents the details of a target resource that is created or modified during a restore operation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eTargetResource\u003c/code\u003e class available is 2.1.0, with older versions also documented, such as 2.0.0, 1.2.0, 1.1.0, and 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTargetResource\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetResource\u003c/code\u003e class has properties such as \u003ccode\u003eGcpResource\u003c/code\u003e representing the details of the Google Cloud resource created, and \u003ccode\u003eTargetResourceInfoCase\u003c/code\u003e which specifies the type of target resource.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class TargetResource (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.TargetResource)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.TargetResource)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.TargetResource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.TargetResource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.TargetResource)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.TargetResource) \n\n public sealed class TargetResource : IMessage\u003cTargetResource\u003e, IEquatable\u003cTargetResource\u003e, IDeepCloneable\u003cTargetResource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class TargetResource.\n\nDetails of the target resource created/modified as part of restore. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TargetResource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TargetResource](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.TargetResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TargetResource](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.TargetResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TargetResource](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.TargetResource), [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### TargetResource()\n\n public TargetResource()\n\n### TargetResource(TargetResource)\n\n public TargetResource(TargetResource other)\n\nProperties\n----------\n\n### GcpResource\n\n public GcpResource GcpResource { get; set; }\n\nDetails of the native Google Cloud resource created as part of restore.\n\n### TargetResourceInfoCase\n\n public TargetResource.TargetResourceInfoOneofCase TargetResourceInfoCase { get; }"]]