Class: Google::Apis::BeyondcorpV1::DestinationRoute
- Inherits:
-
Object
- Object
- Google::Apis::BeyondcorpV1::DestinationRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/beyondcorp_v1/classes.rb,
lib/google/apis/beyondcorp_v1/representations.rb,
lib/google/apis/beyondcorp_v1/representations.rb
Overview
The setting used to configure ClientGateways. It is adding routes to the client's routing table after the connection is established.
Instance Attribute Summary collapse
-
#address ⇒ String
Required.
-
#netmask ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DestinationRoute
constructor
A new instance of DestinationRoute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DestinationRoute
Returns a new instance of DestinationRoute.
613 614 615 |
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Required. The network address of the subnet for which the packet is routed to
the ClientGateway.
Corresponds to the JSON property address
605 606 607 |
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 605 def address @address end |
#netmask ⇒ String
Required. The network mask of the subnet for which the packet is routed to the
ClientGateway.
Corresponds to the JSON property netmask
611 612 613 |
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 611 def netmask @netmask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
618 619 620 621 |
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 618 def update!(**args) @address = args[:address] if args.key?(:address) @netmask = args[:netmask] if args.key?(:netmask) end |