Class: Google::Apis::NetworkconnectivityV1::Route
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::Route
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
An optional description of the route.
-
#ip_cidr_range ⇒ String
The destination IP address range.
-
#labels ⇒ Hash<String,String>
Optional labels in key-value pair format.
-
#location ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#next_hop_vpc_network ⇒ Google::Apis::NetworkconnectivityV1::NextHopVpcNetwork
Immutable.
-
#spoke ⇒ String
Immutable.
-
#state ⇒ String
Output only.
-
#type ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Route
constructor
A new instance of Route.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Route
Returns a new instance of Route.
2395 2396 2397 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time the route was created.
Corresponds to the JSON property createTime
2327 2328 2329 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2327 def create_time @create_time end |
#description ⇒ String
An optional description of the route.
Corresponds to the JSON property description
2332 2333 2334 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2332 def description @description end |
#ip_cidr_range ⇒ String
The destination IP address range.
Corresponds to the JSON property ipCidrRange
2337 2338 2339 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2337 def ip_cidr_range @ip_cidr_range end |
#labels ⇒ Hash<String,String>
Optional labels in key-value pair format. For more information about labels,
see Requirements for labels.
Corresponds to the JSON property labels
2344 2345 2346 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2344 def labels @labels end |
#location ⇒ String
Output only. The origin location of the route. Uses the following form: "
projects/project/locations/location" Example: projects/1234/locations/us-
central1
Corresponds to the JSON property location
2351 2352 2353 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2351 def location @location end |
#name ⇒ String
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`
Corresponds to the JSON propertyname`
2358 2359 2360 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2358 def name @name end |
#next_hop_vpc_network ⇒ Google::Apis::NetworkconnectivityV1::NextHopVpcNetwork
Immutable. The destination VPC network for packets on this route.
Corresponds to the JSON property nextHopVpcNetwork
2363 2364 2365 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2363 def next_hop_vpc_network @next_hop_vpc_network end |
#spoke ⇒ String
Immutable. The spoke that this route leads to. Example: projects/12345/
locations/global/spokes/SPOKE
Corresponds to the JSON property spoke
2369 2370 2371 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2369 def spoke @spoke end |
#state ⇒ String
Output only. The current lifecycle state of the route.
Corresponds to the JSON property state
2374 2375 2376 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2374 def state @state end |
#type ⇒ String
Output only. The route's type. Its type is determined by the properties of its
IP address range.
Corresponds to the JSON property type
2380 2381 2382 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2380 def type @type end |
#uid ⇒ String
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.
Corresponds to the JSON property uid
2388 2389 2390 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2388 def uid @uid end |
#update_time ⇒ String
Output only. The time the route was last updated.
Corresponds to the JSON property updateTime
2393 2394 2395 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2393 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2400 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @labels = args[:labels] if args.key?(:labels) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @next_hop_vpc_network = args[:next_hop_vpc_network] if args.key?(:next_hop_vpc_network) @spoke = args[:spoke] if args.key?(:spoke) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |