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

Represents a SQL database on the Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Database

Returns a new instance of Database.



487
488
489
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 487

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

Instance Attribute Details

#charsetString

The Cloud SQL charset value. Corresponds to the JSON property charset

Returns:

  • (String)


443
444
445
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 443

def charset
  @charset
end

#collationString

The Cloud SQL collation value. Corresponds to the JSON property collation

Returns:

  • (String)


448
449
450
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 448

def collation
  @collation
end

#etagString

This field is deprecated and will be removed from a future version of the API. Corresponds to the JSON property etag

Returns:

  • (String)


453
454
455
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 453

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)


458
459
460
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 458

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


463
464
465
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 463

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)


469
470
471
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 469

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)


475
476
477
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 475

def project
  @project
end

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

Returns:

  • (String)


480
481
482
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 480

def self_link
  @self_link
end

#sqlserver_database_detailsGoogle::Apis::SqladminV1beta4::SqlServerDatabaseDetails

Represents a Sql Server database on the Cloud SQL instance. Corresponds to the JSON property sqlserverDatabaseDetails



485
486
487
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 485

def sqlserver_database_details
  @sqlserver_database_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



492
493
494
495
496
497
498
499
500
501
502
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 492

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