Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1AccessControlList
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1AccessControlList
- 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
An access control list, derived from the above IAM policy binding, which contains a set of resources and accesses. May include one item from each set to compose an access control entry. NOTICE that there could be multiple access control lists for one IAM policy binding. The access control lists are created based on resource and access combinations. For example, assume we have the following cases in one IAM policy binding: - Permission P1 and P2 apply to resource R1 and R2; - Permission P3 applies to resource R2 and R3; This will result in the following access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - AccessControlList 2: [R2, R3], [P3]
Instance Attribute Summary collapse
-
#accesses ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Access>
The accesses that match one of the following conditions: - The access_selector, if it is specified in request; - Otherwise, access specifiers reachable from the policy binding's role.
-
#condition_evaluation ⇒ Google::Apis::CloudassetV1::ConditionEvaluation
The condition evaluation.
-
#resource_edges ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Edge>
Resource edges of the graph starting from the policy attached resource to any descendant resources.
-
#resources ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Resource>
The resources that match one of the following conditions: - The resource_selector, if it is specified in request; - Otherwise, resources reachable from the policy attached resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1AccessControlList
constructor
A new instance of GoogleCloudAssetV1AccessControlList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1AccessControlList
Returns a new instance of GoogleCloudAssetV1AccessControlList.
1413 1414 1415 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accesses ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Access>
The accesses that match one of the following conditions: - The access_selector,
if it is specified in request; - Otherwise, access specifiers reachable from
the policy binding's role.
Corresponds to the JSON property accesses
1390 1391 1392 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1390 def accesses @accesses end |
#condition_evaluation ⇒ Google::Apis::CloudassetV1::ConditionEvaluation
The condition evaluation.
Corresponds to the JSON property conditionEvaluation
1395 1396 1397 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1395 def condition_evaluation @condition_evaluation end |
#resource_edges ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Edge>
Resource edges of the graph starting from the policy attached resource to any
descendant resources. The Edge.source_node contains the full resource name of
a parent resource and Edge.target_node contains the full resource name of a
child resource. This field is present only if the output_resource_edges option
is enabled in request.
Corresponds to the JSON property resourceEdges
1404 1405 1406 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1404 def resource_edges @resource_edges end |
#resources ⇒ Array<Google::Apis::CloudassetV1::GoogleCloudAssetV1Resource>
The resources that match one of the following conditions: - The
resource_selector, if it is specified in request; - Otherwise, resources
reachable from the policy attached resource.
Corresponds to the JSON property resources
1411 1412 1413 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1411 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1418 1419 1420 1421 1422 1423 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1418 def update!(**args) @accesses = args[:accesses] if args.key?(:accesses) @condition_evaluation = args[:condition_evaluation] if args.key?(:condition_evaluation) @resource_edges = args[:resource_edges] if args.key?(:resource_edges) @resources = args[:resources] if args.key?(:resources) end |