Class: Google::Apis::CloudassetV1::EffectiveIamPolicy
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::EffectiveIamPolicy
- 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
The effective IAM policies on one resource.
Instance Attribute Summary collapse
-
#full_resource_name ⇒ String
The full_resource_name for which the policies are computed.
-
#policies ⇒ Array<Google::Apis::CloudassetV1::PolicyInfo>
The effective policies for the full_resource_name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EffectiveIamPolicy
constructor
A new instance of EffectiveIamPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EffectiveIamPolicy
Returns a new instance of EffectiveIamPolicy.
998 999 1000 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 998 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_resource_name ⇒ String
The full_resource_name for which the policies are computed. This is one of the
BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.
Corresponds to the JSON property fullResourceName
984 985 986 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 984 def full_resource_name @full_resource_name end |
#policies ⇒ Array<Google::Apis::CloudassetV1::PolicyInfo>
The effective policies for the full_resource_name. These policies include the
policy set on the full_resource_name and those set on its parents and
ancestors up to the BatchGetEffectiveIamPoliciesRequest.scope. Note that these
policies are not filtered according to the resource type of the
full_resource_name. These policies are hierarchically ordered by PolicyInfo.
attached_resource starting from full_resource_name itself to its parents and
ancestors, such that policies[i]'s PolicyInfo.attached_resource is the child
of policies[i+1]'s PolicyInfo.attached_resource, if policies[i+1] exists.
Corresponds to the JSON property policies
996 997 998 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 996 def policies @policies end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1003 1004 1005 1006 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1003 def update!(**args) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) @policies = args[:policies] if args.key?(:policies) end |