Class: Google::Apis::ContentV2_1::PubsubNotificationSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PubsubNotificationSettings
- 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. (== resource_for v2.1. pubsubnotificationsettings ==)
Instance Attribute Summary collapse
-
#cloud_topic_name ⇒ String
Cloud pub/sub topic to which notifications are sent (read-only).
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#registered_events ⇒ Array<String>
List of event types.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubsubNotificationSettings
constructor
A new instance of PubsubNotificationSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PubsubNotificationSettings
Returns a new instance of PubsubNotificationSettings.
9453 9454 9455 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_topic_name ⇒ String
Cloud pub/sub topic to which notifications are sent (read-only).
Corresponds to the JSON property cloudTopicName
9438 9439 9440 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9438 def cloud_topic_name @cloud_topic_name end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
pubsubNotificationSettings
"
Corresponds to the JSON property kind
9444 9445 9446 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9444 def kind @kind end |
#registered_events ⇒ Array<String>
List of event types. Acceptable values are:
- "
orderPendingShipment
" Corresponds to the JSON propertyregisteredEvents
9451 9452 9453 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9451 def registered_events @registered_events end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9458 9459 9460 9461 9462 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 9458 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 |