google-apis-dns_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-dns_v1.rb +15 -0
- data/lib/google/apis/dns_v1.rb +45 -0
- data/lib/google/apis/dns_v1/classes.rb +1676 -0
- data/lib/google/apis/dns_v1/gem_version.rb +28 -0
- data/lib/google/apis/dns_v1/representations.rb +704 -0
- data/lib/google/apis/dns_v1/service.rb +915 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9dc31440066eae80b12acde3d6105cf0d9026c784975d1ace751fd7c6f90c4ad
|
4
|
+
data.tar.gz: b7dbf389ce5e42c9c73efa7443bf8ee9c2e82eef7f7e40c18a13c257c25541a6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 22af0fcfb494f7a3b03b8e2ef4e9b8769781a53a5058836723d9258968a7d6126959a974234a98b478e1c568a97816b2c4f6ba78ab75161ba24994a21a9ba553
|
7
|
+
data.tar.gz: 3e7cae17663f65c31ec38bb8f7043fa38f828c50be6fd7a0e5ce0cb3d94c43850dd9eb6aa0e789ff8be70f9cc07ed5326ae51ebec087ea8a853c0e48d5997795
|
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1 of the Cloud DNS API
|
2
|
+
|
3
|
+
This is a simple client library for version V1 of the Cloud DNS API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/dns.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-dns_v1', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-dns_v1
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/dns_v1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::DnsV1::DnsService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Dns service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Cloud DNS API, see the {Google::Apis::DnsV1::DnsService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-dns_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://cloud.google.com/dns/docs) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/dns_v1"
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/dns_v1/service.rb'
|
16
|
+
require 'google/apis/dns_v1/classes.rb'
|
17
|
+
require 'google/apis/dns_v1/representations.rb'
|
18
|
+
require 'google/apis/dns_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Cloud DNS API
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @see https://cloud.google.com/dns/docs
|
27
|
+
module DnsV1
|
28
|
+
# Version of the Cloud DNS API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# View and manage your data across Google Cloud Platform services
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
|
35
|
+
# View your data across Google Cloud Platform services
|
36
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
37
|
+
|
38
|
+
# View your DNS records hosted by Google Cloud DNS
|
39
|
+
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
|
40
|
+
|
41
|
+
# View and manage your DNS records hosted by Google Cloud DNS
|
42
|
+
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,1676 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module DnsV1
|
24
|
+
|
25
|
+
# A Change represents a set of ResourceRecordSet additions and deletions applied
|
26
|
+
# atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are
|
27
|
+
# modified by creating a new Change element in the Changes collection. In turn
|
28
|
+
# the Changes collection also records the past modifications to the
|
29
|
+
# ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is
|
30
|
+
# the sum effect of applying all Change elements in the Changes collection in
|
31
|
+
# sequence.
|
32
|
+
class Change
|
33
|
+
include Google::Apis::Core::Hashable
|
34
|
+
|
35
|
+
# Which ResourceRecordSets to add?
|
36
|
+
# Corresponds to the JSON property `additions`
|
37
|
+
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
|
38
|
+
attr_accessor :additions
|
39
|
+
|
40
|
+
# Which ResourceRecordSets to remove? Must match existing data exactly.
|
41
|
+
# Corresponds to the JSON property `deletions`
|
42
|
+
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
|
43
|
+
attr_accessor :deletions
|
44
|
+
|
45
|
+
# Unique identifier for the resource; defined by the server (output only).
|
46
|
+
# Corresponds to the JSON property `id`
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :id
|
49
|
+
|
50
|
+
# If the DNS queries for the zone will be served.
|
51
|
+
# Corresponds to the JSON property `isServing`
|
52
|
+
# @return [Boolean]
|
53
|
+
attr_accessor :is_serving
|
54
|
+
alias_method :is_serving?, :is_serving
|
55
|
+
|
56
|
+
#
|
57
|
+
# Corresponds to the JSON property `kind`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :kind
|
60
|
+
|
61
|
+
# The time that this operation was started by the server (output only). This is
|
62
|
+
# in RFC3339 text format.
|
63
|
+
# Corresponds to the JSON property `startTime`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :start_time
|
66
|
+
|
67
|
+
# Status of the operation (output only). A status of "done" means that the
|
68
|
+
# request to update the authoritative servers has been sent but the servers
|
69
|
+
# might not be updated yet.
|
70
|
+
# Corresponds to the JSON property `status`
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :status
|
73
|
+
|
74
|
+
def initialize(**args)
|
75
|
+
update!(**args)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Update properties of this object
|
79
|
+
def update!(**args)
|
80
|
+
@additions = args[:additions] if args.key?(:additions)
|
81
|
+
@deletions = args[:deletions] if args.key?(:deletions)
|
82
|
+
@id = args[:id] if args.key?(:id)
|
83
|
+
@is_serving = args[:is_serving] if args.key?(:is_serving)
|
84
|
+
@kind = args[:kind] if args.key?(:kind)
|
85
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
86
|
+
@status = args[:status] if args.key?(:status)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# The response to a request to enumerate Changes to a ResourceRecordSets
|
91
|
+
# collection.
|
92
|
+
class ListChangesResponse
|
93
|
+
include Google::Apis::Core::Hashable
|
94
|
+
|
95
|
+
# The requested changes.
|
96
|
+
# Corresponds to the JSON property `changes`
|
97
|
+
# @return [Array<Google::Apis::DnsV1::Change>]
|
98
|
+
attr_accessor :changes
|
99
|
+
|
100
|
+
# Elements common to every response.
|
101
|
+
# Corresponds to the JSON property `header`
|
102
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
103
|
+
attr_accessor :header
|
104
|
+
|
105
|
+
# Type of resource.
|
106
|
+
# Corresponds to the JSON property `kind`
|
107
|
+
# @return [String]
|
108
|
+
attr_accessor :kind
|
109
|
+
|
110
|
+
# The presence of this field indicates that there exist more results following
|
111
|
+
# your last page of results in pagination order. To fetch them, make another
|
112
|
+
# list request using this value as your pagination token. In this way you can
|
113
|
+
# retrieve the complete contents of even very large collections one page at a
|
114
|
+
# time. However, if the contents of the collection change between the first and
|
115
|
+
# last paginated list request, the set of all elements returned will be an
|
116
|
+
# inconsistent view of the collection. There is no way to retrieve a "snapshot"
|
117
|
+
# of collections larger than the maximum page size.
|
118
|
+
# Corresponds to the JSON property `nextPageToken`
|
119
|
+
# @return [String]
|
120
|
+
attr_accessor :next_page_token
|
121
|
+
|
122
|
+
def initialize(**args)
|
123
|
+
update!(**args)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Update properties of this object
|
127
|
+
def update!(**args)
|
128
|
+
@changes = args[:changes] if args.key?(:changes)
|
129
|
+
@header = args[:header] if args.key?(:header)
|
130
|
+
@kind = args[:kind] if args.key?(:kind)
|
131
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# A DNSSEC key pair.
|
136
|
+
class DnsKey
|
137
|
+
include Google::Apis::Core::Hashable
|
138
|
+
|
139
|
+
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
|
140
|
+
# creation time.
|
141
|
+
# Corresponds to the JSON property `algorithm`
|
142
|
+
# @return [String]
|
143
|
+
attr_accessor :algorithm
|
144
|
+
|
145
|
+
# The time that this resource was created in the control plane. This is in
|
146
|
+
# RFC3339 text format. Output only.
|
147
|
+
# Corresponds to the JSON property `creationTime`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :creation_time
|
150
|
+
|
151
|
+
# A mutable string of at most 1024 characters associated with this resource for
|
152
|
+
# the user's convenience. Has no effect on the resource's function.
|
153
|
+
# Corresponds to the JSON property `description`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :description
|
156
|
+
|
157
|
+
# Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
|
158
|
+
# These digests are needed to construct a DS record that points at this DNS key.
|
159
|
+
# Output only.
|
160
|
+
# Corresponds to the JSON property `digests`
|
161
|
+
# @return [Array<Google::Apis::DnsV1::DnsKeyDigest>]
|
162
|
+
attr_accessor :digests
|
163
|
+
|
164
|
+
# Unique identifier for the resource; defined by the server (output only).
|
165
|
+
# Corresponds to the JSON property `id`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :id
|
168
|
+
|
169
|
+
# Active keys will be used to sign subsequent changes to the ManagedZone.
|
170
|
+
# Inactive keys will still be present as DNSKEY Resource Records for the use of
|
171
|
+
# resolvers validating existing signatures.
|
172
|
+
# Corresponds to the JSON property `isActive`
|
173
|
+
# @return [Boolean]
|
174
|
+
attr_accessor :is_active
|
175
|
+
alias_method :is_active?, :is_active
|
176
|
+
|
177
|
+
# Length of the key in bits. Specified at creation time then immutable.
|
178
|
+
# Corresponds to the JSON property `keyLength`
|
179
|
+
# @return [Fixnum]
|
180
|
+
attr_accessor :key_length
|
181
|
+
|
182
|
+
# The key tag is a non-cryptographic hash of the a DNSKEY resource record
|
183
|
+
# associated with this DnsKey. The key tag can be used to identify a DNSKEY more
|
184
|
+
# quickly (but it is not a unique identifier). In particular, the key tag is
|
185
|
+
# used in a parent zone's DS record to point at the DNSKEY in this child
|
186
|
+
# ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
|
187
|
+
# to calculate it is specified in RFC4034 Appendix B. Output only.
|
188
|
+
# Corresponds to the JSON property `keyTag`
|
189
|
+
# @return [Fixnum]
|
190
|
+
attr_accessor :key_tag
|
191
|
+
|
192
|
+
#
|
193
|
+
# Corresponds to the JSON property `kind`
|
194
|
+
# @return [String]
|
195
|
+
attr_accessor :kind
|
196
|
+
|
197
|
+
# Base64 encoded public half of this key. Output only.
|
198
|
+
# Corresponds to the JSON property `publicKey`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :public_key
|
201
|
+
|
202
|
+
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
|
203
|
+
# Secure Entry Point flag set and, when active, will be used to sign only
|
204
|
+
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
|
205
|
+
# will be cleared and this key will be used to sign only resource record sets of
|
206
|
+
# other types. Immutable after creation time.
|
207
|
+
# Corresponds to the JSON property `type`
|
208
|
+
# @return [String]
|
209
|
+
attr_accessor :type
|
210
|
+
|
211
|
+
def initialize(**args)
|
212
|
+
update!(**args)
|
213
|
+
end
|
214
|
+
|
215
|
+
# Update properties of this object
|
216
|
+
def update!(**args)
|
217
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
218
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
219
|
+
@description = args[:description] if args.key?(:description)
|
220
|
+
@digests = args[:digests] if args.key?(:digests)
|
221
|
+
@id = args[:id] if args.key?(:id)
|
222
|
+
@is_active = args[:is_active] if args.key?(:is_active)
|
223
|
+
@key_length = args[:key_length] if args.key?(:key_length)
|
224
|
+
@key_tag = args[:key_tag] if args.key?(:key_tag)
|
225
|
+
@kind = args[:kind] if args.key?(:kind)
|
226
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
227
|
+
@type = args[:type] if args.key?(:type)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
class DnsKeyDigest
|
233
|
+
include Google::Apis::Core::Hashable
|
234
|
+
|
235
|
+
# The base-16 encoded bytes of this digest. Suitable for use in a DS resource
|
236
|
+
# record.
|
237
|
+
# Corresponds to the JSON property `digest`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :digest
|
240
|
+
|
241
|
+
# Specifies the algorithm used to calculate this digest.
|
242
|
+
# Corresponds to the JSON property `type`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :type
|
245
|
+
|
246
|
+
def initialize(**args)
|
247
|
+
update!(**args)
|
248
|
+
end
|
249
|
+
|
250
|
+
# Update properties of this object
|
251
|
+
def update!(**args)
|
252
|
+
@digest = args[:digest] if args.key?(:digest)
|
253
|
+
@type = args[:type] if args.key?(:type)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Parameters for DnsKey key generation. Used for generating initial keys for a
|
258
|
+
# new ManagedZone and as default when adding a new DnsKey.
|
259
|
+
class DnsKeySpec
|
260
|
+
include Google::Apis::Core::Hashable
|
261
|
+
|
262
|
+
# String mnemonic specifying the DNSSEC algorithm of this key.
|
263
|
+
# Corresponds to the JSON property `algorithm`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :algorithm
|
266
|
+
|
267
|
+
# Length of the keys in bits.
|
268
|
+
# Corresponds to the JSON property `keyLength`
|
269
|
+
# @return [Fixnum]
|
270
|
+
attr_accessor :key_length
|
271
|
+
|
272
|
+
# Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
|
273
|
+
# Key signing keys have the Secure Entry Point flag set and, when active, will
|
274
|
+
# only be used to sign resource record sets of type DNSKEY. Zone signing keys do
|
275
|
+
# not have the Secure Entry Point flag set and will be used to sign all other
|
276
|
+
# types of resource record sets.
|
277
|
+
# Corresponds to the JSON property `keyType`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :key_type
|
280
|
+
|
281
|
+
#
|
282
|
+
# Corresponds to the JSON property `kind`
|
283
|
+
# @return [String]
|
284
|
+
attr_accessor :kind
|
285
|
+
|
286
|
+
def initialize(**args)
|
287
|
+
update!(**args)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update properties of this object
|
291
|
+
def update!(**args)
|
292
|
+
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
293
|
+
@key_length = args[:key_length] if args.key?(:key_length)
|
294
|
+
@key_type = args[:key_type] if args.key?(:key_type)
|
295
|
+
@kind = args[:kind] if args.key?(:kind)
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# The response to a request to enumerate DnsKeys in a ManagedZone.
|
300
|
+
class DnsKeysListResponse
|
301
|
+
include Google::Apis::Core::Hashable
|
302
|
+
|
303
|
+
# The requested resources.
|
304
|
+
# Corresponds to the JSON property `dnsKeys`
|
305
|
+
# @return [Array<Google::Apis::DnsV1::DnsKey>]
|
306
|
+
attr_accessor :dns_keys
|
307
|
+
|
308
|
+
# Elements common to every response.
|
309
|
+
# Corresponds to the JSON property `header`
|
310
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
311
|
+
attr_accessor :header
|
312
|
+
|
313
|
+
# Type of resource.
|
314
|
+
# Corresponds to the JSON property `kind`
|
315
|
+
# @return [String]
|
316
|
+
attr_accessor :kind
|
317
|
+
|
318
|
+
# The presence of this field indicates that there exist more results following
|
319
|
+
# your last page of results in pagination order. To fetch them, make another
|
320
|
+
# list request using this value as your pagination token. In this way you can
|
321
|
+
# retrieve the complete contents of even very large collections one page at a
|
322
|
+
# time. However, if the contents of the collection change between the first and
|
323
|
+
# last paginated list request, the set of all elements returned will be an
|
324
|
+
# inconsistent view of the collection. There is no way to retrieve a "snapshot"
|
325
|
+
# of collections larger than the maximum page size.
|
326
|
+
# Corresponds to the JSON property `nextPageToken`
|
327
|
+
# @return [String]
|
328
|
+
attr_accessor :next_page_token
|
329
|
+
|
330
|
+
def initialize(**args)
|
331
|
+
update!(**args)
|
332
|
+
end
|
333
|
+
|
334
|
+
# Update properties of this object
|
335
|
+
def update!(**args)
|
336
|
+
@dns_keys = args[:dns_keys] if args.key?(:dns_keys)
|
337
|
+
@header = args[:header] if args.key?(:header)
|
338
|
+
@kind = args[:kind] if args.key?(:kind)
|
339
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
# A zone is a subtree of the DNS namespace under one administrative
|
344
|
+
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
|
345
|
+
# by the Cloud DNS service.
|
346
|
+
class ManagedZone
|
347
|
+
include Google::Apis::Core::Hashable
|
348
|
+
|
349
|
+
# The time that this resource was created on the server. This is in RFC3339 text
|
350
|
+
# format. Output only.
|
351
|
+
# Corresponds to the JSON property `creationTime`
|
352
|
+
# @return [String]
|
353
|
+
attr_accessor :creation_time
|
354
|
+
|
355
|
+
# A mutable string of at most 1024 characters associated with this resource for
|
356
|
+
# the user's convenience. Has no effect on the managed zone's function.
|
357
|
+
# Corresponds to the JSON property `description`
|
358
|
+
# @return [String]
|
359
|
+
attr_accessor :description
|
360
|
+
|
361
|
+
# The DNS name of this managed zone, for instance "example.com.".
|
362
|
+
# Corresponds to the JSON property `dnsName`
|
363
|
+
# @return [String]
|
364
|
+
attr_accessor :dns_name
|
365
|
+
|
366
|
+
# DNSSEC configuration.
|
367
|
+
# Corresponds to the JSON property `dnssecConfig`
|
368
|
+
# @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig]
|
369
|
+
attr_accessor :dnssec_config
|
370
|
+
|
371
|
+
# The presence for this field indicates that outbound forwarding is enabled for
|
372
|
+
# this zone. The value of this field contains the set of destinations to forward
|
373
|
+
# to.
|
374
|
+
# Corresponds to the JSON property `forwardingConfig`
|
375
|
+
# @return [Google::Apis::DnsV1::ManagedZoneForwardingConfig]
|
376
|
+
attr_accessor :forwarding_config
|
377
|
+
|
378
|
+
# Unique identifier for the resource; defined by the server (output only)
|
379
|
+
# Corresponds to the JSON property `id`
|
380
|
+
# @return [Fixnum]
|
381
|
+
attr_accessor :id
|
382
|
+
|
383
|
+
#
|
384
|
+
# Corresponds to the JSON property `kind`
|
385
|
+
# @return [String]
|
386
|
+
attr_accessor :kind
|
387
|
+
|
388
|
+
# User labels.
|
389
|
+
# Corresponds to the JSON property `labels`
|
390
|
+
# @return [Hash<String,String>]
|
391
|
+
attr_accessor :labels
|
392
|
+
|
393
|
+
# User assigned name for this resource. Must be unique within the project. The
|
394
|
+
# name must be 1-63 characters long, must begin with a letter, end with a letter
|
395
|
+
# or digit, and only contain lowercase letters, digits or dashes.
|
396
|
+
# Corresponds to the JSON property `name`
|
397
|
+
# @return [String]
|
398
|
+
attr_accessor :name
|
399
|
+
|
400
|
+
# Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
|
401
|
+
# is a set of DNS name servers that all host the same ManagedZones. Most users
|
402
|
+
# will leave this field unset.
|
403
|
+
# Corresponds to the JSON property `nameServerSet`
|
404
|
+
# @return [String]
|
405
|
+
attr_accessor :name_server_set
|
406
|
+
|
407
|
+
# Delegate your managed_zone to these virtual name servers; defined by the
|
408
|
+
# server (output only)
|
409
|
+
# Corresponds to the JSON property `nameServers`
|
410
|
+
# @return [Array<String>]
|
411
|
+
attr_accessor :name_servers
|
412
|
+
|
413
|
+
# The presence of this field indicates that DNS Peering is enabled for this zone.
|
414
|
+
# The value of this field contains the network to peer with.
|
415
|
+
# Corresponds to the JSON property `peeringConfig`
|
416
|
+
# @return [Google::Apis::DnsV1::ManagedZonePeeringConfig]
|
417
|
+
attr_accessor :peering_config
|
418
|
+
|
419
|
+
# For privately visible zones, the set of Virtual Private Cloud resources that
|
420
|
+
# the zone is visible from.
|
421
|
+
# Corresponds to the JSON property `privateVisibilityConfig`
|
422
|
+
# @return [Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig]
|
423
|
+
attr_accessor :private_visibility_config
|
424
|
+
|
425
|
+
# The presence of this field indicates that this is a managed reverse lookup
|
426
|
+
# zone and Cloud DNS will resolve reverse lookup queries using automatically
|
427
|
+
# configured records for VPC resources. This only applies to networks listed
|
428
|
+
# under private_visibility_config.
|
429
|
+
# Corresponds to the JSON property `reverseLookupConfig`
|
430
|
+
# @return [Google::Apis::DnsV1::ManagedZoneReverseLookupConfig]
|
431
|
+
attr_accessor :reverse_lookup_config
|
432
|
+
|
433
|
+
# Contains information about Service Directory-backed zones.
|
434
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
435
|
+
# @return [Google::Apis::DnsV1::ManagedZoneServiceDirectoryConfig]
|
436
|
+
attr_accessor :service_directory_config
|
437
|
+
|
438
|
+
# The zone's visibility: public zones are exposed to the Internet, while private
|
439
|
+
# zones are visible only to Virtual Private Cloud resources.
|
440
|
+
# Corresponds to the JSON property `visibility`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :visibility
|
443
|
+
|
444
|
+
def initialize(**args)
|
445
|
+
update!(**args)
|
446
|
+
end
|
447
|
+
|
448
|
+
# Update properties of this object
|
449
|
+
def update!(**args)
|
450
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
451
|
+
@description = args[:description] if args.key?(:description)
|
452
|
+
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
453
|
+
@dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
|
454
|
+
@forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config)
|
455
|
+
@id = args[:id] if args.key?(:id)
|
456
|
+
@kind = args[:kind] if args.key?(:kind)
|
457
|
+
@labels = args[:labels] if args.key?(:labels)
|
458
|
+
@name = args[:name] if args.key?(:name)
|
459
|
+
@name_server_set = args[:name_server_set] if args.key?(:name_server_set)
|
460
|
+
@name_servers = args[:name_servers] if args.key?(:name_servers)
|
461
|
+
@peering_config = args[:peering_config] if args.key?(:peering_config)
|
462
|
+
@private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config)
|
463
|
+
@reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config)
|
464
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
465
|
+
@visibility = args[:visibility] if args.key?(:visibility)
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
#
|
470
|
+
class ManagedZoneDnsSecConfig
|
471
|
+
include Google::Apis::Core::Hashable
|
472
|
+
|
473
|
+
# Specifies parameters for generating initial DnsKeys for this ManagedZone. Can
|
474
|
+
# only be changed while the state is OFF.
|
475
|
+
# Corresponds to the JSON property `defaultKeySpecs`
|
476
|
+
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
|
477
|
+
attr_accessor :default_key_specs
|
478
|
+
|
479
|
+
#
|
480
|
+
# Corresponds to the JSON property `kind`
|
481
|
+
# @return [String]
|
482
|
+
attr_accessor :kind
|
483
|
+
|
484
|
+
# Specifies the mechanism for authenticated denial-of-existence responses. Can
|
485
|
+
# only be changed while the state is OFF.
|
486
|
+
# Corresponds to the JSON property `nonExistence`
|
487
|
+
# @return [String]
|
488
|
+
attr_accessor :non_existence
|
489
|
+
|
490
|
+
# Specifies whether DNSSEC is enabled, and what mode it is in.
|
491
|
+
# Corresponds to the JSON property `state`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :state
|
494
|
+
|
495
|
+
def initialize(**args)
|
496
|
+
update!(**args)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Update properties of this object
|
500
|
+
def update!(**args)
|
501
|
+
@default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs)
|
502
|
+
@kind = args[:kind] if args.key?(:kind)
|
503
|
+
@non_existence = args[:non_existence] if args.key?(:non_existence)
|
504
|
+
@state = args[:state] if args.key?(:state)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
#
|
509
|
+
class ManagedZoneForwardingConfig
|
510
|
+
include Google::Apis::Core::Hashable
|
511
|
+
|
512
|
+
#
|
513
|
+
# Corresponds to the JSON property `kind`
|
514
|
+
# @return [String]
|
515
|
+
attr_accessor :kind
|
516
|
+
|
517
|
+
# List of target name servers to forward to. Cloud DNS will select the best
|
518
|
+
# available name server if more than one target is given.
|
519
|
+
# Corresponds to the JSON property `targetNameServers`
|
520
|
+
# @return [Array<Google::Apis::DnsV1::ManagedZoneForwardingConfigNameServerTarget>]
|
521
|
+
attr_accessor :target_name_servers
|
522
|
+
|
523
|
+
def initialize(**args)
|
524
|
+
update!(**args)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Update properties of this object
|
528
|
+
def update!(**args)
|
529
|
+
@kind = args[:kind] if args.key?(:kind)
|
530
|
+
@target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
#
|
535
|
+
class ManagedZoneForwardingConfigNameServerTarget
|
536
|
+
include Google::Apis::Core::Hashable
|
537
|
+
|
538
|
+
# Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud
|
539
|
+
# DNS will make forwarding decision based on address ranges, i.e. RFC1918
|
540
|
+
# addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
|
541
|
+
# PRIVATE, Cloud DNS will always send queries through VPC for this target.
|
542
|
+
# Corresponds to the JSON property `forwardingPath`
|
543
|
+
# @return [String]
|
544
|
+
attr_accessor :forwarding_path
|
545
|
+
|
546
|
+
# IPv4 address of a target name server.
|
547
|
+
# Corresponds to the JSON property `ipv4Address`
|
548
|
+
# @return [String]
|
549
|
+
attr_accessor :ipv4_address
|
550
|
+
|
551
|
+
#
|
552
|
+
# Corresponds to the JSON property `kind`
|
553
|
+
# @return [String]
|
554
|
+
attr_accessor :kind
|
555
|
+
|
556
|
+
def initialize(**args)
|
557
|
+
update!(**args)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Update properties of this object
|
561
|
+
def update!(**args)
|
562
|
+
@forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path)
|
563
|
+
@ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
|
564
|
+
@kind = args[:kind] if args.key?(:kind)
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
#
|
569
|
+
class ManagedZoneOperationsListResponse
|
570
|
+
include Google::Apis::Core::Hashable
|
571
|
+
|
572
|
+
# Elements common to every response.
|
573
|
+
# Corresponds to the JSON property `header`
|
574
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
575
|
+
attr_accessor :header
|
576
|
+
|
577
|
+
#
|
578
|
+
# Corresponds to the JSON property `kind`
|
579
|
+
# @return [String]
|
580
|
+
attr_accessor :kind
|
581
|
+
|
582
|
+
# The presence of this field indicates that there exist more results following
|
583
|
+
# your last page of results in pagination order. To fetch them, make another
|
584
|
+
# list request using this value as your page token. In this way you can retrieve
|
585
|
+
# the complete contents of even very large collections one page at a time.
|
586
|
+
# However, if the contents of the collection change between the first and last
|
587
|
+
# paginated list request, the set of all elements returned will be an
|
588
|
+
# inconsistent view of the collection. There is no way to retrieve a consistent
|
589
|
+
# snapshot of a collection larger than the maximum page size.
|
590
|
+
# Corresponds to the JSON property `nextPageToken`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :next_page_token
|
593
|
+
|
594
|
+
# The operation resources.
|
595
|
+
# Corresponds to the JSON property `operations`
|
596
|
+
# @return [Array<Google::Apis::DnsV1::Operation>]
|
597
|
+
attr_accessor :operations
|
598
|
+
|
599
|
+
def initialize(**args)
|
600
|
+
update!(**args)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Update properties of this object
|
604
|
+
def update!(**args)
|
605
|
+
@header = args[:header] if args.key?(:header)
|
606
|
+
@kind = args[:kind] if args.key?(:kind)
|
607
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
608
|
+
@operations = args[:operations] if args.key?(:operations)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
#
|
613
|
+
class ManagedZonePeeringConfig
|
614
|
+
include Google::Apis::Core::Hashable
|
615
|
+
|
616
|
+
#
|
617
|
+
# Corresponds to the JSON property `kind`
|
618
|
+
# @return [String]
|
619
|
+
attr_accessor :kind
|
620
|
+
|
621
|
+
# The network with which to peer.
|
622
|
+
# Corresponds to the JSON property `targetNetwork`
|
623
|
+
# @return [Google::Apis::DnsV1::ManagedZonePeeringConfigTargetNetwork]
|
624
|
+
attr_accessor :target_network
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
@kind = args[:kind] if args.key?(:kind)
|
633
|
+
@target_network = args[:target_network] if args.key?(:target_network)
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
#
|
638
|
+
class ManagedZonePeeringConfigTargetNetwork
|
639
|
+
include Google::Apis::Core::Hashable
|
640
|
+
|
641
|
+
# The time at which the zone was deactivated, in RFC 3339 date-time format. An
|
642
|
+
# empty string indicates that the peering connection is active. The producer
|
643
|
+
# network can deactivate a zone. The zone is automatically deactivated if the
|
644
|
+
# producer network that the zone targeted is deleted. Output only.
|
645
|
+
# Corresponds to the JSON property `deactivateTime`
|
646
|
+
# @return [String]
|
647
|
+
attr_accessor :deactivate_time
|
648
|
+
|
649
|
+
#
|
650
|
+
# Corresponds to the JSON property `kind`
|
651
|
+
# @return [String]
|
652
|
+
attr_accessor :kind
|
653
|
+
|
654
|
+
# The fully qualified URL of the VPC network to forward queries to. This should
|
655
|
+
# be formatted like https://www.googleapis.com/compute/v1/projects/`project`/
|
656
|
+
# global/networks/`network`
|
657
|
+
# Corresponds to the JSON property `networkUrl`
|
658
|
+
# @return [String]
|
659
|
+
attr_accessor :network_url
|
660
|
+
|
661
|
+
def initialize(**args)
|
662
|
+
update!(**args)
|
663
|
+
end
|
664
|
+
|
665
|
+
# Update properties of this object
|
666
|
+
def update!(**args)
|
667
|
+
@deactivate_time = args[:deactivate_time] if args.key?(:deactivate_time)
|
668
|
+
@kind = args[:kind] if args.key?(:kind)
|
669
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
#
|
674
|
+
class ManagedZonePrivateVisibilityConfig
|
675
|
+
include Google::Apis::Core::Hashable
|
676
|
+
|
677
|
+
#
|
678
|
+
# Corresponds to the JSON property `kind`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :kind
|
681
|
+
|
682
|
+
# The list of VPC networks that can see this zone.
|
683
|
+
# Corresponds to the JSON property `networks`
|
684
|
+
# @return [Array<Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfigNetwork>]
|
685
|
+
attr_accessor :networks
|
686
|
+
|
687
|
+
def initialize(**args)
|
688
|
+
update!(**args)
|
689
|
+
end
|
690
|
+
|
691
|
+
# Update properties of this object
|
692
|
+
def update!(**args)
|
693
|
+
@kind = args[:kind] if args.key?(:kind)
|
694
|
+
@networks = args[:networks] if args.key?(:networks)
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
698
|
+
#
|
699
|
+
class ManagedZonePrivateVisibilityConfigNetwork
|
700
|
+
include Google::Apis::Core::Hashable
|
701
|
+
|
702
|
+
#
|
703
|
+
# Corresponds to the JSON property `kind`
|
704
|
+
# @return [String]
|
705
|
+
attr_accessor :kind
|
706
|
+
|
707
|
+
# The fully qualified URL of the VPC network to bind to. This should be
|
708
|
+
# formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
|
709
|
+
# networks/`network`
|
710
|
+
# Corresponds to the JSON property `networkUrl`
|
711
|
+
# @return [String]
|
712
|
+
attr_accessor :network_url
|
713
|
+
|
714
|
+
def initialize(**args)
|
715
|
+
update!(**args)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Update properties of this object
|
719
|
+
def update!(**args)
|
720
|
+
@kind = args[:kind] if args.key?(:kind)
|
721
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
725
|
+
#
|
726
|
+
class ManagedZoneReverseLookupConfig
|
727
|
+
include Google::Apis::Core::Hashable
|
728
|
+
|
729
|
+
#
|
730
|
+
# Corresponds to the JSON property `kind`
|
731
|
+
# @return [String]
|
732
|
+
attr_accessor :kind
|
733
|
+
|
734
|
+
def initialize(**args)
|
735
|
+
update!(**args)
|
736
|
+
end
|
737
|
+
|
738
|
+
# Update properties of this object
|
739
|
+
def update!(**args)
|
740
|
+
@kind = args[:kind] if args.key?(:kind)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
# Contains information about Service Directory-backed zones.
|
745
|
+
class ManagedZoneServiceDirectoryConfig
|
746
|
+
include Google::Apis::Core::Hashable
|
747
|
+
|
748
|
+
#
|
749
|
+
# Corresponds to the JSON property `kind`
|
750
|
+
# @return [String]
|
751
|
+
attr_accessor :kind
|
752
|
+
|
753
|
+
# Contains information about the namespace associated with the zone.
|
754
|
+
# Corresponds to the JSON property `namespace`
|
755
|
+
# @return [Google::Apis::DnsV1::ManagedZoneServiceDirectoryConfigNamespace]
|
756
|
+
attr_accessor :namespace
|
757
|
+
|
758
|
+
def initialize(**args)
|
759
|
+
update!(**args)
|
760
|
+
end
|
761
|
+
|
762
|
+
# Update properties of this object
|
763
|
+
def update!(**args)
|
764
|
+
@kind = args[:kind] if args.key?(:kind)
|
765
|
+
@namespace = args[:namespace] if args.key?(:namespace)
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
#
|
770
|
+
class ManagedZoneServiceDirectoryConfigNamespace
|
771
|
+
include Google::Apis::Core::Hashable
|
772
|
+
|
773
|
+
# The time that the namespace backing this zone was deleted, empty string if it
|
774
|
+
# still exists. This is in RFC3339 text format. Output only.
|
775
|
+
# Corresponds to the JSON property `deletionTime`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :deletion_time
|
778
|
+
|
779
|
+
#
|
780
|
+
# Corresponds to the JSON property `kind`
|
781
|
+
# @return [String]
|
782
|
+
attr_accessor :kind
|
783
|
+
|
784
|
+
# The fully qualified URL of the namespace associated with the zone. This should
|
785
|
+
# be formatted like https://servicedirectory.googleapis.com/v1/projects/`project`
|
786
|
+
# /locations/`location`/namespaces/`namespace`
|
787
|
+
# Corresponds to the JSON property `namespaceUrl`
|
788
|
+
# @return [String]
|
789
|
+
attr_accessor :namespace_url
|
790
|
+
|
791
|
+
def initialize(**args)
|
792
|
+
update!(**args)
|
793
|
+
end
|
794
|
+
|
795
|
+
# Update properties of this object
|
796
|
+
def update!(**args)
|
797
|
+
@deletion_time = args[:deletion_time] if args.key?(:deletion_time)
|
798
|
+
@kind = args[:kind] if args.key?(:kind)
|
799
|
+
@namespace_url = args[:namespace_url] if args.key?(:namespace_url)
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
#
|
804
|
+
class ListManagedZonesResponse
|
805
|
+
include Google::Apis::Core::Hashable
|
806
|
+
|
807
|
+
# Elements common to every response.
|
808
|
+
# Corresponds to the JSON property `header`
|
809
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
810
|
+
attr_accessor :header
|
811
|
+
|
812
|
+
# Type of resource.
|
813
|
+
# Corresponds to the JSON property `kind`
|
814
|
+
# @return [String]
|
815
|
+
attr_accessor :kind
|
816
|
+
|
817
|
+
# The managed zone resources.
|
818
|
+
# Corresponds to the JSON property `managedZones`
|
819
|
+
# @return [Array<Google::Apis::DnsV1::ManagedZone>]
|
820
|
+
attr_accessor :managed_zones
|
821
|
+
|
822
|
+
# The presence of this field indicates that there exist more results following
|
823
|
+
# your last page of results in pagination order. To fetch them, make another
|
824
|
+
# list request using this value as your page token. In this way you can retrieve
|
825
|
+
# the complete contents of even very large collections one page at a time.
|
826
|
+
# However, if the contents of the collection change between the first and last
|
827
|
+
# paginated list request, the set of all elements returned will be an
|
828
|
+
# inconsistent view of the collection. There is no way to retrieve a consistent
|
829
|
+
# snapshot of a collection larger than the maximum page size.
|
830
|
+
# Corresponds to the JSON property `nextPageToken`
|
831
|
+
# @return [String]
|
832
|
+
attr_accessor :next_page_token
|
833
|
+
|
834
|
+
def initialize(**args)
|
835
|
+
update!(**args)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Update properties of this object
|
839
|
+
def update!(**args)
|
840
|
+
@header = args[:header] if args.key?(:header)
|
841
|
+
@kind = args[:kind] if args.key?(:kind)
|
842
|
+
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
843
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
844
|
+
end
|
845
|
+
end
|
846
|
+
|
847
|
+
# An operation represents a successful mutation performed on a Cloud DNS
|
848
|
+
# resource. Operations provide: - An audit log of server resource mutations. - A
|
849
|
+
# way to recover/retry API calls in the case where the response is never
|
850
|
+
# received by the caller. Use the caller specified client_operation_id.
|
851
|
+
class Operation
|
852
|
+
include Google::Apis::Core::Hashable
|
853
|
+
|
854
|
+
# Only populated if the operation targeted a DnsKey (output only).
|
855
|
+
# Corresponds to the JSON property `dnsKeyContext`
|
856
|
+
# @return [Google::Apis::DnsV1::OperationDnsKeyContext]
|
857
|
+
attr_accessor :dns_key_context
|
858
|
+
|
859
|
+
# Unique identifier for the resource. This is the client_operation_id if the
|
860
|
+
# client specified it when the mutation was initiated, otherwise, it is
|
861
|
+
# generated by the server. The name must be 1-63 characters long and match the
|
862
|
+
# regular expression [-a-z0-9]? (output only)
|
863
|
+
# Corresponds to the JSON property `id`
|
864
|
+
# @return [String]
|
865
|
+
attr_accessor :id
|
866
|
+
|
867
|
+
#
|
868
|
+
# Corresponds to the JSON property `kind`
|
869
|
+
# @return [String]
|
870
|
+
attr_accessor :kind
|
871
|
+
|
872
|
+
# The time that this operation was started by the server. This is in RFC3339
|
873
|
+
# text format (output only).
|
874
|
+
# Corresponds to the JSON property `startTime`
|
875
|
+
# @return [String]
|
876
|
+
attr_accessor :start_time
|
877
|
+
|
878
|
+
# Status of the operation. Can be one of the following: "PENDING" or "DONE" (
|
879
|
+
# output only). A status of "DONE" means that the request to update the
|
880
|
+
# authoritative servers has been sent, but the servers might not be updated yet.
|
881
|
+
# Corresponds to the JSON property `status`
|
882
|
+
# @return [String]
|
883
|
+
attr_accessor :status
|
884
|
+
|
885
|
+
# Type of the operation. Operations include insert, update, and delete (output
|
886
|
+
# only).
|
887
|
+
# Corresponds to the JSON property `type`
|
888
|
+
# @return [String]
|
889
|
+
attr_accessor :type
|
890
|
+
|
891
|
+
# User who requested the operation, for example: user@example.com. cloud-dns-
|
892
|
+
# system for operations automatically done by the system. (output only)
|
893
|
+
# Corresponds to the JSON property `user`
|
894
|
+
# @return [String]
|
895
|
+
attr_accessor :user
|
896
|
+
|
897
|
+
# Only populated if the operation targeted a ManagedZone (output only).
|
898
|
+
# Corresponds to the JSON property `zoneContext`
|
899
|
+
# @return [Google::Apis::DnsV1::OperationManagedZoneContext]
|
900
|
+
attr_accessor :zone_context
|
901
|
+
|
902
|
+
def initialize(**args)
|
903
|
+
update!(**args)
|
904
|
+
end
|
905
|
+
|
906
|
+
# Update properties of this object
|
907
|
+
def update!(**args)
|
908
|
+
@dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context)
|
909
|
+
@id = args[:id] if args.key?(:id)
|
910
|
+
@kind = args[:kind] if args.key?(:kind)
|
911
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
912
|
+
@status = args[:status] if args.key?(:status)
|
913
|
+
@type = args[:type] if args.key?(:type)
|
914
|
+
@user = args[:user] if args.key?(:user)
|
915
|
+
@zone_context = args[:zone_context] if args.key?(:zone_context)
|
916
|
+
end
|
917
|
+
end
|
918
|
+
|
919
|
+
#
|
920
|
+
class OperationDnsKeyContext
|
921
|
+
include Google::Apis::Core::Hashable
|
922
|
+
|
923
|
+
# A DNSSEC key pair.
|
924
|
+
# Corresponds to the JSON property `newValue`
|
925
|
+
# @return [Google::Apis::DnsV1::DnsKey]
|
926
|
+
attr_accessor :new_value
|
927
|
+
|
928
|
+
# A DNSSEC key pair.
|
929
|
+
# Corresponds to the JSON property `oldValue`
|
930
|
+
# @return [Google::Apis::DnsV1::DnsKey]
|
931
|
+
attr_accessor :old_value
|
932
|
+
|
933
|
+
def initialize(**args)
|
934
|
+
update!(**args)
|
935
|
+
end
|
936
|
+
|
937
|
+
# Update properties of this object
|
938
|
+
def update!(**args)
|
939
|
+
@new_value = args[:new_value] if args.key?(:new_value)
|
940
|
+
@old_value = args[:old_value] if args.key?(:old_value)
|
941
|
+
end
|
942
|
+
end
|
943
|
+
|
944
|
+
#
|
945
|
+
class OperationManagedZoneContext
|
946
|
+
include Google::Apis::Core::Hashable
|
947
|
+
|
948
|
+
# A zone is a subtree of the DNS namespace under one administrative
|
949
|
+
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
|
950
|
+
# by the Cloud DNS service.
|
951
|
+
# Corresponds to the JSON property `newValue`
|
952
|
+
# @return [Google::Apis::DnsV1::ManagedZone]
|
953
|
+
attr_accessor :new_value
|
954
|
+
|
955
|
+
# A zone is a subtree of the DNS namespace under one administrative
|
956
|
+
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
|
957
|
+
# by the Cloud DNS service.
|
958
|
+
# Corresponds to the JSON property `oldValue`
|
959
|
+
# @return [Google::Apis::DnsV1::ManagedZone]
|
960
|
+
attr_accessor :old_value
|
961
|
+
|
962
|
+
def initialize(**args)
|
963
|
+
update!(**args)
|
964
|
+
end
|
965
|
+
|
966
|
+
# Update properties of this object
|
967
|
+
def update!(**args)
|
968
|
+
@new_value = args[:new_value] if args.key?(:new_value)
|
969
|
+
@old_value = args[:old_value] if args.key?(:old_value)
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
973
|
+
#
|
974
|
+
class PoliciesListResponse
|
975
|
+
include Google::Apis::Core::Hashable
|
976
|
+
|
977
|
+
# Elements common to every response.
|
978
|
+
# Corresponds to the JSON property `header`
|
979
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
980
|
+
attr_accessor :header
|
981
|
+
|
982
|
+
# Type of resource.
|
983
|
+
# Corresponds to the JSON property `kind`
|
984
|
+
# @return [String]
|
985
|
+
attr_accessor :kind
|
986
|
+
|
987
|
+
# The presence of this field indicates that there exist more results following
|
988
|
+
# your last page of results in pagination order. To fetch them, make another
|
989
|
+
# list request using this value as your page token. In this way you can retrieve
|
990
|
+
# the complete contents of even very large collections one page at a time.
|
991
|
+
# However, if the contents of the collection change between the first and last
|
992
|
+
# paginated list request, the set of all elements returned will be an
|
993
|
+
# inconsistent view of the collection. There is no way to retrieve a consistent
|
994
|
+
# snapshot of a collection larger than the maximum page size.
|
995
|
+
# Corresponds to the JSON property `nextPageToken`
|
996
|
+
# @return [String]
|
997
|
+
attr_accessor :next_page_token
|
998
|
+
|
999
|
+
# The policy resources.
|
1000
|
+
# Corresponds to the JSON property `policies`
|
1001
|
+
# @return [Array<Google::Apis::DnsV1::Policy>]
|
1002
|
+
attr_accessor :policies
|
1003
|
+
|
1004
|
+
def initialize(**args)
|
1005
|
+
update!(**args)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Update properties of this object
|
1009
|
+
def update!(**args)
|
1010
|
+
@header = args[:header] if args.key?(:header)
|
1011
|
+
@kind = args[:kind] if args.key?(:kind)
|
1012
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1013
|
+
@policies = args[:policies] if args.key?(:policies)
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
#
|
1018
|
+
class PoliciesPatchResponse
|
1019
|
+
include Google::Apis::Core::Hashable
|
1020
|
+
|
1021
|
+
# Elements common to every response.
|
1022
|
+
# Corresponds to the JSON property `header`
|
1023
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1024
|
+
attr_accessor :header
|
1025
|
+
|
1026
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
1027
|
+
# Cloud resources.
|
1028
|
+
# Corresponds to the JSON property `policy`
|
1029
|
+
# @return [Google::Apis::DnsV1::Policy]
|
1030
|
+
attr_accessor :policy
|
1031
|
+
|
1032
|
+
def initialize(**args)
|
1033
|
+
update!(**args)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Update properties of this object
|
1037
|
+
def update!(**args)
|
1038
|
+
@header = args[:header] if args.key?(:header)
|
1039
|
+
@policy = args[:policy] if args.key?(:policy)
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
#
|
1044
|
+
class PoliciesUpdateResponse
|
1045
|
+
include Google::Apis::Core::Hashable
|
1046
|
+
|
1047
|
+
# Elements common to every response.
|
1048
|
+
# Corresponds to the JSON property `header`
|
1049
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1050
|
+
attr_accessor :header
|
1051
|
+
|
1052
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
1053
|
+
# Cloud resources.
|
1054
|
+
# Corresponds to the JSON property `policy`
|
1055
|
+
# @return [Google::Apis::DnsV1::Policy]
|
1056
|
+
attr_accessor :policy
|
1057
|
+
|
1058
|
+
def initialize(**args)
|
1059
|
+
update!(**args)
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# Update properties of this object
|
1063
|
+
def update!(**args)
|
1064
|
+
@header = args[:header] if args.key?(:header)
|
1065
|
+
@policy = args[:policy] if args.key?(:policy)
|
1066
|
+
end
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# A policy is a collection of DNS rules applied to one or more Virtual Private
|
1070
|
+
# Cloud resources.
|
1071
|
+
class Policy
|
1072
|
+
include Google::Apis::Core::Hashable
|
1073
|
+
|
1074
|
+
# Sets an alternative name server for the associated networks. When specified,
|
1075
|
+
# all DNS queries are forwarded to a name server that you choose. Names such as .
|
1076
|
+
# internal are not available when an alternative name server is specified.
|
1077
|
+
# Corresponds to the JSON property `alternativeNameServerConfig`
|
1078
|
+
# @return [Google::Apis::DnsV1::PolicyAlternativeNameServerConfig]
|
1079
|
+
attr_accessor :alternative_name_server_config
|
1080
|
+
|
1081
|
+
# A mutable string of at most 1024 characters associated with this resource for
|
1082
|
+
# the user's convenience. Has no effect on the policy's function.
|
1083
|
+
# Corresponds to the JSON property `description`
|
1084
|
+
# @return [String]
|
1085
|
+
attr_accessor :description
|
1086
|
+
|
1087
|
+
# Allows networks bound to this policy to receive DNS queries sent by VMs or
|
1088
|
+
# applications over VPN connections. When enabled, a virtual IP address will be
|
1089
|
+
# allocated from each of the sub-networks that are bound to this policy.
|
1090
|
+
# Corresponds to the JSON property `enableInboundForwarding`
|
1091
|
+
# @return [Boolean]
|
1092
|
+
attr_accessor :enable_inbound_forwarding
|
1093
|
+
alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding
|
1094
|
+
|
1095
|
+
# Controls whether logging is enabled for the networks bound to this policy.
|
1096
|
+
# Defaults to no logging if not set.
|
1097
|
+
# Corresponds to the JSON property `enableLogging`
|
1098
|
+
# @return [Boolean]
|
1099
|
+
attr_accessor :enable_logging
|
1100
|
+
alias_method :enable_logging?, :enable_logging
|
1101
|
+
|
1102
|
+
# Unique identifier for the resource; defined by the server (output only).
|
1103
|
+
# Corresponds to the JSON property `id`
|
1104
|
+
# @return [Fixnum]
|
1105
|
+
attr_accessor :id
|
1106
|
+
|
1107
|
+
#
|
1108
|
+
# Corresponds to the JSON property `kind`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :kind
|
1111
|
+
|
1112
|
+
# User assigned name for this policy.
|
1113
|
+
# Corresponds to the JSON property `name`
|
1114
|
+
# @return [String]
|
1115
|
+
attr_accessor :name
|
1116
|
+
|
1117
|
+
# List of network names specifying networks to which this policy is applied.
|
1118
|
+
# Corresponds to the JSON property `networks`
|
1119
|
+
# @return [Array<Google::Apis::DnsV1::PolicyNetwork>]
|
1120
|
+
attr_accessor :networks
|
1121
|
+
|
1122
|
+
def initialize(**args)
|
1123
|
+
update!(**args)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Update properties of this object
|
1127
|
+
def update!(**args)
|
1128
|
+
@alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config)
|
1129
|
+
@description = args[:description] if args.key?(:description)
|
1130
|
+
@enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding)
|
1131
|
+
@enable_logging = args[:enable_logging] if args.key?(:enable_logging)
|
1132
|
+
@id = args[:id] if args.key?(:id)
|
1133
|
+
@kind = args[:kind] if args.key?(:kind)
|
1134
|
+
@name = args[:name] if args.key?(:name)
|
1135
|
+
@networks = args[:networks] if args.key?(:networks)
|
1136
|
+
end
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
#
|
1140
|
+
class PolicyAlternativeNameServerConfig
|
1141
|
+
include Google::Apis::Core::Hashable
|
1142
|
+
|
1143
|
+
#
|
1144
|
+
# Corresponds to the JSON property `kind`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :kind
|
1147
|
+
|
1148
|
+
# Sets an alternative name server for the associated networks. When specified,
|
1149
|
+
# all DNS queries are forwarded to a name server that you choose. Names such as .
|
1150
|
+
# internal are not available when an alternative name server is specified.
|
1151
|
+
# Corresponds to the JSON property `targetNameServers`
|
1152
|
+
# @return [Array<Google::Apis::DnsV1::PolicyAlternativeNameServerConfigTargetNameServer>]
|
1153
|
+
attr_accessor :target_name_servers
|
1154
|
+
|
1155
|
+
def initialize(**args)
|
1156
|
+
update!(**args)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Update properties of this object
|
1160
|
+
def update!(**args)
|
1161
|
+
@kind = args[:kind] if args.key?(:kind)
|
1162
|
+
@target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
|
1163
|
+
end
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
#
|
1167
|
+
class PolicyAlternativeNameServerConfigTargetNameServer
|
1168
|
+
include Google::Apis::Core::Hashable
|
1169
|
+
|
1170
|
+
# Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud
|
1171
|
+
# DNS will make forwarding decision based on address ranges, i.e. RFC1918
|
1172
|
+
# addresses go to the VPC, non-RFC1918 addresses go to the Internet. When set to
|
1173
|
+
# PRIVATE, Cloud DNS will always send queries through VPC for this target.
|
1174
|
+
# Corresponds to the JSON property `forwardingPath`
|
1175
|
+
# @return [String]
|
1176
|
+
attr_accessor :forwarding_path
|
1177
|
+
|
1178
|
+
# IPv4 address to forward to.
|
1179
|
+
# Corresponds to the JSON property `ipv4Address`
|
1180
|
+
# @return [String]
|
1181
|
+
attr_accessor :ipv4_address
|
1182
|
+
|
1183
|
+
#
|
1184
|
+
# Corresponds to the JSON property `kind`
|
1185
|
+
# @return [String]
|
1186
|
+
attr_accessor :kind
|
1187
|
+
|
1188
|
+
def initialize(**args)
|
1189
|
+
update!(**args)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# Update properties of this object
|
1193
|
+
def update!(**args)
|
1194
|
+
@forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path)
|
1195
|
+
@ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
|
1196
|
+
@kind = args[:kind] if args.key?(:kind)
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
#
|
1201
|
+
class PolicyNetwork
|
1202
|
+
include Google::Apis::Core::Hashable
|
1203
|
+
|
1204
|
+
#
|
1205
|
+
# Corresponds to the JSON property `kind`
|
1206
|
+
# @return [String]
|
1207
|
+
attr_accessor :kind
|
1208
|
+
|
1209
|
+
# The fully qualified URL of the VPC network to bind to. This should be
|
1210
|
+
# formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
|
1211
|
+
# networks/`network`
|
1212
|
+
# Corresponds to the JSON property `networkUrl`
|
1213
|
+
# @return [String]
|
1214
|
+
attr_accessor :network_url
|
1215
|
+
|
1216
|
+
def initialize(**args)
|
1217
|
+
update!(**args)
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
# Update properties of this object
|
1221
|
+
def update!(**args)
|
1222
|
+
@kind = args[:kind] if args.key?(:kind)
|
1223
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# A project resource. The project is a top level container for resources
|
1228
|
+
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
|
1229
|
+
# console.
|
1230
|
+
class Project
|
1231
|
+
include Google::Apis::Core::Hashable
|
1232
|
+
|
1233
|
+
# User assigned unique identifier for the resource (output only).
|
1234
|
+
# Corresponds to the JSON property `id`
|
1235
|
+
# @return [String]
|
1236
|
+
attr_accessor :id
|
1237
|
+
|
1238
|
+
#
|
1239
|
+
# Corresponds to the JSON property `kind`
|
1240
|
+
# @return [String]
|
1241
|
+
attr_accessor :kind
|
1242
|
+
|
1243
|
+
# Unique numeric identifier for the resource; defined by the server (output only)
|
1244
|
+
# .
|
1245
|
+
# Corresponds to the JSON property `number`
|
1246
|
+
# @return [Fixnum]
|
1247
|
+
attr_accessor :number
|
1248
|
+
|
1249
|
+
# Limits associated with a Project.
|
1250
|
+
# Corresponds to the JSON property `quota`
|
1251
|
+
# @return [Google::Apis::DnsV1::Quota]
|
1252
|
+
attr_accessor :quota
|
1253
|
+
|
1254
|
+
def initialize(**args)
|
1255
|
+
update!(**args)
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
# Update properties of this object
|
1259
|
+
def update!(**args)
|
1260
|
+
@id = args[:id] if args.key?(:id)
|
1261
|
+
@kind = args[:kind] if args.key?(:kind)
|
1262
|
+
@number = args[:number] if args.key?(:number)
|
1263
|
+
@quota = args[:quota] if args.key?(:quota)
|
1264
|
+
end
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
# Limits associated with a Project.
|
1268
|
+
class Quota
|
1269
|
+
include Google::Apis::Core::Hashable
|
1270
|
+
|
1271
|
+
# Maximum allowed number of DnsKeys per ManagedZone.
|
1272
|
+
# Corresponds to the JSON property `dnsKeysPerManagedZone`
|
1273
|
+
# @return [Fixnum]
|
1274
|
+
attr_accessor :dns_keys_per_managed_zone
|
1275
|
+
|
1276
|
+
# Maximum allowed number of GKE clusters per policy.
|
1277
|
+
# Corresponds to the JSON property `gkeClustersPerPolicy`
|
1278
|
+
# @return [Fixnum]
|
1279
|
+
attr_accessor :gke_clusters_per_policy
|
1280
|
+
|
1281
|
+
#
|
1282
|
+
# Corresponds to the JSON property `kind`
|
1283
|
+
# @return [String]
|
1284
|
+
attr_accessor :kind
|
1285
|
+
|
1286
|
+
# Maximum allowed number of managed zones in the project.
|
1287
|
+
# Corresponds to the JSON property `managedZones`
|
1288
|
+
# @return [Fixnum]
|
1289
|
+
attr_accessor :managed_zones
|
1290
|
+
|
1291
|
+
# Maximum allowed number of managed zones which can be attached to a network.
|
1292
|
+
# Corresponds to the JSON property `managedZonesPerNetwork`
|
1293
|
+
# @return [Fixnum]
|
1294
|
+
attr_accessor :managed_zones_per_network
|
1295
|
+
|
1296
|
+
# Maximum allowed number of networks to which a privately scoped zone can be
|
1297
|
+
# attached.
|
1298
|
+
# Corresponds to the JSON property `networksPerManagedZone`
|
1299
|
+
# @return [Fixnum]
|
1300
|
+
attr_accessor :networks_per_managed_zone
|
1301
|
+
|
1302
|
+
# Maximum allowed number of networks per policy.
|
1303
|
+
# Corresponds to the JSON property `networksPerPolicy`
|
1304
|
+
# @return [Fixnum]
|
1305
|
+
attr_accessor :networks_per_policy
|
1306
|
+
|
1307
|
+
# Maximum allowed number of policies per project.
|
1308
|
+
# Corresponds to the JSON property `policies`
|
1309
|
+
# @return [Fixnum]
|
1310
|
+
attr_accessor :policies
|
1311
|
+
|
1312
|
+
# Maximum allowed number of ResourceRecords per ResourceRecordSet.
|
1313
|
+
# Corresponds to the JSON property `resourceRecordsPerRrset`
|
1314
|
+
# @return [Fixnum]
|
1315
|
+
attr_accessor :resource_records_per_rrset
|
1316
|
+
|
1317
|
+
# Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
|
1318
|
+
# Corresponds to the JSON property `rrsetAdditionsPerChange`
|
1319
|
+
# @return [Fixnum]
|
1320
|
+
attr_accessor :rrset_additions_per_change
|
1321
|
+
|
1322
|
+
# Maximum allowed number of ResourceRecordSets to delete per
|
1323
|
+
# ChangesCreateRequest.
|
1324
|
+
# Corresponds to the JSON property `rrsetDeletionsPerChange`
|
1325
|
+
# @return [Fixnum]
|
1326
|
+
attr_accessor :rrset_deletions_per_change
|
1327
|
+
|
1328
|
+
# Maximum allowed number of ResourceRecordSets per zone in the project.
|
1329
|
+
# Corresponds to the JSON property `rrsetsPerManagedZone`
|
1330
|
+
# @return [Fixnum]
|
1331
|
+
attr_accessor :rrsets_per_managed_zone
|
1332
|
+
|
1333
|
+
# Maximum allowed number of target name servers per managed forwarding zone.
|
1334
|
+
# Corresponds to the JSON property `targetNameServersPerManagedZone`
|
1335
|
+
# @return [Fixnum]
|
1336
|
+
attr_accessor :target_name_servers_per_managed_zone
|
1337
|
+
|
1338
|
+
# Maximum allowed number of alternative target name servers per policy.
|
1339
|
+
# Corresponds to the JSON property `targetNameServersPerPolicy`
|
1340
|
+
# @return [Fixnum]
|
1341
|
+
attr_accessor :target_name_servers_per_policy
|
1342
|
+
|
1343
|
+
# Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
|
1344
|
+
# Corresponds to the JSON property `totalRrdataSizePerChange`
|
1345
|
+
# @return [Fixnum]
|
1346
|
+
attr_accessor :total_rrdata_size_per_change
|
1347
|
+
|
1348
|
+
# DNSSEC algorithm and key length types that can be used for DnsKeys.
|
1349
|
+
# Corresponds to the JSON property `whitelistedKeySpecs`
|
1350
|
+
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
|
1351
|
+
attr_accessor :whitelisted_key_specs
|
1352
|
+
|
1353
|
+
def initialize(**args)
|
1354
|
+
update!(**args)
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
# Update properties of this object
|
1358
|
+
def update!(**args)
|
1359
|
+
@dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone)
|
1360
|
+
@gke_clusters_per_policy = args[:gke_clusters_per_policy] if args.key?(:gke_clusters_per_policy)
|
1361
|
+
@kind = args[:kind] if args.key?(:kind)
|
1362
|
+
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
1363
|
+
@managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network)
|
1364
|
+
@networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone)
|
1365
|
+
@networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy)
|
1366
|
+
@policies = args[:policies] if args.key?(:policies)
|
1367
|
+
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
|
1368
|
+
@rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
|
1369
|
+
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
|
1370
|
+
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
|
1371
|
+
@target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone)
|
1372
|
+
@target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy)
|
1373
|
+
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
|
1374
|
+
@whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
|
1375
|
+
end
|
1376
|
+
end
|
1377
|
+
|
1378
|
+
# A RRSetRoutingPolicy represents ResourceRecordSet data that will be returned
|
1379
|
+
# dynamically with the response varying based on configured properties such as
|
1380
|
+
# geolocation or by weighted random selection.
|
1381
|
+
class RrSetRoutingPolicy
|
1382
|
+
include Google::Apis::Core::Hashable
|
1383
|
+
|
1384
|
+
#
|
1385
|
+
# Corresponds to the JSON property `geoPolicy`
|
1386
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
|
1387
|
+
attr_accessor :geo_policy
|
1388
|
+
|
1389
|
+
#
|
1390
|
+
# Corresponds to the JSON property `kind`
|
1391
|
+
# @return [String]
|
1392
|
+
attr_accessor :kind
|
1393
|
+
|
1394
|
+
#
|
1395
|
+
# Corresponds to the JSON property `wrrPolicy`
|
1396
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]
|
1397
|
+
attr_accessor :wrr_policy
|
1398
|
+
|
1399
|
+
def initialize(**args)
|
1400
|
+
update!(**args)
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
# Update properties of this object
|
1404
|
+
def update!(**args)
|
1405
|
+
@geo_policy = args[:geo_policy] if args.key?(:geo_policy)
|
1406
|
+
@kind = args[:kind] if args.key?(:kind)
|
1407
|
+
@wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy)
|
1408
|
+
end
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
#
|
1412
|
+
class RrSetRoutingPolicyGeoPolicy
|
1413
|
+
include Google::Apis::Core::Hashable
|
1414
|
+
|
1415
|
+
# If the health check for the primary target for a geo location returns an
|
1416
|
+
# unhealthy status, the failover target is returned instead. This failover
|
1417
|
+
# configuration is not mandatory. If a failover is not provided, the primary
|
1418
|
+
# target won't be healthchecked - we'll return the primarily configured rrdata
|
1419
|
+
# irrespective of whether it is healthy or not.
|
1420
|
+
# Corresponds to the JSON property `failovers`
|
1421
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]
|
1422
|
+
attr_accessor :failovers
|
1423
|
+
|
1424
|
+
# The primary geo routing configuration. If there are multiple items with the
|
1425
|
+
# same location, an error is returned instead.
|
1426
|
+
# Corresponds to the JSON property `items`
|
1427
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]
|
1428
|
+
attr_accessor :items
|
1429
|
+
|
1430
|
+
#
|
1431
|
+
# Corresponds to the JSON property `kind`
|
1432
|
+
# @return [String]
|
1433
|
+
attr_accessor :kind
|
1434
|
+
|
1435
|
+
def initialize(**args)
|
1436
|
+
update!(**args)
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# Update properties of this object
|
1440
|
+
def update!(**args)
|
1441
|
+
@failovers = args[:failovers] if args.key?(:failovers)
|
1442
|
+
@items = args[:items] if args.key?(:items)
|
1443
|
+
@kind = args[:kind] if args.key?(:kind)
|
1444
|
+
end
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
#
|
1448
|
+
class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
|
1449
|
+
include Google::Apis::Core::Hashable
|
1450
|
+
|
1451
|
+
#
|
1452
|
+
# Corresponds to the JSON property `kind`
|
1453
|
+
# @return [String]
|
1454
|
+
attr_accessor :kind
|
1455
|
+
|
1456
|
+
# The geo-location granularity is a GCP region. This location string should
|
1457
|
+
# correspond to a GCP region. e.g "us-east1", "southamerica-east1", "asia-east1",
|
1458
|
+
# etc.
|
1459
|
+
# Corresponds to the JSON property `location`
|
1460
|
+
# @return [String]
|
1461
|
+
attr_accessor :location
|
1462
|
+
|
1463
|
+
#
|
1464
|
+
# Corresponds to the JSON property `rrdatas`
|
1465
|
+
# @return [Array<String>]
|
1466
|
+
attr_accessor :rrdatas
|
1467
|
+
|
1468
|
+
# DNSSEC generated signatures for the above geo_rrdata.
|
1469
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1470
|
+
# @return [Array<String>]
|
1471
|
+
attr_accessor :signature_rrdatas
|
1472
|
+
|
1473
|
+
def initialize(**args)
|
1474
|
+
update!(**args)
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
# Update properties of this object
|
1478
|
+
def update!(**args)
|
1479
|
+
@kind = args[:kind] if args.key?(:kind)
|
1480
|
+
@location = args[:location] if args.key?(:location)
|
1481
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1482
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1483
|
+
end
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
#
|
1487
|
+
class RrSetRoutingPolicyWrrPolicy
|
1488
|
+
include Google::Apis::Core::Hashable
|
1489
|
+
|
1490
|
+
#
|
1491
|
+
# Corresponds to the JSON property `items`
|
1492
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicyWrrPolicyItem>]
|
1493
|
+
attr_accessor :items
|
1494
|
+
|
1495
|
+
#
|
1496
|
+
# Corresponds to the JSON property `kind`
|
1497
|
+
# @return [String]
|
1498
|
+
attr_accessor :kind
|
1499
|
+
|
1500
|
+
def initialize(**args)
|
1501
|
+
update!(**args)
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
# Update properties of this object
|
1505
|
+
def update!(**args)
|
1506
|
+
@items = args[:items] if args.key?(:items)
|
1507
|
+
@kind = args[:kind] if args.key?(:kind)
|
1508
|
+
end
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
#
|
1512
|
+
class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
|
1513
|
+
include Google::Apis::Core::Hashable
|
1514
|
+
|
1515
|
+
#
|
1516
|
+
# Corresponds to the JSON property `kind`
|
1517
|
+
# @return [String]
|
1518
|
+
attr_accessor :kind
|
1519
|
+
|
1520
|
+
#
|
1521
|
+
# Corresponds to the JSON property `rrdatas`
|
1522
|
+
# @return [Array<String>]
|
1523
|
+
attr_accessor :rrdatas
|
1524
|
+
|
1525
|
+
# DNSSEC generated signatures for the above wrr_rrdata.
|
1526
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1527
|
+
# @return [Array<String>]
|
1528
|
+
attr_accessor :signature_rrdatas
|
1529
|
+
|
1530
|
+
# The weight corresponding to this subset of rrdata. When multiple
|
1531
|
+
# WeightedRoundRobinPolicyItems are configured, the probability of returning an
|
1532
|
+
# rrset is proportional to its weight relative to the sum of weights configured
|
1533
|
+
# for all items. This weight should be a decimal in the range [0,1].
|
1534
|
+
# Corresponds to the JSON property `weight`
|
1535
|
+
# @return [Float]
|
1536
|
+
attr_accessor :weight
|
1537
|
+
|
1538
|
+
def initialize(**args)
|
1539
|
+
update!(**args)
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Update properties of this object
|
1543
|
+
def update!(**args)
|
1544
|
+
@kind = args[:kind] if args.key?(:kind)
|
1545
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1546
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1547
|
+
@weight = args[:weight] if args.key?(:weight)
|
1548
|
+
end
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
# A unit of data that will be returned by the DNS servers.
|
1552
|
+
class ResourceRecordSet
|
1553
|
+
include Google::Apis::Core::Hashable
|
1554
|
+
|
1555
|
+
#
|
1556
|
+
# Corresponds to the JSON property `kind`
|
1557
|
+
# @return [String]
|
1558
|
+
attr_accessor :kind
|
1559
|
+
|
1560
|
+
# For example, www.example.com.
|
1561
|
+
# Corresponds to the JSON property `name`
|
1562
|
+
# @return [String]
|
1563
|
+
attr_accessor :name
|
1564
|
+
|
1565
|
+
# A RRSetRoutingPolicy represents ResourceRecordSet data that will be returned
|
1566
|
+
# dynamically with the response varying based on configured properties such as
|
1567
|
+
# geolocation or by weighted random selection.
|
1568
|
+
# Corresponds to the JSON property `routingPolicy`
|
1569
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicy]
|
1570
|
+
attr_accessor :routing_policy
|
1571
|
+
|
1572
|
+
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
|
1573
|
+
# examples.
|
1574
|
+
# Corresponds to the JSON property `rrdatas`
|
1575
|
+
# @return [Array<String>]
|
1576
|
+
attr_accessor :rrdatas
|
1577
|
+
|
1578
|
+
# As defined in RFC 4034 (section 3.2).
|
1579
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1580
|
+
# @return [Array<String>]
|
1581
|
+
attr_accessor :signature_rrdatas
|
1582
|
+
|
1583
|
+
# Number of seconds that this ResourceRecordSet can be cached by resolvers.
|
1584
|
+
# Corresponds to the JSON property `ttl`
|
1585
|
+
# @return [Fixnum]
|
1586
|
+
attr_accessor :ttl
|
1587
|
+
|
1588
|
+
# The identifier of a supported record type. See the list of Supported DNS
|
1589
|
+
# record types.
|
1590
|
+
# Corresponds to the JSON property `type`
|
1591
|
+
# @return [String]
|
1592
|
+
attr_accessor :type
|
1593
|
+
|
1594
|
+
def initialize(**args)
|
1595
|
+
update!(**args)
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
# Update properties of this object
|
1599
|
+
def update!(**args)
|
1600
|
+
@kind = args[:kind] if args.key?(:kind)
|
1601
|
+
@name = args[:name] if args.key?(:name)
|
1602
|
+
@routing_policy = args[:routing_policy] if args.key?(:routing_policy)
|
1603
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1604
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1605
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
1606
|
+
@type = args[:type] if args.key?(:type)
|
1607
|
+
end
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
#
|
1611
|
+
class ListResourceRecordSetsResponse
|
1612
|
+
include Google::Apis::Core::Hashable
|
1613
|
+
|
1614
|
+
# Elements common to every response.
|
1615
|
+
# Corresponds to the JSON property `header`
|
1616
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1617
|
+
attr_accessor :header
|
1618
|
+
|
1619
|
+
# Type of resource.
|
1620
|
+
# Corresponds to the JSON property `kind`
|
1621
|
+
# @return [String]
|
1622
|
+
attr_accessor :kind
|
1623
|
+
|
1624
|
+
# The presence of this field indicates that there exist more results following
|
1625
|
+
# your last page of results in pagination order. To fetch them, make another
|
1626
|
+
# list request using this value as your pagination token. In this way you can
|
1627
|
+
# retrieve the complete contents of even very large collections one page at a
|
1628
|
+
# time. However, if the contents of the collection change between the first and
|
1629
|
+
# last paginated list request, the set of all elements returned will be an
|
1630
|
+
# inconsistent view of the collection. There is no way to retrieve a consistent
|
1631
|
+
# snapshot of a collection larger than the maximum page size.
|
1632
|
+
# Corresponds to the JSON property `nextPageToken`
|
1633
|
+
# @return [String]
|
1634
|
+
attr_accessor :next_page_token
|
1635
|
+
|
1636
|
+
# The resource record set resources.
|
1637
|
+
# Corresponds to the JSON property `rrsets`
|
1638
|
+
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
|
1639
|
+
attr_accessor :rrsets
|
1640
|
+
|
1641
|
+
def initialize(**args)
|
1642
|
+
update!(**args)
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# Update properties of this object
|
1646
|
+
def update!(**args)
|
1647
|
+
@header = args[:header] if args.key?(:header)
|
1648
|
+
@kind = args[:kind] if args.key?(:kind)
|
1649
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1650
|
+
@rrsets = args[:rrsets] if args.key?(:rrsets)
|
1651
|
+
end
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
# Elements common to every response.
|
1655
|
+
class ResponseHeader
|
1656
|
+
include Google::Apis::Core::Hashable
|
1657
|
+
|
1658
|
+
# For mutating operation requests that completed successfully. This is the
|
1659
|
+
# client_operation_id if the client specified it, otherwise it is generated by
|
1660
|
+
# the server (output only).
|
1661
|
+
# Corresponds to the JSON property `operationId`
|
1662
|
+
# @return [String]
|
1663
|
+
attr_accessor :operation_id
|
1664
|
+
|
1665
|
+
def initialize(**args)
|
1666
|
+
update!(**args)
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
# Update properties of this object
|
1670
|
+
def update!(**args)
|
1671
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1672
|
+
end
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
end
|