Class: Google::Apis::ManagerV1beta2::NetworkModule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkModule

Returns a new instance of NetworkModule.


841
842
843
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 841

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

The description of the network. Corresponds to the JSON property description

Returns:

  • (String)

831
832
833
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 831

def description
  @description
end

#gateway_i_pv4String

An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typicall the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range. Corresponds to the JSON property gatewayIPv4

Returns:

  • (String)

839
840
841
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 839

def gateway_i_pv4
  @gateway_i_pv4
end

#i_pv4_rangeString

Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Corresponds to the JSON property IPv4Range

Returns:

  • (String)

826
827
828
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 826

def i_pv4_range
  @i_pv4_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


846
847
848
849
850
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 846

def update!(**args)
  @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range)
  @description = args[:description] if args.key?(:description)
  @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4)
end