Reference documentation and code samples for the Google Cloud Access Approval V1 Client class ApprovalRequest.
A request for the customer to approve access to a resource.
Generated from protobuf messagegoogle.cloud.accessapproval.v1.ApprovalRequest
Namespace
Google \ Cloud \ AccessApproval \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
↳ requested_resource_name
string
The resource for which approval is being requested. The format of the resource name is defined athttps://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
The resource name of the request. Format is
"{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
Returns
Type
Description
string
setName
The resource name of the request. Format is
"{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequestedResourceName
The resource for which approval is being requested. The format of the
resource name is defined athttps://cloud.google.com/apis/design/resource_names. The resource name here
may either be a "full" resource name (e.g.
"//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
resource name (e.g. "shelves/shelf1/books/book2") as described in the
resource name specification.
Returns
Type
Description
string
setRequestedResourceName
The resource for which approval is being requested. The format of the
resource name is defined athttps://cloud.google.com/apis/design/resource_names. The resource name here
may either be a "full" resource name (e.g.
"//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
resource name (e.g. "shelves/shelf1/books/book2") as described in the
resource name specification.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequestedResourceProperties
Properties related to the resource represented by requested_resource_name.
[[["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 Access Approval V1 Client - Class ApprovalRequest (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-access-approval/latest/V1.ApprovalRequest)\n- [2.0.4](/php/docs/reference/cloud-access-approval/2.0.4/V1.ApprovalRequest)\n- [1.2.5](/php/docs/reference/cloud-access-approval/1.2.5/V1.ApprovalRequest)\n- [1.1.3](/php/docs/reference/cloud-access-approval/1.1.3/V1.ApprovalRequest)\n- [1.0.4](/php/docs/reference/cloud-access-approval/1.0.4/V1.ApprovalRequest) \nReference documentation and code samples for the Google Cloud Access Approval V1 Client class ApprovalRequest.\n\nA request for the customer to approve access to a resource.\n\nGenerated from protobuf message `google.cloud.accessapproval.v1.ApprovalRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AccessApproval \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the request. Format is\n\"{projects\\|folders\\|organizations}/{id}/approvalRequests/{approval_request}\".\n\n### setName\n\nThe resource name of the request. Format is\n\"{projects\\|folders\\|organizations}/{id}/approvalRequests/{approval_request}\".\n\n### getRequestedResourceName\n\nThe resource for which approval is being requested. The format of the\nresource name is defined at\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e. The resource name here\nmay either be a \"full\" resource name (e.g.\n\n\"//library.googleapis.com/shelves/shelf1/books/book2\") or a \"relative\"\nresource name (e.g. \"shelves/shelf1/books/book2\") as described in the\nresource name specification.\n\n### setRequestedResourceName\n\nThe resource for which approval is being requested. The format of the\nresource name is defined at\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e. The resource name here\nmay either be a \"full\" resource name (e.g.\n\n\"//library.googleapis.com/shelves/shelf1/books/book2\") or a \"relative\"\nresource name (e.g. \"shelves/shelf1/books/book2\") as described in the\nresource name specification.\n\n### getRequestedResourceProperties\n\nProperties related to the resource represented by requested_resource_name.\n\n### hasRequestedResourceProperties\n\n### clearRequestedResourceProperties\n\n### setRequestedResourceProperties\n\nProperties related to the resource represented by requested_resource_name.\n\n### getRequestedReason\n\nThe justification for which approval is being requested.\n\n### hasRequestedReason\n\n### clearRequestedReason\n\n### setRequestedReason\n\nThe justification for which approval is being requested.\n\n### getRequestedLocations\n\nThe locations for which approval is being requested.\n\n### hasRequestedLocations\n\n### clearRequestedLocations\n\n### setRequestedLocations\n\nThe locations for which approval is being requested.\n\n### getRequestTime\n\nThe time at which approval was requested.\n\n### hasRequestTime\n\n### clearRequestTime\n\n### setRequestTime\n\nThe time at which approval was requested.\n\n### getRequestedExpiration\n\nThe requested expiration for the approval. If the request is approved,\naccess will be granted from the time of approval until the expiration time.\n\n### hasRequestedExpiration\n\n### clearRequestedExpiration\n\n### setRequestedExpiration\n\nThe requested expiration for the approval. If the request is approved,\naccess will be granted from the time of approval until the expiration time.\n\n### getApprove\n\nAccess was approved.\n\n### hasApprove\n\n### setApprove\n\nAccess was approved.\n\n### getDismiss\n\nThe request was dismissed.\n\n### hasDismiss\n\n### setDismiss\n\nThe request was dismissed.\n\n### getDecision"]]