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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c553824d4d5368dfce5fe05547f67589e15b8c300a503437168636ea510f8d4
4
- data.tar.gz: df65bfbcace41a2e559311f19acb4e8a0898469a5abf9ff10897b82cfcd7c58e
3
+ metadata.gz: 5871855f9da6365c0a0a2918faeb4d00dfb3aa8df2193bbe31e6ffb9bcdcfa6f
4
+ data.tar.gz: ce389d9934566a24237cad562175498e413fdd03655993abb3dffd793a8f1007
5
5
  SHA512:
6
- metadata.gz: b69517d9fd93153772c379aa17d3376e901ba72af26b3962a0b2990a57f680330d8866032bf985bb17e4f48a456ef41203056b7ae02658fae3eafc4e62d2f595
7
- data.tar.gz: 1de2ab1ab88fe5e9739389fee598fa73b22454358ae0646d5cb9a9fea451d3659969980c954b1f847219de56fc0eec25110956bc7d2ce13e13c83df3e8beabb3
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "cloudtasks.googleapis.com", String
1673
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
1679
- config_attr :lib_name, nil, ::String, nil
1680
- config_attr :lib_version, nil, ::String, nil
1681
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1682
- config_attr :interceptors, nil, ::Array, nil
1683
- config_attr :timeout, nil, ::Numeric, nil
1684
- config_attr :metadata, nil, ::Hash, nil
1685
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2
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-v2
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-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.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