Class: Google::Apis::BiglakeV1::Database
- Inherits:
-
Object
- Object
- Google::Apis::BiglakeV1::Database
- 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
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#hive_options ⇒ Google::Apis::BiglakeV1::HiveDatabaseOptions
Options of a Hive database.
-
#name ⇒ String
Output only.
-
#type ⇒ String
The database type.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Database
constructor
A new instance of Database.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
Output only. The creation time of the database.
Corresponds to the JSON property createTime
78 79 80 |
# File 'lib/google/apis/biglake_v1/classes.rb', line 78 def create_time @create_time end |
#delete_time ⇒ String
Output only. The deletion time of the database. Only set after the database is
deleted.
Corresponds to the JSON property deleteTime
84 85 86 |
# File 'lib/google/apis/biglake_v1/classes.rb', line 84 def delete_time @delete_time end |
#expire_time ⇒ String
Output only. The time when this database is considered expired. Only set after
the database is deleted.
Corresponds to the JSON property expireTime
90 91 92 |
# File 'lib/google/apis/biglake_v1/classes.rb', line 90 def expire_time @expire_time end |
#hive_options ⇒ Google::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 end |
#name ⇒ String
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
101 102 103 |
# File 'lib/google/apis/biglake_v1/classes.rb', line 101 def name @name end |
#type ⇒ String
The database type.
Corresponds to the JSON property type
106 107 108 |
# File 'lib/google/apis/biglake_v1/classes.rb', line 106 def type @type end |
#update_time ⇒ String
Output only. The last modification time of the database.
Corresponds to the JSON property updateTime
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 |