Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedAccess
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedAccess
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1alpha/classes.rb,
lib/google/apis/policysimulator_v1alpha/representations.rb,
lib/google/apis/policysimulator_v1alpha/representations.rb
Overview
Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple.
Instance Attribute Summary collapse
-
#access_state ⇒ String
Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
-
#errors ⇒ Array<Google::Apis::PolicysimulatorV1alpha::GoogleRpcStatus>
If the AccessState is
UNKNOWN
, this field contains a list of errors explaining why the result isUNKNOWN
. -
#policies ⇒ Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedPolicy>
If the AccessState is
UNKNOWN
, this field contains the policies that led to that result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaExplainedAccess
constructor
A new instance of GoogleCloudPolicysimulatorV1alphaExplainedAccess.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaExplainedAccess
Returns a new instance of GoogleCloudPolicysimulatorV1alphaExplainedAccess.
797 798 799 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 797 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_state ⇒ String
Whether the principal in the access tuple has permission to access the
resource in the access tuple under the given policies.
Corresponds to the JSON property accessState
781 782 783 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 781 def access_state @access_state end |
#errors ⇒ Array<Google::Apis::PolicysimulatorV1alpha::GoogleRpcStatus>
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.
Corresponds to the JSON property errors
788 789 790 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 788 def errors @errors end |
#policies ⇒ Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedPolicy>
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.
Corresponds to the JSON property policies
795 796 797 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 795 def policies @policies end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
802 803 804 805 806 |
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 802 def update!(**args) @access_state = args[:access_state] if args.key?(:access_state) @errors = args[:errors] if args.key?(:errors) @policies = args[:policies] if args.key?(:policies) end |