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 message google.cloud.accessapproval.v1.ApprovalRequest
Methods
__construct
Constructor.
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 at https://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.
↳ requested_resource_properties
Google\Cloud\AccessApproval\V1\ResourceProperties
Properties related to the resource represented by requested_resource_name.
↳ requested_reason
Google\Cloud\AccessApproval\V1\AccessReason
The justification for which approval is being requested.
↳ requested_locations
↳ request_time
↳ requested_expiration
Google\Protobuf\Timestamp
The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
↳ approve
↳ dismiss
getName
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
string
setName
The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
var
string
$this
getRequestedResourceName
The resource for which approval is being requested. The format of the resource name is defined at https://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.
string
setRequestedResourceName
The resource for which approval is being requested. The format of the resource name is defined at https://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.
var
string
$this
getRequestedResourceProperties
Properties related to the resource represented by requested_resource_name.
hasRequestedResourceProperties
clearRequestedResourceProperties
setRequestedResourceProperties
Properties related to the resource represented by requested_resource_name.
$this
getRequestedReason
The justification for which approval is being requested.
hasRequestedReason
clearRequestedReason
setRequestedReason
The justification for which approval is being requested.
$this
getRequestedLocations
The locations for which approval is being requested.
hasRequestedLocations
clearRequestedLocations
setRequestedLocations
The locations for which approval is being requested.
$this
getRequestTime
The time at which approval was requested.
hasRequestTime
clearRequestTime
setRequestTime
The time at which approval was requested.
$this
getRequestedExpiration
The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
hasRequestedExpiration
clearRequestedExpiration
setRequestedExpiration
The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
$this
getApprove
Access was approved.
hasApprove
setApprove
Access was approved.
$this
getDismiss
The request was dismissed.
hasDismiss
setDismiss
The request was dismissed.
$this
getDecision
string