Network Connectivity v1 API - Class Route (2.6.0)

public sealed class Route : IMessage<Route>, IEquatable<Route>, IDeepCloneable<Route>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Connectivity v1 API class Route.

A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.

Inheritance

object > Route

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

Route()

public Route()

Route(Route)

public Route(Route other)
Parameter
NameDescription
otherRoute

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time the route was created.

Property Value
TypeDescription
Timestamp

Description

public string Description { get; set; }

An optional description of the route.

Property Value
TypeDescription
string

HubRouteName

public HubRouteName HubRouteName { get; set; }

HubRouteName-typed view over the Name resource name property.

Property Value
TypeDescription
HubRouteName

IpCidrRange

public string IpCidrRange { get; set; }

The destination IP address range.

Property Value
TypeDescription
string

Labels

public MapField<string, string> Labels { get; }

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

Property Value
TypeDescription
MapFieldstringstring

Location

public string Location { get; set; }

Output only. The location of the route. Uses the following form: "projects/{project}/locations/{location}" Example: projects/1234/locations/us-central1

Property Value
TypeDescription
string

Name

public string Name { get; set; }

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}

Property Value
TypeDescription
string

NextHopVpcNetwork

public NextHopVpcNetwork NextHopVpcNetwork { get; set; }

Immutable. The destination VPC network for packets on this route.

Property Value
TypeDescription
NextHopVpcNetwork

Spoke

public string Spoke { get; set; }

Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE

Property Value
TypeDescription
string

SpokeAsSpokeName

public SpokeName SpokeAsSpokeName { get; set; }

SpokeName-typed view over the Spoke resource name property.

Property Value
TypeDescription
SpokeName

State

public State State { get; set; }

Output only. The current lifecycle state of the route.

Property Value
TypeDescription
State

Type

public RouteType Type { get; set; }

Output only. The route's type. Its type is determined by the properties of its IP address range.

Property Value
TypeDescription
RouteType

Uid

public string Uid { get; set; }

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.

Property Value
TypeDescription
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time the route was last updated.

Property Value
TypeDescription
Timestamp