Class: Google::Apis::CloudassetV1::EffectiveIamPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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

Returns:

  • (String)


984
985
986
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 984

def full_resource_name
  @full_resource_name
end

#policiesArray<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