google-apis-workflowexecutions_v1 0.26.0 → 0.28.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: cd2acc7b55d6d52e642a4a08804a5e27be29c0e5888d2e2a876b9fb0a47dbd03
4
- data.tar.gz: ecb1a7fb7d51728f0ba7c419ba5c261f44ba919c2c3667e4e15be9e11c134f0e
3
+ metadata.gz: 1def89fcf7428c543ecf9149b5108dce91d116a594d10d31cf0b259c900a7724
4
+ data.tar.gz: 7e759e41ed9fd00e6405fd6e4236752a4700bee5a3ef3c18f80dc73fc7544d2c
5
5
  SHA512:
6
- metadata.gz: 471f2e6566aeda1a1a4ece12119ed8145bcb086c7566e716ef2dceb9acdb9e667ef70c6b39ea25c299c1bc9073612a372e7cc39cd6e29b57e12ecd8f88fda710
7
- data.tar.gz: 7e38f676a4886c3a89105be03b05a0c59c5b266563ed4d20d58fc554abc18291faef19c7294826c95a745502027d3f8618f72f158e01e7a5e8c19a09396bdc2b
6
+ metadata.gz: 44f45f6be0c2d75580fdae85b85a36c7216fd7ce252d7732b45a6e8a8804c27772934a7c5cc9b7df7c576f8da1b1cca2c8e5dfcc3468cbaace0f729dda1c170d
7
+ data.tar.gz: 91954160c3a8851a488c178383d025ce6b1a910b686e08479ee821a1be95242405c4b277d1126b7e36c55c1c3caccb8d77b1c547b954ef555bd4703da1091de3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workflowexecutions_v1
2
2
 
3
+ ### v0.28.0 (2023-10-01)
4
+
5
+ * Regenerated from discovery document revision 20230912
6
+
7
+ ### v0.27.0 (2023-09-10)
8
+
9
+ * Regenerated from discovery document revision 20230829
10
+
3
11
  ### v0.26.0 (2023-07-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230710
@@ -22,6 +22,46 @@ module Google
22
22
  module Apis
23
23
  module WorkflowexecutionsV1
24
24
 
25
+ # An instance of a Callback created by an execution.
26
+ class Callback
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. The payloads received by the callback that have not been
30
+ # processed by a waiting execution step.
31
+ # Corresponds to the JSON property `availablePayloads`
32
+ # @return [Array<String>]
33
+ attr_accessor :available_payloads
34
+
35
+ # Output only. The method accepted by the callback. For example: GET, POST, PUT.
36
+ # Corresponds to the JSON property `method`
37
+ # @return [String]
38
+ attr_accessor :method_prop
39
+
40
+ # Output only. The resource name of the callback. Format: projects/`project`/
41
+ # locations/`location`/workflows/`workflow`/executions/`execution`/callback/`
42
+ # callback`
43
+ # Corresponds to the JSON property `name`
44
+ # @return [String]
45
+ attr_accessor :name
46
+
47
+ # Output only. Number of execution steps waiting on this callback.
48
+ # Corresponds to the JSON property `waiters`
49
+ # @return [Fixnum]
50
+ attr_accessor :waiters
51
+
52
+ def initialize(**args)
53
+ update!(**args)
54
+ end
55
+
56
+ # Update properties of this object
57
+ def update!(**args)
58
+ @available_payloads = args[:available_payloads] if args.key?(:available_payloads)
59
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
60
+ @name = args[:name] if args.key?(:name)
61
+ @waiters = args[:waiters] if args.key?(:waiters)
62
+ end
63
+ end
64
+
25
65
  # Request for the CancelExecution method.
26
66
  class CancelExecutionRequest
27
67
  include Google::Apis::Core::Hashable
@@ -168,6 +208,52 @@ module Google
168
208
  end
169
209
  end
170
210
 
211
+ # Response for the ExportData method.
212
+ class ExportDataResponse
213
+ include Google::Apis::Core::Hashable
214
+
215
+ # The JSON string with customer data and metadata for an execution with the
216
+ # given name
217
+ # Corresponds to the JSON property `data`
218
+ # @return [String]
219
+ attr_accessor :data
220
+
221
+ def initialize(**args)
222
+ update!(**args)
223
+ end
224
+
225
+ # Update properties of this object
226
+ def update!(**args)
227
+ @data = args[:data] if args.key?(:data)
228
+ end
229
+ end
230
+
231
+ # RPC response object for the ListCallbacks method.
232
+ class ListCallbacksResponse
233
+ include Google::Apis::Core::Hashable
234
+
235
+ # The callbacks which match the request.
236
+ # Corresponds to the JSON property `callbacks`
237
+ # @return [Array<Google::Apis::WorkflowexecutionsV1::Callback>]
238
+ attr_accessor :callbacks
239
+
240
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
241
+ # field is omitted, there are no subsequent pages.
242
+ # Corresponds to the JSON property `nextPageToken`
243
+ # @return [String]
244
+ attr_accessor :next_page_token
245
+
246
+ def initialize(**args)
247
+ update!(**args)
248
+ end
249
+
250
+ # Update properties of this object
251
+ def update!(**args)
252
+ @callbacks = args[:callbacks] if args.key?(:callbacks)
253
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
254
+ end
255
+ end
256
+
171
257
  # Response for the ListExecutions method.
172
258
  class ListExecutionsResponse
173
259
  include Google::Apis::Core::Hashable
@@ -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.26.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230710"
25
+ REVISION = "20230912"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module WorkflowexecutionsV1
24
24
 
25
+ class Callback
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class CancelExecutionRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -40,6 +46,18 @@ module Google
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
49
+ class ExportDataResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListCallbacksResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class ListExecutionsResponse
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -94,6 +112,16 @@ module Google
94
112
  include Google::Apis::Core::JsonObjectSupport
95
113
  end
96
114
 
115
+ class Callback
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ collection :available_payloads, as: 'availablePayloads'
119
+ property :method_prop, as: 'method'
120
+ property :name, as: 'name'
121
+ property :waiters, :numeric_string => true, as: 'waiters'
122
+ end
123
+ end
124
+
97
125
  class CancelExecutionRequest
98
126
  # @private
99
127
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -132,6 +160,22 @@ module Google
132
160
  end
133
161
  end
134
162
 
163
+ class ExportDataResponse
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :data, as: 'data'
167
+ end
168
+ end
169
+
170
+ class ListCallbacksResponse
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ collection :callbacks, as: 'callbacks', class: Google::Apis::WorkflowexecutionsV1::Callback, decorator: Google::Apis::WorkflowexecutionsV1::Callback::Representation
174
+
175
+ property :next_page_token, as: 'nextPageToken'
176
+ end
177
+ end
178
+
135
179
  class ListExecutionsResponse
136
180
  # @private
137
181
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +153,39 @@ module Google
153
153
  execute_or_queue_command(command, &block)
154
154
  end
155
155
 
156
+ # Returns all metadata stored about an execution, excluding most data that is
157
+ # already accessible using other API methods.
158
+ # @param [String] name
159
+ # Required. Name of the execution for which data is to be exported. Format:
160
+ # projects/`project`/locations/`location`/workflows/`workflow`/executions/`
161
+ # execution`
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::WorkflowexecutionsV1::ExportDataResponse] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::WorkflowexecutionsV1::ExportDataResponse]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def export_project_location_workflow_execution_data(name, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:get, 'v1/{+name}:exportData', options)
181
+ command.response_representation = Google::Apis::WorkflowexecutionsV1::ExportDataResponse::Representation
182
+ command.response_class = Google::Apis::WorkflowexecutionsV1::ExportDataResponse
183
+ command.params['name'] = name unless name.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
156
189
  # Returns an execution of the given name.
157
190
  # @param [String] name
158
191
  # Required. Name of the execution to be retrieved. Format: projects/`project`/
@@ -248,6 +281,49 @@ module Google
248
281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
249
282
  execute_or_queue_command(command, &block)
250
283
  end
284
+
285
+ # Returns a list of active callbacks that belong to the execution with the given
286
+ # name. The returned callbacks are ordered by callback ID.
287
+ # @param [String] parent
288
+ # Required. Name of the execution for which the callbacks should be listed.
289
+ # Format: projects/`project`/locations/`location`/workflows/`workflow`/
290
+ # executions/`execution`
291
+ # @param [Fixnum] page_size
292
+ # Maximum number of callbacks to return per call. The default value is 100 and
293
+ # is also the maximum value.
294
+ # @param [String] page_token
295
+ # A page token, received from a previous `ListCallbacks` call. Provide this to
296
+ # retrieve the subsequent page. Note that pagination is applied to dynamic data.
297
+ # The list of callbacks returned can change between page requests if callbacks
298
+ # are created or deleted.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def list_project_location_workflow_execution_callbacks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:get, 'v1/{+parent}/callbacks', options)
318
+ command.response_representation = Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse::Representation
319
+ command.response_class = Google::Apis::WorkflowexecutionsV1::ListCallbacksResponse
320
+ command.params['parent'] = parent unless parent.nil?
321
+ command.query['pageSize'] = page_size unless page_size.nil?
322
+ command.query['pageToken'] = page_token unless page_token.nil?
323
+ command.query['fields'] = fields unless fields.nil?
324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ execute_or_queue_command(command, &block)
326
+ end
251
327
 
252
328
  protected
253
329
 
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.26.0
4
+ version: 0.28.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: 2023-07-16 00:00:00.000000000 Z
11
+ date: 2023-10-01 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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workflowexecutions_v1/v0.28.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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Workflow Executions API V1