google-cloud-dns 0.22.0 → 0.23.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
  SHA1:
3
- metadata.gz: 0386cf91d8bae020f3a336c321e16db4e91e25e2
4
- data.tar.gz: 1680fb1d20fb99f09c1abb6cfdd5559955e313c9
3
+ metadata.gz: 10cf8b157f296d8bdec7f70342a7902e617eb9ba
4
+ data.tar.gz: f03f208f7df1a9a50086d93bfb21b9f62841b475
5
5
  SHA512:
6
- metadata.gz: 27a452af33a4ec225a5837b1b98dc43427f04c958d4eff0a09ebeeee78f6775e092561c09ea49ee9bfd98d296efaec9f07bd3427242ec866b38f509a6f5ff6ff
7
- data.tar.gz: dd3958c10270305d9b050c8819e729f74a2ca2561c46877d9707d742ce34e5f369a014b5962db4c5f99a8377d8aa759eef222accd267198c5edafa26e12523b4
6
+ metadata.gz: 0d4ab9b0c8c77904d5d965102184f8ea3e1fbee0287dde43c9f1d152b5ccc13209efde9a68ffc2bde5a2bfaf276dd9eb4ca63a2021de1115feb1137106abdfb5
7
+ data.tar.gz: 8d08ee47dde594ed30bda2682fb18cdab58a821c0741a20654618145b40e9a615522df40d40d8606af2c4a72f71009c6bdd0cd1439e90efd8cc58a0716e85cc7
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Google Cloud DNS](https://cloud.google.com/dns/) ([docs](https://cloud.google.com/dns/docs)) is a high-performance, resilient, global DNS service that provides a cost-effective way to make your applications and services available to your users. This programmable, authoritative DNS service can be used to easily publish and manage DNS records using the same infrastructure relied upon by Google. To learn more, read [What is Google Cloud DNS?](https://cloud.google.com/dns/what-is-cloud-dns).
4
4
 
5
- - [google-cloud-dns API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-dns/master/google/cloud/dns)
5
+ - [google-cloud-dns API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-dns/latest)
6
6
  - [google-cloud-dns on RubyGems](https://rubygems.org/gems/google-cloud-dns)
7
7
  - [Google Cloud DNS documentation](https://cloud.google.com/dns/docs)
8
8
 
@@ -77,15 +77,15 @@ module Google
77
77
  end
78
78
 
79
79
  ##
80
- # Retrieves all changes by repeatedly loading {#next} until {#next?}
81
- # returns `false`. Calls the given block once for each change, which
82
- # is passed as the parameter.
80
+ # Retrieves remaining results by repeatedly invoking {#next} until
81
+ # {#next?} returns `false`. Calls the given block once for each
82
+ # result, which is passed as the argument to the block.
83
83
  #
84
84
  # An Enumerator is returned if no block is given.
85
85
  #
86
- # This method may make several API calls until all changes are
87
- # retrieved. Be sure to use as narrow a search criteria as possible.
88
- # Please use with caution.
86
+ # This method will make repeated API calls until all remaining results
87
+ # are retrieved. (Unlike `#each`, for example, which merely iterates
88
+ # over the results returned by a single API call.) Use with caution.
89
89
  #
90
90
  # @param [Integer] request_limit The upper limit of API requests to
91
91
  # make to load all changes. Default is no limit.
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
  require "google/cloud/errors"
17
- require "google/cloud/core/environment"
17
+ require "google/cloud/env"
18
18
  require "google/cloud/dns/service"
19
19
  require "google/cloud/dns/credentials"
20
20
  require "google/cloud/dns/zone"
@@ -131,7 +131,7 @@ module Google
131
131
  ENV["DNS_PROJECT"] ||
132
132
  ENV["GOOGLE_CLOUD_PROJECT"] ||
133
133
  ENV["GCLOUD_PROJECT"] ||
134
- Google::Cloud::Core::Environment.project_id
134
+ Google::Cloud.env.project_id
135
135
  end
136
136
 
137
137
  ##
@@ -77,15 +77,15 @@ module Google
77
77
  end
78
78
 
79
79
  ##
80
- # Retrieves all records by repeatedly loading {#next} until {#next?}
81
- # returns `false`. Calls the given block once for each record, which
82
- # is passed as the parameter.
80
+ # Retrieves remaining results by repeatedly invoking {#next} until
81
+ # {#next?} returns `false`. Calls the given block once for each
82
+ # result, which is passed as the argument to the block.
83
83
  #
84
84
  # An Enumerator is returned if no block is given.
85
85
  #
86
- # This method may make several API calls until all records are
87
- # retrieved. Be sure to use as narrow a search criteria as possible.
88
- # Please use with caution.
86
+ # This method will make repeated API calls until all remaining results
87
+ # are retrieved. (Unlike `#each`, for example, which merely iterates
88
+ # over the results returned by a single API call.) Use with caution.
89
89
  #
90
90
  # @param [Integer] request_limit The upper limit of API requests to
91
91
  # make to load all records. Default is no limit.
@@ -43,6 +43,9 @@ module Google
43
43
  @service.request_options.retries = retries || 3
44
44
  @service.request_options.timeout_sec = timeout
45
45
  @service.request_options.open_timeout_sec = timeout
46
+ @service.request_options.header ||= {}
47
+ @service.request_options.header["x-goog-api-client"] = \
48
+ "gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Dns::VERSION}"
46
49
  @service.authorization = @credentials.client
47
50
  end
48
51
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dns
19
- VERSION = "0.22.0"
19
+ VERSION = "0.23.0"
20
20
  end
21
21
  end
22
22
  end
@@ -75,15 +75,15 @@ module Google
75
75
  end
76
76
 
77
77
  ##
78
- # Retrieves all zones by repeatedly loading {#next} until {#next?}
79
- # returns `false`. Calls the given block once for each zone, which is
80
- # passed as the parameter.
78
+ # Retrieves remaining results by repeatedly invoking {#next} until
79
+ # {#next?} returns `false`. Calls the given block once for each
80
+ # result, which is passed as the argument to the block.
81
81
  #
82
82
  # An Enumerator is returned if no block is given.
83
83
  #
84
- # This method may make several API calls until all zones are
85
- # retrieved. Be sure to use as narrow a search criteria as possible.
86
- # Please use with caution.
84
+ # This method will make repeated API calls until all remaining results
85
+ # are retrieved. (Unlike `#each`, for example, which merely iterates
86
+ # over the results returned by a single API call.) Use with caution.
87
87
  #
88
88
  # @param [Integer] request_limit The upper limit of API requests to
89
89
  # make to load all zones. Default is no limit.
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.22.0
4
+ version: 0.23.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: 2017-03-04 00:00:00.000000000 Z
12
+ date: 2017-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.21.0
20
+ version: '1.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.21.0
27
+ version: '1.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: google-api-client
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.6.10
227
+ rubygems_version: 2.6.11
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: API Client library for Google Cloud DNS