Class: Google::Apis::CloudiotV1::StateNotificationConfig
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CloudiotV1::StateNotificationConfig
 
 
- 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
- 
  
    
      #pubsub_topic_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A Cloud Pub/Sub topic name.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ StateNotificationConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of StateNotificationConfig.
 - 
  
    
      #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) ⇒ StateNotificationConfig
Returns a new instance of StateNotificationConfig
      914 915 916  | 
    
      # File 'generated/google/apis/cloudiot_v1/classes.rb', line 914 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#pubsub_topic_name ⇒ String
A Cloud Pub/Sub topic name. For example,
projects/myProject/topics/deviceEvents.
Corresponds to the JSON property pubsubTopicName
      912 913 914  | 
    
      # File 'generated/google/apis/cloudiot_v1/classes.rb', line 912 def pubsub_topic_name @pubsub_topic_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      919 920 921  | 
    
      # File 'generated/google/apis/cloudiot_v1/classes.rb', line 919 def update!(**args) @pubsub_topic_name = args[:pubsub_topic_name] if args.key?(:pubsub_topic_name) end  |