Class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryconnection_v1beta1/classes.rb,
lib/google/apis/bigqueryconnection_v1beta1/representations.rb,
lib/google/apis/bigqueryconnection_v1beta1/representations.rb more...
Overview
Connection properties specific to the Cloud SQL.
Instance Attribute Summary collapse
-
#credential ⇒ Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential
Credential info for the Cloud SQL.
-
#database ⇒ String
Database name.
-
#instance_id ⇒ String
Cloud SQL instance ID in the form
project:location:instance
. -
#service_account_id ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ CloudSqlProperties
Returns a new instance of CloudSqlProperties.
251 252 253 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#credential ⇒ Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential
Credential info for the Cloud SQL.
Corresponds to the JSON property credential
226 227 228 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 226 def credential @credential end |
#database ⇒ String
Database name.
Corresponds to the JSON property database
231 232 233 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 231 def database @database end |
#instance_id ⇒ String
Cloud SQL instance ID in the form project:location:instance
.
Corresponds to the JSON property instanceId
236 237 238 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 236 def instance_id @instance_id end |
#service_account_id ⇒ String
Output only. The account ID of the service used for the purpose of this
connection. When the connection is used in the context of an operation in
BigQuery, this service account will serve as the identity being used for
connecting to the CloudSQL instance specified in this connection.
Corresponds to the JSON property serviceAccountId
244 245 246 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 244 def service_account_id @service_account_id end |
#type ⇒ String
Type of the Cloud SQL database.
Corresponds to the JSON property type
249 250 251 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 249 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
256 257 258 259 260 261 262 |
# File 'lib/google/apis/bigqueryconnection_v1beta1/classes.rb', line 256 def update!(**args) @credential = args[:credential] if args.key?(:credential) @database = args[:database] if args.key?(:database) @instance_id = args[:instance_id] if args.key?(:instance_id) @service_account_id = args[:service_account_id] if args.key?(:service_account_id) @type = args[:type] if args.key?(:type) end |