google-apis-workflowexecutions_v1 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b06243cae19b296b1729cd128a4275235928665a250e8e53954c93f7ec6b6e1
4
- data.tar.gz: 777b99c58af2c10552606decdd81a950a6fc748261258330bbe704be2ab42625
3
+ metadata.gz: d8e1c549e97ee5b883c149fbecea6ba40e5ef97f5e6432b220fe51f29a85c2ac
4
+ data.tar.gz: 5922f9b917043f28f9f009fb723f20773b9b5aa9c146d9602d170a0da8600397
5
5
  SHA512:
6
- metadata.gz: 4b5bb13b831a75732c50c1ce135017a484b65c427409ba82b1cfcd55c091d91e4c3b6c67923fc4dff7eaaf6a7902ef5b3f8a3877183c479dba032130b25a27b2
7
- data.tar.gz: 489fec3ca83052703f597d7cd40151faf21d019d10e0ee2a2fc7823dc60b76ef85315d08be1b17fa9b5fc121b0fcec6c856d73b6038cd018415407cae0c5bd97
6
+ metadata.gz: dbb4b9c480f9b3347840adc12bd3ca9e061861251d2cee4cdc225870bc83d4aab7cb1a6791e90e257d727357e5b0fb9fc3922562bff26402c2db858213408f7d
7
+ data.tar.gz: 5046766687e83b2945351890d98f694232490f1a334c519b96c2c3e1c7c2c5e0157c34fcafbf9a23ecc8289d0d0704e05c5554621e093e91496b4d8924a52b01
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-workflowexecutions_v1
2
2
 
3
+ ### v0.12.0 (2022-04-22)
4
+
5
+ * Regenerated from discovery document revision 20220412
6
+
7
+ ### v0.11.0 (2022-03-25)
8
+
9
+ * Regenerated from discovery document revision 20220315
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.10.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.9.0 (2021-10-27)
4
17
 
5
18
  * Regenerated from discovery document revision 20211019
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/workflowexecutions_v1"
51
51
  client = Google::Apis::WorkflowexecutionsV1::WorkflowExecutionsService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -198,6 +198,69 @@ 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. For more information, see [ordering
238
+ # messages](https://cloud.google.com/pubsub/docs/ordering).
239
+ # Corresponds to the JSON property `orderingKey`
240
+ # @return [String]
241
+ attr_accessor :ordering_key
242
+
243
+ # The time at which the message was published, populated by the server when it
244
+ # receives the `Publish` call. It must not be populated by the publisher in a `
245
+ # Publish` call.
246
+ # Corresponds to the JSON property `publishTime`
247
+ # @return [String]
248
+ attr_accessor :publish_time
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @attributes = args[:attributes] if args.key?(:attributes)
257
+ @data = args[:data] if args.key?(:data)
258
+ @message_id = args[:message_id] if args.key?(:message_id)
259
+ @ordering_key = args[:ordering_key] if args.key?(:ordering_key)
260
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
261
+ end
262
+ end
263
+
201
264
  # A collection of stack elements (frames) where an error occurred.
202
265
  class StackTrace
203
266
  include Google::Apis::Core::Hashable
@@ -248,6 +311,45 @@ module Google
248
311
  @step = args[:step] if args.key?(:step)
249
312
  end
250
313
  end
314
+
315
+ # Request for the TriggerPubsubExecution method.
316
+ class TriggerPubsubExecutionRequest
317
+ include Google::Apis::Core::Hashable
318
+
319
+ # Required. LINT: LEGACY_NAMES The query parameter value for
320
+ # __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.
321
+ # Corresponds to the JSON property `GCPCloudEventsMode`
322
+ # @return [String]
323
+ attr_accessor :gcp_cloud_events_mode
324
+
325
+ # A message that is published by publishers and consumed by subscribers. The
326
+ # message must contain either a non-empty data field or at least one attribute.
327
+ # Note that client libraries represent this object differently depending on the
328
+ # language. See the corresponding [client library documentation](https://cloud.
329
+ # google.com/pubsub/docs/reference/libraries) for more information. See [quotas
330
+ # and limits] (https://cloud.google.com/pubsub/quotas) for more information
331
+ # about message limits.
332
+ # Corresponds to the JSON property `message`
333
+ # @return [Google::Apis::WorkflowexecutionsV1::PubsubMessage]
334
+ attr_accessor :message
335
+
336
+ # Required. The subscription of the Pub/Sub push notification. Format: projects/`
337
+ # project`/subscriptions/`sub`
338
+ # Corresponds to the JSON property `subscription`
339
+ # @return [String]
340
+ attr_accessor :subscription
341
+
342
+ def initialize(**args)
343
+ update!(**args)
344
+ end
345
+
346
+ # Update properties of this object
347
+ def update!(**args)
348
+ @gcp_cloud_events_mode = args[:gcp_cloud_events_mode] if args.key?(:gcp_cloud_events_mode)
349
+ @message = args[:message] if args.key?(:message)
350
+ @subscription = args[:subscription] if args.key?(:subscription)
351
+ end
352
+ end
251
353
  end
252
354
  end
253
355
  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.9.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211019"
25
+ REVISION = "20220412"
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.9.0
4
+ version: 0.12.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-04-25 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workflowexecutions_v1/v0.12.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.2.17
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