Class: Google::Apis::PubsubliteV1::ReservationConfig

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

Overview

The settings for this topic's Reservation usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationConfig

Returns a new instance of ReservationConfig.



771
772
773
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 771

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

Instance Attribute Details

#throughput_reservationString

The Reservation to use for this topic's throughput capacity. Structured like: projects/project_number/locations/location/reservations/reservation_id Corresponds to the JSON property throughputReservation

Returns:

  • (String)


769
770
771
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 769

def throughput_reservation
  @throughput_reservation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



776
777
778
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 776

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