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.



706
707
708
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 706

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)


704
705
706
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 704

def throughput_reservation
  @throughput_reservation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 711

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