Class: Google::Apis::SqladminV1::ConnectSettings
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ConnectSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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.
-
#dns_name ⇒ String
The dns name of the instance.
-
#ip_addresses ⇒ Array<Google::Apis::SqladminV1::IpMapping>
The assigned IP addresses for the instance.
-
#kind ⇒ String
This is always
sql#connectSettings
. -
#psc_enabled ⇒ Boolean
(also: #psc_enabled?)
Whether PSC connectivity is enabled for this instance.
-
#region ⇒ String
The cloud region for the instance.
-
#server_ca_cert ⇒ Google::Apis::SqladminV1::SslCert
SslCerts Resource Corresponds to the JSON property
serverCaCert
. -
#server_ca_mode ⇒ String
Specify what type of CA is used for the server certificate.
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.
677 678 679 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 677 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
626 627 628 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 626 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
, POSTGRES_12
(default), POSTGRES_13
, or POSTGRES_14
. SQL
Server instances: SQLSERVER_2017_STANDARD
(default),
SQLSERVER_2017_ENTERPRISE
, SQLSERVER_2017_EXPRESS
, SQLSERVER_2017_WEB
,
SQLSERVER_2019_STANDARD
, SQLSERVER_2019_ENTERPRISE
, SQLSERVER_2019_EXPRESS
, or SQLSERVER_2019_WEB
.
Corresponds to the JSON property databaseVersion
638 639 640 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 638 def database_version @database_version end |
#dns_name ⇒ String
The dns name of the instance.
Corresponds to the JSON property dnsName
643 644 645 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 643 def dns_name @dns_name end |
#ip_addresses ⇒ Array<Google::Apis::SqladminV1::IpMapping>
The assigned IP addresses for the instance.
Corresponds to the JSON property ipAddresses
648 649 650 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 648 def ip_addresses @ip_addresses end |
#kind ⇒ String
This is always sql#connectSettings
.
Corresponds to the JSON property kind
653 654 655 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 653 def kind @kind end |
#psc_enabled ⇒ Boolean Also known as: psc_enabled?
Whether PSC connectivity is enabled for this instance.
Corresponds to the JSON property pscEnabled
658 659 660 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 658 def psc_enabled @psc_enabled end |
#region ⇒ String
The cloud region for the instance. For example, us-central1
, europe-west1
.
The region cannot be changed after instance creation.
Corresponds to the JSON property region
665 666 667 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 665 def region @region end |
#server_ca_cert ⇒ Google::Apis::SqladminV1::SslCert
SslCerts Resource
Corresponds to the JSON property serverCaCert
670 671 672 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 670 def server_ca_cert @server_ca_cert end |
#server_ca_mode ⇒ String
Specify what type of CA is used for the server certificate.
Corresponds to the JSON property serverCaMode
675 676 677 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 675 def server_ca_mode @server_ca_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 682 def update!(**args) @backend_type = args[:backend_type] if args.key?(:backend_type) @database_version = args[:database_version] if args.key?(:database_version) @dns_name = args[:dns_name] if args.key?(:dns_name) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @kind = args[:kind] if args.key?(:kind) @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled) @region = args[:region] if args.key?(:region) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) @server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode) end |