Class: Google::Apis::BeyondcorpV1::DestinationRoute

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

Instance Method Summary collapse

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

#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)


605
606
607
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 605

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)


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