Class: Google::Apis::ComputeAlpha::BackendServiceHaPolicyLeader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackendServiceHaPolicyLeader

Returns a new instance of BackendServiceHaPolicyLeader.



4532
4533
4534
# File 'lib/google/apis/compute_alpha/classes.rb', line 4532

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

Instance Attribute Details

#backend_groupString

Setting backendGroup is not supported. Corresponds to the JSON property backendGroup

Returns:

  • (String)


4525
4526
4527
# File 'lib/google/apis/compute_alpha/classes.rb', line 4525

def backend_group
  @backend_group
end

#network_endpointGoogle::Apis::ComputeAlpha::BackendServiceHaPolicyLeaderNetworkEndpoint

Setting a network endpoint as leader is not supported. Corresponds to the JSON property networkEndpoint



4530
4531
4532
# File 'lib/google/apis/compute_alpha/classes.rb', line 4530

def network_endpoint
  @network_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4537
4538
4539
4540
# File 'lib/google/apis/compute_alpha/classes.rb', line 4537

def update!(**args)
  @backend_group = args[:backend_group] if args.key?(:backend_group)
  @network_endpoint = args[:network_endpoint] if args.key?(:network_endpoint)
end