Reference documentation and code samples for the Google API Common Protos V1 Client class TestIamPermissionsRequest.
Request message for TestIamPermissions method.
Generated from protobuf message google.iam.v1.TestIamPermissionsRequest
Namespace
Google \ Cloud \ Iam \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ resource
string
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
↳ permissions
array
The set of permissions to check for the resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.
getResource
REQUIRED: The resource for which the policy detail is being requested.
See the operation documentation for the appropriate value for this field.
Returns
Type
Description
string
setResource
REQUIRED: The resource for which the policy detail is being requested.
See the operation documentation for the appropriate value for this field.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPermissions
The set of permissions to check for the resource. Permissions with
wildcards (such as '' or 'storage.') are not allowed. For more
information see
IAM Overview.
The set of permissions to check for the resource. Permissions with
wildcards (such as '' or 'storage.') are not allowed. For more
information see
IAM Overview.
[[["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-08-28 UTC."],[],[],null,["# Google API Common Protos V1 Client - Class TestIamPermissionsRequest (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Cloud.Iam.V1.TestIamPermissionsRequest)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Cloud.Iam.V1.TestIamPermissionsRequest)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Cloud.Iam.V1.TestIamPermissionsRequest)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Cloud.Iam.V1.TestIamPermissionsRequest)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Cloud.Iam.V1.TestIamPermissionsRequest)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Cloud.Iam.V1.TestIamPermissionsRequest) \nReference documentation and code samples for the Google API Common Protos V1 Client class TestIamPermissionsRequest.\n\nRequest message for `TestIamPermissions` method.\n\nGenerated from protobuf message `google.iam.v1.TestIamPermissionsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Iam \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResource\n\nREQUIRED: The resource for which the policy detail is being requested.\n\nSee the operation documentation for the appropriate value for this field.\n\n### setResource\n\nREQUIRED: The resource for which the policy detail is being requested.\n\nSee the operation documentation for the appropriate value for this field.\n\n### getPermissions\n\nThe set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.* ') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).\n\n### setPermissions\n\nThe set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.* ') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions)."]]