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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\PolicySimulator\V1\ExplainedAccess
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\PolicySimulator\V1\ExplainedAccess
Returns
TypeDescription
$this

getAccessChange

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

Returns
TypeDescription
int

setAccessChange

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this