Reference documentation and code samples for the Google Cloud Policy Troubleshooter V1 Client class ExplainedPolicy.
Details about how a specific IAMPolicycontributed
to the access check.
Generated from protobuf messagegoogle.cloud.policytroubleshooter.v1.ExplainedPolicy
Namespace
Google \ Cloud \ PolicyTroubleshooter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ access
int
Indicates whetherthis policyprovides the specified permission to the specified principal for the specified resource. This field doesnotindicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use theaccessfield in theTroubleshootIamPolicyResponse.
↳ full_resource_name
string
The full resource name that identifies the resource. For example,//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance. If the sender of the request does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, seehttps://cloud.google.com/iam/help/troubleshooter/full-resource-names.
Details about how each binding in the policy affects the principal's ability, or inability, to use the permission for the resource. If the sender of the request does not have access to the policy, this field is omitted.
↳ relevance
int
The relevance of this policy to the overall determination in theTroubleshootIamPolicyResponse. If the sender of the request does not have access to the policy, this field is omitted.
getAccess
Indicates whetherthis policyprovides the specified permission to the
specified principal for the specified resource.
This field doesnotindicate whether the principal actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the principal actually has the
permission, use theaccessfield in theTroubleshootIamPolicyResponse.
Returns
Type
Description
int
setAccess
Indicates whetherthis policyprovides the specified permission to the
specified principal for the specified resource.
This field doesnotindicate whether the principal actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the principal actually has the
permission, use theaccessfield in theTroubleshootIamPolicyResponse.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getFullResourceName
The full resource name that identifies the resource. For example,//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance.
The full resource name that identifies the resource. For example,//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Policy Troubleshooter V1 Client - Class ExplainedPolicy (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-policy-troubleshooter/latest/V1.ExplainedPolicy)\n- [2.0.4](/php/docs/reference/cloud-policy-troubleshooter/2.0.4/V1.ExplainedPolicy)\n- [1.3.4](/php/docs/reference/cloud-policy-troubleshooter/1.3.4/V1.ExplainedPolicy)\n- [1.2.1](/php/docs/reference/cloud-policy-troubleshooter/1.2.1/V1.ExplainedPolicy)\n- [1.1.2](/php/docs/reference/cloud-policy-troubleshooter/1.1.2/V1.ExplainedPolicy)\n- [1.0.4](/php/docs/reference/cloud-policy-troubleshooter/1.0.4/V1.ExplainedPolicy) \nReference documentation and code samples for the Google Cloud Policy Troubleshooter V1 Client class ExplainedPolicy.\n\nDetails about how a specific IAM [Policy](https://cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.Policy.html) contributed\nto the access check.\n\nGenerated from protobuf message `google.cloud.policytroubleshooter.v1.ExplainedPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ PolicyTroubleshooter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAccess\n\nIndicates whether *this policy* provides the specified permission to the\nspecified principal for the specified resource.\n\nThis field does *not* indicate whether the principal actually has the\npermission for the resource. There might be another policy that overrides\nthis policy. To determine whether the principal actually has the\npermission, use the `access` field in the\nTroubleshootIamPolicyResponse.\n\n### setAccess\n\nIndicates whether *this policy* provides the specified permission to the\nspecified principal for the specified resource.\n\nThis field does *not* indicate whether the principal actually has the\npermission for the resource. There might be another policy that overrides\nthis policy. To determine whether the principal actually has the\npermission, use the `access` field in the\nTroubleshootIamPolicyResponse.\n\n### getFullResourceName\n\nThe full resource name that identifies the resource. For example,\n`//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted.\nFor examples of full resource names for Google Cloud services, see\n\u003chttps://cloud.google.com/iam/help/troubleshooter/full-resource-names\u003e.\n\n### setFullResourceName\n\nThe full resource name that identifies the resource. For example,\n`//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted.\nFor examples of full resource names for Google Cloud services, see\n\u003chttps://cloud.google.com/iam/help/troubleshooter/full-resource-names\u003e.\n\n### getPolicy\n\nThe IAM policy attached to the resource.\n\nIf the sender of the request does not have access to the policy, this field\nis empty.\n\n### hasPolicy\n\n### clearPolicy\n\n### setPolicy\n\nThe IAM policy attached to the resource.\n\nIf the sender of the request does not have access to the policy, this field\nis empty.\n\n### getBindingExplanations\n\nDetails about how each binding in the policy affects the principal's\nability, or inability, to use the permission for the resource.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted.\n\n### setBindingExplanations\n\nDetails about how each binding in the policy affects the principal's\nability, or inability, to use the permission for the resource.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted.\n\n### getRelevance\n\nThe relevance of this policy to the overall determination in the\nTroubleshootIamPolicyResponse.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted.\n\n### setRelevance\n\nThe relevance of this policy to the overall determination in the\nTroubleshootIamPolicyResponse.\n\nIf the sender of the request does not have access to the policy, this field\nis omitted."]]