Class: Google::Apis::ComputeBeta::NetworkEndpointGroupLbNetworkEndpointGroup

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

Overview

Load balancing specific fields for network endpoint group of type LOAD_BALANCING.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkEndpointGroupLbNetworkEndpointGroup

Returns a new instance of NetworkEndpointGroupLbNetworkEndpointGroup



13002
13003
13004
# File 'generated/google/apis/compute_beta/classes.rb', line 13002

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. If the network endpoint type is GCE_VM_IP, this field must not be specified. Corresponds to the JSON property defaultPort

Returns:

  • (Fixnum)


12983
12984
12985
# File 'generated/google/apis/compute_beta/classes.rb', line 12983

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. Corresponds to the JSON property network

Returns:

  • (String)


12989
12990
12991
# File 'generated/google/apis/compute_beta/classes.rb', line 12989

def network
  @network
end

#subnetworkString

Optional URL of the subnetwork to which all network endpoints in the NEG belong. Corresponds to the JSON property subnetwork

Returns:

  • (String)


12995
12996
12997
# File 'generated/google/apis/compute_beta/classes.rb', line 12995

def subnetwork
  @subnetwork
end

#zoneString

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

Returns:

  • (String)


13000
13001
13002
# File 'generated/google/apis/compute_beta/classes.rb', line 13000

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13007
13008
13009
13010
13011
13012
# File 'generated/google/apis/compute_beta/classes.rb', line 13007

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