View Source GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ResourceContext (google_api_policy_simulator v0.3.0)

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.

Attributes

  • ancestors (type: list(String.t), default: nil) - 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"]
  • assetType (type: String.t, default: nil) - The asset type of the resource as defined by CAIS. Example: compute.googleapis.com/Firewall See Supported asset types for more information.
  • resource (type: String.t, default: nil) - The full name of the resource. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1 See Resource names for more information.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ResourceContext{
    ancestors: [String.t()] | nil,
    assetType: String.t() | nil,
    resource: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.