NAME
Google::Cloud::Compute::V1beta::RoutersClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Compute::V1beta::RoutersClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Compute::V1beta::RoutersClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Compute::V1beta::RoutersClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Compute::V1beta::RoutersClient is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
googleapis/google/cloud/compute/v1beta/compute.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Compute::V1beta::RoutersClient->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
aggregated_list
my $response = $client->aggregated_list( filter => $filter, include_all_scopes => $include_all_scopes, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, return_partial_success => $return_partial_success, service_project_number => $service_project_number, );Calls the RPC method
AggregatedListongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::AggregatedListRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RouterAggregatedList
Parameters:
filter-stringinclude_all_scopes-boolmax_results-uint32order_by-stringpage_token-stringproject-stringreturn_partial_success-boolservice_project_number-int64
delete
my $response = $client->delete( etag => $etag, project => $project, region => $region, request_id => $request_id, router => $router, );Calls the RPC method
Deleteongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::DeleteRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
etag-stringproject-stringregion-stringrequest_id-stringrouter-string
delete_named_set
my $response = $client->delete_named_set( named_set => $named_set, project => $project, region => $region, request_id => $request_id, router => $router, );Calls the RPC method
DeleteNamedSetongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::DeleteNamedSetRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
named_set-stringproject-stringregion-stringrequest_id-stringrouter-string
delete_route_policy
my $response = $client->delete_route_policy( policy => $policy, project => $project, region => $region, request_id => $request_id, router => $router, );Calls the RPC method
DeleteRoutePolicyongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::DeleteRoutePolicyRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
policy-stringproject-stringregion-stringrequest_id-stringrouter-string
get
my $response = $client->get( project => $project, region => $region, router => $router, );Calls the RPC method
Getongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Router
Parameters:
project-stringregion-stringrouter-string
get_named_set
my $response = $client->get_named_set( named_set => $named_set, project => $project, region => $region, router => $router, );Calls the RPC method
GetNamedSetongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetNamedSetRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersGetNamedSetResponse
Parameters:
named_set-stringproject-stringregion-stringrouter-string
get_nat_ip_info
my $response = $client->get_nat_ip_info( nat_name => $nat_name, project => $project, region => $region, router => $router, );Calls the RPC method
GetNatIpInfoongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetNatIpInfoRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::NatIpInfoResponse
Parameters:
nat_name-stringproject-stringregion-stringrouter-string
get_nat_mapping_info
my $response = $client->get_nat_mapping_info( filter => $filter, max_results => $max_results, nat_name => $nat_name, order_by => $order_by, page_token => $page_token, project => $project, region => $region, return_partial_success => $return_partial_success, router => $router, );Calls the RPC method
GetNatMappingInfoongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetNatMappingInfoRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::VmEndpointNatMappingsList
Parameters:
filter-stringmax_results-uint32nat_name-stringorder_by-stringpage_token-stringproject-stringregion-stringreturn_partial_success-boolrouter-string
get_route_policy
my $response = $client->get_route_policy( policy => $policy, project => $project, region => $region, router => $router, );Calls the RPC method
GetRoutePolicyongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetRoutePolicyRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersGetRoutePolicyResponse
Parameters:
policy-stringproject-stringregion-stringrouter-string
get_router_status
my $response = $client->get_router_status( project => $project, region => $region, router => $router, );Calls the RPC method
GetRouterStatusongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::GetRouterStatusRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RouterStatusResponse
Parameters:
project-stringregion-stringrouter-string
insert
my $response = $client->insert( project => $project, region => $region, request_id => $request_id, router_resource => $router_resource, );Calls the RPC method
Insertongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::InsertRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
project-stringregion-stringrequest_id-stringrouter_resource- Google::Cloud::Compute::V1beta::Compute::Router
list
my $response = $client->list( filter => $filter, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, region => $region, return_partial_success => $return_partial_success, );Calls the RPC method
Listongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::ListRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RouterList
Parameters:
filter-stringmax_results-uint32order_by-stringpage_token-stringproject-stringregion-stringreturn_partial_success-bool
list_bgp_routes
my $response = $client->list_bgp_routes( address_family => $address_family, destination_prefix => $destination_prefix, filter => $filter, max_results => $max_results, order_by => $order_by, page_token => $page_token, peer => $peer, policy_applied => $policy_applied, project => $project, region => $region, return_partial_success => $return_partial_success, route_type => $route_type, router => $router, );Calls the RPC method
ListBgpRoutesongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::ListBgpRoutesRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersListBgpRoutes
Parameters:
address_family-stringdestination_prefix-stringfilter-stringmax_results-uint32order_by-stringpage_token-stringpeer-stringpolicy_applied-boolproject-stringregion-stringreturn_partial_success-boolroute_type-stringrouter-string
list_named_sets
my $response = $client->list_named_sets( filter => $filter, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, region => $region, return_partial_success => $return_partial_success, router => $router, );Calls the RPC method
ListNamedSetsongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::ListNamedSetsRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersListNamedSets
Parameters:
filter-stringmax_results-uint32order_by-stringpage_token-stringproject-stringregion-stringreturn_partial_success-boolrouter-string
list_route_policies
my $response = $client->list_route_policies( filter => $filter, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, region => $region, return_partial_success => $return_partial_success, router => $router, );Calls the RPC method
ListRoutePoliciesongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::ListRoutePoliciesRoutersRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersListRoutePolicies
Parameters:
filter-stringmax_results-uint32order_by-stringpage_token-stringproject-stringregion-stringreturn_partial_success-boolrouter-string
patch
my $response = $client->patch( project => $project, region => $region, request_id => $request_id, router => $router, router_resource => $router_resource, );Calls the RPC method
Patchongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::PatchRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
project-stringregion-stringrequest_id-stringrouter-stringrouter_resource- Google::Cloud::Compute::V1beta::Compute::Router
patch_named_set
my $response = $client->patch_named_set( named_set_resource => $named_set_resource, project => $project, region => $region, request_id => $request_id, router => $router, );Calls the RPC method
PatchNamedSetongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::PatchNamedSetRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
named_set_resource- Google::Cloud::Compute::V1beta::Compute::NamedSetproject-stringregion-stringrequest_id-stringrouter-string
patch_route_policy
my $response = $client->patch_route_policy( project => $project, region => $region, request_id => $request_id, route_policy_resource => $route_policy_resource, router => $router, );Calls the RPC method
PatchRoutePolicyongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::PatchRoutePolicyRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
project-stringregion-stringrequest_id-stringroute_policy_resource- Google::Cloud::Compute::V1beta::Compute::RoutePolicyrouter-string
preview
my $response = $client->preview( project => $project, region => $region, router => $router, router_resource => $router_resource, );Calls the RPC method
Previewongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::PreviewRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::RoutersPreviewResponse
Parameters:
project-stringregion-stringrouter-stringrouter_resource- Google::Cloud::Compute::V1beta::Compute::Router
test_iam_permissions
my $response = $client->test_iam_permissions( project => $project, region => $region, resource => $resource, test_permissions_request_resource => $test_permissions_request_resource, );Calls the RPC method
TestIamPermissionsongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::TestIamPermissionsRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::TestPermissionsResponse
Parameters:
project-stringregion-stringresource-stringtest_permissions_request_resource- Google::Cloud::Compute::V1beta::Compute::TestPermissionsRequest
update
my $response = $client->update( project => $project, region => $region, request_id => $request_id, router => $router, router_resource => $router_resource, );Calls the RPC method
Updateongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::UpdateRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
project-stringregion-stringrequest_id-stringrouter-stringrouter_resource- Google::Cloud::Compute::V1beta::Compute::Router
update_named_set
my $response = $client->update_named_set( named_set_resource => $named_set_resource, project => $project, region => $region, request_id => $request_id, router => $router, );Calls the RPC method
UpdateNamedSetongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::UpdateNamedSetRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
named_set_resource- Google::Cloud::Compute::V1beta::Compute::NamedSetproject-stringregion-stringrequest_id-stringrouter-string
update_route_policy
my $response = $client->update_route_policy( project => $project, region => $region, request_id => $request_id, route_policy_resource => $route_policy_resource, router => $router, );Calls the RPC method
UpdateRoutePolicyongoogle.cloud.compute.v1beta.Routers.Request: Google::Cloud::Compute::V1beta::Compute::UpdateRoutePolicyRouterRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
project-stringregion-stringrequest_id-stringroute_policy_resource- Google::Cloud::Compute::V1beta::Compute::RoutePolicyrouter-string
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.