Google Cloud Asset V1 Client - Class EffectiveIamPolicy (1.14.1)

Reference documentation and code samples for the Google Cloud Asset V1 Client class EffectiveIamPolicy.

The effective IAM policies on one resource.

Generated from protobuf message google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy

Namespace

Google \ Cloud \ Asset \ V1 \ BatchGetEffectiveIamPoliciesResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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.

↳ policies array<Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy\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.

getFullResourceName

The full_resource_name for which the policies are computed. This is one of the BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.

Returns
TypeDescription
string

setFullResourceName

The full_resource_name for which the policies are computed. This is one of the BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPolicies

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPolicies

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.

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\BatchGetEffectiveIamPoliciesResponse\EffectiveIamPolicy\PolicyInfo>
Returns
TypeDescription
$this