compute
v1
|
#include <route.h>
Classes | |
class | RouteWarnings |
Public Member Functions | |
Route (const Json::Value &storage) | |
Route (Json::Value *storage) | |
virtual | ~Route () |
const StringPiece | GetTypeName () const |
bool | has_creation_timestamp () const |
void | clear_creation_timestamp () |
const StringPiece | get_creation_timestamp () const |
void | set_creation_timestamp (const StringPiece &value) |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_dest_range () const |
void | clear_dest_range () |
const StringPiece | get_dest_range () const |
void | set_dest_range (const StringPiece &value) |
bool | has_id () const |
void | clear_id () |
uint64 | get_id () const |
void | set_id (uint64 value) |
bool | has_kind () const |
void | clear_kind () |
const StringPiece | get_kind () const |
void | set_kind (const StringPiece &value) |
bool | has_name () const |
void | clear_name () |
const StringPiece | get_name () const |
void | set_name (const StringPiece &value) |
bool | has_network () const |
void | clear_network () |
const StringPiece | get_network () const |
void | set_network (const StringPiece &value) |
bool | has_next_hop_gateway () const |
void | clear_next_hop_gateway () |
const StringPiece | get_next_hop_gateway () const |
void | set_next_hop_gateway (const StringPiece &value) |
bool | has_next_hop_instance () const |
void | clear_next_hop_instance () |
const StringPiece | get_next_hop_instance () const |
void | set_next_hop_instance (const StringPiece &value) |
bool | has_next_hop_ip () const |
void | clear_next_hop_ip () |
const StringPiece | get_next_hop_ip () const |
void | set_next_hop_ip (const StringPiece &value) |
bool | has_next_hop_network () const |
void | clear_next_hop_network () |
const StringPiece | get_next_hop_network () const |
void | set_next_hop_network (const StringPiece &value) |
bool | has_next_hop_peering () const |
void | clear_next_hop_peering () |
const StringPiece | get_next_hop_peering () const |
void | set_next_hop_peering (const StringPiece &value) |
bool | has_next_hop_vpn_tunnel () const |
void | clear_next_hop_vpn_tunnel () |
const StringPiece | get_next_hop_vpn_tunnel () const |
void | set_next_hop_vpn_tunnel (const StringPiece &value) |
bool | has_priority () const |
void | clear_priority () |
uint32 | get_priority () const |
void | set_priority (uint32 value) |
bool | has_self_link () const |
void | clear_self_link () |
const StringPiece | get_self_link () const |
void | set_self_link (const StringPiece &value) |
bool | has_tags () const |
void | clear_tags () |
const client::JsonCppArray< string > | get_tags () const |
client::JsonCppArray< string > | mutable_tags () |
bool | has_warnings () const |
void | clear_warnings () |
const client::JsonCppArray< RouteWarnings > | get_warnings () const |
client::JsonCppArray< RouteWarnings > | mutable_warnings () |
Static Public Member Functions | |
static Route * | New () |
Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table.
For each packet leaving an instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway.
Packets that do not match any route in the sending instance's routing table are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==).
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'creationTimestamp
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'destRange
' attribute.
|
inline |
Clears the 'id
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'name
' attribute.
|
inline |
Clears the 'network
' attribute.
|
inline |
Clears the 'nextHopGateway
' attribute.
|
inline |
Clears the 'nextHopInstance
' attribute.
|
inline |
Clears the 'nextHopIp
' attribute.
|
inline |
Clears the 'nextHopNetwork
' attribute.
|
inline |
Clears the 'nextHopPeering
' attribute.
|
inline |
Clears the 'nextHopVpnTunnel
' attribute.
|
inline |
Clears the 'priority
' attribute.
|
inline |
Clears the 'selfLink
' attribute.
|
inline |
Clears the 'tags
' attribute.
|
inline |
Clears the 'warnings
' attribute.
|
inline |
Get the value of the 'creationTimestamp
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'destRange
' attribute.
|
inline |
Get the value of the 'id
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'name
' attribute.
|
inline |
Get the value of the 'network
' attribute.
|
inline |
Get the value of the 'nextHopGateway
' attribute.
|
inline |
Get the value of the 'nextHopInstance
' attribute.
|
inline |
Get the value of the 'nextHopIp
' attribute.
|
inline |
Get the value of the 'nextHopNetwork
' attribute.
|
inline |
Get the value of the 'nextHopPeering
' attribute.
|
inline |
Get the value of the 'nextHopVpnTunnel
' attribute.
|
inline |
Get the value of the 'priority
' attribute.
|
inline |
Get the value of the 'selfLink
' attribute.
|
inline |
Get a reference to the value of the 'tags
' attribute.
|
inline |
Get a reference to the value of the 'warnings
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_compute_api::Route
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
creationTimestamp
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'destRange
' attribute was set.
destRange
' attribute was set.
|
inline |
Determine if the 'id
' attribute was set.
id
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'name
' attribute was set.
name
' attribute was set.
|
inline |
Determine if the 'network
' attribute was set.
network
' attribute was set.
|
inline |
Determine if the 'nextHopGateway
' attribute was set.
nextHopGateway
' attribute was set.
|
inline |
Determine if the 'nextHopInstance
' attribute was set.
nextHopInstance
' attribute was set.
|
inline |
Determine if the 'nextHopIp
' attribute was set.
nextHopIp
' attribute was set.
|
inline |
Determine if the 'nextHopNetwork
' attribute was set.
nextHopNetwork
' attribute was set.
|
inline |
Determine if the 'nextHopPeering
' attribute was set.
nextHopPeering
' attribute was set.
|
inline |
Determine if the 'nextHopVpnTunnel
' attribute was set.
nextHopVpnTunnel
' attribute was set.
|
inline |
Determine if the 'priority
' attribute was set.
priority
' attribute was set.
|
inline |
Determine if the 'selfLink
' attribute was set.
selfLink
' attribute was set.
|
inline |
Determine if the 'tags
' attribute was set.
tags
' attribute was set.
|
inline |
Determine if the 'warnings
' attribute was set.
warnings
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'tags
' property.
A list of instance tags to which this route applies.
|
inline |
Gets a reference to a mutable value of the 'warnings
' property.
[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.
|
static |
Creates a new default instance.
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
[in] | value | The new value. |
|
inline |
Change the 'destRange
' attribute.
The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
[in] | value | The new value. |
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
[in] | value | The new value. |
|
inline |
Change the 'kind
' attribute.
[Output Only] Type of this resource. Always compute::routes for Route resources.
[in] | value | The new value. |
|
inline |
Change the 'name
' attribute.
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])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
[in] | value | The new value. |
|
inline |
Change the 'network
' attribute.
Fully-qualified URL of the network that this route applies to.
[in] | value | The new value. |
|
inline |
Change the 'nextHopGateway
' attribute.
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//global/gateways/default-internet-gateway.
[in] | value | The new value. |
|
inline |
Change the 'nextHopInstance
' attribute.
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 /.
[in] | value | The new value. |
|
inline |
Change the 'nextHopIp
' attribute.
The network IP address of an instance that should handle matching packets. Only IPv4 is supported.
[in] | value | The new value. |
|
inline |
Change the 'nextHopNetwork
' attribute.
The URL of the local network if it should handle matching packets.
[in] | value | The new value. |
|
inline |
Change the 'nextHopPeering
' attribute.
[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.
[in] | value | The new value. |
|
inline |
Change the 'nextHopVpnTunnel
' attribute.
The URL to a VpnTunnel that should handle matching packets.
[in] | value | The new value. |
|
inline |
Change the 'priority
' attribute.
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 the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
[in] | value | The new value. |
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined fully-qualified URL for this resource.
[in] | value | The new value. |