Google Cloud Api Hub V1 Client - Class CreateHostProjectRegistrationRequest (0.1.0)

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

The CreateHostProjectRegistration method's request.

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

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 host project. Format: projects/{project}/locations/{location}

↳ host_project_registration_id string

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

↳ host_project_registration Google\Cloud\ApiHub\V1\HostProjectRegistration

Required. The host project registration to register.

getParent

Required. The parent resource for the host project.

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

Returns
Type Description
string

setParent

Required. The parent resource for the host project.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getHostProjectRegistrationId

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

Returns
Type Description
string

setHostProjectRegistrationId

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

Parameter
Name Description
var string
Returns
Type Description
$this

getHostProjectRegistration

Required. The host project registration to register.

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

hasHostProjectRegistration

clearHostProjectRegistration

setHostProjectRegistration

Required. The host project registration to register.

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

static::build

Parameters
Name Description
parent string

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

hostProjectRegistration Google\Cloud\ApiHub\V1\HostProjectRegistration

Required. The host project registration to register.

hostProjectRegistrationId string

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

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