class Google::Apis::SqladminV1::Database

Represents a SQL database on the Cloud SQL instance.

Attributes

charset[RW]

The Cloud SQL charset value. Corresponds to the JSON property `charset` @return [String]

collation[RW]

The Cloud SQL collation value. Corresponds to the JSON property `collation` @return [String]

etag[RW]

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

instance[RW]

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

kind[RW]

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

name[RW]

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

project[RW]

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

sqlserver_database_details[RW]

Represents a Sql Server database on the Cloud SQL instance. Corresponds to the JSON property `sqlserverDatabaseDetails` @return [Google::Apis::SqladminV1::SqlServerDatabaseDetails]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1/classes.rb, line 552
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_v1/classes.rb, line 557
def update!(**args)
  @charset = args[:charset] if args.key?(:charset)
  @collation = args[:collation] if args.key?(:collation)
  @etag = args[:etag] if args.key?(:etag)
  @instance = args[:instance] if args.key?(:instance)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @project = args[:project] if args.key?(:project)
  @self_link = args[:self_link] if args.key?(:self_link)
  @sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details)
end