Class: Google::Apis::BeyondcorpV1alpha::DestinationRoute

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#addressString

Required. The network address of the subnet for which the packet is routed to the ClientGateway. Corresponds to the JSON property address

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 1032

def address
  @address
end

#netmaskString

Required. The network mask of the subnet for which the packet is routed to the ClientGateway. Corresponds to the JSON property netmask

Returns:

  • (String)


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