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.



113
114
115
# File 'lib/google/apis/biglake_v1/classes.rb', line 113

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)


78
79
80
# File 'lib/google/apis/biglake_v1/classes.rb', line 78

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)


84
85
86
# File 'lib/google/apis/biglake_v1/classes.rb', line 84

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)


90
91
92
# File 'lib/google/apis/biglake_v1/classes.rb', line 90

def expire_time
  @expire_time
end

#hive_optionsGoogle::Apis::BiglakeV1::HiveDatabaseOptions

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



95
96
97
# File 'lib/google/apis/biglake_v1/classes.rb', line 95

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)


101
102
103
# File 'lib/google/apis/biglake_v1/classes.rb', line 101

def name
  @name
end

#typeString

The database type. Corresponds to the JSON property type

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/biglake_v1/classes.rb', line 106

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


111
112
113
# File 'lib/google/apis/biglake_v1/classes.rb', line 111

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



118
119
120
121
122
123
124
125
126
# File 'lib/google/apis/biglake_v1/classes.rb', line 118

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