Class: Google::Apis::BigqueryreservationV1beta1::BiReservation

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

Overview

Represents a BI Reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BiReservation


86
87
88
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 86

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


74
75
76
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 74

def name
  @name
end

#sizeFixnum

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


79
80
81
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 79

def size
  @size
end

#update_timeString

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


84
85
86
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 84

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


91
92
93
94
95
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 91

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @size = args[:size] if args.key?(:size)
  @update_time = args[:update_time] if args.key?(:update_time)
end