Class: Google::Apis::BigqueryreservationV1::BiReservation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BiReservation

Returns a new instance of BiReservation.



118
119
120
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 118

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

#preferred_tablesArray<Google::Apis::BigqueryreservationV1::TableReference>

Preferred tables to use BI capacity for. Corresponds to the JSON property preferredTables



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

def preferred_tables
  @preferred_tables
end

#sizeFixnum

Size of a reservation, in bytes. Corresponds to the JSON property size

Returns:

  • (Fixnum)


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

def size
  @size
end

#update_timeString

Output only. The last update timestamp of a reservation. Corresponds to the JSON property updateTime

Returns:

  • (String)


116
117
118
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 116

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



123
124
125
126
127
128
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 123

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