Class: Google::Apis::ComputeAlpha::NetworkEndpointGroupLbNetworkEndpointGroup

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Load balancing specific fields for network endpoint group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkEndpointGroupLbNetworkEndpointGroup

Returns a new instance of NetworkEndpointGroupLbNetworkEndpointGroup.



24747
24748
24749
# File 'lib/google/apis/compute_alpha/classes.rb', line 24747

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

Instance Attribute Details

#default_portFixnum

The default port used if the port number is not specified in the network endpoint. [Deprecated] This field is deprecated. Corresponds to the JSON property defaultPort

Returns:

  • (Fixnum)


24727
24728
24729
# File 'lib/google/apis/compute_alpha/classes.rb', line 24727

def default_port
  @default_port
end

#networkString

The URL of the network to which all network endpoints in the NEG belong. Uses " default" project network if unspecified. [Deprecated] This field is deprecated. Corresponds to the JSON property network

Returns:

  • (String)


24733
24734
24735
# File 'lib/google/apis/compute_alpha/classes.rb', line 24733

def network
  @network
end

#subnetworkString

Optional URL of the subnetwork to which all network endpoints in the NEG belong. [Deprecated] This field is deprecated. Corresponds to the JSON property subnetwork

Returns:

  • (String)


24739
24740
24741
# File 'lib/google/apis/compute_alpha/classes.rb', line 24739

def subnetwork
  @subnetwork
end

#zoneString

[Output Only] The URL of the zone where the network endpoint group is located. [Deprecated] This field is deprecated. Corresponds to the JSON property zone

Returns:

  • (String)


24745
24746
24747
# File 'lib/google/apis/compute_alpha/classes.rb', line 24745

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24752
24753
24754
24755
24756
24757
# File 'lib/google/apis/compute_alpha/classes.rb', line 24752

def update!(**args)
  @default_port = args[:default_port] if args.key?(:default_port)
  @network = args[:network] if args.key?(:network)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
  @zone = args[:zone] if args.key?(:zone)
end