Class: Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation
- Inherits:
-
Object
- Object
- Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/policytroubleshooter_v1beta/classes.rb,
generated/google/apis/policytroubleshooter_v1beta/representations.rb,
generated/google/apis/policytroubleshooter_v1beta/representations.rb
Overview
Binding Explanation.
Instance Attribute Summary collapse
-
#access ⇒ String
REQUIRED: Access decision for this binding.
-
#condition ⇒ Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr
Represents an expression text.
-
#memberships ⇒ Hash<String,Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership>
For each member in the binding, provides information whether or not the principal from the request is included in the member by which the CheckResult is keyed.
-
#relevance ⇒ String
Bubbles up role_permission level relavance to BindingExplanation object.
-
#role ⇒ String
The role that this binding grants in the policy.
-
#role_permission ⇒ String
Whether the role of this binding contains the checked permission Corresponds to the JSON property
rolePermission
. -
#role_permission_relevance ⇒ String
The relevance of this permission with respect to the BindingExplanation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1betaBindingExplanation
constructor
A new instance of GoogleCloudPolicytroubleshooterV1betaBindingExplanation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicytroubleshooterV1betaBindingExplanation
Returns a new instance of GoogleCloudPolicytroubleshooterV1betaBindingExplanation
117 118 119 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access ⇒ String
REQUIRED: Access decision for this binding.
Corresponds to the JSON property access
74 75 76 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 74 def access @access end |
#condition ⇒ Google::Apis::PolicytroubleshooterV1beta::GoogleTypeExpr
Represents an expression text. Example:
title: "User account presence"
description: "Determines whether the request has a user account"
expression: "size(request.user) > 0"
Corresponds to the JSON property condition
82 83 84 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 82 def condition @condition end |
#memberships ⇒ Hash<String,Google::Apis::PolicytroubleshooterV1beta::GoogleCloudPolicytroubleshooterV1betaBindingExplanationAnnotatedMembership>
For each member in the binding, provides information
whether or not the principal from the request is included
in the member by which the CheckResult is keyed.
May indicate that the caller has no access to this information.
example key: 'group:cloud-iam-assist-eng@google.com'
example value 'NOT_GRANTED, HIGH
Corresponds to the JSON property memberships
92 93 94 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 92 def memberships @memberships end |
#relevance ⇒ String
Bubbles up role_permission level relavance to BindingExplanation object.
If role permission is NORMAL, then binding relevance is NORMAL.
If role permission is HIGH, then binding relevance is HIGH.
Corresponds to the JSON property relevance
99 100 101 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 99 def relevance @relevance end |
#role ⇒ String
The role that this binding grants in the policy.
for example "roles/compute.serviceAgent"
Corresponds to the JSON property role
105 106 107 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 105 def role @role end |
#role_permission ⇒ String
Whether the role of this binding contains the checked permission
Corresponds to the JSON property rolePermission
110 111 112 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 110 def @role_permission end |
#role_permission_relevance ⇒ String
The relevance of this permission with respect to the BindingExplanation.
Corresponds to the JSON property rolePermissionRelevance
115 116 117 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 115 def @role_permission_relevance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 125 126 127 128 129 130 |
# File 'generated/google/apis/policytroubleshooter_v1beta/classes.rb', line 122 def update!(**args) @access = args[:access] if args.key?(:access) @condition = args[:condition] if args.key?(:condition) @memberships = args[:memberships] if args.key?(:memberships) @relevance = args[:relevance] if args.key?(:relevance) @role = args[:role] if args.key?(:role) @role_permission = args[:role_permission] if args.key?(:role_permission) @role_permission_relevance = args[:role_permission_relevance] if args.key?(:role_permission_relevance) end |