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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudiot_v1/classes.rb,
lib/google/apis/cloudiot_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ StateNotificationConfig

Returns a new instance of StateNotificationConfig.



1081
1082
1083
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1081

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)


1079
1080
1081
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1079

def pubsub_topic_name
  @pubsub_topic_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1086
1087
1088
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1086

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