class Google::Apis::PubsubV1::UpdateSubscriptionRequest

Request for the UpdateSubscription method.

Attributes

subscription[RW]

A subscription resource. 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 1558
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 1563
def update!(**args)
  @subscription = args[:subscription] if args.key?(:subscription)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end