Class: Google::Apis::PubsubliteV1::ReservationConfig
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::ReservationConfig
- 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
-
#throughput_reservation ⇒ String
The Reservation to use for this topic's throughput capacity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReservationConfig
constructor
A new instance of ReservationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_reservation ⇒ String
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
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 |