Route class

Represents a Route resource.

A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==)

Constructors

Route()
Route.fromJson(Map _json)

Properties

creationTimestamp ↔ String
Output Only Creation timestamp in RFC3339 text format.
read / write
description ↔ String
An optional description of this resource. Provide this field when you create the resource.
read / write
destRange ↔ String
The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
read / write
id ↔ String
Output Only The unique identifier for the resource. This identifier is defined by the server.
read / write
kind ↔ String
Output Only Type of this resource. Always compute#routes for Route resources.
read / write
name ↔ String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
read / write
network ↔ String
Fully-qualified URL of the network that this route applies to.
read / write
nextHopGateway ↔ String
The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/project/global/gateways/default-internet-gateway
read / write
nextHopInstance ↔ String
The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
read / write
nextHopIp ↔ String
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
read / write
nextHopNetwork ↔ String
The URL of the local network if it should handle matching packets.
read / write
nextHopPeering ↔ String
Output Only The network peering name that should handle matching packets, which should conform to RFC1035.
read / write
nextHopVpnTunnel ↔ String
The URL to a VpnTunnel that should handle matching packets.
read / write
priority ↔ int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 0 to 65535, inclusive.
read / write
Output Only Server-defined fully-qualified URL for this resource.
read / write
tags ↔ List<String>
A list of instance tags to which this route applies.
read / write
warnings ↔ List<RouteWarnings>
Output Only If potential misconfigurations are detected for this route, this field will be populated with warning messages.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited