google-cloud-workflows 2.1.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +9 -33
- data/lib/google/cloud/workflows/executions/version.rb +1 -1
- data/lib/google/cloud/workflows/executions.rb +6 -6
- data/lib/google/cloud/workflows/version.rb +1 -1
- data/lib/google/cloud/workflows.rb +11 -7
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d9d0c03c1fcead8341f60de521dce6859bc99ed5169d11499a5d3a0e37a1635
|
4
|
+
data.tar.gz: 2ccc1dd2be96641b88e52011fde6c8778b5cab7e2dd5eaab3030f4959b356ce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97c7e77aec0190d2587e4348783fba45581e9276f2bd4053b2a9a7f4039c6c79845bb70b857e760ae09c87ef141ead4c62f736217ce9d4a4eb6da4b1aa9306a
|
7
|
+
data.tar.gz: 8de7101b4a81147c2bdd50cff56963ec231c69d0439c8b31aa3a8b9bf91d41cd55c2c3ccb6022329710359a70578593e1f816de887a1857deb7c6a4c3ae11ffe
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -11,13 +11,15 @@ verisoned gems in as dependencies, and provides high-level methods for
|
|
11
11
|
constructing clients. More information on versioned clients can be found below
|
12
12
|
in the section titled *Which client should I use?*.
|
13
13
|
|
14
|
-
View the [Client Library Documentation](https://
|
14
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows/latest)
|
15
15
|
for this library, google-cloud-workflows, to see the convenience methods for
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
19
|
[google-cloud-workflows-v1](https://googleapis.dev/ruby/google-cloud-workflows-v1/latest),
|
20
|
-
[google-cloud-workflows-v1beta](https://googleapis.dev/ruby/google-cloud-workflows-v1beta/latest)
|
20
|
+
[google-cloud-workflows-v1beta](https://googleapis.dev/ruby/google-cloud-workflows-v1beta/latest),
|
21
|
+
[google-cloud-workflows-executions-v1](https://googleapis.dev/ruby/google-cloud-workflows-executions-v1/latest),
|
22
|
+
[google-cloud-workflows-executions-v1beta](https://googleapis.dev/ruby/google-cloud-workflows-executions-v1beta/latest).
|
21
23
|
|
22
24
|
See also the [Product Documentation](https://cloud.google.com/workflows/)
|
23
25
|
for more usage information.
|
@@ -35,42 +37,16 @@ In order to use this library, you first need to go through the following steps:
|
|
35
37
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/workflows.googleapis.com)
|
36
38
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
37
39
|
|
38
|
-
## Enabling Logging
|
39
|
-
|
40
|
-
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
41
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
42
|
-
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
43
|
-
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
44
|
-
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
45
|
-
|
46
|
-
Configuring a Ruby stdlib logger:
|
47
|
-
|
48
|
-
```ruby
|
49
|
-
require "logger"
|
50
|
-
|
51
|
-
module MyLogger
|
52
|
-
LOGGER = Logger.new $stderr, level: Logger::WARN
|
53
|
-
def logger
|
54
|
-
LOGGER
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
59
|
-
module GRPC
|
60
|
-
extend MyLogger
|
61
|
-
end
|
62
|
-
```
|
63
|
-
|
64
40
|
## Supported Ruby Versions
|
65
41
|
|
66
|
-
This library is supported on Ruby 2.
|
42
|
+
This library is supported on Ruby 2.6+.
|
67
43
|
|
68
44
|
Google provides official support for Ruby versions that are actively supported
|
69
45
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
70
|
-
in security maintenance, and not end of life.
|
71
|
-
|
72
|
-
|
73
|
-
|
46
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
47
|
+
still work, but are unsupported and not recommended. See
|
48
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
49
|
+
support schedule.
|
74
50
|
|
75
51
|
## Which client should I use?
|
76
52
|
|
@@ -50,8 +50,8 @@ module Google
|
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
52
|
# [Google::Cloud::Workflows::Executions::V1::Executions::Client](https://googleapis.dev/ruby/google-cloud-workflows-executions-v1/latest/Google/Cloud/Workflows/Executions/V1/Executions/Client.html)
|
53
|
-
# for version V1 of the API.
|
54
|
-
# However, you can specify
|
53
|
+
# for a gRPC client for version V1 of the API.
|
54
|
+
# However, you can specify a different API version by passing it in the
|
55
55
|
# `version` parameter. If the Executions service is
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
@@ -63,7 +63,7 @@ module Google
|
|
63
63
|
#
|
64
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
65
|
# Defaults to `:v1`.
|
66
|
-
# @return [
|
66
|
+
# @return [::Object] A client object for the specified version.
|
67
67
|
#
|
68
68
|
def self.executions version: :v1, &block
|
69
69
|
require "google/cloud/workflows/executions/#{version.to_s.downcase}"
|
@@ -72,8 +72,8 @@ module Google
|
|
72
72
|
.constants
|
73
73
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
74
|
.first
|
75
|
-
|
76
|
-
|
75
|
+
service_module = Google::Cloud::Workflows::Executions.const_get(package_name).const_get(:Executions)
|
76
|
+
service_module.const_get(:Client).new(&block)
|
77
77
|
end
|
78
78
|
|
79
79
|
##
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
# * `timeout` (*type:* `Numeric`) -
|
94
94
|
# Default timeout in seconds.
|
95
95
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
96
|
-
# Additional
|
96
|
+
# Additional headers to be sent with the call.
|
97
97
|
# * `retry_policy` (*type:* `Hash`) -
|
98
98
|
# The retry policy. The value is a hash with the following keys:
|
99
99
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -49,11 +49,13 @@ module Google
|
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
51
|
# [Google::Cloud::Workflows::V1::Workflows::Client](https://googleapis.dev/ruby/google-cloud-workflows-v1/latest/Google/Cloud/Workflows/V1/Workflows/Client.html)
|
52
|
-
# for version V1 of the API.
|
53
|
-
# However, you can specify
|
52
|
+
# for a gRPC client for version V1 of the API.
|
53
|
+
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the Workflows service is
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
56
56
|
# appropriate versioned client will be returned.
|
57
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
58
|
+
# the `transport` parameter.
|
57
59
|
#
|
58
60
|
# ## About Workflows
|
59
61
|
#
|
@@ -63,17 +65,19 @@ module Google
|
|
63
65
|
#
|
64
66
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
67
|
# Defaults to `:v1`.
|
66
|
-
# @
|
68
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
69
|
+
# @return [::Object] A client object for the specified version.
|
67
70
|
#
|
68
|
-
def self.workflows version: :v1, &block
|
71
|
+
def self.workflows version: :v1, transport: :grpc, &block
|
69
72
|
require "google/cloud/workflows/#{version.to_s.downcase}"
|
70
73
|
|
71
74
|
package_name = Google::Cloud::Workflows
|
72
75
|
.constants
|
73
76
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
77
|
.first
|
75
|
-
|
76
|
-
|
78
|
+
service_module = Google::Cloud::Workflows.const_get(package_name).const_get(:Workflows)
|
79
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
80
|
+
service_module.const_get(:Client).new(&block)
|
77
81
|
end
|
78
82
|
|
79
83
|
##
|
@@ -93,7 +97,7 @@ module Google
|
|
93
97
|
# * `timeout` (*type:* `Numeric`) -
|
94
98
|
# Default timeout in seconds.
|
95
99
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
96
|
-
# Additional
|
100
|
+
# Additional headers to be sent with the call.
|
97
101
|
# * `retry_policy` (*type:* `Hash`) -
|
98
102
|
# The retry policy. The value is a hash with the following keys:
|
99
103
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-workflows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.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: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.3'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.3'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.5'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.5'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -110,28 +110,28 @@ dependencies:
|
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: 1.
|
113
|
+
version: 1.26.1
|
114
114
|
type: :development
|
115
115
|
prerelease: false
|
116
116
|
version_requirements: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 1.
|
120
|
+
version: 1.26.1
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: minitest
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - "~>"
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: '5.
|
127
|
+
version: '5.16'
|
128
128
|
type: :development
|
129
129
|
prerelease: false
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - "~>"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '5.
|
134
|
+
version: '5.16'
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: minitest-focus
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,14 +166,14 @@ dependencies:
|
|
166
166
|
requirements:
|
167
167
|
- - ">="
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
version: '
|
169
|
+
version: '13.0'
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
172
|
version_requirements: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
174
|
- - ">="
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '
|
176
|
+
version: '13.0'
|
177
177
|
- !ruby/object:Gem::Dependency
|
178
178
|
name: redcarpet
|
179
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
247
|
requirements:
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: '2.
|
250
|
+
version: '2.6'
|
251
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
252
|
requirements:
|
253
253
|
- - ">="
|
254
254
|
- !ruby/object:Gem::Version
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
|
-
rubygems_version: 3.
|
257
|
+
rubygems_version: 3.4.2
|
258
258
|
signing_key:
|
259
259
|
specification_version: 4
|
260
260
|
summary: API Client library for the Workflows API
|