Class: Google::Apis::CloudiotV1::StateNotificationConfig

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

Overview

The configuration for notification of new states received from the device.

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) ⇒ StateNotificationConfig

Returns a new instance of StateNotificationConfig



1059
1060
1061
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1059

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

Instance Attribute Details

#pubsub_topic_nameString

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents. Corresponds to the JSON property pubsubTopicName

Returns:

  • (String)


1057
1058
1059
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1057

def pubsub_topic_name
  @pubsub_topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1064
1065
1066
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1064

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