Google Cloud Api Hub V1 Client - Class HttpOperation (0.4.0)

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
Path

Optional. The path details for the Operation. Note: Even though this field is optional, it is required for 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 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 API and we will fail the request if not provided.

Returns
Type
Description
Path |null

hasPath

clearPath

setPath

Optional. The path details for the Operation.

Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

Parameter
Name
Description
var
Returns
Type
Description
$this

getMethod

Optional. Operation method Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

Returns
Type
Description
int
Enum of type Method .

setMethod

Optional. Operation method Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

Parameter
Name
Description
var
int

Enum of type Method .

Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: