Show / Hide Table of Contents

Class GoogleCloudPolicysimulatorV1ResourceContext

ResourceContext provides the context we know about a resource. It is similar in concept to google.cloud.asset.v1.Resource, but focuses on the information specifically used by Simulator.

Inheritance
object
GoogleCloudPolicysimulatorV1ResourceContext
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.PolicySimulator.v1.Data
Assembly: Google.Apis.PolicySimulator.v1.dll
Syntax
public class GoogleCloudPolicysimulatorV1ResourceContext : IDirectResponseSchema

Properties

Ancestors

The ancestry path of the resource 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. If the resource is a project, folder, or organization, the ancestry path starts from the resource itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]

Declaration
[JsonProperty("ancestors")]
public virtual IList<string> Ancestors { get; set; }
Property Value
Type Description
IList<string>

AssetType

The asset type of the resource as defined by CAIS. Example: compute.googleapis.com/Firewall See Supported asset types for more information.

Declaration
[JsonProperty("assetType")]
public virtual string AssetType { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Resource

The full name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1 See Resource names for more information.

Declaration
[JsonProperty("resource")]
public virtual string Resource { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX