Class: Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1beta1/classes.rb,
lib/google/apis/datamigration_v1beta1/representations.rb,
lib/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
-
#cloud_sql_id ⇒ String
Output only.
-
#private_ip ⇒ String
Output only.
-
#public_ip ⇒ String
Output only.
-
#settings ⇒ Google::Apis::DatamigrationV1beta1::CloudSqlSettings
Settings for creating a Cloud SQL database instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSqlConnectionProfile
constructor
A new instance of CloudSqlConnectionProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudSqlConnectionProfile
Returns a new instance of CloudSqlConnectionProfile.
236 237 238 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_sql_id ⇒ String
Output only. The Cloud SQL instance ID that this connection profile is
associated with.
Corresponds to the JSON property cloudSqlId
219 220 221 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 219 def cloud_sql_id @cloud_sql_id end |
#private_ip ⇒ String
Output only. The Cloud SQL database instance's private IP.
Corresponds to the JSON property privateIp
224 225 226 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 224 def private_ip @private_ip end |
#public_ip ⇒ String
Output only. The Cloud SQL database instance's public IP.
Corresponds to the JSON property publicIp
229 230 231 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 229 def public_ip @public_ip end |
#settings ⇒ Google::Apis::DatamigrationV1beta1::CloudSqlSettings
Settings for creating a Cloud SQL database instance.
Corresponds to the JSON property settings
234 235 236 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 234 def settings @settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
241 242 243 244 245 246 |
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 241 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 |