Google Cloud Api Hub V1 Client - Class CreateHostProjectRegistrationRequest (0.2.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
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

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

↳ host_project_registration_idstring

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_registrationHostProjectRegistration

Required. The host project registration to register.

getParent

Required. The parent resource for the host project.

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

Returns
TypeDescription
string

setParent

Required. The parent resource for the host project.

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

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

getHostProjectRegistration

Required. The host project registration to register.

Returns
TypeDescription
HostProjectRegistration|null

hasHostProjectRegistration

clearHostProjectRegistration

setHostProjectRegistration

Required. The host project registration to register.

Parameter
NameDescription
varHostProjectRegistration
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

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

hostProjectRegistrationHostProjectRegistration

Required. The host project registration to register.

hostProjectRegistrationIdstring

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