Google Cloud Access Approval V1 Client - Class ApproveDecision (1.1.3)

Reference documentation and code samples for the Google Cloud Access Approval V1 Client class ApproveDecision.

A decision that has been made to approve access to a resource.

Generated from protobuf message google.cloud.accessapproval.v1.ApproveDecision

Namespace

Google \ Cloud \ AccessApproval \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ approve_time Google\Protobuf\Timestamp

The time at which approval was granted.

↳ expire_time Google\Protobuf\Timestamp

The time at which the approval expires.

↳ invalidate_time Google\Protobuf\Timestamp

If set, denotes the timestamp at which the approval is invalidated.

↳ signature_info Google\Cloud\AccessApproval\V1\SignatureInfo

The signature for the ApprovalRequest and details on how it was signed.

↳ auto_approved bool

True when the request has been auto-approved.

getApproveTime

The time at which approval was granted.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasApproveTime

clearApproveTime

setApproveTime

The time at which approval was granted.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getExpireTime

The time at which the approval expires.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

The time at which the approval expires.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getInvalidateTime

If set, denotes the timestamp at which the approval is invalidated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasInvalidateTime

clearInvalidateTime

setInvalidateTime

If set, denotes the timestamp at which the approval is invalidated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getSignatureInfo

The signature for the ApprovalRequest and details on how it was signed.

Returns
TypeDescription
Google\Cloud\AccessApproval\V1\SignatureInfo|null

hasSignatureInfo

clearSignatureInfo

setSignatureInfo

The signature for the ApprovalRequest and details on how it was signed.

Parameter
NameDescription
var Google\Cloud\AccessApproval\V1\SignatureInfo
Returns
TypeDescription
$this

getAutoApproved

True when the request has been auto-approved.

Returns
TypeDescription
bool

setAutoApproved

True when the request has been auto-approved.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this