public sealed class RelatedAsset : IMessage<RelatedAsset>, IEquatable<RelatedAsset>, IDeepCloneable<RelatedAsset>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class RelatedAsset.
An asset identifier in Google Cloud which contains its name, type and
ancestors. An asset can be any resource in the Google Cloud resource
hierarchy,
a resource outside the Google Cloud resource hierarchy (such as Google
Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy).
See Supported asset
types
for more information.
The ancestors of an asset in Google Cloud resource
hierarchy,
represented as a list of relative resource names. An ancestry path starts
with the closest ancestor in the hierarchy and ends at root.
[[["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\u003eRelatedAsset\u003c/code\u003e class, part of the Google Cloud Asset Inventory v1 API, represents an asset in Google Cloud, including its name, type, and ancestors.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the Google.Cloud.Asset.V1 library is 3.12.0, while the current page's focus is version 3.8.0, which contains a detailed list of other previous versions going all the way down to 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRelatedAsset\u003c/code\u003e implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities such as message handling, equality comparison, deep cloning, and buffered message support.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eRelatedAsset\u003c/code\u003e include \u003ccode\u003eAncestors\u003c/code\u003e (a list of ancestor resource names), \u003ccode\u003eAsset\u003c/code\u003e (the full asset name), \u003ccode\u003eAssetAsResourceName\u003c/code\u003e (a resource name typed view), \u003ccode\u003eAssetType\u003c/code\u003e, and \u003ccode\u003eRelationshipType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRelatedAsset\u003c/code\u003e objects can be constructed with a default constructor or by copying an existing \u003ccode\u003eRelatedAsset\u003c/code\u003e object, and the class inherits members from the \u003ccode\u003eobject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]