Class: Google::Apis::ComputeAlpha::BackendServiceHaPolicyLeaderNetworkEndpoint

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) ⇒ BackendServiceHaPolicyLeaderNetworkEndpoint

Returns a new instance of BackendServiceHaPolicyLeaderNetworkEndpoint.



6403
6404
6405
# File 'lib/google/apis/compute_alpha/classes.rb', line 6403

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

Instance Attribute Details

#instanceString

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup. The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use Corresponds to the JSON property instance

Returns:

  • (String)


6401
6402
6403
# File 'lib/google/apis/compute_alpha/classes.rb', line 6401

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6408
6409
6410
# File 'lib/google/apis/compute_alpha/classes.rb', line 6408

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