Class RelatedAsset (2.10.0)

public sealed class RelatedAsset : IMessage<RelatedAsset>, IEquatable<RelatedAsset>, IDeepCloneable<RelatedAsset>, IBufferMessage, IMessage

An asset identify 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. Cloud 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
NameDescription
otherRelatedAsset

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: [&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]

Property Value
TypeDescription
RepeatedField<String>

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
TypeDescription
String

AssetAsResourceName

public IResourceName AssetAsResourceName { get; set; }

IResourceName-typed view over the Asset resource name property.

Property Value
TypeDescription
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
TypeDescription
String