Class: Google::Apis::SqladminV1beta4::Database
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::Database
- 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
-
#charset ⇒ String
The MySQL charset value.
-
#collation ⇒ String
The MySQL collation value.
-
#etag ⇒ String
HTTP 1.1 Entity tag for the resource.
-
#instance ⇒ String
The name of the Cloud SQL instance.
-
#kind ⇒ String
This is always sql#database.
-
#name ⇒ String
The name of the database in the Cloud SQL instance.
-
#project ⇒ String
The project ID of the project containing the Cloud SQL database.
-
#self_link ⇒ String
The URI of this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Database
constructor
A new instance of Database.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Database
Returns a new instance of Database
347 348 349 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 347 def initialize(**args) update!(**args) end |
Instance Attribute Details
#charset ⇒ String
The MySQL charset value.
Corresponds to the JSON property charset
308 309 310 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 308 def charset @charset end |
#collation ⇒ String
The MySQL collation value.
Corresponds to the JSON property collation
313 314 315 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 313 def collation @collation end |
#etag ⇒ String
HTTP 1.1 Entity tag for the resource.
Corresponds to the JSON property etag
318 319 320 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 318 def etag @etag end |
#instance ⇒ String
The name of the Cloud SQL instance. This does not include the project ID.
Corresponds to the JSON property instance
323 324 325 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 323 def instance @instance end |
#kind ⇒ String
This is always sql#database.
Corresponds to the JSON property kind
328 329 330 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 328 def kind @kind end |
#name ⇒ String
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
334 335 336 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 334 def name @name end |
#project ⇒ String
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
340 341 342 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 340 def project @project end |
#self_link ⇒ String
The URI of this resource.
Corresponds to the JSON property selfLink
345 346 347 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 345 def self_link @self_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
352 353 354 355 356 357 358 359 360 361 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 352 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 |