google-cloud-dns 0.29.1 → 0.29.2

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: '0971937836d18a9ee0a094eca937f703c15860557d91a74055260760d9a61323'
4
- data.tar.gz: d8b8cddbc8c64ee8b35f15b0c35d138a0c4736ad425cba292e3c413a23f93df3
3
+ metadata.gz: 2430409168fd2bee1be6c69ef0de57e35d2c473a8f9d996995dc3952a01ab37e
4
+ data.tar.gz: 6d86dc2b9aec7ec841218bf80de1bc7f2b23f2ae0e5fe00f7c3b496b41f4818a
5
5
  SHA512:
6
- metadata.gz: fb3ec64cb29effee7cd231802a146c32d5efee7f53d2844d7504fed499c88b5be68e0220c107bd67c05c7e04e8cad447522e3e0c3828f71d70bfa12c03e55b15
7
- data.tar.gz: f56b92802b027a524c91ed7b9cd57bd50e0fb44b6eff4e96778f7b5d7025e8df1c0f48e084b7cded334aca1595642db1955758e278eefffa7c0efe03085e95fc
6
+ metadata.gz: 3de53cc5f31703f9afc7b38ef31b3bc7252821b374ab4a3554d3379a4ca5d5a385b92e74033c6ed7281dc90727c125b7421666897e38c20753c4e645d6ae1918
7
+ data.tar.gz: 11e1ea1862bfb949da948d96480b66ff51eedc0212165b9bf0ffc09fe9d2db74a3ad638deb88fb69ed3c5be83842c266dfc3b6640684c4417040a5aded596697
data/.yardopts CHANGED
@@ -2,7 +2,15 @@
2
2
  --title=Google Cloud DNS
3
3
  --markup markdown
4
4
  --markup-provider redcarpet
5
+ --main OVERVIEW.md
5
6
 
6
7
  ./lib/**/*.rb
7
8
  -
8
- README.md
9
+ OVERVIEW.md
10
+ AUTHENTICATION.md
11
+ LOGGING.md
12
+ CONTRIBUTING.md
13
+ TROUBLESHOOTING.md
14
+ CHANGELOG.md
15
+ CODE_OF_CONDUCT.md
16
+ LICENSE
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/latest)
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
 
@@ -16,7 +16,7 @@ $ gem install google-cloud-dns
16
16
 
17
17
  This library uses Service Account credentials to connect to Google Cloud services. When running on Compute Engine the credentials will be discovered automatically. When running on other environments the Service Account credentials can be specified by providing the path to the JSON file, or the JSON itself, in environment variables.
18
18
 
19
- Instructions and configuration options are covered in the [Authentication Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-dns/guides/authentication).
19
+ Instructions and configuration options are covered in the [Authentication Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-dns/latest/file.AUTHENTICATION).
20
20
 
21
21
  ## Example
22
22
 
@@ -42,7 +42,7 @@ end
42
42
 
43
43
  ## Enabling Logging
44
44
 
45
- To enable logging for this library, set the logger for the underlying [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/).
45
+ To enable logging for this library, set the logger for the underlying [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-logging/latest/Google/Cloud/Logging/Logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/).
46
46
 
47
47
  If you do not set the logger explicitly and your application is running in a Rails environment, it will default to `Rails.logger`. Otherwise, if you do not set the logger and you are not using Rails, logging is disabled by default.
48
48
 
@@ -63,9 +63,9 @@ Google::Apis.logger = my_logger
63
63
  This library is supported on Ruby 2.3+.
64
64
 
65
65
  Google provides official support for Ruby versions that are actively supported
66
- by Ruby Core—that is, Ruby versions that are either in normal maintenance or
67
- in security maintenance, and not end of life. Currently, this means Ruby 2.3
68
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
66
+ by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
67
+ security maintenance, and not end of life. Currently, this means Ruby 2.3 and
68
+ later. Older versions of Ruby _may_ still work, but are unsupported and not
69
69
  recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
70
70
  about the Ruby support schedule.
71
71
 
@@ -73,21 +73,31 @@ about the Ruby support schedule.
73
73
 
74
74
  This library follows [Semantic Versioning](http://semver.org/).
75
75
 
76
- It is currently in major version zero (0.y.z), which means that anything may change at any time and the public API should not be considered stable.
76
+ It is currently in major version zero (0.y.z), which means that anything may
77
+ change at any time and the public API should not be considered stable.
77
78
 
78
79
  ## Contributing
79
80
 
80
81
  Contributions to this library are always welcome and highly encouraged.
81
82
 
82
- See the [Contributing Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/contributing) for more information on how to get started.
83
+ See the [Contributing
84
+ Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-dns/latest/file.CONTRIBUTING)
85
+ for more information on how to get started.
83
86
 
84
- Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct](../CODE_OF_CONDUCT.md) for more information.
87
+ Please note that this project is released with a Contributor Code of Conduct. By
88
+ participating in this project you agree to abide by its terms. See [Code of
89
+ Conduct](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-dns/latest/file.CODE_OF_CONDUCT)
90
+ for more information.
85
91
 
86
92
  ## License
87
93
 
88
- This library is licensed under Apache 2.0. Full license text is available in [LICENSE](LICENSE).
94
+ This library is licensed under Apache 2.0. Full license text is available in
95
+ [LICENSE](https://googlecloudplatform.github.io/google-cloud-ruby/docs/google-cloud-dns/latest/file.LICENSE).
89
96
 
90
97
  ## Support
91
98
 
92
- Please [report bugs at the project on Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues).
93
- Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby) about the client or APIs on [StackOverflow](http://stackoverflow.com).
99
+ Please [report bugs at the project on
100
+ Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues). Don't
101
+ hesitate to [ask
102
+ questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
103
+ about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -29,8 +29,8 @@ module Google
29
29
  # Creates a new object for connecting to the DNS service.
30
30
  # Each call creates a new connection.
31
31
  #
32
- # For more information on connecting to Google Cloud see the [Authentication
33
- # Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
32
+ # For more information on connecting to Google Cloud see the
33
+ # {file:AUTHENTICATION.md Authentication Guide}.
34
34
  #
35
35
  # @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
36
36
  # set of resources and operations that the connection can access. See
@@ -73,8 +73,8 @@ module Google
73
73
  # Creates a new `Project` instance connected to the DNS service.
74
74
  # Each call creates a new connection.
75
75
  #
76
- # For more information on connecting to Google Cloud see the [Authentication
77
- # Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
76
+ # For more information on connecting to Google Cloud see the
77
+ # {file:AUTHENTICATION.md Authentication Guide}.
78
78
  #
79
79
  # @param [String] project_id Identifier for a DNS project. If not present,
80
80
  # the default project for the credentials is used.
@@ -30,275 +30,7 @@ module Google
30
30
  # infrastructure relied upon by Google. To learn more, read [What is Google
31
31
  # Cloud DNS?](https://cloud.google.com/dns/what-is-cloud-dns).
32
32
  #
33
- # The goal of google-cloud is to provide an API that is comfortable to
34
- # Rubyists. Your authentication credentials are detected automatically in
35
- # Google Cloud Platform environments such as Google Compute Engine, Google
36
- # App Engine and Google Kubernetes Engine. In other environments you can
37
- # configure authentication easily, either directly in your code or via
38
- # environment variables. Read more about the options for connecting in the
39
- # [Authentication
40
- # Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
41
- #
42
- # ## Enabling Logging
43
- #
44
- # To enable logging for this library, set the logger for the underlying
45
- # [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging)
46
- # library. The logger that you set may be a Ruby stdlib
47
- # [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html)
48
- # as shown below, or a
49
- # [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
50
- # that will write logs to [Stackdriver
51
- # Logging](https://cloud.google.com/logging/).
52
- #
53
- # If you do not set the logger explicitly and your application is running in
54
- # a Rails environment, it will default to `Rails.logger`. Otherwise, if you
55
- # do not set the logger and you are not using Rails, logging is disabled by
56
- # default.
57
- #
58
- # Configuring a Ruby stdlib logger:
59
- #
60
- # ```ruby
61
- # require "logger"
62
- #
63
- # my_logger = Logger.new $stderr
64
- # my_logger.level = Logger::WARN
65
- #
66
- # # Set the Google API Client logger
67
- # Google::Apis.logger = my_logger
68
- # ```
69
- #
70
- # ## Creating Zones
71
- #
72
- # To get started with Google Cloud DNS, use your DNS Project to create a new
73
- # Zone. The second argument to {Google::Cloud::Dns::Project#create_zone}
74
- # must be a unique domain name for which you can [verify
75
- # ownership](https://www.google.com/webmasters/verification/home).
76
- # Substitute a domain name of your own (ending with a dot to signify that it
77
- # is [fully
78
- # qualified](https://en.wikipedia.org/wiki/Fully_qualified_domain_name)) as
79
- # you follow along with these examples.
80
- #
81
- # ```ruby
82
- # require "google/cloud/dns"
83
- #
84
- # dns = Google::Cloud::Dns.new
85
- # zone = dns.create_zone "example-com", "example.com."
86
- # puts zone.id # unique identifier defined by the server
87
- # ```
88
- #
89
- # For more information, see [Managing
90
- # Zones](https://cloud.google.com/dns/zones/).
91
- #
92
- # ## Listing Zones
93
- #
94
- # You can retrieve all the zones in your project.
95
- #
96
- # ```ruby
97
- # require "google/cloud/dns"
98
- #
99
- # dns = Google::Cloud::Dns.new
100
- # zones = dns.zones
101
- # zones.each do |zone|
102
- # puts "#{zone.name} - #{zone.dns}"
103
- # end
104
- # ```
105
- #
106
- # You can also retrieve a single zone by either name or id.
107
- #
108
- # ```ruby
109
- # require "google/cloud/dns"
110
- #
111
- # dns = Google::Cloud::Dns.new
112
- # zone = dns.zone "example-com"
113
- # ```
114
- #
115
- # ## Listing Records
116
- #
117
- # When you create a zone, the Cloud DNS service automatically creates two
118
- # Record instances for it, providing configuration for Cloud DNS
119
- # nameservers. Let's take a look at these records.
120
- #
121
- # ```ruby
122
- # require "google/cloud/dns"
123
- #
124
- # dns = Google::Cloud::Dns.new
125
- # zone = dns.zone "example-com"
126
- # records = zone.records
127
- # records.count #=> 2
128
- # records.map &:type #=> ["NS", "SOA"]
129
- # zone.records.first.data.count #=> 4
130
- # zone.records.first.data #=> ["ns-cloud-d1.googledomains.com.", ...]
131
- # ```
132
- #
133
- # Note that {Google::Cloud::Dns::Record#data} returns an array. The Cloud
134
- # DNS service only allows the zone to have one Record instance for each name
135
- # and type combination. It supports multiple "resource records" (in this
136
- # case, the four nameserver addresses) via this `data` collection.
137
- #
138
- # ## Managing Records
139
- #
140
- # You can easily add your own records to the zone. Each call to
141
- # {Google::Cloud::Dns::Zone#add} results in a new Cloud DNS Change instance.
142
- #
143
- # ```ruby
144
- # require "google/cloud/dns"
145
- #
146
- # dns = Google::Cloud::Dns.new
147
- # zone = dns.zone "example-com"
148
- # change = zone.add "www", "A", 86400, ["1.2.3.4"]
149
- # change.additions.map &:type #=> ["A", "SOA"]
150
- # change.deletions.map &:type #=> ["SOA"]
151
- # ```
152
- #
153
- # Whenever you change the set of records belonging to a zone, the zone's
154
- # start of authority (SOA) record should be updated with a higher serial
155
- # number. The google-cloud library automates this update for you, deleting
156
- # the old SOA record and adding an updated one, as shown in the example
157
- # above. You can disable or modify this behavior, of course. See
158
- # {Google::Cloud::Dns::Zone#update} for details.
159
- #
160
- # You can retrieve records by name and type. The name argument can be a
161
- # subdomain (e.g., `www`) fragment for convenience, but notice that the
162
- # retrieved record's domain name is always fully-qualified.
163
- #
164
- # ```ruby
165
- # require "google/cloud/dns"
166
- #
167
- # dns = Google::Cloud::Dns.new
168
- # zone = dns.zone "example-com"
169
- # records = zone.records "www", "A"
170
- # records.first.name #=> "www.example.com."
171
- # ```
172
- #
173
- # You can use {Google::Cloud::Dns::Zone#replace} to update the `ttl` and
174
- # `data` for a record.
175
- #
176
- # ```ruby
177
- # require "google/cloud/dns"
178
- #
179
- # dns = Google::Cloud::Dns.new
180
- # zone = dns.zone "example-com"
181
- # change = zone.replace "www", "A", 86400, ["5.6.7.8"]
182
- # ```
183
- #
184
- # Or, you can use {Google::Cloud::Dns::Zone#modify} to update just the `ttl`
185
- # or `data`, without the risk of inadvertently changing values that you wish
186
- # to leave unchanged.
187
- #
188
- # ```ruby
189
- # require "google/cloud/dns"
190
- #
191
- # dns = Google::Cloud::Dns.new
192
- # zone = dns.zone "example-com"
193
- # change = zone.modify "www", "A" do |r|
194
- # r.ttl = 3600 # change only the TTL
195
- # end
196
- # ```
197
- #
198
- # You can also delete records by name and type.
199
- #
200
- # ```ruby
201
- # require "google/cloud/dns"
202
- #
203
- # dns = Google::Cloud::Dns.new
204
- # zone = dns.zone "example-com"
205
- # change = zone.remove "www", "A"
206
- # record = change.deletions.first
207
- # ```
208
- #
209
- # The best way to add, remove, and update multiple records in a single
210
- # [transaction](https://cloud.google.com/dns/records) is to call
211
- # {Google::Cloud::Dns::Zone#update} with a block. See
212
- # {Google::Cloud::Dns::Zone::Transaction}.
213
- #
214
- # ```ruby
215
- # require "google/cloud/dns"
216
- #
217
- # dns = Google::Cloud::Dns.new
218
- # zone = dns.zone "example-com"
219
- # change = zone.update do |tx|
220
- # tx.add "www", "A", 86400, "1.2.3.4"
221
- # tx.remove "example.com.", "TXT"
222
- # tx.replace "example.com.", "MX", 86400, ["10 mail1.example.com.",
223
- # "20 mail2.example.com."]
224
- # tx.modify "www.example.com.", "CNAME" do |r|
225
- # r.ttl = 86400 # only change the TTL
226
- # end
227
- # end
228
- # ```
229
- #
230
- # Finally, you can add and delete records by reference, using
231
- # {Google::Cloud::Dns::Zone#update}.
232
- #
233
- # ```ruby
234
- # require "google/cloud/dns"
235
- #
236
- # dns = Google::Cloud::Dns.new
237
- # zone = dns.zone "example-com"
238
- # to_add = zone.record "www", "AAAA", 86400, ["2607:f8b0:400a:801::1005"]
239
- # to_delete = zone.records "www", "A"
240
- # change = zone.update to_add, to_delete
241
- # ```
242
- #
243
- # ## Listing Changes
244
- #
245
- # Because the transactions you execute against your zone do not always
246
- # complete immediately, you can retrieve and inspect changes.
247
- #
248
- # ```ruby
249
- # require "google/cloud/dns"
250
- #
251
- # dns = Google::Cloud::Dns.new
252
- # zone = dns.zone "example-com"
253
- # changes = zone.changes
254
- # changes.each do |change|
255
- # puts "#{change.id} - #{change.started_at} - #{change.status}"
256
- # end
257
- # ```
258
- #
259
- # ## Importing and exporting zone files
260
- #
261
- # You can import from a zone file. Because the Cloud DNS service only allows
262
- # the zone to have one Record instance for each name and type combination,
263
- # lines may be merged as needed into records with multiple `data` values.
264
- #
265
- # ```ruby
266
- # require "google/cloud/dns"
267
- #
268
- # dns = Google::Cloud::Dns.new
269
- # zone = dns.zone "example-com"
270
- # change = zone.import "path/to/db.example.com"
271
- # ```
272
- #
273
- # You can also export to a zone file.
274
- #
275
- # ```ruby
276
- # require "google/cloud/dns"
277
- #
278
- # dns = Google::Cloud::Dns.new
279
- # zone = dns.zone "example-com"
280
- #
281
- # zone.export "path/to/db.example.com"
282
- # ```
283
- #
284
- # ## Configuring retries and timeout
285
- #
286
- # You can configure how many times API requests may be automatically
287
- # retried. When an API request fails, the response will be inspected to see
288
- # if the request meets criteria indicating that it may succeed on retry,
289
- # such as `500` and `503` status codes or a specific internal error code
290
- # such as `rateLimitExceeded`. If it meets the criteria, the request will be
291
- # retried after a delay. If another error occurs, the delay will be
292
- # increased before a subsequent attempt, until the `retries` limit is
293
- # reached.
294
- #
295
- # You can also set the request `timeout` value in seconds.
296
- #
297
- # ```ruby
298
- # require "google/cloud/dns"
299
- #
300
- # dns = Google::Cloud::Dns.new retries: 10, timeout: 120
301
- # ```
33
+ # See {file:OVERVIEW.md Google Cloud DNS Overview}.
302
34
  #
303
35
  module Dns
304
36
  ##
@@ -306,8 +38,7 @@ module Google
306
38
  # Each call creates a new connection.
307
39
  #
308
40
  # For more information on connecting to Google Cloud see the
309
- # [Authentication
310
- # Guide](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/guides/authentication).
41
+ # {file:AUTHENTICATION.md Authentication Guide}.
311
42
  #
312
43
  # @param [String] project_id Identifier for a DNS project. If not present,
313
44
  # the default project for the credentials is used.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dns
19
- VERSION = "0.29.1".freeze
19
+ VERSION = "0.29.2".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.29.1
4
+ version: 0.29.2
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: 2018-08-21 00:00:00.000000000 Z
12
+ date: 2018-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -197,16 +197,16 @@ dependencies:
197
197
  name: yard-doctest
198
198
  requirement: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - "<="
200
+ - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: 0.1.8
202
+ version: 0.1.13
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - "<="
207
+ - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: 0.1.8
209
+ version: 0.1.13
210
210
  description: google-cloud-dns is the official library for Google Cloud DNS.
211
211
  email:
212
212
  - mike@blowmage.com