class Google::Apis::SqladminV1beta4::DatabaseInstance

A Cloud SQL instance resource.

Attributes

available_maintenance_versions[RW]

List all maintenance versions applicable on the instance Corresponds to the JSON property `availableMaintenanceVersions` @return [Array<String>]

backend_type[RW]

The backend type. `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` @return [String]

connection_name[RW]

Connection name of the Cloud SQL instance used in connection strings. Corresponds to the JSON property `connectionName` @return [String]

create_time[RW]

Output only. The time when the instance was created in [RFC 3339](https:// tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. Corresponds to the JSON property `createTime` @return [String]

current_disk_size[RW]

The current disk usage of the instance in bytes. This property has been deprecated. Use the “cloudsql.googleapis.com/database/disk/bytes_used” metric in Cloud Monitoring API instead. Please see [this announcement](groups. google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details. Corresponds to the JSON property `currentDiskSize` @return [Fixnum]

database_installed_version[RW]

Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`. Corresponds to the JSON property `databaseInstalledVersion` @return [String]

database_version[RW]

The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. Corresponds to the JSON property `databaseVersion` @return [String]

disk_encryption_configuration[RW]

Disk encryption configuration for an instance. Corresponds to the JSON property `diskEncryptionConfiguration` @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration]

disk_encryption_status[RW]

Disk encryption status for an instance. Corresponds to the JSON property `diskEncryptionStatus` @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]

etag[RW]

This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead. Corresponds to the JSON property `etag` @return [String]

failover_replica[RW]

The name and status of the failover replica. Corresponds to the JSON property `failoverReplica` @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]

gce_zone[RW]

The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance. Corresponds to the JSON property `gceZone` @return [String]

instance_type[RW]

The instance type. Corresponds to the JSON property `instanceType` @return [String]

ip_addresses[RW]

The assigned IP addresses for the instance. Corresponds to the JSON property `ipAddresses` @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]

ipv6_address[RW]

The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances. Corresponds to the JSON property `ipv6Address` @return [String]

kind[RW]

This is always `sql#instance`. Corresponds to the JSON property `kind` @return [String]

maintenance_version[RW]

The current software version on the instance. Corresponds to the JSON property `maintenanceVersion` @return [String]

master_instance_name[RW]

The name of the instance which will act as primary in the replication setup. Corresponds to the JSON property `masterInstanceName` @return [String]

max_disk_size[RW]

The maximum disk size of the instance in bytes. Corresponds to the JSON property `maxDiskSize` @return [Fixnum]

name[RW]

Name of the Cloud SQL instance. This does not include the project ID. Corresponds to the JSON property `name` @return [String]

on_premises_configuration[RW]

On-premises instance configuration. Corresponds to the JSON property `onPremisesConfiguration` @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration]

out_of_disk_report[RW]

This message wraps up the information written by out-of-disk detection job. Corresponds to the JSON property `outOfDiskReport` @return [Google::Apis::SqladminV1beta4::SqlOutOfDiskReport]

project[RW]

The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. Corresponds to the JSON property `project` @return [String]

region[RW]

The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation. Corresponds to the JSON property `region` @return [String]

replica_configuration[RW]

Read-replica configuration for connecting to the primary instance. Corresponds to the JSON property `replicaConfiguration` @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration]

replica_names[RW]

The replicas of the instance. Corresponds to the JSON property `replicaNames` @return [Array<String>]

root_password[RW]

Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. Corresponds to the JSON property `rootPassword` @return [String]

satisfies_pzs[RW]

The status indicating if instance satisfiesPzs. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

satisfies_pzs?[RW]

The status indicating if instance satisfiesPzs. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

scheduled_maintenance[RW]

Any scheduled maintenance for this instance. Corresponds to the JSON property `scheduledMaintenance` @return [Google::Apis::SqladminV1beta4::SqlScheduledMaintenance]

secondary_gce_zone[RW]

The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone. Corresponds to the JSON property `secondaryGceZone` @return [String]

server_ca_cert[RW]

SslCerts Resource Corresponds to the JSON property `serverCaCert` @return [Google::Apis::SqladminV1beta4::SslCert]

service_account_email_address[RW]

The service account email address assigned to the instance. This property is read-only. Corresponds to the JSON property `serviceAccountEmailAddress` @return [String]

settings[RW]

Database instance settings. Corresponds to the JSON property `settings` @return [Google::Apis::SqladminV1beta4::Settings]

state[RW]

The current serving state of the Cloud SQL instance. Corresponds to the JSON property `state` @return [String]

suspension_reason[RW]

If the instance state is SUSPENDED, the reason for the suspension. Corresponds to the JSON property `suspensionReason` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 837
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 842
def update!(**args)
  @available_maintenance_versions = args[:available_maintenance_versions] if args.key?(:available_maintenance_versions)
  @backend_type = args[:backend_type] if args.key?(:backend_type)
  @connection_name = args[:connection_name] if args.key?(:connection_name)
  @create_time = args[:create_time] if args.key?(:create_time)
  @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
  @database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
  @database_version = args[:database_version] if args.key?(:database_version)
  @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
  @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
  @etag = args[:etag] if args.key?(:etag)
  @failover_replica = args[:failover_replica] if args.key?(:failover_replica)
  @gce_zone = args[:gce_zone] if args.key?(:gce_zone)
  @instance_type = args[:instance_type] if args.key?(:instance_type)
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
  @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
  @kind = args[:kind] if args.key?(:kind)
  @maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version)
  @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
  @max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size)
  @name = args[:name] if args.key?(:name)
  @on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration)
  @out_of_disk_report = args[:out_of_disk_report] if args.key?(:out_of_disk_report)
  @project = args[:project] if args.key?(:project)
  @region = args[:region] if args.key?(:region)
  @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
  @replica_names = args[:replica_names] if args.key?(:replica_names)
  @root_password = args[:root_password] if args.key?(:root_password)
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
  @scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance)
  @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
  @self_link = args[:self_link] if args.key?(:self_link)
  @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
  @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
  @settings = args[:settings] if args.key?(:settings)
  @state = args[:state] if args.key?(:state)
  @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
end