Service Client: Google::Cloud::Networkconnectivity::V1alpha1::Hub::HubServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Networkconnectivity::V1alpha1::Hub - Compiled Protocol Buffers messages for google/cloud/networkconnectivity/v1alpha1/hub.proto

SYNOPSIS

use Google::Cloud::Networkconnectivity::V1alpha1::Hub;

my $msg = Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    labels => $labels,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkconnectivity/v1alpha1/hub.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::Networkconnectivity::V1alpha1::Hub::Hub

Network Connectivity Center is a hub-and-spoke abstraction for network connectivity management in Google Cloud. It reduces operational complexity through a simple, centralized connectivity management model. Following is the resource message of a hub.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The name of a Hub resource.

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

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

    Time when the Hub was created.

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

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

    Time when the Hub was updated.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub::LabelsEntry)

    User-defined labels.

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

    Type: String

    Short description of the hub resource.

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

    Type: String

    Output only. A list of the URIs of all attached spokes

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

    Type: String

    Output only. Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.

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

    Type: Enum (Google::Cloud::Networkconnectivity::V1alpha1::State)

    Output only. The current lifecycle state of this Hub.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke

A Spoke is an abstraction of a network attachment being attached to a Hub. A Spoke can be underlying a VPN tunnel, a VLAN (interconnect) attachment, a Router appliance, etc.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Immutable. The name of a Spoke resource.

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

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

    The time when the Spoke was created.

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

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

    The time when the Spoke was updated.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke::LabelsEntry)

    User-defined labels.

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

    Type: String

    Short description of the spoke resource

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

    Type: String

    The resource URL of the hub resource that the spoke is attached to

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

    Type: String

    The URIs of linked VPN tunnel resources

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

    Type: String

    The URIs of linked interconnect attachment resources

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::RouterApplianceInstance)

    The URIs of linked Router appliance resources

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

    Type: String

    Output only. Google-generated UUID for this resource. This is unique across all Spoke resources. If a Spoke resource is deleted and another with the same name is created, it gets a different unique_id.

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

    Type: Enum (Google::Cloud::Networkconnectivity::V1alpha1::State)

    Output only. The current lifecycle state of this Hub.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsRequest

Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource's name.

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

    Type: Int32

    The maximum number of results per page that should be returned.

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

    Type: String

    The page token.

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

    Type: String

    A filter expression that filters the results listed in the response.

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

    Type: String

    Sort the results by a certain order.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsResponse

Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub)

    Hubs to be returned.

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

    Type: String

    The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetHubRequest

Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the Hub resource to get.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateHubRequest

Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource's name of the Hub.

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

    Type: String

    Optional. Unique id for the Hub to create.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub)

    Required. Initial values for a new Hub.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateHubRequest

Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Field mask is used to specify the fields to be overwritten in the Hub resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub)

    Required. The state that the Hub should be in after the update.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteHubRequest

The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the Hub to delete.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesRequest

The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent's resource name.

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

    Type: Int32

    The maximum number of results per page that should be returned.

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

    Type: String

    The page token.

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

    Type: String

    A filter expression that filters the results listed in the response.

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

    Type: String

    Sort the results by a certain order.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesResponse

The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke)

    Spokes to be returned.

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

    Type: String

    The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetSpokeRequest

The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of Spoke resource.

Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateSpokeRequest

The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent's resource name of the Spoke.

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

    Type: String

    Optional. Unique id for the Spoke to create.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke)

    Required. Initial values for a new Hub.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateSpokeRequest

Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Field mask is used to specify the fields to be overwritten in the Spoke resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke)

    Required. The state that the Spoke should be in after the update.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteSpokeRequest

The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the Spoke to delete.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1alpha1::Hub::RouterApplianceInstance

RouterAppliance represents a Router appliance which is specified by a VM URI and a NIC address.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI of the virtual machine resource

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

    Type: String

    The IP address of the network interface to use for peering.

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

    Type: String

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networkconnectivity::V1alpha1::Hub::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.