Class: Google::Apis::CloudassetV1::Explanation
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::Explanation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
Explanation about the IAM policy search result.
Instance Attribute Summary collapse
-
#matched_permissions ⇒ Hash<String,Google::Apis::CloudassetV1::Permissions>
The map from roles to their included permissions that match the permission query (i.e., a query containing
policy.role.permissions:
).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Explanation
constructor
A new instance of Explanation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Explanation
Returns a new instance of Explanation.
1074 1075 1076 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1074 def initialize(**args) update!(**args) end |
Instance Attribute Details
#matched_permissions ⇒ Hash<String,Google::Apis::CloudassetV1::Permissions>
The map from roles to their included permissions that match the permission
query (i.e., a query containing policy.role.permissions:
). Example: if query
policy.role.permissions:compute.disk.get
matches a policy binding that
contains owner role, the matched_permissions will be "roles/owner": ["
compute.disk.get"]
. The roles can also be found in the returned policy
bindings. Note that the map is populated only for requests with permission
queries.
Corresponds to the JSON property matchedPermissions
1072 1073 1074 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1072 def @matched_permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1079 1080 1081 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1079 def update!(**args) @matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions) end |