Class: Google::Apis::SqladminV1beta4::Database

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb

Overview

A database resource inside a Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Database

Returns a new instance of Database



334
335
336
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 334

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#charsetString

The MySQL charset value. Corresponds to the JSON property charset

Returns:

  • (String)


295
296
297
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 295

def charset
  @charset
end

#collationString

The MySQL collation value. Corresponds to the JSON property collation

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 300

def collation
  @collation
end

#etagString

HTTP 1.1 Entity tag for the resource. Corresponds to the JSON property etag

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 305

def etag
  @etag
end

#instanceString

The name of the Cloud SQL instance. This does not include the project ID. Corresponds to the JSON property instance

Returns:

  • (String)


310
311
312
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 310

def instance
  @instance
end

#kindString

This is always sql#database. Corresponds to the JSON property kind

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 315

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


321
322
323
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 321

def name
  @name
end

#projectString

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

Returns:

  • (String)


327
328
329
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 327

def project
  @project
end

The URI of this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 332

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



339
340
341
342
343
344
345
346
347
348
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 339

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