class Google::Apis::PubsubV1::UpdateSubscriptionRequest

Request for the UpdateSubscription method.

Attributes

subscription[RW]

A subscription resource. If none of `push_config` or `bigquery_config` is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set. Corresponds to the JSON property `subscription` @return [Google::Apis::PubsubV1::Subscription]

update_mask[RW]

Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty. Corresponds to the JSON property `updateMask` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 1570
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1/classes.rb, line 1575
def update!(**args)
  @subscription = args[:subscription] if args.key?(:subscription)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end