google-cloud-tasks-v2beta2 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3c82632fc9ae3bfd992b0b0afdab314bc3fce571ba34a1d55902aeb8ec49899
4
- data.tar.gz: d3fa7586196cfdebc3af6f7e9e5c62f265bb7126ad5b49e724794967d9cdc2df
3
+ metadata.gz: d04660aa1fb97c14a3b2cfea7395ff918e346bc56ac40015f1aac3ca9c5d7451
4
+ data.tar.gz: 9c7b6f635db6be50a844dd1f06ea7d0208aa0db8ffc097504351915f877f0255
5
5
  SHA512:
6
- metadata.gz: '018d6cb7a75f5367931ef588a442ad190fe3de788784f59a891c5fc82e4695868e3738905ec2728c84d37914507cd683ce34306c5417b546135bff2faa98fd38'
7
- data.tar.gz: cc05328c01ed7e47151e39347dc70c2da046e586e13234be23338de01990c5c769ac909cbb4a2ed599fe1107fc7f2106b48d3796677dfab97e08e764fcf531d5
6
+ metadata.gz: 45b8dfd47c90b4fc46141ff3cf8aa1193a3da700d47272881ba4354fd9822c48e4ac3b7d24eafe28409235b248d8fca6afe8bd05e62f67b429d4f0b4604048ff
7
+ data.tar.gz: 9df46673305a910b13043d1ee434276415dbde5fb18f4f35681afb2a3fed1798dcc3c818a65e3b278e29791fba164341c7562333f1e92f4ef3a515c8071e5b9b
@@ -219,7 +219,8 @@ module Google
219
219
  if credentials.is_a?(String) || credentials.is_a?(Hash)
220
220
  credentials = Credentials.new credentials, scope: @config.scope
221
221
  end
222
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
222
+ @quota_project_id = @config.quota_project
223
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
223
224
 
224
225
  @cloud_tasks_stub = ::Gapic::ServiceStub.new(
225
226
  ::Google::Cloud::Tasks::V2beta2::CloudTasks::Stub,
@@ -2112,24 +2113,28 @@ module Google
2112
2113
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2113
2114
  # trigger a retry.
2114
2115
  # @return [::Hash]
2116
+ # @!attribute [rw] quota_project
2117
+ # A separate project against which to charge quota.
2118
+ # @return [::String]
2115
2119
  #
2116
2120
  class Configuration
2117
2121
  extend ::Gapic::Config
2118
2122
 
2119
- config_attr :endpoint, "cloudtasks.googleapis.com", String
2120
- config_attr :credentials, nil do |value|
2123
+ config_attr :endpoint, "cloudtasks.googleapis.com", ::String
2124
+ config_attr :credentials, nil do |value|
2121
2125
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2122
2126
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2123
2127
  allowed.any? { |klass| klass === value }
2124
2128
  end
2125
- config_attr :scope, nil, ::String, ::Array, nil
2126
- config_attr :lib_name, nil, ::String, nil
2127
- config_attr :lib_version, nil, ::String, nil
2128
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2129
- config_attr :interceptors, nil, ::Array, nil
2130
- config_attr :timeout, nil, ::Numeric, nil
2131
- config_attr :metadata, nil, ::Hash, nil
2132
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2129
+ config_attr :scope, nil, ::String, ::Array, nil
2130
+ config_attr :lib_name, nil, ::String, nil
2131
+ config_attr :lib_version, nil, ::String, nil
2132
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2133
+ config_attr :interceptors, nil, ::Array, nil
2134
+ config_attr :timeout, nil, ::Numeric, nil
2135
+ config_attr :metadata, nil, ::Hash, nil
2136
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2137
+ config_attr :quota_project, nil, ::String, nil
2133
2138
 
2134
2139
  # @private
2135
2140
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta2
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.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-06 00:00:00.000000000 Z
11
+ date: 2020-05-21 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.10'
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.10'
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