Class: Google::Apis::DatafusionV1::EventPublishConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatafusionV1::EventPublishConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datafusion_v1/classes.rb,
lib/google/apis/datafusion_v1/representations.rb,
lib/google/apis/datafusion_v1/representations.rb
Overview
Confirguration of PubSubEventWriter.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Required.
-
#topic ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventPublishConfig
constructor
A new instance of EventPublishConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventPublishConfig
Returns a new instance of EventPublishConfig.
457 458 459 |
# File 'lib/google/apis/datafusion_v1/classes.rb', line 457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Required. Option to enable Event Publishing.
Corresponds to the JSON property enabled
448 449 450 |
# File 'lib/google/apis/datafusion_v1/classes.rb', line 448 def enabled @enabled end |
#topic ⇒ String
Required. The resource name of the Pub/Sub topic. Format: projects/project_id
/topics/topic_id
Corresponds to the JSON property topic
455 456 457 |
# File 'lib/google/apis/datafusion_v1/classes.rb', line 455 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
462 463 464 465 |
# File 'lib/google/apis/datafusion_v1/classes.rb', line 462 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @topic = args[:topic] if args.key?(:topic) end |