google-cloud-workflows-executions-v1 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,6 +35,9 @@ module Google
35
35
  # @!attribute [r] end_time
36
36
  # @return [::Google::Protobuf::Timestamp]
37
37
  # Output only. Marks the end of execution, successful or not.
38
+ # @!attribute [r] duration
39
+ # @return [::Google::Protobuf::Duration]
40
+ # Output only. Measures the duration of the execution.
38
41
  # @!attribute [r] state
39
42
  # @return [::Google::Cloud::Workflows::Executions::V1::Execution::State]
40
43
  # Output only. Current state of the execution.
@@ -61,6 +64,24 @@ module Google
61
64
  # @!attribute [rw] call_log_level
62
65
  # @return [::Google::Cloud::Workflows::Executions::V1::Execution::CallLogLevel]
63
66
  # The call logging level associated to this execution.
67
+ # @!attribute [r] status
68
+ # @return [::Google::Cloud::Workflows::Executions::V1::Execution::Status]
69
+ # Output only. Status tracks the current steps and progress data of this
70
+ # execution.
71
+ # @!attribute [rw] labels
72
+ # @return [::Google::Protobuf::Map{::String => ::String}]
73
+ # Labels associated with this execution.
74
+ # Labels can contain at most 64 entries. Keys and values can be no longer
75
+ # than 63 characters and can only contain lowercase letters, numeric
76
+ # characters, underscores, and dashes. Label keys must start with a letter.
77
+ # International characters are allowed.
78
+ # By default, labels are inherited from the workflow but are overridden by
79
+ # any labels associated with the execution.
80
+ # @!attribute [r] state_error
81
+ # @return [::Google::Cloud::Workflows::Executions::V1::Execution::StateError]
82
+ # Output only. Error regarding the state of the Execution resource. For
83
+ # example, this field will have error details if the execution data is
84
+ # unavailable due to revoked KMS key permissions.
64
85
  class Execution
65
86
  include ::Google::Protobuf::MessageExts
66
87
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -122,6 +143,63 @@ module Google
122
143
  extend ::Google::Protobuf::MessageExts::ClassMethods
123
144
  end
124
145
 
146
+ # Represents the current status of this execution.
147
+ # @!attribute [rw] current_steps
148
+ # @return [::Array<::Google::Cloud::Workflows::Executions::V1::Execution::Status::Step>]
149
+ # A list of currently executing or last executed step names for the
150
+ # workflow execution currently running. If the workflow has succeeded or
151
+ # failed, this is the last attempted or executed step. Presently, if the
152
+ # current step is inside a subworkflow, the list only includes that step.
153
+ # In the future, the list will contain items for each step in the call
154
+ # stack, starting with the outermost step in the `main` subworkflow, and
155
+ # ending with the most deeply nested step.
156
+ class Status
157
+ include ::Google::Protobuf::MessageExts
158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
159
+
160
+ # Represents a step of the workflow this execution is running.
161
+ # @!attribute [rw] routine
162
+ # @return [::String]
163
+ # Name of a routine within the workflow.
164
+ # @!attribute [rw] step
165
+ # @return [::String]
166
+ # Name of a step within the routine.
167
+ class Step
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+ end
172
+
173
+ # Describes an error related to the current state of the Execution resource.
174
+ # @!attribute [rw] details
175
+ # @return [::String]
176
+ # Provides specifics about the error.
177
+ # @!attribute [rw] type
178
+ # @return [::Google::Cloud::Workflows::Executions::V1::Execution::StateError::Type]
179
+ # The type of this state error.
180
+ class StateError
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+
184
+ # Describes the possible types of a state error.
185
+ module Type
186
+ # No type specified.
187
+ TYPE_UNSPECIFIED = 0
188
+
189
+ # Caused by an issue with KMS.
190
+ KMS_ERROR = 1
191
+ end
192
+ end
193
+
194
+ # @!attribute [rw] key
195
+ # @return [::String]
196
+ # @!attribute [rw] value
197
+ # @return [::String]
198
+ class LabelsEntry
199
+ include ::Google::Protobuf::MessageExts
200
+ extend ::Google::Protobuf::MessageExts::ClassMethods
201
+ end
202
+
125
203
  # Describes the current state of the execution. More states might be added
126
204
  # in the future.
127
205
  module State
@@ -139,12 +217,18 @@ module Google
139
217
 
140
218
  # The execution was stopped intentionally.
141
219
  CANCELLED = 4
220
+
221
+ # Execution data is unavailable. See the `state_error` field.
222
+ UNAVAILABLE = 5
223
+
224
+ # Request has been placed in the backlog for processing at a later time.
225
+ QUEUED = 6
142
226
  end
143
227
 
144
228
  # Describes the level of platform logging to apply to calls and call
145
229
  # responses during workflow executions.
146
230
  module CallLogLevel
147
- # No call logging specified.
231
+ # No call logging level specified.
148
232
  CALL_LOG_LEVEL_UNSPECIFIED = 0
149
233
 
150
234
  # Log all call steps within workflows, all call returns, and all exceptions
@@ -153,6 +237,9 @@ module Google
153
237
 
154
238
  # Log only exceptions that are raised from call steps within workflows.
155
239
  LOG_ERRORS_ONLY = 2
240
+
241
+ # Explicitly log nothing.
242
+ LOG_NONE = 3
156
243
  end
157
244
  end
158
245
 
@@ -166,7 +253,7 @@ module Google
166
253
  # @!attribute [rw] page_size
167
254
  # @return [::Integer]
168
255
  # Maximum number of executions to return per call.
169
- # Max supported value depends on the selected Execution view: it's 10000 for
256
+ # Max supported value depends on the selected Execution view: it's 1000 for
170
257
  # BASIC and 100 for FULL. The default value used if the field is not
171
258
  # specified is 100, regardless of the selected view. Values greater than
172
259
  # the max value will be coerced down to it.
@@ -177,10 +264,25 @@ module Google
177
264
  #
178
265
  # When paginating, all other parameters provided to `ListExecutions` must
179
266
  # match the call that provided the page token.
267
+ #
268
+ # Note that pagination is applied to dynamic data. The list of executions
269
+ # returned can change between page requests.
180
270
  # @!attribute [rw] view
181
271
  # @return [::Google::Cloud::Workflows::Executions::V1::ExecutionView]
182
- # Optional. A view defining which fields should be filled in the returned executions.
183
- # The API will default to the BASIC view.
272
+ # Optional. A view defining which fields should be filled in the returned
273
+ # executions. The API will default to the BASIC view.
274
+ # @!attribute [rw] filter
275
+ # @return [::String]
276
+ # Optional. Filters applied to the [Executions.ListExecutions] results.
277
+ # The following fields are supported for filtering:
278
+ # executionID, state, startTime, endTime, duration, workflowRevisionID,
279
+ # stepName, and label.
280
+ # @!attribute [rw] order_by
281
+ # @return [::String]
282
+ # Optional. The ordering applied to the [Executions.ListExecutions] results.
283
+ # By default the ordering is based on descending start time.
284
+ # The following fields are supported for order by:
285
+ # executionID, startTime, endTime, duration, state, and workflowRevisionID.
184
286
  class ListExecutionsRequest
185
287
  include ::Google::Protobuf::MessageExts
186
288
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -227,8 +329,8 @@ module Google
227
329
  # projects/\\{project}/locations/\\{location}/workflows/\\{workflow}/executions/\\{execution}
228
330
  # @!attribute [rw] view
229
331
  # @return [::Google::Cloud::Workflows::Executions::V1::ExecutionView]
230
- # Optional. A view defining which fields should be filled in the returned execution.
231
- # The API will default to the FULL view.
332
+ # Optional. A view defining which fields should be filled in the returned
333
+ # execution. The API will default to the FULL view.
232
334
  class GetExecutionRequest
233
335
  include ::Google::Protobuf::MessageExts
234
336
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -253,8 +355,8 @@ module Google
253
355
  EXECUTION_VIEW_UNSPECIFIED = 0
254
356
 
255
357
  # Includes only basic metadata about the execution.
256
- # Following fields are returned: name, start_time, end_time, state
257
- # and workflow_revision_id.
358
+ # The following fields are returned: name, start_time, end_time, duration,
359
+ # state, and workflow_revision_id.
258
360
  BASIC = 1
259
361
 
260
362
  # Includes all data.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-workflows-executions-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -178,8 +178,12 @@ files:
178
178
  - lib/google/cloud/workflows/executions/v1/executions/client.rb
179
179
  - lib/google/cloud/workflows/executions/v1/executions/credentials.rb
180
180
  - lib/google/cloud/workflows/executions/v1/executions/paths.rb
181
+ - lib/google/cloud/workflows/executions/v1/executions/rest.rb
182
+ - lib/google/cloud/workflows/executions/v1/executions/rest/client.rb
183
+ - lib/google/cloud/workflows/executions/v1/executions/rest/service_stub.rb
181
184
  - lib/google/cloud/workflows/executions/v1/executions_pb.rb
182
185
  - lib/google/cloud/workflows/executions/v1/executions_services_pb.rb
186
+ - lib/google/cloud/workflows/executions/v1/rest.rb
183
187
  - lib/google/cloud/workflows/executions/v1/version.rb
184
188
  - proto_docs/README.md
185
189
  - proto_docs/google/api/client.rb
@@ -208,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
212
  - !ruby/object:Gem::Version
209
213
  version: '0'
210
214
  requirements: []
211
- rubygems_version: 3.4.2
215
+ rubygems_version: 3.4.19
212
216
  signing_key:
213
217
  specification_version: 4
214
218
  summary: Execute workflows created with Workflows API.