0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class HttpOperation.

The HTTP Operation.

Generated from protobuf message `google.cloud.apihub.v1.HttpOperation`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Path` Optional. The path details for the Operation. Note: Even though this field is optional, it is required for [CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__) API and we will fail the request if not provided. |
| `↳ method` | `int` Optional. Operation method Note: Even though this field is optional, it is required for [CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__) API and we will fail the request if not provided. |

### getPath

Optional. The path details for the Operation.

Note: Even though this field is optional, it is required for
[CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__)
API and we will fail the request if not provided.

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

### hasPath

### clearPath

### setPath

Optional. The path details for the Operation.

Note: Even though this field is optional, it is required for
[CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__)
API and we will fail the request if not provided.

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

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

### getMethod

Optional. Operation method
Note: Even though this field is optional, it is required for
[CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__)
API and we will fail the request if not provided.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperation.Method). |

### setMethod

Optional. Operation method
Note: Even though this field is optional, it is required for
[CreateApiOperation](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__createApiOperation__)
API and we will fail the request if not provided.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Method](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperation.Method). |

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