google-cloud-tasks-v2 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/tasks/v2/cloud_tasks/client.rb +16 -11
- data/lib/google/cloud/tasks/v2/version.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5871855f9da6365c0a0a2918faeb4d00dfb3aa8df2193bbe31e6ffb9bcdcfa6f
|
4
|
+
data.tar.gz: ce389d9934566a24237cad562175498e413fdd03655993abb3dffd793a8f1007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02977b60b5187df0fb0cbe7e92dd3d2fb56d556ff394948351430a92c403911830eb0f301b41e3a418c27f14523cff72a9669984e99c9dc2a541f3206d426a7
|
7
|
+
data.tar.gz: 5da91a8c1d16d915ff221d9283c124f67f6530fe4b2eb1e2b1d0516ac513cc815bbdf52373f1c49f3112ff012d355b5c1abcfef0970e0fff6bf703dd39903be9
|
@@ -211,7 +211,8 @@ module Google
|
|
211
211
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
212
212
|
credentials = Credentials.new credentials, scope: @config.scope
|
213
213
|
end
|
214
|
-
@quota_project_id =
|
214
|
+
@quota_project_id = @config.quota_project
|
215
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
215
216
|
|
216
217
|
@cloud_tasks_stub = ::Gapic::ServiceStub.new(
|
217
218
|
::Google::Cloud::Tasks::V2::CloudTasks::Stub,
|
@@ -1665,24 +1666,28 @@ module Google
|
|
1665
1666
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1666
1667
|
# trigger a retry.
|
1667
1668
|
# @return [::Hash]
|
1669
|
+
# @!attribute [rw] quota_project
|
1670
|
+
# A separate project against which to charge quota.
|
1671
|
+
# @return [::String]
|
1668
1672
|
#
|
1669
1673
|
class Configuration
|
1670
1674
|
extend ::Gapic::Config
|
1671
1675
|
|
1672
|
-
config_attr :endpoint,
|
1673
|
-
config_attr :credentials,
|
1676
|
+
config_attr :endpoint, "cloudtasks.googleapis.com", ::String
|
1677
|
+
config_attr :credentials, nil do |value|
|
1674
1678
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1675
1679
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1676
1680
|
allowed.any? { |klass| klass === value }
|
1677
1681
|
end
|
1678
|
-
config_attr :scope,
|
1679
|
-
config_attr :lib_name,
|
1680
|
-
config_attr :lib_version,
|
1681
|
-
config_attr(:channel_args,
|
1682
|
-
config_attr :interceptors,
|
1683
|
-
config_attr :timeout,
|
1684
|
-
config_attr :metadata,
|
1685
|
-
config_attr :retry_policy,
|
1682
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1683
|
+
config_attr :lib_name, nil, ::String, nil
|
1684
|
+
config_attr :lib_version, nil, ::String, nil
|
1685
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1686
|
+
config_attr :interceptors, nil, ::Array, nil
|
1687
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1688
|
+
config_attr :metadata, nil, ::Hash, nil
|
1689
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1690
|
+
config_attr :quota_project, nil, ::String, nil
|
1686
1691
|
|
1687
1692
|
# @private
|
1688
1693
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2
|
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-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -78,14 +78,42 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '5.
|
81
|
+
version: '5.14'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '5.
|
88
|
+
version: '5.14'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: minitest-focus
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.1'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.1'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: minitest-rg
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '5.2'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '5.2'
|
89
117
|
- !ruby/object:Gem::Dependency
|
90
118
|
name: rake
|
91
119
|
requirement: !ruby/object:Gem::Requirement
|