Google Cloud Asset Inventory v1 API - Class RelatedAsset (3.12.0)

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.

Inheritance

object > RelatedAsset

Namespace

Google.Cloud.Asset.V1

Assembly

Google.Cloud.Asset.V1.dll

Constructors

RelatedAsset()

public RelatedAsset()

RelatedAsset(RelatedAsset)

public RelatedAsset(RelatedAsset other)
Parameter
Name Description
other RelatedAsset

Properties

Ancestors

public RepeatedField<string> Ancestors { get; }

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.

Example: ["projects/123456789", "folders/5432", "organizations/1234"]

Property Value
Type Description
RepeatedFieldstring

Asset

public string Asset { get; set; }

The full name of the asset. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1

See Resource names for more information.

Property Value
Type Description
string

AssetAsResourceName

public IResourceName AssetAsResourceName { get; set; }

IResourceName-typed view over the Asset resource name property.

Property Value
Type Description
IResourceName

AssetType

public string AssetType { get; set; }

The type of the asset. Example: compute.googleapis.com/Disk

See Supported asset types for more information.

Property Value
Type Description
string

RelationshipType

public string RelationshipType { get; set; }

The unique identifier of the relationship type. Example: INSTANCE_TO_INSTANCEGROUP

Property Value
Type Description
string