google-cloud-workflows 0.1.0 → 0.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45af6719bddfba25b3511c5c9825ac5a83e7a7d6e5e0a4f2c2188581796488a3
|
4
|
+
data.tar.gz: 33ecc426ea756dda620f9517e7be58b82907d704014c992481029278ac40b6c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab453c9c6a70e8860a9b69be740fb13e4f88cd637b68385e0101e26b331464872693c19589871b048e4a5a3f3a6f1091c22a3b151e692fb3b17ff03c4a4abe8a
|
7
|
+
data.tar.gz: db4e5c8e869c8507af2ccffc00e9671d6079f74500097069c3a66af4d3f2fa6418e19e2666240b35658312eef7094de2911f30940e836ee822b5c16c1cddf2a8
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/workflows/executions/version"
|
24
|
+
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :workflows_executions do |config|
|
32
|
+
config.add_field! :endpoint, "workflowexecutions.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module Workflows
|
47
|
+
module Executions
|
48
|
+
##
|
49
|
+
# Create a new client object for Executions.
|
50
|
+
#
|
51
|
+
# By default, this returns an instance of
|
52
|
+
# [Google::Cloud::Workflows::Executions::V1beta::Executions::Client](https://googleapis.dev/ruby/google-cloud-workflows-executions-v1beta/latest/Google/Cloud/Workflows/Executions/V1beta/Executions/Client.html)
|
53
|
+
# for version V1beta of the API.
|
54
|
+
# However, you can specify specify a different API version by passing it in the
|
55
|
+
# `version` parameter. If the Executions service is
|
56
|
+
# supported by that API version, and the corresponding gem is available, the
|
57
|
+
# appropriate versioned client will be returned.
|
58
|
+
#
|
59
|
+
# ## About Executions
|
60
|
+
#
|
61
|
+
# Executions is used to start and manage running instances of
|
62
|
+
# [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
|
63
|
+
#
|
64
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
|
+
# Defaults to `:v1beta`.
|
66
|
+
# @return [Executions::Client] A client object for the specified version.
|
67
|
+
#
|
68
|
+
def self.executions version: :v1beta, &block
|
69
|
+
require "google/cloud/workflows/executions/#{version.to_s.downcase}"
|
70
|
+
|
71
|
+
package_name = Google::Cloud::Workflows::Executions
|
72
|
+
.constants
|
73
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
|
+
.first
|
75
|
+
package_module = Google::Cloud::Workflows::Executions.const_get package_name
|
76
|
+
package_module.const_get(:Executions).const_get(:Client).new(&block)
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# Configure the google-cloud-workflows-executions library.
|
81
|
+
#
|
82
|
+
# The following configuration parameters are supported:
|
83
|
+
#
|
84
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
85
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
86
|
+
# Hash, or a Google::Auth::Credentials object.
|
87
|
+
# * `lib_name` (*type:* `String`) -
|
88
|
+
# The library name as recorded in instrumentation and logging.
|
89
|
+
# * `lib_version` (*type:* `String`) -
|
90
|
+
# The library version as recorded in instrumentation and logging.
|
91
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
92
|
+
# An array of interceptors that are run before calls are executed.
|
93
|
+
# * `timeout` (*type:* `Integer`) -
|
94
|
+
# Default timeout in milliseconds.
|
95
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
96
|
+
# Additional gRPC headers to be sent with the call.
|
97
|
+
# * `retry_policy` (*type:* `Hash`) -
|
98
|
+
# The retry policy. The value is a hash with the following keys:
|
99
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
100
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
101
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
102
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
103
|
+
# The error codes that should trigger a retry.
|
104
|
+
#
|
105
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
106
|
+
#
|
107
|
+
def self.configure
|
108
|
+
yield ::Google::Cloud.configure.workflows_executions if block_given?
|
109
|
+
|
110
|
+
::Google::Cloud.configure.workflows_executions
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
helper_path = ::File.join __dir__, "executions", "helpers.rb"
|
118
|
+
require "google/cloud/workflows/executions/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Workflows
|
23
|
+
module Executions
|
24
|
+
# @private
|
25
|
+
VERSION = ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
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: 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: 2020-
|
11
|
+
date: 2020-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: google-cloud-workflows-executions-v1beta
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: google-style
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +180,8 @@ files:
|
|
166
180
|
- README.md
|
167
181
|
- lib/google-cloud-workflows.rb
|
168
182
|
- lib/google/cloud/workflows.rb
|
183
|
+
- lib/google/cloud/workflows/executions.rb
|
184
|
+
- lib/google/cloud/workflows/executions/version.rb
|
169
185
|
- lib/google/cloud/workflows/version.rb
|
170
186
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
171
187
|
licenses:
|