Class: Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workflowexecutions_v1/classes.rb,
lib/google/apis/workflowexecutions_v1/representations.rb,
lib/google/apis/workflowexecutions_v1/representations.rb

Overview

Request for the TriggerPubsubExecution method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriggerPubsubExecutionRequest

Returns a new instance of TriggerPubsubExecutionRequest.



342
343
344
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 342

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gcp_cloud_events_modeString

Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers. Corresponds to the JSON property GCPCloudEventsMode

Returns:

  • (String)


323
324
325
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 323

def gcp_cloud_events_mode
  @gcp_cloud_events_mode
end

#messageGoogle::Apis::WorkflowexecutionsV1::PubsubMessage

A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding client library documentation for more information. See quotas and limits for more information about message limits. Corresponds to the JSON property message



334
335
336
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 334

def message
  @message
end

#subscriptionString

Required. The subscription of the Pub/Sub push notification. Format: projects/ project/subscriptions/sub Corresponds to the JSON property subscription

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 340

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



347
348
349
350
351
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 347

def update!(**args)
  @gcp_cloud_events_mode = args[:gcp_cloud_events_mode] if args.key?(:gcp_cloud_events_mode)
  @message = args[:message] if args.key?(:message)
  @subscription = args[:subscription] if args.key?(:subscription)
end