Class: Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile

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



206
207
208
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 206

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

Instance Attribute Details

#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)


189
190
191
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 189

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)


194
195
196
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 194

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)


199
200
201
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 199

def public_ip
  @public_ip
end

#settingsGoogle::Apis::DatamigrationV1beta1::CloudSqlSettings

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



204
205
206
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 204

def settings
  @settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
216
# File 'generated/google/apis/datamigration_v1beta1/classes.rb', line 211

def update!(**args)
  @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