# Suspension

- [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#SCHEMA_REPRESENTATION)
- [ResolutionState](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ResolutionState)
- [Audit](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#Audit)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#Audit.SCHEMA_REPRESENTATION)
- [ApprovalConfig](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalConfig)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalConfig.SCHEMA_REPRESENTATION)
- [ApprovalExpiration](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalExpiration)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalExpiration.SCHEMA_REPRESENTATION)

A record representing a suspension.

| JSON representation |
|---|
| ``` { "name": string, "eventExecutionInfoId": string, "taskId": string, "state": enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ResolutionState`), "audit": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#Audit`) }, "createTime": string, "lastModifyTime": string, "integration": string, "approvalConfig": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalConfig`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Resource name for suspensions suspension/{suspensionId} |
| `eventExecutionInfoId` | `string` Required. ID of the associated execution. |
| `taskId` | `string` Required. Task id of the associated SuspensionTask. |
| `state` | ``enum (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ResolutionState`)`` Required. State of this suspension, indicating what action a resolver has taken. |
| `audit` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#Audit`)`` Metadata pertaining to the resolution of this suspension. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Auto-generated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `lastModifyTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Auto-generated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `integration` | `string` Required. The name of the originating integration. |
| `approvalConfig` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalConfig`)`` Controls the notifications and approval permissions for this suspension. |

## ResolutionState

Enum representing the user action, if any, taken on a suspension.

| Enums ||
|---|---|
| `RESOLUTION_STATE_UNSPECIFIED` | Unset state. |
| `PENDING` | The suspension has not yet been resolved. |
| `REJECTED` | The resolver has rejected the suspension. |
| `LIFTED` | The resolver has lifted the suspension. |

## Audit

Contains when and by whom the suspension was resolved.

| JSON representation |
|---|
| ``` { "resolveTime": string, "resolver": string } ``` |

| Fields ||
|---|---|
| `resolveTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Time at which this suspension was resolved. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `resolver` | `string` Email address of the person who resolved this suspension. |

## ApprovalConfig

Configurations for approving the Suspension.

| JSON representation |
|---|
| ``` { "customMessage": string, "emailAddresses": [ string ], "expiration": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalExpiration`) } } ``` |

| Fields ||
|---|---|
| `customMessage` | `string` Information to provide for recipients. |
| `emailAddresses[]` | `string` Email addresses to send approval request to. |
| `expiration` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/Suspension#ApprovalExpiration`)`` Indicates the next steps when no external actions happen on the suspension. |

## ApprovalExpiration

Expiration configs for the approval request.

| JSON representation |
|---|
| ``` { "remindTime": string, "expireTime": string, "liftWhenExpired": boolean } ``` |

| Fields ||
|---|---|
| `remindTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Time after the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `expireTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time after which the suspension expires, if no action taken. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `liftWhenExpired` | `boolean` Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior. |