google-cloud-dns 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +12 -1
- data/CHANGELOG.md +6 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/cloud/dns/record.rb +2 -2
- data/lib/google/cloud/dns/version.rb +1 -1
- data/lib/google/cloud/dns/zone/transaction.rb +4 -4
- data/lib/google/cloud/dns/zone.rb +5 -5
- data/lib/google/cloud/dns.rb +23 -5
- data/lib/google-cloud-dns.rb +19 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 936fa34292aead803fe952d5a57fcf1db0cd8545892757cacbee33265030932e
|
|
4
|
+
data.tar.gz: f80081a6a021af3f4d1d5719bdeb2948a70f97a4af0ff50ee5433245fc7e64ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa85f2dc53a45236c9e214b2ef63d278e4db25d3a2a3df7786a21882aceb2e8c9edf26606f7aa343b8bef2a6f542fba8e1b1076882424efa2e749d69d27a772f
|
|
7
|
+
data.tar.gz: 0be74c9658ee4e1329174f1b16f99d5df0dd62ae1bf7bc19ea1732afce23beba0f952958a0fc4521955b9972266eeeec4b67a3c747669c20df50ba3c6011cd3d
|
data/AUTHENTICATION.md
CHANGED
|
@@ -28,6 +28,12 @@ providing **Project ID** and **Service Account Credentials** directly in code.
|
|
|
28
28
|
|
|
29
29
|
**Credentials** are discovered in the following order:
|
|
30
30
|
|
|
31
|
+
> [!WARNING]
|
|
32
|
+
> If you accept a credential configuration (JSON file or Hash) from an
|
|
33
|
+
> external source for authentication to Google Cloud, you must validate it before
|
|
34
|
+
> providing it to a Google API client library. Providing an unvalidated credential
|
|
35
|
+
> configuration to Google APIs can compromise the security of your systems and data.
|
|
36
|
+
|
|
31
37
|
1. Specify credentials in method arguments
|
|
32
38
|
2. Specify credentials in configuration
|
|
33
39
|
3. Discover credentials path in environment variables
|
|
@@ -82,11 +88,16 @@ The **Project ID** and **Credentials JSON** can be configured instead of placing
|
|
|
82
88
|
them in environment variables or providing them as arguments.
|
|
83
89
|
|
|
84
90
|
```ruby
|
|
91
|
+
require "googleauth"
|
|
85
92
|
require "google/cloud/dns"
|
|
86
93
|
|
|
94
|
+
credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
95
|
+
json_key_io: ::File.open("/path/to/keyfile.json")
|
|
96
|
+
)
|
|
97
|
+
|
|
87
98
|
Google::Cloud::Dns.configure do |config|
|
|
88
99
|
config.project_id = "my-project-id"
|
|
89
|
-
config.credentials =
|
|
100
|
+
config.credentials = credentials
|
|
90
101
|
end
|
|
91
102
|
|
|
92
103
|
dns = Google::Cloud::Dns.new
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
|
@@ -4,8 +4,8 @@ Google Cloud DNS is a high-performance, resilient, global DNS service that
|
|
|
4
4
|
provides a cost-effective way to make your applications and services
|
|
5
5
|
available to your users. This programmable, authoritative DNS service can
|
|
6
6
|
be used to easily publish and manage DNS records using the same
|
|
7
|
-
infrastructure relied upon by Google. To learn more, read [
|
|
8
|
-
|
|
7
|
+
infrastructure relied upon by Google. To learn more, read [Cloud DNS
|
|
8
|
+
Overview](https://cloud.google.com/dns/docs/overview).
|
|
9
9
|
|
|
10
10
|
The goal of google-cloud is to provide an API that is comfortable to Rubyists.
|
|
11
11
|
Your authentication credentials are detected automatically in Google Cloud
|
|
@@ -52,7 +52,7 @@ module Google
|
|
|
52
52
|
|
|
53
53
|
##
|
|
54
54
|
# The identifier of a [supported record type
|
|
55
|
-
# ](https://cloud.google.com/dns/
|
|
55
|
+
# ](https://cloud.google.com/dns/docs/records-overview).
|
|
56
56
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
57
57
|
#
|
|
58
58
|
# @return [String]
|
|
@@ -83,7 +83,7 @@ module Google
|
|
|
83
83
|
# @param [String] name The owner of the record. For example:
|
|
84
84
|
# `example.com.`.
|
|
85
85
|
# @param [String] type The identifier of a [supported record
|
|
86
|
-
# type](https://cloud.google.com/dns/
|
|
86
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
87
87
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
88
88
|
# @param [Integer] ttl The number of seconds that the record can be
|
|
89
89
|
# cached by resolvers.
|
|
@@ -57,7 +57,7 @@ module Google
|
|
|
57
57
|
# @param [String] name The owner of the record. For example:
|
|
58
58
|
# `example.com.`.
|
|
59
59
|
# @param [String] type The identifier of a [supported record
|
|
60
|
-
# type](https://cloud.google.com/dns/
|
|
60
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
61
61
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
62
62
|
# @param [Integer] ttl The number of seconds that the record can be
|
|
63
63
|
# cached by resolvers.
|
|
@@ -88,7 +88,7 @@ module Google
|
|
|
88
88
|
# @param [String] name The owner of the record. For example:
|
|
89
89
|
# `example.com.`.
|
|
90
90
|
# @param [String] type The identifier of a [supported record
|
|
91
|
-
# type](https://cloud.google.com/dns/
|
|
91
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
92
92
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
93
93
|
#
|
|
94
94
|
# @example
|
|
@@ -111,7 +111,7 @@ module Google
|
|
|
111
111
|
# @param [String] name The owner of the record. For example:
|
|
112
112
|
# `example.com.`.
|
|
113
113
|
# @param [String] type The identifier of a [supported record
|
|
114
|
-
# type](https://cloud.google.com/dns/
|
|
114
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
115
115
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
116
116
|
# @param [Integer] ttl The number of seconds that the record can be
|
|
117
117
|
# cached by resolvers.
|
|
@@ -146,7 +146,7 @@ module Google
|
|
|
146
146
|
# @param [String] name The owner of the record. For example:
|
|
147
147
|
# `example.com.`.
|
|
148
148
|
# @param [String] type The identifier of a [supported record
|
|
149
|
-
# type](https://cloud.google.com/dns/
|
|
149
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
150
150
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
151
151
|
# @yield [record] a block yielding each matching record
|
|
152
152
|
# @yieldparam [Record] record the record to be modified
|
|
@@ -256,7 +256,7 @@ module Google
|
|
|
256
256
|
# @param [String] name Return only records with this domain or subdomain
|
|
257
257
|
# name.
|
|
258
258
|
# @param [String] type Return only records with this [record
|
|
259
|
-
# type](https://cloud.google.com/dns/
|
|
259
|
+
# type](https://cloud.google.com/dns/docs/records-overview). If present,
|
|
260
260
|
# the `name` parameter must also be present.
|
|
261
261
|
# @param [String] token A previously-returned page token representing
|
|
262
262
|
# part of the larger set of results to view.
|
|
@@ -505,7 +505,7 @@ module Google
|
|
|
505
505
|
# @param [String] name The owner of the record. For example:
|
|
506
506
|
# `example.com.`.
|
|
507
507
|
# @param [String] type The identifier of a [supported record
|
|
508
|
-
# type](https://cloud.google.com/dns/
|
|
508
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
509
509
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
510
510
|
# @param [Integer] ttl The number of seconds that the record can be
|
|
511
511
|
# cached by resolvers.
|
|
@@ -547,7 +547,7 @@ module Google
|
|
|
547
547
|
# @param [String] name The owner of the record. For example:
|
|
548
548
|
# `example.com.`.
|
|
549
549
|
# @param [String] type The identifier of a [supported record
|
|
550
|
-
# type](https://cloud.google.com/dns/
|
|
550
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
551
551
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
552
552
|
# @param [Boolean] skip_soa Do not automatically update the SOA record
|
|
553
553
|
# serial number. See {#update} for details.
|
|
@@ -581,7 +581,7 @@ module Google
|
|
|
581
581
|
# @param [String] name The owner of the record. For example:
|
|
582
582
|
# `example.com.`.
|
|
583
583
|
# @param [String] type The identifier of a [supported record
|
|
584
|
-
# type](https://cloud.google.com/dns/
|
|
584
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
585
585
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
586
586
|
# @param [Integer] ttl The number of seconds that the record can be
|
|
587
587
|
# cached by resolvers.
|
|
@@ -627,7 +627,7 @@ module Google
|
|
|
627
627
|
# @param [String] name The owner of the record. For example:
|
|
628
628
|
# `example.com.`.
|
|
629
629
|
# @param [String] type The identifier of a [supported record
|
|
630
|
-
# type](https://cloud.google.com/dns/
|
|
630
|
+
# type](https://cloud.google.com/dns/docs/records-overview).
|
|
631
631
|
# For example: `A`, `AAAA`, `CNAME`, `MX`, or `TXT`.
|
|
632
632
|
# @param [Boolean] skip_soa Do not automatically update the SOA record
|
|
633
633
|
# serial number. See {#update} for details.
|
data/lib/google/cloud/dns.rb
CHANGED
|
@@ -27,8 +27,8 @@ module Google
|
|
|
27
27
|
# provides a cost-effective way to make your applications and services
|
|
28
28
|
# available to your users. This programmable, authoritative DNS service can
|
|
29
29
|
# be used to easily publish and manage DNS records using the same
|
|
30
|
-
# infrastructure relied upon by Google. To learn more, read [
|
|
31
|
-
#
|
|
30
|
+
# infrastructure relied upon by Google. To learn more, read [Cloud
|
|
31
|
+
# DNS Overview](https://cloud.google.com/dns/docs/overview).
|
|
32
32
|
#
|
|
33
33
|
# See {file:OVERVIEW.md Google Cloud DNS Overview}.
|
|
34
34
|
#
|
|
@@ -42,9 +42,27 @@ module Google
|
|
|
42
42
|
#
|
|
43
43
|
# @param [String] project_id Identifier for a DNS project. If not present,
|
|
44
44
|
# the default project for the credentials is used.
|
|
45
|
-
# @param [
|
|
46
|
-
#
|
|
47
|
-
#
|
|
45
|
+
# @param [Google::Auth::Credentials] credentials A Google::Auth::Credentials
|
|
46
|
+
# object. (See {Dns::Credentials})
|
|
47
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
48
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
49
|
+
# Google APIs can compromise the security of your systems and data.
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
#
|
|
53
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
54
|
+
# # on the appropriate credentials class for your environment.
|
|
55
|
+
#
|
|
56
|
+
# require "googleauth"
|
|
57
|
+
#
|
|
58
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
59
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
60
|
+
# )
|
|
61
|
+
#
|
|
62
|
+
# dns = Google::Cloud::Dns.new(
|
|
63
|
+
# project_id: "my-project-id",
|
|
64
|
+
# credentials: credentials
|
|
65
|
+
# )
|
|
48
66
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling
|
|
49
67
|
# the set of resources and operations that the connection can access.
|
|
50
68
|
# See [Using OAuth 2.0 to Access Google
|
data/lib/google-cloud-dns.rb
CHANGED
|
@@ -80,9 +80,25 @@ module Google
|
|
|
80
80
|
#
|
|
81
81
|
# @param [String] project_id Identifier for a DNS project. If not present,
|
|
82
82
|
# the default project for the credentials is used.
|
|
83
|
-
# @param [
|
|
84
|
-
#
|
|
85
|
-
#
|
|
83
|
+
# @param [Google::Auth::Credentials] credentials A Google::Auth::Credentials
|
|
84
|
+
# object. (See {Dns::Credentials})
|
|
85
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
86
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
87
|
+
# Google APIs can compromise the security of your systems and data.
|
|
88
|
+
#
|
|
89
|
+
# @example
|
|
90
|
+
#
|
|
91
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
92
|
+
# # on the appropriate credentials class for your environment.
|
|
93
|
+
#
|
|
94
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
95
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
96
|
+
# )
|
|
97
|
+
#
|
|
98
|
+
# dns = Google::Cloud::Dns.new(
|
|
99
|
+
# project_id: "my-project-id",
|
|
100
|
+
# credentials: credentials
|
|
101
|
+
# )
|
|
86
102
|
# @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
|
|
87
103
|
# set of resources and operations that the connection can access. See
|
|
88
104
|
# [Using OAuth 2.0 to Access Google
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dns
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
8
8
|
- Chris Smith
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
|
-
rubygems_version: 3.6.
|
|
118
|
+
rubygems_version: 3.6.9
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: API Client library for Google Cloud DNS
|
|
121
121
|
test_files: []
|