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"]],[["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-03-21 UTC."],[[["The `VersionedResource` class in the Google Cloud Asset Inventory v1 API provides a representation of a resource as defined by the service that provides it, with the latest version being 3.12.0 and version 3.9.0 being the current view."],["This class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, supporting various functionalities like deep cloning and equality comparisons."],["`VersionedResource` includes properties such as `Resource` which contains a JSON representation of the resource and `Version` which stores the API version of that resource, like \"v1\" for a Compute Engine instance."],["The `VersionedResource` class offers two constructors, a default constructor `VersionedResource()` and another `VersionedResource(VersionedResource other)` that takes in another VersionedResource object."],["The full documentation of this `VersionedResource` class, along with its methods and usage, can be found in the Google Cloud Asset Inventory v1 API documentation for .NET."]]],[]]