google-cloud-workflows 2.0.2 → 2.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 +8 -26
- data/README.md +8 -8
- data/lib/google/cloud/workflows/executions.rb +5 -5
- data/lib/google/cloud/workflows/version.rb +1 -1
- metadata +31 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b1783235cb724123a67baec1efdb5550bb7c0fd437794ce264edf428b74cbf4
|
4
|
+
data.tar.gz: fa710306c29a34b29b2854c8b8afcc6fb1af6c16e86bfcc40ec3c8d5f8d8bc35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efe71805f518db10ef94bb834cc5ef1aa9626f532c1c93d901e2fefed6bbea43d004932a9c521f9dd7717f37f906e616ccd259a865b113e444453ef1bb69f15
|
7
|
+
data.tar.gz: 688c8ed997f70d7be2c0c411b240caea30e4e94c73fb6dd5014d5801bc03d924af5a0a387f48c194aa0872a10ad752b0d9ebba1fb80af9ac33c2ac67b2ec5b37
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-workflows
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
`::Google::Cloud::Workflows::
|
67
|
+
`::Google::Cloud::Workflows::V1::Workflows::Credentials`):
|
68
68
|
|
69
69
|
* `WORKFLOWS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `WORKFLOWS_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -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
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
API Client library for the Workflows API
|
4
4
|
|
5
|
-
Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero
|
5
|
+
Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero.
|
6
6
|
|
7
7
|
Actual client classes for the various versions of this API are defined in
|
8
8
|
_versioned_ client gems, with names of the form `google-cloud-workflows-v*`.
|
@@ -11,7 +11,7 @@ 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
|
@@ -19,7 +19,7 @@ client gems:
|
|
19
19
|
[google-cloud-workflows-v1](https://googleapis.dev/ruby/google-cloud-workflows-v1/latest),
|
20
20
|
[google-cloud-workflows-v1beta](https://googleapis.dev/ruby/google-cloud-workflows-v1beta/latest).
|
21
21
|
|
22
|
-
See also the [Product Documentation](https://cloud.google.com/workflows)
|
22
|
+
See also the [Product Documentation](https://cloud.google.com/workflows/)
|
23
23
|
for more usage information.
|
24
24
|
|
25
25
|
## Quick Start
|
@@ -63,14 +63,14 @@ end
|
|
63
63
|
|
64
64
|
## Supported Ruby Versions
|
65
65
|
|
66
|
-
This library is supported on Ruby 2.
|
66
|
+
This library is supported on Ruby 2.6+.
|
67
67
|
|
68
68
|
Google provides official support for Ruby versions that are actively supported
|
69
69
|
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
|
-
|
70
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
71
|
+
still work, but are unsupported and not recommended. See
|
72
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
73
|
+
support schedule.
|
74
74
|
|
75
75
|
## Which client should I use?
|
76
76
|
|
@@ -49,8 +49,8 @@ module Google
|
|
49
49
|
# Create a new client object for Executions.
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
|
-
# [Google::Cloud::Workflows::Executions::
|
53
|
-
# for version
|
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
54
|
# However, you can specify 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
|
@@ -59,13 +59,13 @@ module Google
|
|
59
59
|
# ## About Executions
|
60
60
|
#
|
61
61
|
# Executions is used to start and manage running instances of
|
62
|
-
# [Workflows][google.cloud.workflows.
|
62
|
+
# [Workflows][google.cloud.workflows.v1.Workflow] called executions.
|
63
63
|
#
|
64
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
|
-
# Defaults to `:
|
65
|
+
# Defaults to `:v1`.
|
66
66
|
# @return [Executions::Client] A client object for the specified version.
|
67
67
|
#
|
68
|
-
def self.executions version: :
|
68
|
+
def self.executions version: :v1, &block
|
69
69
|
require "google/cloud/workflows/executions/#{version.to_s.downcase}"
|
70
70
|
|
71
71
|
package_name = Google::Cloud::Workflows::Executions
|
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.0
|
4
|
+
version: 2.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: google-cloud-core
|
@@ -64,6 +64,26 @@ dependencies:
|
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-cloud-workflows-executions-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.0'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
67
87
|
- !ruby/object:Gem::Dependency
|
68
88
|
name: google-cloud-workflows-executions-v1beta
|
69
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,28 +110,28 @@ dependencies:
|
|
90
110
|
requirements:
|
91
111
|
- - "~>"
|
92
112
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.
|
113
|
+
version: 1.26.1
|
94
114
|
type: :development
|
95
115
|
prerelease: false
|
96
116
|
version_requirements: !ruby/object:Gem::Requirement
|
97
117
|
requirements:
|
98
118
|
- - "~>"
|
99
119
|
- !ruby/object:Gem::Version
|
100
|
-
version: 1.
|
120
|
+
version: 1.26.1
|
101
121
|
- !ruby/object:Gem::Dependency
|
102
122
|
name: minitest
|
103
123
|
requirement: !ruby/object:Gem::Requirement
|
104
124
|
requirements:
|
105
125
|
- - "~>"
|
106
126
|
- !ruby/object:Gem::Version
|
107
|
-
version: '5.
|
127
|
+
version: '5.16'
|
108
128
|
type: :development
|
109
129
|
prerelease: false
|
110
130
|
version_requirements: !ruby/object:Gem::Requirement
|
111
131
|
requirements:
|
112
132
|
- - "~>"
|
113
133
|
- !ruby/object:Gem::Version
|
114
|
-
version: '5.
|
134
|
+
version: '5.16'
|
115
135
|
- !ruby/object:Gem::Dependency
|
116
136
|
name: minitest-focus
|
117
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +166,14 @@ dependencies:
|
|
146
166
|
requirements:
|
147
167
|
- - ">="
|
148
168
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
169
|
+
version: '13.0'
|
150
170
|
type: :development
|
151
171
|
prerelease: false
|
152
172
|
version_requirements: !ruby/object:Gem::Requirement
|
153
173
|
requirements:
|
154
174
|
- - ">="
|
155
175
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
176
|
+
version: '13.0'
|
157
177
|
- !ruby/object:Gem::Dependency
|
158
178
|
name: redcarpet
|
159
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,7 +220,7 @@ description: Workflows link series of serverless tasks together in an order you
|
|
200
220
|
Combine the power of Google Cloud's APIs, serverless products like Cloud Functions
|
201
221
|
and Cloud Run, and calls to external APIs to create flexible serverless applications.
|
202
222
|
Workflows requires no infrastructure management and scales seamlessly with demand,
|
203
|
-
including scaling down to zero
|
223
|
+
including scaling down to zero.
|
204
224
|
email: googleapis-packages@google.com
|
205
225
|
executables: []
|
206
226
|
extensions: []
|
@@ -227,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
247
|
requirements:
|
228
248
|
- - ">="
|
229
249
|
- !ruby/object:Gem::Version
|
230
|
-
version: '2.
|
250
|
+
version: '2.6'
|
231
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
252
|
requirements:
|
233
253
|
- - ">="
|
234
254
|
- !ruby/object:Gem::Version
|
235
255
|
version: '0'
|
236
256
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
257
|
+
rubygems_version: 3.3.14
|
238
258
|
signing_key:
|
239
259
|
specification_version: 4
|
240
260
|
summary: API Client library for the Workflows API
|