Class: Google::Apis::VmwareengineV1::PeeringRoute
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::PeeringRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Exchanged network peering route.
Instance Attribute Summary collapse
-
#dest_range ⇒ String
Output only.
-
#direction ⇒ String
Output only.
-
#imported ⇒ Boolean
(also: #imported?)
Output only.
-
#next_hop_region ⇒ String
Output only.
-
#priority ⇒ Fixnum
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PeeringRoute
constructor
A new instance of PeeringRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PeeringRoute
Returns a new instance of PeeringRoute.
2441 2442 2443 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dest_range ⇒ String
Output only. Destination range of the peering route in CIDR notation.
Corresponds to the JSON property destRange
2405 2406 2407 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2405 def dest_range @dest_range end |
#direction ⇒ String
Output only. Direction of the routes exchanged with the peer network, from the
VMware Engine network perspective: * Routes of direction INCOMING
are
imported from the peer network. * Routes of direction OUTGOING
are exported
from the intranet VPC network of the VMware Engine network.
Corresponds to the JSON property direction
2413 2414 2415 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2413 def direction @direction end |
#imported ⇒ Boolean Also known as: imported?
Output only. True if the peering route has been imported from a peered VPC
network; false otherwise. The import happens if the field NetworkPeering.
importCustomRoutes
is true for this network, NetworkPeering.
exportCustomRoutes
is true for the peer VPC network, and the import does not
result in a route conflict.
Corresponds to the JSON property imported
2422 2423 2424 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2422 def imported @imported end |
#next_hop_region ⇒ String
Output only. Region containing the next hop of the peering route. This field
only applies to dynamic routes in the peer VPC network.
Corresponds to the JSON property nextHopRegion
2429 2430 2431 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2429 def next_hop_region @next_hop_region end |
#priority ⇒ Fixnum
Output only. The priority of the peering route.
Corresponds to the JSON property priority
2434 2435 2436 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2434 def priority @priority end |
#type ⇒ String
Output only. Type of the route in the peer VPC network.
Corresponds to the JSON property type
2439 2440 2441 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2439 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2446 2447 2448 2449 2450 2451 2452 2453 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2446 def update!(**args) @dest_range = args[:dest_range] if args.key?(:dest_range) @direction = args[:direction] if args.key?(:direction) @imported = args[:imported] if args.key?(:imported) @next_hop_region = args[:next_hop_region] if args.key?(:next_hop_region) @priority = args[:priority] if args.key?(:priority) @type = args[:type] if args.key?(:type) end |