Google Cloud Api Hub V1 Client - Class CreateApiHubInstanceRequest (0.1.1)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class CreateApiHubInstanceRequest.

The CreateApiHubInstance method's request.

Generated from protobuf message google.cloud.apihub.v1.CreateApiHubInstanceRequest

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource for the Api Hub instance resource. Format: projects/{project}/locations/{location}

↳ api_hub_instance_id string

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used. This value should be 4-40 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

↳ api_hub_instance Google\Cloud\ApiHub\V1\ApiHubInstance

Required. The ApiHub instance.

getParent

Required. The parent resource for the Api Hub instance resource.

Format: projects/{project}/locations/{location}

Returns
Type Description
string

setParent

Required. The parent resource for the Api Hub instance resource.

Format: projects/{project}/locations/{location}

Parameter
Name Description
var string
Returns
Type Description
$this

getApiHubInstanceId

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

Returns
Type Description
string

setApiHubInstanceId

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

Parameter
Name Description
var string
Returns
Type Description
$this

getApiHubInstance

Required. The ApiHub instance.

Returns
Type Description
Google\Cloud\ApiHub\V1\ApiHubInstance|null

hasApiHubInstance

clearApiHubInstance

setApiHubInstance

Required. The ApiHub instance.

Parameter
Name Description
var Google\Cloud\ApiHub\V1\ApiHubInstance
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource for the Api Hub instance resource. Format: projects/{project}/locations/{location} Please see Google\Cloud\ApiHub\V1\ProvisioningClient::locationName() for help formatting this field.

apiHubInstance Google\Cloud\ApiHub\V1\ApiHubInstance

Required. The ApiHub instance.

apiHubInstanceId string

Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used.

This value should be 4-40 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

Returns
Type Description
Google\Cloud\ApiHub\V1\CreateApiHubInstanceRequest