A string representation of the resource path.
For Google Cloud, it has the format of
organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
where there can be any number of folders.
For AWS, it has the format of
org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
where there can be any number of organizational units.
For Azure, it has the format of
mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
where there can be any number of management groups.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eResource\u003c/code\u003e class within the Google Cloud Security Center v2 API, providing information about a Google Cloud resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResource\u003c/code\u003e class includes properties for various metadata, such as \u003ccode\u003eAwsMetadata\u003c/code\u003e, \u003ccode\u003eAzureMetadata\u003c/code\u003e, and \u003ccode\u003eGcpMetadata\u003c/code\u003e, to specify associated findings from different cloud providers.\u003c/p\u003e\n"],["\u003cp\u003eIt 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, indicating its role in data handling and object management.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, and \u003ccode\u003eResourcePathString\u003c/code\u003e to offer different ways of identifying the resource, as well as properties for \u003ccode\u003eService\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt supports constructors for creating new instances, either empty or by cloning existing \u003ccode\u003eResource\u003c/code\u003e objects.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class Resource (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.Resource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.Resource) \n\n public sealed class Resource : IMessage\u003cResource\u003e, IEquatable\u003cResource\u003e, IDeepCloneable\u003cResource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class Resource.\n\nInformation related to the Google Cloud resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Resource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Resource](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Resource](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Resource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Resource](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.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.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### Resource()\n\n public Resource()\n\n### Resource(Resource)\n\n public Resource(Resource other)\n\nProperties\n----------\n\n### AwsMetadata\n\n public AwsMetadata AwsMetadata { get; set; }\n\nThe AWS metadata associated with the finding.\n\n### AzureMetadata\n\n public AzureMetadata AzureMetadata { get; set; }\n\nThe Azure metadata associated with the finding.\n\n### CloudProvider\n\n public CloudProvider CloudProvider { get; set; }\n\nIndicates which cloud provider the finding is from.\n\n### CloudProviderMetadataCase\n\n public Resource.CloudProviderMetadataOneofCase CloudProviderMetadataCase { get; }\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nThe human readable name of the resource.\n\n### GcpMetadata\n\n public GcpMetadata GcpMetadata { get; set; }\n\nThe GCP metadata associated with the finding.\n\n### Location\n\n public string Location { get; set; }\n\nThe region or location of the service (if applicable).\n\n### Name\n\n public string Name { get; set; }\n\nThe full resource name of the resource. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#full_resource_name\u003e\n\n### ResourcePath\n\n public ResourcePath ResourcePath { get; set; }\n\nProvides the path to the resource within the resource hierarchy.\n\n### ResourcePathString\n\n public string ResourcePathString { get; set; }\n\nA string representation of the resource path.\nFor Google Cloud, it has the format of\n`organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`\nwhere there can be any number of folders.\nFor AWS, it has the format of\n`org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`\nwhere there can be any number of organizational units.\nFor Azure, it has the format of\n`mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`\nwhere there can be any number of management groups.\n\n### Service\n\n public string Service { get; set; }\n\nThe service or resource provider associated with the resource.\n\n### Type\n\n public string Type { get; set; }\n\nThe full resource type of the resource."]]