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

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
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

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

↳ api_hub_instance_idstring

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_instanceApiHubInstance

Required. The ApiHub instance.

getParent

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

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

Returns
TypeDescription
string

setParent

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

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
varstring
Returns
TypeDescription
$this

getApiHubInstance

Required. The ApiHub instance.

Returns
TypeDescription
ApiHubInstance|null

hasApiHubInstance

clearApiHubInstance

setApiHubInstance

Required. The ApiHub instance.

Parameter
NameDescription
varApiHubInstance
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

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

apiHubInstanceApiHubInstance

Required. The ApiHub instance.

apiHubInstanceIdstring

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
TypeDescription
CreateApiHubInstanceRequest