Route(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.
Attributes |
|
---|---|
Name | Description |
name |
str
Immutable. The name of the route. Route names must be unique. Route names use the following form: projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}
|
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time the route was created. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time the route was last updated. |
ip_cidr_range |
str
The destination IP address range. |
type_ |
google.cloud.networkconnectivity_v1.types.RouteType
Output only. The route's type. Its type is determined by the properties of its IP address range. |
next_hop_vpc_network |
google.cloud.networkconnectivity_v1.types.NextHopVpcNetwork
Immutable. The destination VPC network for packets on this route. |
labels |
MutableMapping[str, str]
Optional labels in key-value pair format. For more information about labels, see `Requirements for labels |
description |
str
An optional description of the route. |
uid |
str
Output only. The Google-generated UUID for the route. This value is unique across all Network Connectivity Center route resources. If a route is deleted and another with the same name is created, the new route is assigned a different uid .
|
state |
google.cloud.networkconnectivity_v1.types.State
Output only. The current lifecycle state of the route. |
spoke |
str
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE |
location |
str
Output only. The origin location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1 |
priority |
int
Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins. |
next_hop_vpn_tunnel |
google.cloud.networkconnectivity_v1.types.NextHopVPNTunnel
Immutable. The next-hop VPN tunnel for packets on this route. |
next_hop_router_appliance_instance |
google.cloud.networkconnectivity_v1.types.NextHopRouterApplianceInstance
Immutable. The next-hop Router appliance instance for packets on this route. |
next_hop_interconnect_attachment |
google.cloud.networkconnectivity_v1.types.NextHopInterconnectAttachment
Immutable. The next-hop VLAN attachment for packets on this route. |
Classes
LabelsEntry
LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |