Class: Google::Apis::SqladminV1::Database

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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.



601
602
603
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 601

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

Instance Attribute Details

#charsetString

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

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 557

def charset
  @charset
end

#collationString

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

Returns:

  • (String)


562
563
564
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 562

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)


567
568
569
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 567

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)


572
573
574
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 572

def instance
  @instance
end

#kindString

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

Returns:

  • (String)


577
578
579
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 577

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)


583
584
585
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 583

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)


589
590
591
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 589

def project
  @project
end

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

Returns:

  • (String)


594
595
596
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 594

def self_link
  @self_link
end

#sqlserver_database_detailsGoogle::Apis::SqladminV1::SqlServerDatabaseDetails

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



599
600
601
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 599

def sqlserver_database_details
  @sqlserver_database_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



606
607
608
609
610
611
612
613
614
615
616
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 606

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