google-cloud-workflows 3.2.0 → 3.3.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.
- checksums.yaml +4 -4
- data/README.md +5 -11
- data/lib/google/cloud/workflows/executions/version.rb +1 -1
- data/lib/google/cloud/workflows/executions.rb +13 -4
- data/lib/google/cloud/workflows/version.rb +1 -1
- data/lib/google/cloud/workflows.rb +1 -1
- data/lib/google-cloud-workflows.rb +1 -1
- metadata +5 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c1a0dce5dee7d8d72fb64bce2c863fa80a0a76617cb62de890e8e70e7f33b8a
|
|
4
|
+
data.tar.gz: c0deb366f9d9b9ca94ac3392eeb626c5f2983559e8a36e6781d45ef209e9c032
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c84fd5164e0733f339747ec5e6f0efc2d78c5fbe97408e7471c810078cadecdb833bce74a638ca93deadb49159bd4243814a23cd90a5d4e9ab86ddd2cffddfa
|
|
7
|
+
data.tar.gz: 10bdd26ea130871eccff27ac0a75cf5cebca9924175a48e622e8e084fd412e13f75a0fb9d766299b5053a5cf694573ce1aeca49aed0963a9a0f7b33c2d8fc245
|
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Ruby Client for the Workflows API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Manage workflow definitions. To execute workflows and manage executions, see the Workflows Executions 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.
|
|
6
5
|
|
|
7
6
|
Actual client classes for the various versions of this API are defined in
|
|
8
7
|
_versioned_ client gems, with names of the form `google-cloud-workflows-v*`.
|
|
@@ -19,9 +18,6 @@ client gems:
|
|
|
19
18
|
[google-cloud-workflows-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest),
|
|
20
19
|
[google-cloud-workflows-executions-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-executions-v1/latest).
|
|
21
20
|
|
|
22
|
-
See also the [Product Documentation](https://cloud.google.com/workflows/)
|
|
23
|
-
for more usage information.
|
|
24
|
-
|
|
25
21
|
## Quick Start
|
|
26
22
|
|
|
27
23
|
```
|
|
@@ -78,12 +74,10 @@ working, try updating the versioned clients in your bundle or installed gems:
|
|
|
78
74
|
|
|
79
75
|
This library is supported on Ruby 3.2+.
|
|
80
76
|
|
|
81
|
-
Google provides official support for Ruby versions
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
86
|
-
support schedule.
|
|
77
|
+
Google provides official support for Ruby versions as described in the
|
|
78
|
+
[Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
|
|
79
|
+
policy. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
80
|
+
recommended.
|
|
87
81
|
|
|
88
82
|
## Which client should I use?
|
|
89
83
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -56,9 +56,11 @@ module Google
|
|
|
56
56
|
# `version` parameter. If the Executions service is
|
|
57
57
|
# supported by that API version, and the corresponding gem is available, the
|
|
58
58
|
# appropriate versioned client will be returned.
|
|
59
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
60
|
+
# the `transport` parameter.
|
|
59
61
|
#
|
|
60
62
|
# Raises an exception if the currently installed versioned client gem for the
|
|
61
|
-
# given API version does not support the Executions service.
|
|
63
|
+
# given API version does not support the given transport of the Executions service.
|
|
62
64
|
# You can determine whether the method will succeed by calling
|
|
63
65
|
# {Google::Cloud::Workflows::Executions.executions_available?}.
|
|
64
66
|
#
|
|
@@ -69,9 +71,10 @@ module Google
|
|
|
69
71
|
#
|
|
70
72
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
71
73
|
# Defaults to `:v1`.
|
|
74
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
72
75
|
# @return [::Object] A client object for the specified version.
|
|
73
76
|
#
|
|
74
|
-
def self.executions version: :v1, &block
|
|
77
|
+
def self.executions version: :v1, transport: :grpc, &block
|
|
75
78
|
require "google/cloud/workflows/executions/#{version.to_s.downcase}"
|
|
76
79
|
|
|
77
80
|
package_name = Google::Cloud::Workflows::Executions
|
|
@@ -79,6 +82,7 @@ module Google
|
|
|
79
82
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
80
83
|
.first
|
|
81
84
|
service_module = Google::Cloud::Workflows::Executions.const_get(package_name).const_get(:Executions)
|
|
85
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
82
86
|
service_module.const_get(:Client).new(&block)
|
|
83
87
|
end
|
|
84
88
|
|
|
@@ -91,9 +95,10 @@ module Google
|
|
|
91
95
|
#
|
|
92
96
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
93
97
|
# Defaults to `:v1`.
|
|
98
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
94
99
|
# @return [boolean] Whether the service is available.
|
|
95
100
|
#
|
|
96
|
-
def self.executions_available? version: :v1
|
|
101
|
+
def self.executions_available? version: :v1, transport: :grpc
|
|
97
102
|
require "google/cloud/workflows/executions/#{version.to_s.downcase}"
|
|
98
103
|
package_name = Google::Cloud::Workflows::Executions
|
|
99
104
|
.constants
|
|
@@ -103,6 +108,10 @@ module Google
|
|
|
103
108
|
service_module = Google::Cloud::Workflows::Executions.const_get package_name
|
|
104
109
|
return false unless service_module.const_defined? :Executions
|
|
105
110
|
service_module = service_module.const_get :Executions
|
|
111
|
+
if transport == :rest
|
|
112
|
+
return false unless service_module.const_defined? :Rest
|
|
113
|
+
service_module = service_module.const_get :Rest
|
|
114
|
+
end
|
|
106
115
|
service_module.const_defined? :Client
|
|
107
116
|
rescue ::LoadError
|
|
108
117
|
false
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-workflows
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -51,11 +51,8 @@ dependencies:
|
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '1.2'
|
|
54
|
-
description:
|
|
55
|
-
|
|
56
|
-
and Cloud Run, and calls to external APIs to create flexible serverless applications.
|
|
57
|
-
Workflows requires no infrastructure management and scales seamlessly with demand,
|
|
58
|
-
including scaling down to zero.
|
|
54
|
+
description: Manage workflow definitions. To execute workflows and manage executions,
|
|
55
|
+
see the Workflows Executions API.
|
|
59
56
|
email: googleapis-packages@google.com
|
|
60
57
|
executables: []
|
|
61
58
|
extensions: []
|
|
@@ -90,5 +87,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
87
|
requirements: []
|
|
91
88
|
rubygems_version: 3.6.9
|
|
92
89
|
specification_version: 4
|
|
93
|
-
summary:
|
|
90
|
+
summary: Manage workflow definitions. To execute workflows and manage executions,
|
|
91
|
+
see the Workflows Executions API.
|
|
94
92
|
test_files: []
|