Class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigqueryconnection_v1beta1/classes.rb,
generated/google/apis/bigqueryconnection_v1beta1/representations.rb,
generated/google/apis/bigqueryconnection_v1beta1/representations.rb
Overview
Connection properties specific to the Cloud SQL.
Instance Attribute Summary collapse
-
#database ⇒ String
Database name.
-
#instance_id ⇒ String
Cloud SQL instance ID in the form
project:location:instance
. -
#type ⇒ String
Type of the Cloud SQL database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSqlProperties
constructor
A new instance of CloudSqlProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudSqlProperties
Returns a new instance of CloudSqlProperties
233 234 235 |
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Database name.
Corresponds to the JSON property database
221 222 223 |
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 221 def database @database end |
#instance_id ⇒ String
Cloud SQL instance ID in the form project:location:instance
.
Corresponds to the JSON property instanceId
226 227 228 |
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 226 def instance_id @instance_id end |
#type ⇒ String
Type of the Cloud SQL database.
Corresponds to the JSON property type
231 232 233 |
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 231 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
238 239 240 241 242 |
# File 'generated/google/apis/bigqueryconnection_v1beta1/classes.rb', line 238 def update!(**args) @database = args[:database] if args.key?(:database) @instance_id = args[:instance_id] if args.key?(:instance_id) @type = args[:type] if args.key?(:type) end |