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 CreateApiRequest.

Request message for ApiGatewayService.CreateApi

Generated from protobuf message `google.cloud.apigateway.v1.CreateApiRequest`

## Namespace

Google \\ Cloud \\ ApiGateway \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getParent

Required. Parent resource of the API, of the form:
`projects/*/locations/global`

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

### setParent

Required. Parent resource of the API, of the form:
`projects/*/locations/global`

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

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

### getApiId

Required. Identifier to assign to the API. Must be unique within scope of
the parent resource.

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

### setApiId

Required. Identifier to assign to the API. Must be unique within scope of
the parent resource.

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

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

### getApi

Required. API resource.

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

### hasApi

### clearApi

### setApi

Required. API resource.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent resource of the API, of the form: `projects/*/locations/global` Please see ApiGatewayServiceClient::locationName() for help formatting this field. |
| `api` | `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.Api` Required. API resource. |
| `apiId` | `string` Required. Identifier to assign to the API. Must be unique within scope of the parent resource. |

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