Class: Google::Apis::BiglakeV1::Database

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

Overview

Database is the container of tables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Database

Returns a new instance of Database.



285
286
287
# File 'lib/google/apis/biglake_v1/classes.rb', line 285

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

Instance Attribute Details

#create_timeString

Output only. The creation time of the database. Corresponds to the JSON property createTime

Returns:

  • (String)


250
251
252
# File 'lib/google/apis/biglake_v1/classes.rb', line 250

def create_time
  @create_time
end

#delete_timeString

Output only. The deletion time of the database. Only set after the database is deleted. Corresponds to the JSON property deleteTime

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/biglake_v1/classes.rb', line 256

def delete_time
  @delete_time
end

#expire_timeString

Output only. The time when this database is considered expired. Only set after the database is deleted. Corresponds to the JSON property expireTime

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/biglake_v1/classes.rb', line 262

def expire_time
  @expire_time
end

#hive_optionsGoogle::Apis::BiglakeV1::HiveDatabaseOptions

Options of a Hive database. Corresponds to the JSON property hiveOptions



267
268
269
# File 'lib/google/apis/biglake_v1/classes.rb', line 267

def hive_options
  @hive_options
end

#nameString

Output only. The resource name. Format: projects/project_id_or_number/ locations/location_id/catalogs/catalog_id/databases/database_id Corresponds to the JSON property name

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/biglake_v1/classes.rb', line 273

def name
  @name
end

#typeString

The database type. Corresponds to the JSON property type

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/biglake_v1/classes.rb', line 278

def type
  @type
end

#update_timeString

Output only. The last modification time of the database. Corresponds to the JSON property updateTime

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/biglake_v1/classes.rb', line 283

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
294
295
296
297
298
# File 'lib/google/apis/biglake_v1/classes.rb', line 290

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @hive_options = args[:hive_options] if args.key?(:hive_options)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end