google-apis-workflowexecutions_v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/workflowexecutions_v1/classes.rb +101 -0
- data/lib/google/apis/workflowexecutions_v1/gem_version.rb +3 -3
- data/lib/google/apis/workflowexecutions_v1/representations.rb +33 -0
- data/lib/google/apis/workflowexecutions_v1/service.rb +35 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7657d37f3e8d2dee7dd5a7b354f42c99eafec4c006752abf50a30501887fb9a2
|
4
|
+
data.tar.gz: dc4014624290e36c9741f35d494e08eb433b539586f386c19aaba9e4901acb78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c8d0ee2bc89576f9255849b61b90878326c4ab025615c0f3a162fbdfca960ebb7b5e9921e9f39b6ccf41c529472e61e0ce759f6614fdde806c95cfc1b58c07
|
7
|
+
data.tar.gz: 6e5f44501913b127877993c0dda55aa1632ff18ca521e948f56ef823b45714d0e2a4cd4511ddced90089bd8d5a32592d8b2c0ad663b755b5f3db8edb9d9e5fa0
|
data/CHANGELOG.md
CHANGED
@@ -198,6 +198,68 @@ module Google
|
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
201
|
+
# A message that is published by publishers and consumed by subscribers. The
|
202
|
+
# message must contain either a non-empty data field or at least one attribute.
|
203
|
+
# Note that client libraries represent this object differently depending on the
|
204
|
+
# language. See the corresponding [client library documentation](https://cloud.
|
205
|
+
# google.com/pubsub/docs/reference/libraries) for more information. See [quotas
|
206
|
+
# and limits] (https://cloud.google.com/pubsub/quotas) for more information
|
207
|
+
# about message limits.
|
208
|
+
class PubsubMessage
|
209
|
+
include Google::Apis::Core::Hashable
|
210
|
+
|
211
|
+
# Attributes for this message. If this field is empty, the message must contain
|
212
|
+
# non-empty data. This can be used to filter messages on the subscription.
|
213
|
+
# Corresponds to the JSON property `attributes`
|
214
|
+
# @return [Hash<String,String>]
|
215
|
+
attr_accessor :attributes
|
216
|
+
|
217
|
+
# The message data field. If this field is empty, the message must contain at
|
218
|
+
# least one attribute.
|
219
|
+
# Corresponds to the JSON property `data`
|
220
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
221
|
+
# @return [String]
|
222
|
+
attr_accessor :data
|
223
|
+
|
224
|
+
# ID of this message, assigned by the server when the message is published.
|
225
|
+
# Guaranteed to be unique within the topic. This value may be read by a
|
226
|
+
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
227
|
+
# delivery. It must not be populated by the publisher in a `Publish` call.
|
228
|
+
# Corresponds to the JSON property `messageId`
|
229
|
+
# @return [String]
|
230
|
+
attr_accessor :message_id
|
231
|
+
|
232
|
+
# If non-empty, identifies related messages for which publish order should be
|
233
|
+
# respected. If a `Subscription` has `enable_message_ordering` set to `true`,
|
234
|
+
# messages published with the same non-empty `ordering_key` value will be
|
235
|
+
# delivered to subscribers in the order in which they are received by the Pub/
|
236
|
+
# Sub system. All `PubsubMessage`s published in a given `PublishRequest` must
|
237
|
+
# specify the same `ordering_key` value.
|
238
|
+
# Corresponds to the JSON property `orderingKey`
|
239
|
+
# @return [String]
|
240
|
+
attr_accessor :ordering_key
|
241
|
+
|
242
|
+
# The time at which the message was published, populated by the server when it
|
243
|
+
# receives the `Publish` call. It must not be populated by the publisher in a `
|
244
|
+
# Publish` call.
|
245
|
+
# Corresponds to the JSON property `publishTime`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :publish_time
|
248
|
+
|
249
|
+
def initialize(**args)
|
250
|
+
update!(**args)
|
251
|
+
end
|
252
|
+
|
253
|
+
# Update properties of this object
|
254
|
+
def update!(**args)
|
255
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
256
|
+
@data = args[:data] if args.key?(:data)
|
257
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
258
|
+
@ordering_key = args[:ordering_key] if args.key?(:ordering_key)
|
259
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
201
263
|
# A collection of stack elements (frames) where an error occurred.
|
202
264
|
class StackTrace
|
203
265
|
include Google::Apis::Core::Hashable
|
@@ -248,6 +310,45 @@ module Google
|
|
248
310
|
@step = args[:step] if args.key?(:step)
|
249
311
|
end
|
250
312
|
end
|
313
|
+
|
314
|
+
# Request for the TriggerPubsubExecution method.
|
315
|
+
class TriggerPubsubExecutionRequest
|
316
|
+
include Google::Apis::Core::Hashable
|
317
|
+
|
318
|
+
# Required. LINT: LEGACY_NAMES The query parameter value for
|
319
|
+
# __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.
|
320
|
+
# Corresponds to the JSON property `GCPCloudEventsMode`
|
321
|
+
# @return [String]
|
322
|
+
attr_accessor :gcp_cloud_events_mode
|
323
|
+
|
324
|
+
# A message that is published by publishers and consumed by subscribers. The
|
325
|
+
# message must contain either a non-empty data field or at least one attribute.
|
326
|
+
# Note that client libraries represent this object differently depending on the
|
327
|
+
# language. See the corresponding [client library documentation](https://cloud.
|
328
|
+
# google.com/pubsub/docs/reference/libraries) for more information. See [quotas
|
329
|
+
# and limits] (https://cloud.google.com/pubsub/quotas) for more information
|
330
|
+
# about message limits.
|
331
|
+
# Corresponds to the JSON property `message`
|
332
|
+
# @return [Google::Apis::WorkflowexecutionsV1::PubsubMessage]
|
333
|
+
attr_accessor :message
|
334
|
+
|
335
|
+
# Required. The subscription of the Pub/Sub push notification. Format: projects/`
|
336
|
+
# project`/subscriptions/`sub`
|
337
|
+
# Corresponds to the JSON property `subscription`
|
338
|
+
# @return [String]
|
339
|
+
attr_accessor :subscription
|
340
|
+
|
341
|
+
def initialize(**args)
|
342
|
+
update!(**args)
|
343
|
+
end
|
344
|
+
|
345
|
+
# Update properties of this object
|
346
|
+
def update!(**args)
|
347
|
+
@gcp_cloud_events_mode = args[:gcp_cloud_events_mode] if args.key?(:gcp_cloud_events_mode)
|
348
|
+
@message = args[:message] if args.key?(:message)
|
349
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
350
|
+
end
|
351
|
+
end
|
251
352
|
end
|
252
353
|
end
|
253
354
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module WorkflowexecutionsV1
|
18
18
|
# Version of the google-apis-workflowexecutions_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220315"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class PubsubMessage
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class StackTrace
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -64,6 +70,12 @@ module Google
|
|
64
70
|
include Google::Apis::Core::JsonObjectSupport
|
65
71
|
end
|
66
72
|
|
73
|
+
class TriggerPubsubExecutionRequest
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class CancelExecutionRequest
|
68
80
|
# @private
|
69
81
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -114,6 +126,17 @@ module Google
|
|
114
126
|
end
|
115
127
|
end
|
116
128
|
|
129
|
+
class PubsubMessage
|
130
|
+
# @private
|
131
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
132
|
+
hash :attributes, as: 'attributes'
|
133
|
+
property :data, :base64 => true, as: 'data'
|
134
|
+
property :message_id, as: 'messageId'
|
135
|
+
property :ordering_key, as: 'orderingKey'
|
136
|
+
property :publish_time, as: 'publishTime'
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
117
140
|
class StackTrace
|
118
141
|
# @private
|
119
142
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -131,6 +154,16 @@ module Google
|
|
131
154
|
property :step, as: 'step'
|
132
155
|
end
|
133
156
|
end
|
157
|
+
|
158
|
+
class TriggerPubsubExecutionRequest
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
property :gcp_cloud_events_mode, as: 'GCPCloudEventsMode'
|
162
|
+
property :message, as: 'message', class: Google::Apis::WorkflowexecutionsV1::PubsubMessage, decorator: Google::Apis::WorkflowexecutionsV1::PubsubMessage::Representation
|
163
|
+
|
164
|
+
property :subscription, as: 'subscription'
|
165
|
+
end
|
166
|
+
end
|
134
167
|
end
|
135
168
|
end
|
136
169
|
end
|
@@ -49,6 +49,41 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Triggers a new execution using the latest revision of the given workflow by a
|
53
|
+
# Pub/Sub push notification.
|
54
|
+
# @param [String] workflow
|
55
|
+
# Required. Name of the workflow for which an execution should be created.
|
56
|
+
# Format: projects/`project`/locations/`location`/workflows/`workflow`
|
57
|
+
# @param [Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest] trigger_pubsub_execution_request_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::WorkflowexecutionsV1::Execution] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::WorkflowexecutionsV1::Execution]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def trigger_workflow_pubsub_execution(workflow, trigger_pubsub_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v1/{+workflow}:triggerPubsubExecution', options)
|
77
|
+
command.request_representation = Google::Apis::WorkflowexecutionsV1::TriggerPubsubExecutionRequest::Representation
|
78
|
+
command.request_object = trigger_pubsub_execution_request_object
|
79
|
+
command.response_representation = Google::Apis::WorkflowexecutionsV1::Execution::Representation
|
80
|
+
command.response_class = Google::Apis::WorkflowexecutionsV1::Execution
|
81
|
+
command.params['workflow'] = workflow unless workflow.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
52
87
|
# Cancels an execution of the given name.
|
53
88
|
# @param [String] name
|
54
89
|
# Required. Name of the execution to be cancelled. Format: projects/`project`/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-workflowexecutions_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workflowexecutions_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-workflowexecutions_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workflowexecutions_v1/v0.11.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workflowexecutions_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Workflow Executions API V1
|