Class: Google::Apis::BigqueryreservationV1::BiReservation
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryreservationV1::BiReservation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryreservation_v1/classes.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb
Overview
Represents a BI Reservation.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#preferred_tables ⇒ Array<Google::Apis::BigqueryreservationV1::TableReference>
Optional.
-
#size ⇒ Fixnum
Optional.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BiReservation
constructor
A new instance of BiReservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BiReservation
Returns a new instance of BiReservation.
226 227 228 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The resource name of the singleton BI reservation. Reservation
names have the form projects/project_id/locations/location_id/
biReservation.
Corresponds to the JSON property name
209 210 211 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 209 def name @name end |
#preferred_tables ⇒ Array<Google::Apis::BigqueryreservationV1::TableReference>
Optional. Preferred tables to use BI capacity for.
Corresponds to the JSON property preferredTables
214 215 216 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 214 def preferred_tables @preferred_tables end |
#size ⇒ Fixnum
Optional. Size of a reservation, in bytes.
Corresponds to the JSON property size
219 220 221 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 219 def size @size end |
#update_time ⇒ String
Output only. The last update timestamp of a reservation.
Corresponds to the JSON property updateTime
224 225 226 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 224 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
231 232 233 234 235 236 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 231 def update!(**args) @name = args[:name] if args.key?(:name) @preferred_tables = args[:preferred_tables] if args.key?(:preferred_tables) @size = args[:size] if args.key?(:size) @update_time = args[:update_time] if args.key?(:update_time) end |