Google Cloud Asset V1 Client - Class PolicyInfo (1.12.2)

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

The IAM policy and its attached resource.

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

Namespace

Google \ Cloud \ Asset \ V1 \ BatchGetEffectiveIamPoliciesResponse \ EffectiveIamPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attached_resource string

The full resource name the policy is directly attached to.

↳ policy Google\Cloud\Iam\V1\Policy

The IAM policy that's directly attached to the attached_resource.

getAttachedResource

The full resource name the policy is directly attached to.

Returns
TypeDescription
string

setAttachedResource

The full resource name the policy is directly attached to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPolicy

The IAM policy that's directly attached to the attached_resource.

Returns
TypeDescription
Google\Cloud\Iam\V1\Policy|null

hasPolicy

clearPolicy

setPolicy

The IAM policy that's directly attached to the attached_resource.

Parameter
NameDescription
var Google\Cloud\Iam\V1\Policy
Returns
TypeDescription
$this