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 | |
---|---|
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.
Generated from protobuf field string attached_resource = 1;
Returns | |
---|---|
Type | Description |
string |
setAttachedResource
The full resource name the policy is directly attached to.
Generated from protobuf field string attached_resource = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPolicy
The IAM policy that's directly attached to the attached_resource.
Generated from protobuf field .google.iam.v1.Policy policy = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Iam\V1\Policy
|
Returns | |
---|---|
Type | Description |
$this |