Google Cloud Apigee Registry V1 Client - Class CreateApiSpecRequest (0.4.2)

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

Request message for CreateApiSpec.

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

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 specs. Format: projects/*/locations/*/apis/*/versions/*

↳ api_spec Google\Cloud\ApigeeRegistry\V1\ApiSpec

Required. The spec to create.

↳ api_spec_id string

Required. The ID to use for the spec, which will become the final component of the spec'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 specs.

Format: projects/*/locations/*/apis/*/versions/*

Returns
TypeDescription
string

setParent

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

Format: projects/*/locations/*/apis/*/versions/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApiSpec

Required. The spec to create.

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

hasApiSpec

clearApiSpec

setApiSpec

Required. The spec to create.

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

getApiSpecId

Required. The ID to use for the spec, which will become the final component of the spec'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

setApiSpecId

Required. The ID to use for the spec, which will become the final component of the spec'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 specs. Format: projects/*/locations/*/apis/*/versions/* Please see Google\Cloud\ApigeeRegistry\V1\RegistryClient::apiVersionName() for help formatting this field.

apiSpec Google\Cloud\ApigeeRegistry\V1\ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec'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\CreateApiSpecRequest