Class: Google::Apis::PubsubliteV1::Subscription
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::Subscription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsublite_v1/classes.rb,
generated/google/apis/pubsublite_v1/representations.rb,
generated/google/apis/pubsublite_v1/representations.rb
Overview
Metadata about a subscription resource.
Instance Attribute Summary collapse
-
#delivery_config ⇒ Google::Apis::PubsubliteV1::DeliveryConfig
The settings for a subscription's message delivery.
-
#name ⇒ String
The name of the subscription.
-
#topic ⇒ String
The name of the topic this subscription is attached to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subscription
constructor
A new instance of Subscription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subscription
Returns a new instance of Subscription.
397 398 399 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 397 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_config ⇒ Google::Apis::PubsubliteV1::DeliveryConfig
The settings for a subscription's message delivery.
Corresponds to the JSON property deliveryConfig
383 384 385 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 383 def delivery_config @delivery_config end |
#name ⇒ String
The name of the subscription. Structured like: projects/project_number
/
locations/location
/subscriptions/subscription_id
Corresponds to the JSON property name
389 390 391 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 389 def name @name end |
#topic ⇒ String
The name of the topic this subscription is attached to. Structured like:
projects/project_number
/locations/location
/topics/topic_id
Corresponds to the JSON property topic
395 396 397 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 395 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
402 403 404 405 406 |
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 402 def update!(**args) @delivery_config = args[:delivery_config] if args.key?(:delivery_config) @name = args[:name] if args.key?(:name) @topic = args[:topic] if args.key?(:topic) end |