NAME
Google::Cloud::Networkservices::V1::HttpRoute - Compiled Protocol Buffers messages for google/cloud/networkservices/v1/http_route.proto
SYNOPSIS
use Google::Cloud::Networkservices::V1::HttpRoute;
my $msg = Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute->new({
name => $name,
self_link => $self_link,
description => $description,
create_time => $create_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/http_route.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::Networkservices::V1::HttpRoute::HttpRoute
HttpRoute is the resource defining how HTTP traffic should be routed by a Mesh or Gateway resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Name of the HttpRoute resource. It matches pattern `projects/*/locations/*/httpRoutes/http_route_name>`.
$msg->self_link()/$msg->self_link($value)Type:
StringOutput only. Server-defined URL of this resource
$msg->description()/$msg->description($value)Type:
StringOptional. A free-text description of the resource. Max length 1024 characters.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the resource was updated.
$msg->hostnames()/$msg->hostnames($value)Type:
StringRequired. Hostnames define a set of hosts that should match against the HTTP host header to select a HttpRoute to process the request. Hostname is the fully qualified domain name of a network host, as defined by RFC 1123 with the exception that: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label.
Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`).
Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed.
The routes associated with a Mesh or Gateways must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected.
For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh (or Gateways under the same scope), it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`.
$msg->meshes()/$msg->meshes($value)Type:
StringOptional. Meshes defines a list of meshes this HttpRoute is attached to, as one of the routing rules to route the requests served by the mesh.
Each mesh reference should match the pattern: `projects/*/locations/*/meshes/<mesh_name>`
The attached Mesh should be of a type SIDECAR
$msg->gateways()/$msg->gateways($value)Type:
StringOptional. Gateways defines a list of gateways this HttpRoute is attached to, as one of the routing rules to route the requests served by the gateway.
Each gateway reference should match the pattern: `projects/*/locations/*/gateways/<gateway_name>`
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute::LabelsEntry)Optional. Set of label tags associated with the HttpRoute resource.
$msg->rules()/$msg->rules($value)Type:
Message(Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute::RouteRule)Required. Rules that define how traffic is routed and handled. Rules will be matched sequentially based on the RouteMatch specified for the rule.
Google::Cloud::Networkservices::V1::HttpRoute::ListHttpRoutesRequest
Request used with the ListHttpRoutes method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the HttpRoutes should be listed, specified in the format `projects/*/locations/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of HttpRoutes to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a prior `ListHttpRoutes` call, and that the system should return the next page of data.
$msg->return_partial_success()/$msg->return_partial_success($value)Type:
BoolOptional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter expression to restrict the list.
Google::Cloud::Networkservices::V1::HttpRoute::ListHttpRoutesResponse
Response returned by the ListHttpRoutes method.
Inherits from Protobuf::Message.
Accessors
$msg->http_routes()/$msg->http_routes($value)Type:
Message(Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute)List of HttpRoute resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnreachable resources. Populated when the request opts into [return_partial_success][google.cloud.networkservices.v1.ListHttpRoutesRequest.return_partial_success] and reading across collections e.g. when attempting to list all resources across all supported locations.
Google::Cloud::Networkservices::V1::HttpRoute::GetHttpRouteRequest
Request used by the GetHttpRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the HttpRoute to get. Must be in the format `projects/*/locations/*/httpRoutes/*`.
Google::Cloud::Networkservices::V1::HttpRoute::CreateHttpRouteRequest
Request used by the HttpRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the HttpRoute. Must be in the format `projects/*/locations/*`.
$msg->http_route_id()/$msg->http_route_id($value)Type:
StringRequired. Short name of the HttpRoute resource to be created.
$msg->http_route()/$msg->http_route($value)Type:
Message(Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute)Required. HttpRoute resource to be created.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. Idempotent request UUID.
Google::Cloud::Networkservices::V1::HttpRoute::UpdateHttpRouteRequest
Request used by the UpdateHttpRoute 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 HttpRoute 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->http_route()/$msg->http_route($value)Type:
Message(Google::Cloud::Networkservices::V1::HttpRoute::HttpRoute)Required. Updated HttpRoute resource.
Google::Cloud::Networkservices::V1::HttpRoute::DeleteHttpRouteRequest
Request used by the DeleteHttpRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the HttpRoute to delete. Must be in the format `projects/*/locations/*/httpRoutes/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networkservices::V1::HttpRoute::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.