public sealed class ConditionContext.Types.Resource : IMessage<ConditionContext.Types.Resource>, IEquatable<ConditionContext.Types.Resource>, IDeepCloneable<ConditionContext.Types.Resource>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.Types.Resource.
Core attributes for a resource. A resource is an
addressable (named) entity provided by the destination service. For
example, a Compute Engine instance.
The stable identifier (name) of a resource on the service. A resource
can be logically identified as //{resource.service}/{resource.name}.
Unlike the resource URI, the resource name doesn't contain any protocol
and version information.
The name of the service that this resource belongs to, such as
compute.googleapis.com. The service name might not match the DNS
hostname that actually serves the request.
[[["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\u003eConditionContext.Types.Resource\u003c/code\u003e class within the Policy Troubleshooter v3 API, which is used for handling core attributes of a resource within the Google Cloud environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConditionContext.Types.Resource\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, equality comparisons, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eService\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, which allow for the identification of a resource by its stable identifier, the service it belongs to, and its specific type within that service.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 1.2.0, with older versions 1.1.0 and 1.0.0 also accessible, and it contains constructors such as \u003ccode\u003eResource()\u003c/code\u003e and \u003ccode\u003eResource(ConditionContext.Types.Resource other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Policy Troubleshooter v3 API - Class ConditionContext.Types.Resource (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.1.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/1.0.0/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource) \n\n public sealed class ConditionContext.Types.Resource : IMessage\u003cConditionContext.Types.Resource\u003e, IEquatable\u003cConditionContext.Types.Resource\u003e, IDeepCloneable\u003cConditionContext.Types.Resource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.Types.Resource.\n\nCore attributes for a resource. A resource is an\naddressable (named) entity provided by the destination service. For\nexample, a Compute Engine instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConditionContext.Types.Resource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Resource](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Resource](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ConditionContext](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext)[Types](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types)[Resource](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3.ConditionContext.Types.Resource), [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.PolicyTroubleshooter.Iam.V3](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.Iam.V3/latest/Google.Cloud.PolicyTroubleshooter.Iam.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.PolicyTroubleshooter.Iam.V3.dll\n\nConstructors\n------------\n\n### Resource()\n\n public Resource()\n\n### Resource(Resource)\n\n public Resource(ConditionContext.Types.Resource other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nThe stable identifier (name) of a resource on the `service`. A resource\ncan be logically identified as `//{resource.service}/{resource.name}`.\nUnlike the resource URI, the resource name doesn't contain any protocol\nand version information.\n\nFor a list of full resource name formats, see\n\u003chttps://cloud.google.com/iam/help/troubleshooter/full-resource-names\u003e\n\n### Service\n\n public string Service { get; set; }\n\nThe name of the service that this resource belongs to, such as\n`compute.googleapis.com`. The service name might not match the DNS\nhostname that actually serves the request.\n\nFor a full list of resource service values, see\n\u003chttps://cloud.google.com/iam/help/conditions/resource-services\u003e\n\n### Type\n\n public string Type { get; set; }\n\nThe type of the resource, in the format `{service}/{kind}`.\n\nFor a full list of resource type values, see\n\u003chttps://cloud.google.com/iam/help/conditions/resource-types\u003e"]]