Class: Google::Apis::DatafusionV1::EventPublishConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#enabledBoolean Also known as: enabled?

Required. Option to enable Event Publishing. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


448
449
450
# File 'lib/google/apis/datafusion_v1/classes.rb', line 448

def enabled
  @enabled
end

#topicString

Required. The resource name of the Pub/Sub topic. Format: projects/project_id /topics/topic_id Corresponds to the JSON property topic

Returns:

  • (String)


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