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 theRoutes overview.
Constructors
-
Route({List<
RouteAsPath> ? asPaths, String? creationTimestamp, String? description, String? destRange, String? id, String? kind, String? name, String? network, String? nextHopGateway, String? nextHopHub, String? nextHopIlb, String? nextHopInstance, int? nextHopInterRegionCost, String? nextHopInterconnectAttachment, String? nextHopIp, int? nextHopMed, String? nextHopNetwork, String? nextHopOrigin, String? nextHopPeering, String? nextHopVpnTunnel, RouteParams? params, int? priority, String? routeStatus, String? routeType, String? selfLink, List<String> ? tags, List<RouteWarnings> ? warnings}) - Route.fromJson(Map json_)
Properties
-
asPaths
↔ List<
RouteAsPath> ? -
AS path.
getter/setter pair
- creationTimestamp ↔ String?
-
Creation timestamp inRFC3339
text format.
getter/setter pair
- description ↔ String?
-
An optional description of this resource.
getter/setter pair
- destRange ↔ String?
-
The destination range of outgoing packets that this route applies to.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The unique identifier for the resource.
getter/setter pair
- kind ↔ String?
-
Type of this resource.
getter/setter pair
- name ↔ String?
-
Name of the resource.
getter/setter pair
- network ↔ String?
-
Fully-qualified URL of the network that this route applies to.
getter/setter pair
- 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
getter/setter pair
- nextHopHub ↔ String?
-
The full resource name of the Network Connectivity Center hub
that will handle matching packets.
getter/setter pair
- nextHopIlb ↔ String?
-
The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that
should handle matching
packets or the IP address of the forwarding Rule.
For example, the following are all valid URLs:
getter/setter pair
- nextHopInstance ↔ String?
-
The URL to an instance that should handle matching packets.
getter/setter pair
- nextHopInterconnectAttachment ↔ String?
-
The URL to an InterconnectAttachment which is the next hop
for the route.
This field will only be populated for dynamic routes generated by
Cloud Router with a linked interconnectAttachment or the static route
generated by each L2 Interconnect Attachment.
getter/setter pair
- nextHopInterRegionCost ↔ int?
-
Internal fixed region-to-region cost that Google Cloud
calculates based on factors such as network performance, distance, and
available bandwidth between regions.
getter/setter pair
- nextHopIp ↔ String?
-
The network IP address of an instance that should handle matching packets.
Both IPv6 address and IPv4 addresses are supported.
Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or
an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or
2001:db8:0:0:2d9:51:0:0).
getter/setter pair
- nextHopMed ↔ int?
-
Multi-Exit Discriminator, a BGP route metric that indicates
the desirability of a particular route in a network.
getter/setter pair
- nextHopNetwork ↔ String?
-
The URL of the local network if it should handle matching packets.
getter/setter pair
- nextHopOrigin ↔ String?
-
Indicates the origin of the route.
getter/setter pair
- nextHopPeering ↔ String?
-
The network peering name that should handle matching packets,
which should conform to RFC1035.
getter/setter pair
- nextHopVpnTunnel ↔ String?
-
The URL to a VpnTunnel that should handle matching packets.
getter/setter pair
- params ↔ RouteParams?
-
Input only.
getter/setter pair
- priority ↔ int?
-
The priority of this route.
getter/setter pair
- routeStatus ↔ String?
-
The status of the route.
getter/setter pair
- routeType ↔ String?
-
The type of this route, which can be one of the following
values:
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink ↔ String?
-
Server-defined fully-qualified URL for this resource.
getter/setter pair
-
A list of instance tags to which this route applies.
getter/setter pair
-
warnings
↔ List<
RouteWarnings> ? -
If potential misconfigurations are detected for this
route, this field will be populated with warning messages.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited