Google Cloud Asset V1 Client - Class PolicyInfo (2.1.0)

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
Name Description
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
Type Description
string

setAttachedResource

The full resource name the policy is directly attached to.

Parameter
Name Description
var string
Returns
Type Description
$this

getPolicy

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

Returns
Type Description
Google\Cloud\Iam\V1\Policy|null

hasPolicy

clearPolicy

setPolicy

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

Parameter
Name Description
var Google\Cloud\Iam\V1\Policy
Returns
Type Description
$this