google-cloud-dns 0.32.1 → 0.33.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: be5ff667872b4eb2cc744f059ea546eb227260645a0ddacc01c7473668af0007
4
- data.tar.gz: a84d0b209261fc68349bd7396f4966829fd023489914f20998964b24c024ed5e
3
+ metadata.gz: c8f6518197855c27a23220e5a81d5a9cea9ed84d0ae54afe5dd38cd0b9221b81
4
+ data.tar.gz: 6f0c9c6c2646eefeaf66562f11f0aa11542d4c4446950520d116f60fd2e94ca3
5
5
  SHA512:
6
- metadata.gz: 635a2bede07e63fa69d3677da8d601d56bfe3786e7499150dd7aa9d80439d28cb3af4764f58e7025d462e98c2fc5ce503972896778d88383b33f5654c77cbab7
7
- data.tar.gz: 573b1a47063ebe1dafa2293e0c9af61397ff900f783ed2aa1698cd400fa492b835d664131bbf7a193b5b22d47bb21dd2b9ddeefd31ff5caa59550f09353b621e
6
+ metadata.gz: 89333f4bc5710c57308260be23d3fab1080f3b6f9e1aafdad95994544261d9bb89bd65fa62c2609eb2e454a2aac6557b2b711b739e07a71c1e3e1faaa4fe0f5a
7
+ data.tar.gz: d098c967d5afd436c5c45fc8a8c37c8efe08dfc57b78343c7516cd26965e11c8d504678a4eeae53bf20cc6e499d9078d88282faf7a8e7d92d648372670e4dc81
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.33.0 / 2020-09-16
4
+
5
+ #### Features
6
+
7
+ * quota_project can be set via library configuration ([#7628](https://www.github.com/googleapis/google-cloud-ruby/issues/7628))
8
+
3
9
  ### 0.32.1 / 2020-05-28
4
10
 
5
11
  #### Documentation
@@ -130,6 +130,7 @@ Google::Cloud.configure.add_config! :dns do |config|
130
130
  allow_nil: true
131
131
  config.add_alias! :keyfile, :credentials
132
132
  config.add_field! :scope, nil, match: [String, Array]
133
+ config.add_field! :quota_project, nil, match: String
133
134
  config.add_field! :retries, nil, match: Integer
134
135
  config.add_field! :timeout, nil, match: Integer
135
136
  config.add_field! :endpoint, nil, match: String
@@ -92,7 +92,7 @@ module Google
92
92
  Dns::Project.new(
93
93
  Dns::Service.new(
94
94
  project_id, credentials,
95
- retries: retries, timeout: timeout, host: endpoint
95
+ retries: retries, timeout: timeout, host: endpoint, quota_project: configure.quota_project
96
96
  )
97
97
  )
98
98
  end
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Creates a new Service instance.
36
36
  def initialize project, credentials,
37
- retries: nil, timeout: nil, host: nil
37
+ retries: nil, timeout: nil, host: nil, quota_project: nil
38
38
  @project = project
39
39
  @credentials = credentials
40
40
  @service = API::DnsService.new
@@ -48,6 +48,7 @@ module Google
48
48
  @service.request_options.header ||= {}
49
49
  @service.request_options.header["x-goog-api-client"] = \
50
50
  "gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Dns::VERSION}"
51
+ @service.request_options.quota_project = quota_project if quota_project
51
52
  @service.authorization = @credentials.client
52
53
  @service.root_url = host if host
53
54
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dns
19
- VERSION = "0.32.1".freeze
19
+ VERSION = "0.33.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.1
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-28 00:00:00.000000000 Z
12
+ date: 2020-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.0.6
260
+ rubygems_version: 3.1.4
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: API Client library for Google Cloud DNS