Reference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class DenyGrantRequest.
Request message for DenyGrant method.
Generated from protobuf message google.cloud.privilegedaccessmanager.v1.DenyGrantRequest
Namespace
Google \ Cloud \ PrivilegedAccessManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the grant resource which is being denied.
↳ reason
string
Optional. The reason for denying this grant. This is required if require_approver_justification field of the ManualApprovals workflow used in this grant is true.
getName
Required. Name of the grant resource which is being denied.
Returns
Type
Description
string
setName
Required. Name of the grant resource which is being denied.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getReason
Optional. The reason for denying this grant. This is required if
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
Returns
Type
Description
string
setReason
Optional. The reason for denying this grant. This is required if
require_approver_justification field of the ManualApprovals workflow
used in this grant is true.
[[["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-09 UTC."],[],[],null,["# Google Cloud Privileged Access Manager V1 Client - Class DenyGrantRequest (0.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.0 (latest)](/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.DenyGrantRequest)\n- [0.2.1](/php/docs/reference/cloud-privilegedaccessmanager/0.2.1/V1.DenyGrantRequest)\n- [0.1.4](/php/docs/reference/cloud-privilegedaccessmanager/0.1.4/V1.DenyGrantRequest) \nReference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class DenyGrantRequest.\n\nRequest message for `DenyGrant` method.\n\nGenerated from protobuf message `google.cloud.privilegedaccessmanager.v1.DenyGrantRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ PrivilegedAccessManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Name of the grant resource which is being denied.\n\n### setName\n\nRequired. Name of the grant resource which is being denied.\n\n### getReason\n\nOptional. The reason for denying this grant. This is required if\n`require_approver_justification` field of the `ManualApprovals` workflow\nused in this grant is true.\n\n### setReason\n\nOptional. The reason for denying this grant. This is required if\n`require_approver_justification` field of the `ManualApprovals` workflow\nused in this grant is true."]]