2.3.1 (latest) 2.1.3 2.0.4 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Api Gateway V1 Client class OpenApiDocument.

An OpenAPI Specification Document describing an API.

Generated from protobuf message `google.cloud.apigateway.v1.ApiConfig.OpenApiDocument`

## Namespace

Google \\ Cloud \\ ApiGateway \\ V1 \\ ApiConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ document` | `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File` The OpenAPI Specification document file. |

### getDocument

The OpenAPI Specification document file.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File|null` |   |

### hasDocument

### clearDocument

### setDocument

The OpenAPI Specification document file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File` |

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