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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



26521
26522
26523
# File 'lib/google/apis/compute_beta/classes.rb', line 26521

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 either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. [Deprecated] This field is deprecated. Corresponds to the JSON property defaultPort

Returns:

  • (Fixnum)


26501
26502
26503
# File 'lib/google/apis/compute_beta/classes.rb', line 26501

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)


26507
26508
26509
# File 'lib/google/apis/compute_beta/classes.rb', line 26507

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)


26513
26514
26515
# File 'lib/google/apis/compute_beta/classes.rb', line 26513

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)


26519
26520
26521
# File 'lib/google/apis/compute_beta/classes.rb', line 26519

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26526
26527
26528
26529
26530
26531
# File 'lib/google/apis/compute_beta/classes.rb', line 26526

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