public sealed class VersionedResource : IMessage<VersionedResource>, IEquatable<VersionedResource>, IDeepCloneable<VersionedResource>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class VersionedResource.
Resource representation as defined by the corresponding service providing the
resource for a given API version.
JSON representation of the resource as defined by the corresponding
service providing this resource.
Example:
If the resource is an instance provided by Compute Engine, this field will
contain the JSON representation of the instance as defined by Compute
Engine:
https://cloud.google.com/compute/docs/reference/rest/v1/instances.
You can find the resource definition for each supported resource type in
this table:
https://cloud.google.com/asset-inventory/docs/supported-asset-types
Example:
If the resource is an instance provided by Compute Engine v1 API as defined
in https://cloud.google.com/compute/docs/reference/rest/v1/instances,
version will be "v1".
[[["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\u003eThe \u003ccode\u003eVersionedResource\u003c/code\u003e class represents a resource with a specific API version, as defined by the service that provides it.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, showcasing its integration with Protobuf and .NET functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVersionedResource\u003c/code\u003e class offers two constructors: a default constructor and one that allows creating a new instance by copying an existing \u003ccode\u003eVersionedResource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for \u003ccode\u003eResource\u003c/code\u003e, which is a JSON representation of the resource, and \u003ccode\u003eVersion\u003c/code\u003e, indicating the API version of the resource.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple past versions of \u003ccode\u003eVersionedResource\u003c/code\u003e ranging from \u003ccode\u003e2.7.0\u003c/code\u003e to the latest version \u003ccode\u003e3.12.0\u003c/code\u003e of the Google Cloud Asset Inventory v1 API.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class VersionedResource (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.VersionedResource)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.VersionedResource)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.VersionedResource)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.VersionedResource)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.VersionedResource)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.VersionedResource)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.VersionedResource)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.VersionedResource) \n\n public sealed class VersionedResource : IMessage\u003cVersionedResource\u003e, IEquatable\u003cVersionedResource\u003e, IDeepCloneable\u003cVersionedResource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class VersionedResource.\n\nResource representation as defined by the corresponding service providing the\nresource for a given API version. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VersionedResource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VersionedResource](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.VersionedResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VersionedResource](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.VersionedResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VersionedResource](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.VersionedResource), [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.Asset.V1](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Asset.V1.dll\n\nConstructors\n------------\n\n### VersionedResource()\n\n public VersionedResource()\n\n### VersionedResource(VersionedResource)\n\n public VersionedResource(VersionedResource other)\n\nProperties\n----------\n\n### Resource\n\n public Struct Resource { get; set; }\n\nJSON representation of the resource as defined by the corresponding\nservice providing this resource.\n\nExample:\nIf the resource is an instance provided by Compute Engine, this field will\ncontain the JSON representation of the instance as defined by Compute\nEngine:\n`https://cloud.google.com/compute/docs/reference/rest/v1/instances`.\n\nYou can find the resource definition for each supported resource type in\nthis table:\n`https://cloud.google.com/asset-inventory/docs/supported-asset-types`\n\n### Version\n\n public string Version { get; set; }\n\nAPI version of the resource.\n\nExample:\nIf the resource is an instance provided by Compute Engine v1 API as defined\nin `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,\nversion will be \"v1\"."]]