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.



5406
5407
5408
# File 'lib/google/apis/compute_alpha/classes.rb', line 5406

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)


5404
5405
5406
# File 'lib/google/apis/compute_alpha/classes.rb', line 5404

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5411
5412
5413
# File 'lib/google/apis/compute_alpha/classes.rb', line 5411

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