Class: Google::Apis::SqladminV1beta4::ConnectSettings
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::ConnectSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb
Overview
Connect settings retrieval response.
Instance Attribute Summary collapse
-
#backend_type ⇒ String
SECOND_GEN: Cloud SQL database instance.
-
#database_version ⇒ String
The database engine type and version.
-
#ip_addresses ⇒ Array<Google::Apis::SqladminV1beta4::IpMapping>
The assigned IP addresses for the instance.
-
#kind ⇒ String
This is always
sql#connectSettings. -
#server_ca_cert ⇒ Google::Apis::SqladminV1beta4::SslCert
SslCerts Resource Corresponds to the JSON property
serverCaCert.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectSettings
constructor
A new instance of ConnectSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectSettings
Returns a new instance of ConnectSettings.
480 481 482 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backend_type ⇒ String
SECOND_GEN: Cloud SQL database instance. EXTERNAL: A database server
that is not managed by Google. This property is read-only; use the tier
property in the settings object to determine the database type.
Corresponds to the JSON property backendType
453 454 455 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 453 def backend_type @backend_type end |
#database_version ⇒ String
The database engine type and version. The databaseVersion field cannot be
changed after instance creation. MySQL instances: MYSQL_8_0, MYSQL_5_7
(default), or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, **
POSTGRES_10*, **POSTGRES_11* or POSTGRES_12 (default). SQL Server
instances: SQLSERVER_2017_STANDARD (default), SQLSERVER_2017_ENTERPRISE
, SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB.
Corresponds to the JSON property databaseVersion
463 464 465 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 463 def database_version @database_version end |
#ip_addresses ⇒ Array<Google::Apis::SqladminV1beta4::IpMapping>
The assigned IP addresses for the instance.
Corresponds to the JSON property ipAddresses
468 469 470 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 468 def ip_addresses @ip_addresses end |
#kind ⇒ String
This is always sql#connectSettings.
Corresponds to the JSON property kind
473 474 475 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 473 def kind @kind end |
#server_ca_cert ⇒ Google::Apis::SqladminV1beta4::SslCert
SslCerts Resource
Corresponds to the JSON property serverCaCert
478 479 480 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 478 def server_ca_cert @server_ca_cert end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
485 486 487 488 489 490 491 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 485 def update!(**args) @backend_type = args[:backend_type] if args.key?(:backend_type) @database_version = args[:database_version] if args.key?(:database_version) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @kind = args[:kind] if args.key?(:kind) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) end |