google-cloud-workflows 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b1783235cb724123a67baec1efdb5550bb7c0fd437794ce264edf428b74cbf4
4
- data.tar.gz: fa710306c29a34b29b2854c8b8afcc6fb1af6c16e86bfcc40ec3c8d5f8d8bc35
3
+ metadata.gz: 1d9d0c03c1fcead8341f60de521dce6859bc99ed5169d11499a5d3a0e37a1635
4
+ data.tar.gz: 2ccc1dd2be96641b88e52011fde6c8778b5cab7e2dd5eaab3030f4959b356ce1
5
5
  SHA512:
6
- metadata.gz: 8efe71805f518db10ef94bb834cc5ef1aa9626f532c1c93d901e2fefed6bbea43d004932a9c521f9dd7717f37f906e616ccd259a865b113e444453ef1bb69f15
7
- data.tar.gz: 688c8ed997f70d7be2c0c411b240caea30e4e94c73fb6dd5014d5801bc03d924af5a0a387f48c194aa0872a10ad752b0d9ebba1fb80af9ac33c2ac67b2ec5b37
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
@@ -17,7 +17,9 @@ 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,32 +37,6 @@ 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
42
  This library is supported on Ruby 2.6+.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Workflows
23
23
  module Executions
24
- # @private
24
+ # @private Unused
25
25
  VERSION = ""
26
26
  end
27
27
  end
@@ -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 specify a different API version by passing it in the
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 [Executions::Client] A client object for the specified version.
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
- package_module = Google::Cloud::Workflows::Executions.const_get package_name
76
- package_module.const_get(:Executions).const_get(:Client).new(&block)
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 gRPC headers to be sent with the call.
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.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Workflows
23
- VERSION = "2.2.0"
23
+ VERSION = "2.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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 specify a different API version by passing it in the
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
- # @return [Workflows::Client] A client object for the specified version.
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
- package_module = Google::Cloud::Workflows.const_get package_name
76
- package_module.const_get(:Workflows).const_get(:Client).new(&block)
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 gRPC headers to be sent with the call.
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.2.0
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: 2022-07-08 00:00:00.000000000 Z
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.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.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.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.0'
63
+ version: '0.5'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  - !ruby/object:Gem::Version
255
255
  version: '0'
256
256
  requirements: []
257
- rubygems_version: 3.3.14
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