Class: Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest
- Inherits:
-
Object
- Object
- Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest
- 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 more...
Overview
Request for the TriggerPubsubExecution method.
Instance Attribute Summary collapse
-
#delivery_attempt ⇒ Fixnum
The number of attempts that have been made to deliver this message.
-
#gcp_cloud_events_mode ⇒ String
Required.
-
#message ⇒ Google::Apis::WorkflowexecutionsV1::PubsubMessage
A message that is published by publishers and consumed by subscribers.
-
#subscription ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerPubsubExecutionRequest
constructor
A new instance of TriggerPubsubExecutionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TriggerPubsubExecutionRequest
Returns a new instance of TriggerPubsubExecutionRequest.
539 540 541 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 539 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_attempt ⇒ Fixnum
The number of attempts that have been made to deliver this message. This is
set by Pub/Sub for subscriptions that have the "dead letter" feature enabled,
and hence provided here for compatibility, but is ignored by Workflows.
Corresponds to the JSON property deliveryAttempt
520 521 522 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 520 def delivery_attempt @delivery_attempt end |
#gcp_cloud_events_mode ⇒ String
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
513 514 515 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 513 def gcp_cloud_events_mode @gcp_cloud_events_mode end |
#message ⇒ Google::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
531 532 533 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 531 def @message end |
#subscription ⇒ String
Required. The subscription of the Pub/Sub push notification. Format: projects/
project
/subscriptions/sub
Corresponds to the JSON property subscription
537 538 539 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 537 def subscription @subscription end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
544 545 546 547 548 549 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 544 def update!(**args) @gcp_cloud_events_mode = args[:gcp_cloud_events_mode] if args.key?(:gcp_cloud_events_mode) @delivery_attempt = args[:delivery_attempt] if args.key?(:delivery_attempt) @message = args[:message] if args.key?(:message) @subscription = args[:subscription] if args.key?(:subscription) end |