Google Cloud Policy Simulator V1 Client - Class AccessStateDiff (0.2.5)

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

A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.

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

Namespace

Google \ Cloud \ PolicySimulator \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ baseline Google\Cloud\PolicySimulator\V1\ExplainedAccess

The results of evaluating the access tuple under the current (baseline) policies. If the AccessState couldn't be fully evaluated, this field explains why.

↳ simulated Google\Cloud\PolicySimulator\V1\ExplainedAccess

The results of evaluating the access tuple under the proposed (simulated) policies. If the AccessState couldn't be fully evaluated, this field explains why.

↳ access_change int

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

getBaseline

The results of evaluating the access tuple under the current (baseline) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

Returns
Type Description
Google\Cloud\PolicySimulator\V1\ExplainedAccess|null

hasBaseline

clearBaseline

setBaseline

The results of evaluating the access tuple under the current (baseline) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

Parameter
Name Description
var Google\Cloud\PolicySimulator\V1\ExplainedAccess
Returns
Type Description
$this

getSimulated

The results of evaluating the access tuple under the proposed (simulated) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

Returns
Type Description
Google\Cloud\PolicySimulator\V1\ExplainedAccess|null

hasSimulated

clearSimulated

setSimulated

The results of evaluating the access tuple under the proposed (simulated) policies.

If the AccessState couldn't be fully evaluated, this field explains why.

Parameter
Name Description
var Google\Cloud\PolicySimulator\V1\ExplainedAccess
Returns
Type Description
$this

getAccessChange

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

Returns
Type Description
int

setAccessChange

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

Parameter
Name Description
var int
Returns
Type Description
$this