Google Cloud Asset V1 Client - Class PolicyInfo (1.9.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

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.

Generated from protobuf field string attached_resource = 1;

Returns
TypeDescription
string

setAttachedResource

The full resource name the policy is directly attached to.

Generated from protobuf field string attached_resource = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPolicy

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

Generated from protobuf field .google.iam.v1.Policy policy = 2;

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

hasPolicy

clearPolicy

setPolicy

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

Generated from protobuf field .google.iam.v1.Policy policy = 2;

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