google-cloud-dns 0.36.0 → 0.37.0
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 +8 -26
- data/CHANGELOG.md +12 -0
- data/lib/google/cloud/dns/change.rb +2 -2
- data/lib/google/cloud/dns/service.rb +5 -5
- data/lib/google/cloud/dns/version.rb +1 -1
- data/lib/google/cloud/dns.rb +1 -1
- data/lib/google-cloud-dns.rb +4 -2
- metadata +4 -144
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed94693b5c7f6e8563c796d34811ecefe88a11b8262717eed9918797130f3c1
|
4
|
+
data.tar.gz: 82da52f20afaf37eb9c068a76440d230eeeddeea74e71b58769fcddeba5020bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37f08a8182b00fde0a20ce4ec7f5b82c9ed58c4efee96dbee8284367fa971beba8d23f51c65b1e88335a1a2bfc24c8371e80428b07d2c52362e47f4bd2298ee1
|
7
|
+
data.tar.gz: 28434d0da45f3104a62d83b4ac95d33a1e60ded9bf9b0c31f9b14d8a537ec338a37688a7f6f1e7803de8ea74cd45a25cfbba3e80004139b0d466e6298bef93d9
|
data/AUTHENTICATION.md
CHANGED
@@ -107,15 +107,6 @@ To configure your system for this, simply:
|
|
107
107
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
108
108
|
*should* only be used during development.
|
109
109
|
|
110
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
111
|
-
[dev-console]: https://console.cloud.google.com/project
|
112
|
-
|
113
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
114
|
-
|
115
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
116
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
117
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
118
|
-
|
119
110
|
## Creating a Service Account
|
120
111
|
|
121
112
|
Google Cloud requires a **Project ID** and **Service Account Credentials** to
|
@@ -125,31 +116,22 @@ connect to most services with google-cloud-dns.
|
|
125
116
|
If you are not running this client on Google Compute Engine, you need a Google
|
126
117
|
Developers service account.
|
127
118
|
|
128
|
-
1. Visit the [Google
|
119
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
129
120
|
1. Create a new project or click on an existing project.
|
130
|
-
1. Activate the
|
121
|
+
1. Activate the menu in the upper left and select **APIs & Services**. From
|
131
122
|
here, you will enable the APIs that your application requires.
|
132
123
|
|
133
|
-
![Enable the APIs that your application requires][enable-apis]
|
134
|
-
|
135
124
|
*Note: You may need to enable billing in order to use these services.*
|
136
125
|
|
137
126
|
1. Select **Credentials** from the side navigation.
|
138
127
|
|
139
|
-
|
140
|
-
|
141
|
-
![Create a new service account][create-new-service-account]
|
142
|
-
|
143
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
144
|
-
|
145
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
146
|
-
guided through downloading a new JSON key file.
|
147
|
-
|
148
|
-
If you want to re-use an existing service account, you can easily generate a
|
149
|
-
new key file. Just select the account you wish to re-use, and click "Generate
|
150
|
-
new JSON key":
|
128
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
129
|
+
"Service account" to be guided through downloading a new JSON key file.
|
151
130
|
|
152
|
-
|
131
|
+
If you want to re-use an existing service account, you can easily generate
|
132
|
+
a new key file. Just select the account you wish to re-use click the pencil
|
133
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
134
|
+
and then select **Add Key**.
|
153
135
|
|
154
136
|
The key file you download will be used by this library to authenticate API
|
155
137
|
requests and should be stored in a secure location.
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.37.0 (2024-03-07)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Update minimum supported Ruby version to 2.7 ([#25298](https://github.com/googleapis/google-cloud-ruby/issues/25298))
|
8
|
+
|
9
|
+
### 0.36.1 (2023-05-19)
|
10
|
+
|
11
|
+
#### Documentation
|
12
|
+
|
13
|
+
* Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
|
14
|
+
|
3
15
|
### 0.36.0 (2022-07-28)
|
4
16
|
|
5
17
|
#### Features
|
@@ -127,10 +127,10 @@ module Google
|
|
127
127
|
# change.done? #=> true
|
128
128
|
#
|
129
129
|
def wait_until_done!
|
130
|
-
backoff = ->(retries) { sleep((2 * retries) + 5) }
|
131
130
|
retries = 0
|
132
131
|
until done?
|
133
|
-
|
132
|
+
secs = (2 * retries) + 5
|
133
|
+
sleep secs
|
134
134
|
retries += 1
|
135
135
|
reload!
|
136
136
|
end
|
@@ -38,15 +38,14 @@ module Google
|
|
38
38
|
@project = project
|
39
39
|
@credentials = credentials
|
40
40
|
@service = API::DnsService.new
|
41
|
-
@service.client_options.application_name
|
42
|
-
@service.client_options.application_version =
|
43
|
-
Google::Cloud::Dns::VERSION
|
41
|
+
@service.client_options.application_name = "gcloud-ruby"
|
42
|
+
@service.client_options.application_version = Google::Cloud::Dns::VERSION
|
44
43
|
@service.client_options.open_timeout_sec = timeout
|
45
44
|
@service.client_options.read_timeout_sec = timeout
|
46
45
|
@service.client_options.send_timeout_sec = timeout
|
47
46
|
@service.request_options.retries = retries || 3
|
48
47
|
@service.request_options.header ||= {}
|
49
|
-
@service.request_options.header["x-goog-api-client"] =
|
48
|
+
@service.request_options.header["x-goog-api-client"] =
|
50
49
|
"gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Dns::VERSION}"
|
51
50
|
@service.request_options.quota_project = quota_project if quota_project
|
52
51
|
@service.authorization = @credentials.client
|
@@ -84,11 +83,12 @@ module Google
|
|
84
83
|
# Returns Google::Apis::DnsV1::ManagedZone
|
85
84
|
def create_zone zone_name, zone_dns, description: nil,
|
86
85
|
name_server_set: nil
|
86
|
+
description ||= ""
|
87
87
|
managed_zone = Google::Apis::DnsV1::ManagedZone.new(
|
88
88
|
kind: "dns#managedZone",
|
89
89
|
name: zone_name,
|
90
90
|
dns_name: zone_dns,
|
91
|
-
description:
|
91
|
+
description: description,
|
92
92
|
name_server_set: name_server_set
|
93
93
|
)
|
94
94
|
execute { service.create_managed_zone @project, managed_zone }
|
data/lib/google/cloud/dns.rb
CHANGED
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
retries ||= configure.retries
|
81
81
|
timeout ||= configure.timeout
|
82
82
|
endpoint ||= configure.endpoint
|
83
|
-
credentials ||=
|
83
|
+
credentials ||= keyfile || default_credentials(scope: scope)
|
84
84
|
|
85
85
|
unless credentials.is_a? Google::Auth::Credentials
|
86
86
|
credentials = Dns::Credentials.new credentials, scope: scope
|
data/lib/google-cloud-dns.rb
CHANGED
@@ -64,9 +64,11 @@ module Google
|
|
64
64
|
# dns = gcloud.dns scope: dns_readonly
|
65
65
|
#
|
66
66
|
def dns scope: nil, retries: nil, timeout: nil
|
67
|
+
retries ||= @retries
|
68
|
+
timeout ||= @timeout
|
67
69
|
Google::Cloud.dns @project, @keyfile, scope: scope,
|
68
|
-
retries:
|
69
|
-
timeout:
|
70
|
+
retries: retries,
|
71
|
+
timeout: timeout
|
70
72
|
end
|
71
73
|
|
72
74
|
##
|
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.
|
4
|
+
version: 0.37.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:
|
12
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -73,146 +73,6 @@ dependencies:
|
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '1.04'
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: google-style
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.26.1
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.26.1
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: minitest
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '5.16'
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '5.16'
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: minitest-autotest
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.0'
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.0'
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: minitest-focus
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.1'
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.1'
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: minitest-rg
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '5.2'
|
139
|
-
type: :development
|
140
|
-
prerelease: false
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '5.2'
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: autotest-suffix
|
148
|
-
requirement: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '1.1'
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.1'
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: redcarpet
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '3.0'
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.0'
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: simplecov
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0.9'
|
181
|
-
type: :development
|
182
|
-
prerelease: false
|
183
|
-
version_requirements: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0.9'
|
188
|
-
- !ruby/object:Gem::Dependency
|
189
|
-
name: yard
|
190
|
-
requirement: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0.9'
|
195
|
-
type: :development
|
196
|
-
prerelease: false
|
197
|
-
version_requirements: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0.9'
|
202
|
-
- !ruby/object:Gem::Dependency
|
203
|
-
name: yard-doctest
|
204
|
-
requirement: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - "~>"
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 0.1.13
|
209
|
-
type: :development
|
210
|
-
prerelease: false
|
211
|
-
version_requirements: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 0.1.13
|
216
76
|
description: google-cloud-dns is the official library for Google Cloud DNS.
|
217
77
|
email:
|
218
78
|
- mike@blowmage.com
|
@@ -256,14 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
116
|
requirements:
|
257
117
|
- - ">="
|
258
118
|
- !ruby/object:Gem::Version
|
259
|
-
version: '2.
|
119
|
+
version: '2.7'
|
260
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
121
|
requirements:
|
262
122
|
- - ">="
|
263
123
|
- !ruby/object:Gem::Version
|
264
124
|
version: '0'
|
265
125
|
requirements: []
|
266
|
-
rubygems_version: 3.
|
126
|
+
rubygems_version: 3.5.6
|
267
127
|
signing_key:
|
268
128
|
specification_version: 4
|
269
129
|
summary: API Client library for Google Cloud DNS
|