Class: Google::Apis::AlloydbV1beta::ConnectionInfo

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

Overview

ConnectionInfo singleton resource. https://google.aip.dev/156

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionInfo

Returns a new instance of ConnectionInfo.



590
591
592
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 590

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

Instance Attribute Details

#instance_uidString

Output only. The unique ID of the Instance. Corresponds to the JSON property instanceUid

Returns:

  • (String)


568
569
570
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 568

def instance_uid
  @instance_uid
end

#ip_addressString

Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application. Corresponds to the JSON property ipAddress

Returns:

  • (String)


575
576
577
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 575

def ip_address
  @ip_address
end

#nameString

The name of the ConnectionInfo singleton resource, e.g.: projects/project/ locations/location/clusters//instances//connectionInfo This field currently has no semantic meaning. Corresponds to the JSON property name

Returns:

  • (String)


582
583
584
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 582

def name
  @name
end

#pem_certificate_chainArray<String>

Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246. Corresponds to the JSON property pemCertificateChain

Returns:

  • (Array<String>)


588
589
590
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 588

def pem_certificate_chain
  @pem_certificate_chain
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



595
596
597
598
599
600
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 595

def update!(**args)
  @instance_uid = args[:instance_uid] if args.key?(:instance_uid)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @name = args[:name] if args.key?(:name)
  @pem_certificate_chain = args[:pem_certificate_chain] if args.key?(:pem_certificate_chain)
end