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.



382
383
384
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 382

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)


373
374
375
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 373

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)


380
381
382
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 380

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



387
388
389
390
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 387

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