Class: Google::Apis::NetworkmanagementV1::RouteInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkmanagement_v1/classes.rb,
lib/google/apis/networkmanagement_v1/representations.rb,
lib/google/apis/networkmanagement_v1/representations.rb

Overview

For display only. Metadata associated with a Compute Engine route.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouteInfo

Returns a new instance of RouteInfo.



2332
2333
2334
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2332

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dest_ip_rangeString

Destination IP range of the route. Corresponds to the JSON property destIpRange

Returns:

  • (String)


2253
2254
2255
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2253

def dest_ip_range
  @dest_ip_range
end

#dest_port_rangesArray<String>

Destination port ranges of the route. Policy based routes only. Corresponds to the JSON property destPortRanges

Returns:

  • (Array<String>)


2258
2259
2260
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2258

def dest_port_ranges
  @dest_port_ranges
end

#display_nameString

Name of a route. Corresponds to the JSON property displayName

Returns:

  • (String)


2263
2264
2265
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2263

def display_name
  @display_name
end

#instance_tagsArray<String>

Instance tags of the route. Corresponds to the JSON property instanceTags

Returns:

  • (Array<String>)


2268
2269
2270
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2268

def instance_tags
  @instance_tags
end

#ncc_hub_uriString

URI of a NCC Hub. NCC_HUB routes only. Corresponds to the JSON property nccHubUri

Returns:

  • (String)


2273
2274
2275
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2273

def ncc_hub_uri
  @ncc_hub_uri
end

#ncc_spoke_uriString

URI of a NCC Spoke. NCC_HUB routes only. Corresponds to the JSON property nccSpokeUri

Returns:

  • (String)


2278
2279
2280
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2278

def ncc_spoke_uri
  @ncc_spoke_uri
end

#network_uriString

URI of a Compute Engine network. NETWORK routes only. Corresponds to the JSON property networkUri

Returns:

  • (String)


2283
2284
2285
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2283

def network_uri
  @network_uri
end

#next_hopString

Next hop of the route. Corresponds to the JSON property nextHop

Returns:

  • (String)


2288
2289
2290
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2288

def next_hop
  @next_hop
end

#next_hop_typeString

Type of next hop. Corresponds to the JSON property nextHopType

Returns:

  • (String)


2293
2294
2295
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2293

def next_hop_type
  @next_hop_type
end

#priorityFixnum

Priority of the route. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


2298
2299
2300
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2298

def priority
  @priority
end

#protocolsArray<String>

Protocols of the route. Policy based routes only. Corresponds to the JSON property protocols

Returns:

  • (Array<String>)


2303
2304
2305
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2303

def protocols
  @protocols
end

#route_scopeString

Indicates where route is applicable. Corresponds to the JSON property routeScope

Returns:

  • (String)


2308
2309
2310
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2308

def route_scope
  @route_scope
end

#route_typeString

Type of route. Corresponds to the JSON property routeType

Returns:

  • (String)


2313
2314
2315
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2313

def route_type
  @route_type
end

#src_ip_rangeString

Source IP address range of the route. Policy based routes only. Corresponds to the JSON property srcIpRange

Returns:

  • (String)


2318
2319
2320
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2318

def src_ip_range
  @src_ip_range
end

#src_port_rangesArray<String>

Source port ranges of the route. Policy based routes only. Corresponds to the JSON property srcPortRanges

Returns:

  • (Array<String>)


2323
2324
2325
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2323

def src_port_ranges
  @src_port_ranges
end

#uriString

URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI. Corresponds to the JSON property uri

Returns:

  • (String)


2330
2331
2332
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2330

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 2337

def update!(**args)
  @dest_ip_range = args[:dest_ip_range] if args.key?(:dest_ip_range)
  @dest_port_ranges = args[:dest_port_ranges] if args.key?(:dest_port_ranges)
  @display_name = args[:display_name] if args.key?(:display_name)
  @instance_tags = args[:instance_tags] if args.key?(:instance_tags)
  @ncc_hub_uri = args[:ncc_hub_uri] if args.key?(:ncc_hub_uri)
  @ncc_spoke_uri = args[:ncc_spoke_uri] if args.key?(:ncc_spoke_uri)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @next_hop = args[:next_hop] if args.key?(:next_hop)
  @next_hop_type = args[:next_hop_type] if args.key?(:next_hop_type)
  @priority = args[:priority] if args.key?(:priority)
  @protocols = args[:protocols] if args.key?(:protocols)
  @route_scope = args[:route_scope] if args.key?(:route_scope)
  @route_type = args[:route_type] if args.key?(:route_type)
  @src_ip_range = args[:src_ip_range] if args.key?(:src_ip_range)
  @src_port_ranges = args[:src_port_ranges] if args.key?(:src_port_ranges)
  @uri = args[:uri] if args.key?(:uri)
end