Google Cloud Policy Simulator V1 Client - Class ReplayConfig (0.1.1)

Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class ReplayConfig.

The configuration used for a Replay.

Generated from protobuf message google.cloud.policysimulator.v1.ReplayConfig

Namespace

Google \ Cloud \ PolicySimulator \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policy_overlay array|Google\Protobuf\Internal\MapField

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

↳ log_source int

The logs to use as input for the Replay.

getPolicyOverlay

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setPolicyOverlay

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getLogSource

The logs to use as input for the Replay.

Returns
TypeDescription
int

setLogSource

The logs to use as input for the Replay.

Parameter
NameDescription
var int
Returns
TypeDescription
$this