Class: Google::Apis::SqladminV1::PoolNodeConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb

Overview

Details of a single read pool node of a read pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PoolNodeConfig

Returns a new instance of PoolNodeConfig.



4481
4482
4483
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4481

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

Instance Attribute Details

#dns_nameString

Output only. The DNS name of the read pool node. Corresponds to the JSON property dnsName

Returns:

  • (String)


4452
4453
4454
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4452

def dns_name
  @dns_name
end

#dns_namesArray<Google::Apis::SqladminV1::DnsNameMapping>

Output only. The list of DNS names used by this read pool node. Corresponds to the JSON property dnsNames



4457
4458
4459
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4457

def dns_names
  @dns_names
end

#gce_zoneString

Output only. The zone of the read pool node. Corresponds to the JSON property gceZone

Returns:

  • (String)


4462
4463
4464
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4462

def gce_zone
  @gce_zone
end

#ip_addressesArray<Google::Apis::SqladminV1::IpMapping>

Output only. Mappings containing IP addresses that can be used to connect to the read pool node. Corresponds to the JSON property ipAddresses



4468
4469
4470
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4468

def ip_addresses
  @ip_addresses
end

#nameString

Output only. The name of the read pool node, to be used for retrieving metrics and logs. Corresponds to the JSON property name

Returns:

  • (String)


4474
4475
4476
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4474

def name
  @name
end

#stateString

Output only. The current state of the read pool node. Corresponds to the JSON property state

Returns:

  • (String)


4479
4480
4481
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4479

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4486
4487
4488
4489
4490
4491
4492
4493
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4486

def update!(**args)
  @dns_name = args[:dns_name] if args.key?(:dns_name)
  @dns_names = args[:dns_names] if args.key?(:dns_names)
  @gce_zone = args[:gce_zone] if args.key?(:gce_zone)
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end