Class: Google::Apis::CloudiotV1::EventNotificationConfig

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 forwarding telemetry events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventNotificationConfig

Returns a new instance of EventNotificationConfig.



505
506
507
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 505

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)


495
496
497
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 495

def pubsub_topic_name
  @pubsub_topic_name
end

#subfolder_matchesString

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes. Corresponds to the JSON property subfolderMatches

Returns:

  • (String)


503
504
505
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 503

def subfolder_matches
  @subfolder_matches
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



510
511
512
513
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 510

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