# Google Cloud Cloud Controls Partner V1beta Client - Class AccessApprovalRequest (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.0 0.2.2 0.1.4

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Cloud Controls Partner V1beta Client class AccessApprovalRequest.

Details about the Access request.

Generated from protobuf message `google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest`

## Namespace

Google \\ Cloud \\ CloudControlsPartner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` |
| `↳ request_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which approval was requested. |
| `↳ requested_reason` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.AccessReason` The justification for which approval is being requested. |
| `↳ requested_expiration_time` | `https://protobuf.dev/reference/php/api-docs/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. |

### getName

Identifier. Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestTime

The time at which approval was requested.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasRequestTime

### clearRequestTime

### setRequestTime

The time at which approval was requested.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestedReason

The justification for which approval is being requested.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.AccessReason|null` |   |

### hasRequestedReason

### clearRequestedReason

### setRequestedReason

The justification for which approval is being requested.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-cloudcontrolspartner/latest/V1beta.AccessReason` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestedExpirationTime

The requested expiration for the approval. If the request is approved,
access will be granted from the time of approval until the expiration time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasRequestedExpirationTime

### clearRequestedExpirationTime

### setRequestedExpirationTime

The requested expiration for the approval. If the request is approved,
access will be granted from the time of approval until the expiration time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |