Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class ExplainedAccess.
Details about how a set of policies, listed in ExplainedPolicy , resulted in a certain AccessState when replaying an access tuple.
Generated from protobuf message google.cloud.policysimulator.v1.ExplainedAccess
Namespace
Google \ Cloud \ PolicySimulator \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ access_state
int
Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
↳ policies
array< Google\Cloud\PolicySimulator\V1\ExplainedPolicy
>
If the AccessState
is UNKNOWN
, this field contains the policies that led to that result. If the AccessState
is GRANTED
or NOT_GRANTED
, this field is omitted.
↳ errors
array< Google\Rpc\Status
>
If the AccessState
is UNKNOWN
, this field contains a list of errors explaining why the result is UNKNOWN
. If the AccessState
is GRANTED
or NOT_GRANTED
, this field is omitted.
getAccessState
Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
int
setAccessState
Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
var
int
$this
getPolicies
If the AccessState
is UNKNOWN
, this field contains the policies that led to that result.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
setPolicies
If the AccessState
is UNKNOWN
, this field contains the policies that led to that result.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
$this
getErrors
If the AccessState
is UNKNOWN
, this field contains a list of errors explaining why the result
is UNKNOWN
.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
setErrors
If the AccessState
is UNKNOWN
, this field contains a list of errors explaining why the result
is UNKNOWN
.
If the AccessState
is GRANTED
or NOT_GRANTED
, this field is
omitted.
$this