Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ExplainedAccess.
Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#access_state
def access_state() -> ::Google::Cloud::PolicySimulator::V1::AccessState
- (::Google::Cloud::PolicySimulator::V1::AccessState) — Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
#access_state=
def access_state=(value) -> ::Google::Cloud::PolicySimulator::V1::AccessState
- value (::Google::Cloud::PolicySimulator::V1::AccessState) — Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
- (::Google::Cloud::PolicySimulator::V1::AccessState) — Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
#errors
def errors() -> ::Array<::Google::Rpc::Status>
-
(::Array<::Google::Rpc::Status>) — If the AccessState is
UNKNOWN
, this field contains a list of errors explaining why the result isUNKNOWN
.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.
#errors=
def errors=(value) -> ::Array<::Google::Rpc::Status>
-
value (::Array<::Google::Rpc::Status>) — If the AccessState is
UNKNOWN
, this field contains a list of errors explaining why the result isUNKNOWN
.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.
-
(::Array<::Google::Rpc::Status>) — If the AccessState is
UNKNOWN
, this field contains a list of errors explaining why the result isUNKNOWN
.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.
#policies
def policies() -> ::Array<::Google::Cloud::PolicySimulator::V1::ExplainedPolicy>
-
(::Array<::Google::Cloud::PolicySimulator::V1::ExplainedPolicy>) — If the AccessState is
UNKNOWN
, this field contains the policies that led to that result.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.
#policies=
def policies=(value) -> ::Array<::Google::Cloud::PolicySimulator::V1::ExplainedPolicy>
-
value (::Array<::Google::Cloud::PolicySimulator::V1::ExplainedPolicy>) — If the AccessState is
UNKNOWN
, this field contains the policies that led to that result.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.
-
(::Array<::Google::Cloud::PolicySimulator::V1::ExplainedPolicy>) — If the AccessState is
UNKNOWN
, this field contains the policies that led to that result.If the
AccessState
isGRANTED
orNOT_GRANTED
, this field is omitted.