Class: Google::Apis::ContentV2_1::PubsubNotificationSettings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Overview

Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PubsubNotificationSettings

Returns a new instance of PubsubNotificationSettings.



8345
8346
8347
# File 'generated/google/apis/content_v2_1/classes.rb', line 8345

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_topic_nameString

Cloud pub/sub topic to which notifications are sent (read-only). Corresponds to the JSON property cloudTopicName

Returns:

  • (String)


8332
8333
8334
# File 'generated/google/apis/content_v2_1/classes.rb', line 8332

def cloud_topic_name
  @cloud_topic_name
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# pubsubNotificationSettings". Corresponds to the JSON property kind

Returns:

  • (String)


8338
8339
8340
# File 'generated/google/apis/content_v2_1/classes.rb', line 8338

def kind
  @kind
end

#registered_eventsArray<String>

List of event types. Supported event types: orderPendingShipment. Corresponds to the JSON property registeredEvents

Returns:

  • (Array<String>)


8343
8344
8345
# File 'generated/google/apis/content_v2_1/classes.rb', line 8343

def registered_events
  @registered_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8350
8351
8352
8353
8354
# File 'generated/google/apis/content_v2_1/classes.rb', line 8350

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