Google Cloud Apigee Registry V1 Client - Class CreateApiRequest (0.3.2)

Reference documentation and code samples for the Google Cloud Apigee Registry V1 Client class CreateApiRequest.

Request message for CreateApi.

Generated from protobuf message google.cloud.apigeeregistry.v1.CreateApiRequest

Namespace

Google \ Cloud \ ApigeeRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

↳ api Google\Cloud\ApigeeRegistry\V1\Api

Required. The API to create.

↳ api_id string

Required. The ID to use for the API, which will become the final component of the API's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID.

getParent

Required. The parent, which owns this collection of APIs.

Format: projects/*/locations/*

Returns
TypeDescription
string

setParent

Required. The parent, which owns this collection of APIs.

Format: projects/*/locations/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApi

Required. The API to create.

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

hasApi

clearApi

setApi

Required. The API to create.

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

getApiId

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID.

Returns
TypeDescription
string

setApiId

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/* Please see Google\Cloud\ApigeeRegistry\V1\RegistryClient::locationName() for help formatting this field.

api Google\Cloud\ApigeeRegistry\V1\Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

Returns
TypeDescription
Google\Cloud\ApigeeRegistry\V1\CreateApiRequest