class Google::Apis::SqladminV1beta4::Database

A database resource inside a Cloud SQL instance.

Attributes

charset[RW]

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

collation[RW]

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

etag[RW]

HTTP 1.1 Entity tag for the resource. 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]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/sqladmin_v1beta4/classes.rb, line 327
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)
end