Class: Google::Apis::AlloydbV1::ConnectionInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/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.



724
725
726
# File 'lib/google/apis/alloydb_v1/classes.rb', line 724

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)


701
702
703
# File 'lib/google/apis/alloydb_v1/classes.rb', line 701

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)


708
709
710
# File 'lib/google/apis/alloydb_v1/classes.rb', line 708

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)


715
716
717
# File 'lib/google/apis/alloydb_v1/classes.rb', line 715

def name
  @name
end

#public_ip_addressString

Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application. Corresponds to the JSON property publicIpAddress

Returns:

  • (String)


722
723
724
# File 'lib/google/apis/alloydb_v1/classes.rb', line 722

def public_ip_address
  @public_ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



729
730
731
732
733
734
# File 'lib/google/apis/alloydb_v1/classes.rb', line 729

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)
  @public_ip_address = args[:public_ip_address] if args.key?(:public_ip_address)
end