google-cloud-workflows-executions-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/workflows/executions/v1/executions/client.rb +86 -12
- data/lib/google/cloud/workflows/executions/v1/executions_pb.rb +25 -0
- data/lib/google/cloud/workflows/executions/v1/version.rb +1 -1
- data/lib/google/cloud/workflows/executions/v1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/workflows/executions/v1/executions.rb +69 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2b35fc35e5931352931edacd2596f8c34bb703d09c722bdf5b6b93907c07636
|
4
|
+
data.tar.gz: ab4b38d1749cf991e4e0eba324fcd905edb62cb2bb92c0581d99ca596e050be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d8f30589e9ef28cfc57c8697453a77ae700e799e4a7b6a4d3503ae17d6bdc09cf757d42a38602862220a17d39d21c854861f61da8f0e67478a8342fd423181
|
7
|
+
data.tar.gz: 46a25248c3421c9a7526e87575257b87c5741f2ee2ecfdc95fa4dc31dad94afd58a1b0bdb4268df973af65b8a83039f6f38b567052276ac008e9816daadfa011
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Workflows::Executions::V1::ListExecutionsRequest.new
|
|
37
37
|
response = client.list_executions request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-executions-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/workflows/)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -194,6 +194,27 @@ module Google
|
|
194
194
|
#
|
195
195
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
196
196
|
#
|
197
|
+
# @example Basic example
|
198
|
+
# require "google/cloud/workflows/executions/v1"
|
199
|
+
#
|
200
|
+
# # Create a client object. The client can be reused for multiple calls.
|
201
|
+
# client = Google::Cloud::Workflows::Executions::V1::Executions::Client.new
|
202
|
+
#
|
203
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
204
|
+
# request = Google::Cloud::Workflows::Executions::V1::ListExecutionsRequest.new
|
205
|
+
#
|
206
|
+
# # Call the list_executions method.
|
207
|
+
# result = client.list_executions request
|
208
|
+
#
|
209
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
210
|
+
# # iterate over all elements by calling #each, and the enumerable
|
211
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
212
|
+
# # methods are also available for managing paging directly.
|
213
|
+
# result.each do |response|
|
214
|
+
# # Each element is of type ::Google::Cloud::Workflows::Executions::V1::Execution.
|
215
|
+
# p response
|
216
|
+
# end
|
217
|
+
#
|
197
218
|
def list_executions request, options = nil
|
198
219
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
199
220
|
|
@@ -211,9 +232,11 @@ module Google
|
|
211
232
|
gapic_version: ::Google::Cloud::Workflows::Executions::V1::VERSION
|
212
233
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
213
234
|
|
214
|
-
header_params = {
|
215
|
-
|
216
|
-
|
235
|
+
header_params = {}
|
236
|
+
if request.parent
|
237
|
+
header_params["parent"] = request.parent
|
238
|
+
end
|
239
|
+
|
217
240
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
218
241
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
219
242
|
|
@@ -267,6 +290,21 @@ module Google
|
|
267
290
|
#
|
268
291
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
269
292
|
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/workflows/executions/v1"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Workflows::Executions::V1::Executions::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Workflows::Executions::V1::CreateExecutionRequest.new
|
301
|
+
#
|
302
|
+
# # Call the create_execution method.
|
303
|
+
# result = client.create_execution request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Workflows::Executions::V1::Execution.
|
306
|
+
# p result
|
307
|
+
#
|
270
308
|
def create_execution request, options = nil
|
271
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
310
|
|
@@ -284,9 +322,11 @@ module Google
|
|
284
322
|
gapic_version: ::Google::Cloud::Workflows::Executions::V1::VERSION
|
285
323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
286
324
|
|
287
|
-
header_params = {
|
288
|
-
|
289
|
-
|
325
|
+
header_params = {}
|
326
|
+
if request.parent
|
327
|
+
header_params["parent"] = request.parent
|
328
|
+
end
|
329
|
+
|
290
330
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
291
331
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
292
332
|
|
@@ -340,6 +380,21 @@ module Google
|
|
340
380
|
#
|
341
381
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
342
382
|
#
|
383
|
+
# @example Basic example
|
384
|
+
# require "google/cloud/workflows/executions/v1"
|
385
|
+
#
|
386
|
+
# # Create a client object. The client can be reused for multiple calls.
|
387
|
+
# client = Google::Cloud::Workflows::Executions::V1::Executions::Client.new
|
388
|
+
#
|
389
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
390
|
+
# request = Google::Cloud::Workflows::Executions::V1::GetExecutionRequest.new
|
391
|
+
#
|
392
|
+
# # Call the get_execution method.
|
393
|
+
# result = client.get_execution request
|
394
|
+
#
|
395
|
+
# # The returned object is of type Google::Cloud::Workflows::Executions::V1::Execution.
|
396
|
+
# p result
|
397
|
+
#
|
343
398
|
def get_execution request, options = nil
|
344
399
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
345
400
|
|
@@ -357,9 +412,11 @@ module Google
|
|
357
412
|
gapic_version: ::Google::Cloud::Workflows::Executions::V1::VERSION
|
358
413
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
359
414
|
|
360
|
-
header_params = {
|
361
|
-
|
362
|
-
|
415
|
+
header_params = {}
|
416
|
+
if request.name
|
417
|
+
header_params["name"] = request.name
|
418
|
+
end
|
419
|
+
|
363
420
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
364
421
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
365
422
|
|
@@ -410,6 +467,21 @@ module Google
|
|
410
467
|
#
|
411
468
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
412
469
|
#
|
470
|
+
# @example Basic example
|
471
|
+
# require "google/cloud/workflows/executions/v1"
|
472
|
+
#
|
473
|
+
# # Create a client object. The client can be reused for multiple calls.
|
474
|
+
# client = Google::Cloud::Workflows::Executions::V1::Executions::Client.new
|
475
|
+
#
|
476
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
477
|
+
# request = Google::Cloud::Workflows::Executions::V1::CancelExecutionRequest.new
|
478
|
+
#
|
479
|
+
# # Call the cancel_execution method.
|
480
|
+
# result = client.cancel_execution request
|
481
|
+
#
|
482
|
+
# # The returned object is of type Google::Cloud::Workflows::Executions::V1::Execution.
|
483
|
+
# p result
|
484
|
+
#
|
413
485
|
def cancel_execution request, options = nil
|
414
486
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
415
487
|
|
@@ -427,9 +499,11 @@ module Google
|
|
427
499
|
gapic_version: ::Google::Cloud::Workflows::Executions::V1::VERSION
|
428
500
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
429
501
|
|
430
|
-
header_params = {
|
431
|
-
|
432
|
-
|
502
|
+
header_params = {}
|
503
|
+
if request.name
|
504
|
+
header_params["name"] = request.name
|
505
|
+
end
|
506
|
+
|
433
507
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
434
508
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
435
509
|
|
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/workflows/executions/v1/executions.proto", :syntax => :proto3) do
|
13
14
|
add_message "google.cloud.workflows.executions.v1.Execution" do
|
@@ -19,10 +20,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
20
|
optional :result, :string, 6
|
20
21
|
optional :error, :message, 7, "google.cloud.workflows.executions.v1.Execution.Error"
|
21
22
|
optional :workflow_revision_id, :string, 8
|
23
|
+
optional :call_log_level, :enum, 9, "google.cloud.workflows.executions.v1.Execution.CallLogLevel"
|
24
|
+
end
|
25
|
+
add_message "google.cloud.workflows.executions.v1.Execution.StackTraceElement" do
|
26
|
+
optional :step, :string, 1
|
27
|
+
optional :routine, :string, 2
|
28
|
+
optional :position, :message, 3, "google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position"
|
29
|
+
end
|
30
|
+
add_message "google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position" do
|
31
|
+
optional :line, :int64, 1
|
32
|
+
optional :column, :int64, 2
|
33
|
+
optional :length, :int64, 3
|
34
|
+
end
|
35
|
+
add_message "google.cloud.workflows.executions.v1.Execution.StackTrace" do
|
36
|
+
repeated :elements, :message, 1, "google.cloud.workflows.executions.v1.Execution.StackTraceElement"
|
22
37
|
end
|
23
38
|
add_message "google.cloud.workflows.executions.v1.Execution.Error" do
|
24
39
|
optional :payload, :string, 1
|
25
40
|
optional :context, :string, 2
|
41
|
+
optional :stack_trace, :message, 3, "google.cloud.workflows.executions.v1.Execution.StackTrace"
|
26
42
|
end
|
27
43
|
add_enum "google.cloud.workflows.executions.v1.Execution.State" do
|
28
44
|
value :STATE_UNSPECIFIED, 0
|
@@ -31,6 +47,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
47
|
value :FAILED, 3
|
32
48
|
value :CANCELLED, 4
|
33
49
|
end
|
50
|
+
add_enum "google.cloud.workflows.executions.v1.Execution.CallLogLevel" do
|
51
|
+
value :CALL_LOG_LEVEL_UNSPECIFIED, 0
|
52
|
+
value :LOG_ALL_CALLS, 1
|
53
|
+
value :LOG_ERRORS_ONLY, 2
|
54
|
+
end
|
34
55
|
add_message "google.cloud.workflows.executions.v1.ListExecutionsRequest" do
|
35
56
|
optional :parent, :string, 1
|
36
57
|
optional :page_size, :int32, 2
|
@@ -66,8 +87,12 @@ module Google
|
|
66
87
|
module Executions
|
67
88
|
module V1
|
68
89
|
Execution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution").msgclass
|
90
|
+
Execution::StackTraceElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.StackTraceElement").msgclass
|
91
|
+
Execution::StackTraceElement::Position = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position").msgclass
|
92
|
+
Execution::StackTrace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.StackTrace").msgclass
|
69
93
|
Execution::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.Error").msgclass
|
70
94
|
Execution::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.State").enummodule
|
95
|
+
Execution::CallLogLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.Execution.CallLogLevel").enummodule
|
71
96
|
ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.ListExecutionsRequest").msgclass
|
72
97
|
ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.ListExecutionsResponse").msgclass
|
73
98
|
CreateExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.executions.v1.CreateExecutionRequest").msgclass
|
@@ -26,6 +26,8 @@ module Google
|
|
26
26
|
##
|
27
27
|
# To load this package, including all its services, and instantiate a client:
|
28
28
|
#
|
29
|
+
# @example
|
30
|
+
#
|
29
31
|
# require "google/cloud/workflows/executions/v1"
|
30
32
|
# client = ::Google::Cloud::Workflows::Executions::V1::Executions::Client.new
|
31
33
|
#
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -42,6 +42,10 @@ module Google
|
|
42
42
|
# @return [::String]
|
43
43
|
# Input parameters of the execution represented as a JSON string.
|
44
44
|
# The size limit is 32KB.
|
45
|
+
#
|
46
|
+
# *Note*: If you are using the REST API directly to run your workflow, you
|
47
|
+
# must escape any JSON string value of `argument`. Example:
|
48
|
+
# `'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'`
|
45
49
|
# @!attribute [r] result
|
46
50
|
# @return [::String]
|
47
51
|
# Output only. Output of the execution represented as a JSON string. The
|
@@ -54,23 +58,71 @@ module Google
|
|
54
58
|
# @!attribute [r] workflow_revision_id
|
55
59
|
# @return [::String]
|
56
60
|
# Output only. Revision of the workflow this execution is using.
|
61
|
+
# @!attribute [rw] call_log_level
|
62
|
+
# @return [::Google::Cloud::Workflows::Executions::V1::Execution::CallLogLevel]
|
63
|
+
# The call logging level associated to this execution.
|
57
64
|
class Execution
|
58
65
|
include ::Google::Protobuf::MessageExts
|
59
66
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
60
67
|
|
68
|
+
# A single stack element (frame) where an error occurred.
|
69
|
+
# @!attribute [rw] step
|
70
|
+
# @return [::String]
|
71
|
+
# The step the error occurred at.
|
72
|
+
# @!attribute [rw] routine
|
73
|
+
# @return [::String]
|
74
|
+
# The routine where the error occurred.
|
75
|
+
# @!attribute [rw] position
|
76
|
+
# @return [::Google::Cloud::Workflows::Executions::V1::Execution::StackTraceElement::Position]
|
77
|
+
# The source position information of the stack trace element.
|
78
|
+
class StackTraceElement
|
79
|
+
include ::Google::Protobuf::MessageExts
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
|
+
|
82
|
+
# Position contains source position information about the stack trace
|
83
|
+
# element such as line number, column number and length of the code block
|
84
|
+
# in bytes.
|
85
|
+
# @!attribute [rw] line
|
86
|
+
# @return [::Integer]
|
87
|
+
# The source code line number the current instruction was generated from.
|
88
|
+
# @!attribute [rw] column
|
89
|
+
# @return [::Integer]
|
90
|
+
# The source code column position (of the line) the current instruction
|
91
|
+
# was generated from.
|
92
|
+
# @!attribute [rw] length
|
93
|
+
# @return [::Integer]
|
94
|
+
# The number of bytes of source code making up this stack trace element.
|
95
|
+
class Position
|
96
|
+
include ::Google::Protobuf::MessageExts
|
97
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# A collection of stack elements (frames) where an error occurred.
|
102
|
+
# @!attribute [rw] elements
|
103
|
+
# @return [::Array<::Google::Cloud::Workflows::Executions::V1::Execution::StackTraceElement>]
|
104
|
+
# An array of stack elements.
|
105
|
+
class StackTrace
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
end
|
109
|
+
|
61
110
|
# Error describes why the execution was abnormally terminated.
|
62
111
|
# @!attribute [rw] payload
|
63
112
|
# @return [::String]
|
64
|
-
# Error
|
113
|
+
# Error message and data returned represented as a JSON string.
|
65
114
|
# @!attribute [rw] context
|
66
115
|
# @return [::String]
|
67
|
-
# Human
|
116
|
+
# Human-readable stack trace string.
|
117
|
+
# @!attribute [rw] stack_trace
|
118
|
+
# @return [::Google::Cloud::Workflows::Executions::V1::Execution::StackTrace]
|
119
|
+
# Stack trace with detailed information of where error was generated.
|
68
120
|
class Error
|
69
121
|
include ::Google::Protobuf::MessageExts
|
70
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
71
123
|
end
|
72
124
|
|
73
|
-
# Describes the current state of the execution. More states
|
125
|
+
# Describes the current state of the execution. More states might be added
|
74
126
|
# in the future.
|
75
127
|
module State
|
76
128
|
# Invalid state.
|
@@ -88,6 +140,20 @@ module Google
|
|
88
140
|
# The execution was stopped intentionally.
|
89
141
|
CANCELLED = 4
|
90
142
|
end
|
143
|
+
|
144
|
+
# Describes the level of platform logging to apply to calls and call
|
145
|
+
# responses during workflow executions.
|
146
|
+
module CallLogLevel
|
147
|
+
# No call logging specified.
|
148
|
+
CALL_LOG_LEVEL_UNSPECIFIED = 0
|
149
|
+
|
150
|
+
# Log all call steps within workflows, all call returns, and all exceptions
|
151
|
+
# raised.
|
152
|
+
LOG_ALL_CALLS = 1
|
153
|
+
|
154
|
+
# Log only exceptions that are raised from call steps within workflows.
|
155
|
+
LOG_ERRORS_ONLY = 2
|
156
|
+
end
|
91
157
|
end
|
92
158
|
|
93
159
|
# Request for the
|
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.
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +198,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '2.
|
201
|
+
version: '2.6'
|
202
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
204
|
- - ">="
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.3.14
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: API Client library for the Workflows Executions V1 API
|