Class: Google::Apis::BeyondcorpV1alpha::DestinationRoute
- Inherits:
-
Object
- Object
- Google::Apis::BeyondcorpV1alpha::DestinationRoute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/beyondcorp_v1alpha/classes.rb,
lib/google/apis/beyondcorp_v1alpha/representations.rb,
lib/google/apis/beyondcorp_v1alpha/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.
1040 1041 1042 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1040 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
1032 1033 1034 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1032 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
1038 1039 1040 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1038 def netmask @netmask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1045 1046 1047 1048 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1045 def update!(**args) @address = args[:address] if args.key?(:address) @netmask = args[:netmask] if args.key?(:netmask) end |