Class: Google::Apis::DatafusionV1beta1::EventPublishConfig

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



298
299
300
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 298

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)


289
290
291
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 289

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)


296
297
298
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 296

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 303

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