Service Client: Google::Cloud::Apihub::V1::HostProjectRegistrationService::HostProjectRegistrationServiceClient

Client stub representing the remote HostProjectRegistrationService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to apihub.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Apihub::V1::HostProjectRegistrationService - Compiled Protocol Buffers messages for google/cloud/apihub/v1/host_project_registration_service.proto

SYNOPSIS

use Google::Cloud::Apihub::V1::HostProjectRegistrationService;

my $msg = Google::Cloud::Apihub::V1::HostProjectRegistrationService::CreateHostProjectRegistrationRequest->new({
    parent => $parent,
    host_project_registration_id => $host_project_registration_id,
    host_project_registration => $host_project_registration,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Apihub::V1::HostProjectRegistrationService::CreateHostProjectRegistrationRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apihub/v1/host_project_registration_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Apihub::V1::HostProjectRegistrationService::CreateHostProjectRegistrationRequest

The [CreateHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->host_project_registration_id() / $msg->host_project_registration_id($value)

    Type: 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.

  • $msg->host_project_registration() / $msg->host_project_registration($value)

    Type: Message (Google::Cloud::Apihub::V1::HostProjectRegistrationService::HostProjectRegistration)

    Required. The host project registration to register.

Google::Cloud::Apihub::V1::HostProjectRegistrationService::GetHostProjectRegistrationRequest

The [GetHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Host project registration resource name. projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id}

Google::Cloud::Apihub::V1::HostProjectRegistrationService::ListHostProjectRegistrationsRequest

The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent, which owns this collection of host projects. Format: `projects/*/locations/*`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of host project registrations to return. The service may return fewer than this value. If unspecified, at most 50 host project registrations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListHostProjectRegistrations` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters (except page_size) provided to `ListHostProjectRegistrations` must match the call that provided the page token.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. An expression that filters the list of HostProjectRegistrations.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. All standard operators as documented at https://google.aip.dev/160 are supported.

    The following fields in the `HostProjectRegistration` are eligible for filtering:

    * `name` - The name of the HostProjectRegistration.
    * `create_time` - The time at which the HostProjectRegistration was
    created. The value should be in the
    (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
    * `gcp_project` - The Google cloud project associated with the
    HostProjectRegistration.
  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. Hint for how to order the results.

Google::Cloud::Apihub::V1::HostProjectRegistrationService::ListHostProjectRegistrationsResponse

The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's response.

Inherits from Protobuf::Message.

Accessors

  • $msg->host_project_registrations() / $msg->host_project_registrations($value)

    Type: Message (Google::Cloud::Apihub::V1::HostProjectRegistrationService::HostProjectRegistration)

    The list of host project registrations.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Apihub::V1::HostProjectRegistrationService::HostProjectRegistration

Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the host project registration. Format: "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".

  • $msg->gcp_project() / $msg->gcp_project($value)

    Type: String

    Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the host project registration was created.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Apihub::V1::HostProjectRegistrationService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.