Class: Google::Apis::DatamigrationV1::CloudSqlConnectionProfile

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

Overview

Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlConnectionProfile

Returns a new instance of CloudSqlConnectionProfile.



563
564
565
# File 'lib/google/apis/datamigration_v1/classes.rb', line 563

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

Instance Attribute Details

#additional_public_ipString

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available). Corresponds to the JSON property additionalPublicIp

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/datamigration_v1/classes.rb', line 540

def additional_public_ip
  @additional_public_ip
end

#cloud_sql_idString

Output only. The Cloud SQL instance ID that this connection profile is associated with. Corresponds to the JSON property cloudSqlId

Returns:

  • (String)


546
547
548
# File 'lib/google/apis/datamigration_v1/classes.rb', line 546

def cloud_sql_id
  @cloud_sql_id
end

#private_ipString

Output only. The Cloud SQL database instance's private IP. Corresponds to the JSON property privateIp

Returns:

  • (String)


551
552
553
# File 'lib/google/apis/datamigration_v1/classes.rb', line 551

def private_ip
  @private_ip
end

#public_ipString

Output only. The Cloud SQL database instance's public IP. Corresponds to the JSON property publicIp

Returns:

  • (String)


556
557
558
# File 'lib/google/apis/datamigration_v1/classes.rb', line 556

def public_ip
  @public_ip
end

#settingsGoogle::Apis::DatamigrationV1::CloudSqlSettings

Settings for creating a Cloud SQL database instance. Corresponds to the JSON property settings



561
562
563
# File 'lib/google/apis/datamigration_v1/classes.rb', line 561

def settings
  @settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



568
569
570
571
572
573
574
# File 'lib/google/apis/datamigration_v1/classes.rb', line 568

def update!(**args)
  @additional_public_ip = args[:additional_public_ip] if args.key?(:additional_public_ip)
  @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
  @private_ip = args[:private_ip] if args.key?(:private_ip)
  @public_ip = args[:public_ip] if args.key?(:public_ip)
  @settings = args[:settings] if args.key?(:settings)
end