Google Cloud Api Gateway V1 Client - Class CreateApiRequest (1.1.1)

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.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ api_id string

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

↳ api Google\Cloud\ApiGateway\V1\Api

Required. API resource.

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApiId

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

Returns
TypeDescription
string

setApiId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApi

Required. API resource.

Returns
TypeDescription
Google\Cloud\ApiGateway\V1\Api|null

hasApi

clearApi

setApi

Required. API resource.

Parameter
NameDescription
var Google\Cloud\ApiGateway\V1\Api
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Parent resource of the API, of the form: projects/*/locations/global Please see Google\Cloud\ApiGateway\V1\ApiGatewayServiceClient::locationName() for help formatting this field.

api Google\Cloud\ApiGateway\V1\Api

Required. API resource.

apiId string

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

Returns
TypeDescription
Google\Cloud\ApiGateway\V1\CreateApiRequest