on develop help sign in
Regenerating gogol-dns from latest service definition
commitc57926aaec8a3afb3a0436b0cb0504f70a72cf81 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent7f35828
22 files changed+3876−71
gen/model/dns/v1/dns-api.json+3−3 gen/model/dns/v2beta1/dns-api.json+1406 gogol-dns/gen/Network/Google/DNS.hs+154−2 gogol-dns/gen/Network/Google/DNS/Types.hs+124−2 gogol-dns/gen/Network/Google/DNS/Types/Product.hs+916−14 gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+297−11 gogol-dns/gen/Network/Google/Resource/DNS/Changes/Create.hs+22−7 gogol-dns/gen/Network/Google/Resource/DNS/Changes/Get.hs+20−5 gogol-dns/gen/Network/Google/Resource/DNS/Changes/List.hs+1−1 gogol-dns/gen/Network/Google/Resource/DNS/DNSkeys/Get.hs+146 gogol-dns/gen/Network/Google/Resource/DNS/DNSkeys/List.hs+146 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZoneOperations/Get.hs+133 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZoneOperations/List.hs+149 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Create.hs+22−7 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Delete.hs+24−6 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Get.hs+21−5 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/List.hs+1−1 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Patch.hs+132 gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Update.hs+131 gogol-dns/gen/Network/Google/Resource/DNS/Projects/Get.hs+20−5 gogol-dns/gen/Network/Google/Resource/DNS/ResourceRecordSets/List.hs+1−1 gogol-dns/gogol-dns.cabal+7−1
gen/model/dns/v1/dns-api.json+3−3
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/ctEt-71wWAltEdgLnIcGLfJZeFE\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/axl9KJ_uxEHQoHpuwJyeyQD2IZ4\"",
44 "discoveryVersion": "v1",
55 "id": "dns:v1",
66 "name": "dns",
77 "version": "v1",
8− "revision": "20160413",
8+ "revision": "20160920",
99 "title": "Google Cloud DNS API",
1010 "description": "Configures and serves authoritative DNS records.",
1111 "ownerDomain": "google.com",
@@ -183,7 +183,7 @@
183183 },
184184 "name": {
185185 "type": "string",
186− "description": "User assigned name for this resource. Must be unique within the project. The name must be 1-32 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes."
186+ "description": "User assigned name for this resource. Must be unique within the project. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes."
187187 },
188188 "nameServerSet": {
189189 "type": "string",
gen/model/dns/v2beta1/dns-api.jsonnew file+1406
@@ -0,0 +1,1406 @@
1+{
2+ "kind": "discovery#restDescription",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/h2GJp0iBJNZJt2Ch4odXr3P5OYo\"",
4+ "discoveryVersion": "v1",
5+ "id": "dns:v2beta1",
6+ "name": "dns",
7+ "version": "v2beta1",
8+ "revision": "20160920",
9+ "title": "Google Cloud DNS API",
10+ "description": "Configures and serves authoritative DNS records.",
11+ "ownerDomain": "google.com",
12+ "ownerName": "Google",
13+ "icons": {
14+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ },
17+ "documentationLink": "https://developers.google.com/cloud-dns",
18+ "protocol": "rest",
19+ "baseUrl": "https://www.googleapis.com/dns/v2beta1/projects/",
20+ "basePath": "/dns/v2beta1/projects/",
21+ "rootUrl": "https://www.googleapis.com/",
22+ "servicePath": "dns/v2beta1/projects/",
23+ "batchPath": "batch",
24+ "parameters": {
25+ "alt": {
26+ "type": "string",
27+ "description": "Data format for the response.",
28+ "default": "json",
29+ "enum": [
30+ "json"
31+ ],
32+ "enumDescriptions": [
33+ "Responses with Content-Type of application/json"
34+ ],
35+ "location": "query"
36+ },
37+ "fields": {
38+ "type": "string",
39+ "description": "Selector specifying which fields to include in a partial response.",
40+ "location": "query"
41+ },
42+ "key": {
43+ "type": "string",
44+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
45+ "location": "query"
46+ },
47+ "oauth_token": {
48+ "type": "string",
49+ "description": "OAuth 2.0 token for the current user.",
50+ "location": "query"
51+ },
52+ "prettyPrint": {
53+ "type": "boolean",
54+ "description": "Returns response with indentations and line breaks.",
55+ "default": "true",
56+ "location": "query"
57+ },
58+ "quotaUser": {
59+ "type": "string",
60+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
61+ "location": "query"
62+ },
63+ "userIp": {
64+ "type": "string",
65+ "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
66+ "location": "query"
67+ }
68+ },
69+ "auth": {
70+ "oauth2": {
71+ "scopes": {
72+ "https://www.googleapis.com/auth/cloud-platform": {
73+ "description": "View and manage your data across Google Cloud Platform services"
74+ },
75+ "https://www.googleapis.com/auth/cloud-platform.read-only": {
76+ "description": "View your data across Google Cloud Platform services"
77+ },
78+ "https://www.googleapis.com/auth/ndev.clouddns.readonly": {
79+ "description": "View your DNS records hosted by Google Cloud DNS"
80+ },
81+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite": {
82+ "description": "View and manage your DNS records hosted by Google Cloud DNS"
83+ }
84+ }
85+ }
86+ },
87+ "schemas": {
88+ "Change": {
89+ "id": "Change",
90+ "type": "object",
91+ "description": "An atomic update to a collection of ResourceRecordSets.",
92+ "properties": {
93+ "additions": {
94+ "type": "array",
95+ "description": "Which ResourceRecordSets to add?",
96+ "items": {
97+ "$ref": "ResourceRecordSet"
98+ }
99+ },
100+ "deletions": {
101+ "type": "array",
102+ "description": "Which ResourceRecordSets to remove? Must match existing data exactly.",
103+ "items": {
104+ "$ref": "ResourceRecordSet"
105+ }
106+ },
107+ "id": {
108+ "type": "string",
109+ "description": "Unique identifier for the resource; defined by the server (output only)."
110+ },
111+ "isServing": {
112+ "type": "boolean",
113+ "description": "If the DNS queries for the zone will be served."
114+ },
115+ "kind": {
116+ "type": "string",
117+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#change\".",
118+ "default": "dns#change"
119+ },
120+ "startTime": {
121+ "type": "string",
122+ "description": "The time that this operation was started by the server (output only). This is in RFC3339 text format."
123+ },
124+ "status": {
125+ "type": "string",
126+ "description": "Status of the operation (output only).",
127+ "enum": [
128+ "DONE",
129+ "PENDING"
130+ ],
131+ "enumDescriptions": [
132+ "",
133+ ""
134+ ]
135+ }
136+ }
137+ },
138+ "ChangesListResponse": {
139+ "id": "ChangesListResponse",
140+ "type": "object",
141+ "description": "The response to a request to enumerate Changes to a ResourceRecordSets collection.",
142+ "properties": {
143+ "changes": {
144+ "type": "array",
145+ "description": "The requested changes.",
146+ "items": {
147+ "$ref": "Change"
148+ }
149+ },
150+ "header": {
151+ "$ref": "ResponseHeader"
152+ },
153+ "kind": {
154+ "type": "string",
155+ "description": "Type of resource.",
156+ "default": "dns#changesListResponse"
157+ },
158+ "nextPageToken": {
159+ "type": "string",
160+ "description": "The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token.\n\nIn this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a \"snapshot\" of collections larger than the maximum page size."
161+ }
162+ }
163+ },
164+ "DnsKey": {
165+ "id": "DnsKey",
166+ "type": "object",
167+ "description": "A DNSSEC key pair.",
168+ "properties": {
169+ "algorithm": {
170+ "type": "string",
171+ "description": "String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time.",
172+ "enum": [
173+ "ECDSAP256SHA256",
174+ "ECDSAP384SHA384",
175+ "RSASHA1",
176+ "RSASHA256",
177+ "RSASHA512"
178+ ],
179+ "enumDescriptions": [
180+ "",
181+ "",
182+ "",
183+ "",
184+ ""
185+ ]
186+ },
187+ "creationTime": {
188+ "type": "string",
189+ "description": "The time that this resource was created in the control plane. This is in RFC3339 text format. Output only."
190+ },
191+ "description": {
192+ "type": "string",
193+ "description": "A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the resource's function."
194+ },
195+ "digests": {
196+ "type": "array",
197+ "description": "Cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Output only.",
198+ "items": {
199+ "$ref": "DnsKeyDigest"
200+ }
201+ },
202+ "id": {
203+ "type": "string",
204+ "description": "Unique identifier for the resource; defined by the server (output only)."
205+ },
206+ "isActive": {
207+ "type": "boolean",
208+ "description": "Active keys will be used to sign subsequent changes to the ManagedZone. Inactive keys will still be present as DNSKEY Resource Records for the use of resolvers validating existing signatures."
209+ },
210+ "keyLength": {
211+ "type": "integer",
212+ "description": "Length of the key in bits. Specified at creation time then immutable.",
213+ "format": "uint32"
214+ },
215+ "keyTag": {
216+ "type": "integer",
217+ "description": "The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone's DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B. Output only.",
218+ "format": "int32"
219+ },
220+ "kind": {
221+ "type": "string",
222+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#dnsKey\".",
223+ "default": "dns#dnsKey"
224+ },
225+ "publicKey": {
226+ "type": "string",
227+ "description": "Base64 encoded public half of this key. Output only."
228+ },
229+ "type": {
230+ "type": "string",
231+ "description": "One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING have the Secure Entry Point flag set and, when active, will be used to sign only resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag will be cleared and this key will be used to sign only resource record sets of other types. Immutable after creation time.",
232+ "enum": [
233+ "KEY_SIGNING",
234+ "ZONE_SIGNING"
235+ ],
236+ "enumDescriptions": [
237+ "",
238+ ""
239+ ]
240+ }
241+ }
242+ },
243+ "DnsKeyDigest": {
244+ "id": "DnsKeyDigest",
245+ "type": "object",
246+ "properties": {
247+ "digest": {
248+ "type": "string",
249+ "description": "The base-16 encoded bytes of this digest. Suitable for use in a DS resource record."
250+ },
251+ "type": {
252+ "type": "string",
253+ "description": "Specifies the algorithm used to calculate this digest.",
254+ "enum": [
255+ "SHA1",
256+ "SHA256",
257+ "SHA384"
258+ ],
259+ "enumDescriptions": [
260+ "",
261+ "",
262+ ""
263+ ]
264+ }
265+ }
266+ },
267+ "DnsKeySpec": {
268+ "id": "DnsKeySpec",
269+ "type": "object",
270+ "description": "Parameters for DnsKey key generation. Used for generating initial keys for a new ManagedZone and as default when adding a new DnsKey.",
271+ "properties": {
272+ "algorithm": {
273+ "type": "string",
274+ "description": "String mnemonic specifying the DNSSEC algorithm of this key.",
275+ "enum": [
276+ "ECDSAP256SHA256",
277+ "ECDSAP384SHA384",
278+ "RSASHA1",
279+ "RSASHA256",
280+ "RSASHA512"
281+ ],
282+ "enumDescriptions": [
283+ "",
284+ "",
285+ "",
286+ "",
287+ ""
288+ ]
289+ },
290+ "keyLength": {
291+ "type": "integer",
292+ "description": "Length of the keys in bits.",
293+ "format": "uint32"
294+ },
295+ "keyType": {
296+ "type": "string",
297+ "description": "One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING have the Secure Entry Point flag set and, when active, will be used to sign only resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag will be cleared and this key will be used to sign only resource record sets of other types.",
298+ "enum": [
299+ "KEY_SIGNING",
300+ "ZONE_SIGNING"
301+ ],
302+ "enumDescriptions": [
303+ "",
304+ ""
305+ ]
306+ },
307+ "kind": {
308+ "type": "string",
309+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#dnsKeySpec\".",
310+ "default": "dns#dnsKeySpec"
311+ }
312+ }
313+ },
314+ "DnsKeysListResponse": {
315+ "id": "DnsKeysListResponse",
316+ "type": "object",
317+ "description": "The response to a request to enumerate DnsKeys in a ManagedZone.",
318+ "properties": {
319+ "dnsKeys": {
320+ "type": "array",
321+ "description": "The requested resources.",
322+ "items": {
323+ "$ref": "DnsKey"
324+ }
325+ },
326+ "header": {
327+ "$ref": "ResponseHeader"
328+ },
329+ "kind": {
330+ "type": "string",
331+ "description": "Type of resource.",
332+ "default": "dns#dnsKeysListResponse"
333+ },
334+ "nextPageToken": {
335+ "type": "string",
336+ "description": "The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token.\n\nIn this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a \"snapshot\" of collections larger than the maximum page size."
337+ }
338+ }
339+ },
340+ "ManagedZone": {
341+ "id": "ManagedZone",
342+ "type": "object",
343+ "description": "A zone is a subtree of the DNS namespace under one administrative responsibility. A ManagedZone is a resource that represents a DNS zone hosted by the Cloud DNS service.",
344+ "properties": {
345+ "creationTime": {
346+ "type": "string",
347+ "description": "The time that this resource was created on the server. This is in RFC3339 text format. Output only."
348+ },
349+ "description": {
350+ "type": "string",
351+ "description": "A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the managed zone's function."
352+ },
353+ "dnsName": {
354+ "type": "string",
355+ "description": "The DNS name of this managed zone, for instance \"example.com.\"."
356+ },
357+ "dnssecConfig": {
358+ "$ref": "ManagedZoneDnsSecConfig",
359+ "description": "DNSSEC configuration."
360+ },
361+ "id": {
362+ "type": "string",
363+ "description": "Unique identifier for the resource; defined by the server (output only)",
364+ "format": "uint64"
365+ },
366+ "kind": {
367+ "type": "string",
368+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#managedZone\".",
369+ "default": "dns#managedZone"
370+ },
371+ "name": {
372+ "type": "string",
373+ "description": "User assigned name for this resource. Must be unique within the project. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes."
374+ },
375+ "nameServerSet": {
376+ "type": "string",
377+ "description": "Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet is a set of DNS name servers that all host the same ManagedZones. Most users will leave this field unset."
378+ },
379+ "nameServers": {
380+ "type": "array",
381+ "description": "Delegate your managed_zone to these virtual name servers; defined by the server (output only)",
382+ "items": {
383+ "type": "string"
384+ }
385+ }
386+ }
387+ },
388+ "ManagedZoneDnsSecConfig": {
389+ "id": "ManagedZoneDnsSecConfig",
390+ "type": "object",
391+ "properties": {
392+ "defaultKeySpecs": {
393+ "type": "array",
394+ "description": "Specifies parameters that will be used for generating initial DnsKeys for this ManagedZone. Output only while state is not OFF.",
395+ "items": {
396+ "$ref": "DnsKeySpec"
397+ }
398+ },
399+ "kind": {
400+ "type": "string",
401+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#managedZoneDnsSecConfig\".",
402+ "default": "dns#managedZoneDnsSecConfig"
403+ },
404+ "nonExistence": {
405+ "type": "string",
406+ "description": "Specifies the mechanism used to provide authenticated denial-of-existence responses. Output only while state is not OFF.",
407+ "enum": [
408+ "NSEC",
409+ "NSEC3"
410+ ],
411+ "enumDescriptions": [
412+ "",
413+ ""
414+ ]
415+ },
416+ "state": {
417+ "type": "string",
418+ "description": "Specifies whether DNSSEC is enabled, and what mode it is in.",
419+ "enum": [
420+ "OFF",
421+ "ON",
422+ "TRANSFER"
423+ ],
424+ "enumDescriptions": [
425+ "",
426+ "",
427+ ""
428+ ]
429+ }
430+ }
431+ },
432+ "ManagedZoneOperationsListResponse": {
433+ "id": "ManagedZoneOperationsListResponse",
434+ "type": "object",
435+ "properties": {
436+ "header": {
437+ "$ref": "ResponseHeader"
438+ },
439+ "kind": {
440+ "type": "string",
441+ "description": "Type of resource.",
442+ "default": "dns#managedZoneOperationsListResponse"
443+ },
444+ "nextPageToken": {
445+ "type": "string",
446+ "description": "The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token.\n\nIn this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size."
447+ },
448+ "operations": {
449+ "type": "array",
450+ "description": "The operation resources.",
451+ "items": {
452+ "$ref": "Operation"
453+ }
454+ }
455+ }
456+ },
457+ "ManagedZonesDeleteResponse": {
458+ "id": "ManagedZonesDeleteResponse",
459+ "type": "object",
460+ "properties": {
461+ "header": {
462+ "$ref": "ResponseHeader"
463+ }
464+ }
465+ },
466+ "ManagedZonesListResponse": {
467+ "id": "ManagedZonesListResponse",
468+ "type": "object",
469+ "properties": {
470+ "header": {
471+ "$ref": "ResponseHeader"
472+ },
473+ "kind": {
474+ "type": "string",
475+ "description": "Type of resource.",
476+ "default": "dns#managedZonesListResponse"
477+ },
478+ "managedZones": {
479+ "type": "array",
480+ "description": "The managed zone resources.",
481+ "items": {
482+ "$ref": "ManagedZone"
483+ }
484+ },
485+ "nextPageToken": {
486+ "type": "string",
487+ "description": "The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token.\n\nIn this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size."
488+ }
489+ }
490+ },
491+ "Operation": {
492+ "id": "Operation",
493+ "type": "object",
494+ "description": "An operation represents a successful mutation performed on a Cloud DNS resource. Operations provide: - An audit log of server resource mutations. - A way to recover/retry API calls in the case where the response is never received by the caller. Use the caller specified client_operation_id.",
495+ "properties": {
496+ "dnsKeyContext": {
497+ "$ref": "OperationDnsKeyContext",
498+ "description": "Only populated if the operation targeted a DnsKey (output only)."
499+ },
500+ "id": {
501+ "type": "string",
502+ "description": "Unique identifier for the resource. This is the client_operation_id if the client specified it when the mutation was initiated, otherwise, it is generated by the server. The name must be 1-63 characters long and match the regular expression [-a-z0-9]? (output only)"
503+ },
504+ "kind": {
505+ "type": "string",
506+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#operation\".",
507+ "default": "dns#operation"
508+ },
509+ "startTime": {
510+ "type": "string",
511+ "description": "The time that this operation was started by the server. This is in RFC3339 text format (output only)."
512+ },
513+ "status": {
514+ "type": "string",
515+ "description": "Status of the operation. Can be one of the following: \"PENDING\" or \"DONE\" (output only).",
516+ "enum": [
517+ "DONE",
518+ "PENDING"
519+ ],
520+ "enumDescriptions": [
521+ "",
522+ ""
523+ ]
524+ },
525+ "type": {
526+ "type": "string",
527+ "description": "Type of the operation. Operations include insert, update, and delete (output only)."
528+ },
529+ "user": {
530+ "type": "string",
531+ "description": "User who requested the operation, for example: user@example.com. cloud-dns-system for operations automatically done by the system. (output only)"
532+ },
533+ "zoneContext": {
534+ "$ref": "OperationManagedZoneContext",
535+ "description": "Only populated if the operation targeted a ManagedZone (output only)."
536+ }
537+ }
538+ },
539+ "OperationDnsKeyContext": {
540+ "id": "OperationDnsKeyContext",
541+ "type": "object",
542+ "properties": {
543+ "newValue": {
544+ "$ref": "DnsKey",
545+ "description": "The post-operation DnsKey resource."
546+ },
547+ "oldValue": {
548+ "$ref": "DnsKey",
549+ "description": "The pre-operation DnsKey resource."
550+ }
551+ }
552+ },
553+ "OperationManagedZoneContext": {
554+ "id": "OperationManagedZoneContext",
555+ "type": "object",
556+ "properties": {
557+ "newValue": {
558+ "$ref": "ManagedZone",
559+ "description": "The post-operation ManagedZone resource."
560+ },
561+ "oldValue": {
562+ "$ref": "ManagedZone",
563+ "description": "The pre-operation ManagedZone resource."
564+ }
565+ }
566+ },
567+ "Project": {
568+ "id": "Project",
569+ "type": "object",
570+ "description": "A project resource. The project is a top level container for resources including Cloud DNS ManagedZones. Projects can be created only in the APIs console.",
571+ "properties": {
572+ "id": {
573+ "type": "string",
574+ "description": "User assigned unique identifier for the resource (output only)."
575+ },
576+ "kind": {
577+ "type": "string",
578+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#project\".",
579+ "default": "dns#project"
580+ },
581+ "number": {
582+ "type": "string",
583+ "description": "Unique numeric identifier for the resource; defined by the server (output only).",
584+ "format": "uint64"
585+ },
586+ "quota": {
587+ "$ref": "Quota",
588+ "description": "Quotas assigned to this project (output only)."
589+ }
590+ }
591+ },
592+ "Quota": {
593+ "id": "Quota",
594+ "type": "object",
595+ "description": "Limits associated with a Project.",
596+ "properties": {
597+ "dnsKeysPerManagedZone": {
598+ "type": "integer",
599+ "description": "Maximum allowed number of DnsKeys per ManagedZone.",
600+ "format": "int32"
601+ },
602+ "kind": {
603+ "type": "string",
604+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#quota\".",
605+ "default": "dns#quota"
606+ },
607+ "managedZones": {
608+ "type": "integer",
609+ "description": "Maximum allowed number of managed zones in the project.",
610+ "format": "int32"
611+ },
612+ "resourceRecordsPerRrset": {
613+ "type": "integer",
614+ "description": "Maximum allowed number of ResourceRecords per ResourceRecordSet.",
615+ "format": "int32"
616+ },
617+ "rrsetAdditionsPerChange": {
618+ "type": "integer",
619+ "description": "Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.",
620+ "format": "int32"
621+ },
622+ "rrsetDeletionsPerChange": {
623+ "type": "integer",
624+ "description": "Maximum allowed number of ResourceRecordSets to delete per ChangesCreateRequest.",
625+ "format": "int32"
626+ },
627+ "rrsetsPerManagedZone": {
628+ "type": "integer",
629+ "description": "Maximum allowed number of ResourceRecordSets per zone in the project.",
630+ "format": "int32"
631+ },
632+ "totalRrdataSizePerChange": {
633+ "type": "integer",
634+ "description": "Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.",
635+ "format": "int32"
636+ },
637+ "whitelistedKeySpecs": {
638+ "type": "array",
639+ "description": "DNSSEC algorithm and key length types that can be used for DnsKeys.",
640+ "items": {
641+ "$ref": "DnsKeySpec"
642+ }
643+ }
644+ }
645+ },
646+ "ResourceRecordSet": {
647+ "id": "ResourceRecordSet",
648+ "type": "object",
649+ "description": "A unit of data that will be returned by the DNS servers.",
650+ "properties": {
651+ "kind": {
652+ "type": "string",
653+ "description": "Identifies what kind of resource this is. Value: the fixed string \"dns#resourceRecordSet\".",
654+ "default": "dns#resourceRecordSet"
655+ },
656+ "name": {
657+ "type": "string",
658+ "description": "For example, www.example.com."
659+ },
660+ "rrdatas": {
661+ "type": "array",
662+ "description": "As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).",
663+ "items": {
664+ "type": "string"
665+ }
666+ },
667+ "signatureRrdatas": {
668+ "type": "array",
669+ "description": "As defined in RFC 4034 (section 3.2).",
670+ "items": {
671+ "type": "string"
672+ }
673+ },
674+ "ttl": {
675+ "type": "integer",
676+ "description": "Number of seconds that this ResourceRecordSet can be cached by resolvers.",
677+ "format": "int32"
678+ },
679+ "type": {
680+ "type": "string",
681+ "description": "The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on."
682+ }
683+ }
684+ },
685+ "ResourceRecordSetsListResponse": {
686+ "id": "ResourceRecordSetsListResponse",
687+ "type": "object",
688+ "properties": {
689+ "header": {
690+ "$ref": "ResponseHeader"
691+ },
692+ "kind": {
693+ "type": "string",
694+ "description": "Type of resource.",
695+ "default": "dns#resourceRecordSetsListResponse"
696+ },
697+ "nextPageToken": {
698+ "type": "string",
699+ "description": "The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token.\n\nIn this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size."
700+ },
701+ "rrsets": {
702+ "type": "array",
703+ "description": "The resource record set resources.",
704+ "items": {
705+ "$ref": "ResourceRecordSet"
706+ }
707+ }
708+ }
709+ },
710+ "ResponseHeader": {
711+ "id": "ResponseHeader",
712+ "type": "object",
713+ "description": "Elements common to every response.",
714+ "properties": {
715+ "operationId": {
716+ "type": "string",
717+ "description": "For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only)."
718+ }
719+ }
720+ }
721+ },
722+ "resources": {
723+ "changes": {
724+ "methods": {
725+ "create": {
726+ "id": "dns.changes.create",
727+ "path": "{project}/managedZones/{managedZone}/changes",
728+ "httpMethod": "POST",
729+ "description": "Atomically update the ResourceRecordSet collection.",
730+ "parameters": {
731+ "clientOperationId": {
732+ "type": "string",
733+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
734+ "location": "query"
735+ },
736+ "managedZone": {
737+ "type": "string",
738+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
739+ "required": true,
740+ "location": "path"
741+ },
742+ "project": {
743+ "type": "string",
744+ "description": "Identifies the project addressed by this request.",
745+ "required": true,
746+ "location": "path"
747+ }
748+ },
749+ "parameterOrder": [
750+ "project",
751+ "managedZone"
752+ ],
753+ "request": {
754+ "$ref": "Change"
755+ },
756+ "response": {
757+ "$ref": "Change"
758+ },
759+ "scopes": [
760+ "https://www.googleapis.com/auth/cloud-platform",
761+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
762+ ]
763+ },
764+ "get": {
765+ "id": "dns.changes.get",
766+ "path": "{project}/managedZones/{managedZone}/changes/{changeId}",
767+ "httpMethod": "GET",
768+ "description": "Fetch the representation of an existing Change.",
769+ "parameters": {
770+ "changeId": {
771+ "type": "string",
772+ "description": "The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.",
773+ "required": true,
774+ "location": "path"
775+ },
776+ "clientOperationId": {
777+ "type": "string",
778+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
779+ "location": "query"
780+ },
781+ "managedZone": {
782+ "type": "string",
783+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
784+ "required": true,
785+ "location": "path"
786+ },
787+ "project": {
788+ "type": "string",
789+ "description": "Identifies the project addressed by this request.",
790+ "required": true,
791+ "location": "path"
792+ }
793+ },
794+ "parameterOrder": [
795+ "project",
796+ "managedZone",
797+ "changeId"
798+ ],
799+ "response": {
800+ "$ref": "Change"
801+ },
802+ "scopes": [
803+ "https://www.googleapis.com/auth/cloud-platform",
804+ "https://www.googleapis.com/auth/cloud-platform.read-only",
805+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
806+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
807+ ]
808+ },
809+ "list": {
810+ "id": "dns.changes.list",
811+ "path": "{project}/managedZones/{managedZone}/changes",
812+ "httpMethod": "GET",
813+ "description": "Enumerate Changes to a ResourceRecordSet collection.",
814+ "parameters": {
815+ "managedZone": {
816+ "type": "string",
817+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
818+ "required": true,
819+ "location": "path"
820+ },
821+ "maxResults": {
822+ "type": "integer",
823+ "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.",
824+ "format": "int32",
825+ "location": "query"
826+ },
827+ "pageToken": {
828+ "type": "string",
829+ "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.",
830+ "location": "query"
831+ },
832+ "project": {
833+ "type": "string",
834+ "description": "Identifies the project addressed by this request.",
835+ "required": true,
836+ "location": "path"
837+ },
838+ "sortBy": {
839+ "type": "string",
840+ "description": "Sorting criterion. The only supported value is change sequence.",
841+ "default": "CHANGE_SEQUENCE",
842+ "enum": [
843+ "CHANGE_SEQUENCE"
844+ ],
845+ "enumDescriptions": [
846+ ""
847+ ],
848+ "location": "query"
849+ },
850+ "sortOrder": {
851+ "type": "string",
852+ "description": "Sorting order direction: 'ascending' or 'descending'.",
853+ "location": "query"
854+ }
855+ },
856+ "parameterOrder": [
857+ "project",
858+ "managedZone"
859+ ],
860+ "response": {
861+ "$ref": "ChangesListResponse"
862+ },
863+ "scopes": [
864+ "https://www.googleapis.com/auth/cloud-platform",
865+ "https://www.googleapis.com/auth/cloud-platform.read-only",
866+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
867+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
868+ ]
869+ }
870+ }
871+ },
872+ "dnskeys": {
873+ "methods": {
874+ "get": {
875+ "id": "dns.dnskeys.get",
876+ "path": "{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}",
877+ "httpMethod": "GET",
878+ "description": "Fetch the representation of an existing DnsKey.",
879+ "parameters": {
880+ "clientOperationId": {
881+ "type": "string",
882+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
883+ "location": "query"
884+ },
885+ "digestType": {
886+ "type": "string",
887+ "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type will be computed and displayed.",
888+ "location": "query"
889+ },
890+ "dnsKeyId": {
891+ "type": "string",
892+ "description": "The identifier of the requested DnsKey.",
893+ "required": true,
894+ "location": "path"
895+ },
896+ "managedZone": {
897+ "type": "string",
898+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
899+ "required": true,
900+ "location": "path"
901+ },
902+ "project": {
903+ "type": "string",
904+ "description": "Identifies the project addressed by this request.",
905+ "required": true,
906+ "location": "path"
907+ }
908+ },
909+ "parameterOrder": [
910+ "project",
911+ "managedZone",
912+ "dnsKeyId"
913+ ],
914+ "response": {
915+ "$ref": "DnsKey"
916+ },
917+ "scopes": [
918+ "https://www.googleapis.com/auth/cloud-platform",
919+ "https://www.googleapis.com/auth/cloud-platform.read-only",
920+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
921+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
922+ ]
923+ },
924+ "list": {
925+ "id": "dns.dnskeys.list",
926+ "path": "{project}/managedZones/{managedZone}/dnsKeys",
927+ "httpMethod": "GET",
928+ "description": "Enumerate DnsKeys to a ResourceRecordSet collection.",
929+ "parameters": {
930+ "digestType": {
931+ "type": "string",
932+ "description": "An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type will be computed and displayed.",
933+ "location": "query"
934+ },
935+ "managedZone": {
936+ "type": "string",
937+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
938+ "required": true,
939+ "location": "path"
940+ },
941+ "maxResults": {
942+ "type": "integer",
943+ "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.",
944+ "format": "int32",
945+ "location": "query"
946+ },
947+ "pageToken": {
948+ "type": "string",
949+ "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.",
950+ "location": "query"
951+ },
952+ "project": {
953+ "type": "string",
954+ "description": "Identifies the project addressed by this request.",
955+ "required": true,
956+ "location": "path"
957+ }
958+ },
959+ "parameterOrder": [
960+ "project",
961+ "managedZone"
962+ ],
963+ "response": {
964+ "$ref": "DnsKeysListResponse"
965+ },
966+ "scopes": [
967+ "https://www.googleapis.com/auth/cloud-platform",
968+ "https://www.googleapis.com/auth/cloud-platform.read-only",
969+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
970+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
971+ ]
972+ }
973+ }
974+ },
975+ "managedZoneOperations": {
976+ "methods": {
977+ "get": {
978+ "id": "dns.managedZoneOperations.get",
979+ "path": "{project}/managedZones/{managedZone}/operations/{operation}",
980+ "httpMethod": "GET",
981+ "description": "Fetch the representation of an existing Operation.",
982+ "parameters": {
983+ "clientOperationId": {
984+ "type": "string",
985+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
986+ "location": "query"
987+ },
988+ "managedZone": {
989+ "type": "string",
990+ "description": "Identifies the managed zone addressed by this request.",
991+ "required": true,
992+ "location": "path"
993+ },
994+ "operation": {
995+ "type": "string",
996+ "description": "Identifies the operation addressed by this request.",
997+ "required": true,
998+ "location": "path"
999+ },
1000+ "project": {
1001+ "type": "string",
1002+ "description": "Identifies the project addressed by this request.",
1003+ "required": true,
1004+ "location": "path"
1005+ }
1006+ },
1007+ "parameterOrder": [
1008+ "project",
1009+ "managedZone",
1010+ "operation"
1011+ ],
1012+ "response": {
1013+ "$ref": "Operation"
1014+ },
1015+ "scopes": [
1016+ "https://www.googleapis.com/auth/cloud-platform",
1017+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1018+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1019+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1020+ ]
1021+ },
1022+ "list": {
1023+ "id": "dns.managedZoneOperations.list",
1024+ "path": "{project}/managedZones/{managedZone}/operations",
1025+ "httpMethod": "GET",
1026+ "description": "Enumerate Operations for the given ManagedZone.",
1027+ "parameters": {
1028+ "managedZone": {
1029+ "type": "string",
1030+ "description": "Identifies the managed zone addressed by this request.",
1031+ "required": true,
1032+ "location": "path"
1033+ },
1034+ "maxResults": {
1035+ "type": "integer",
1036+ "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.",
1037+ "format": "int32",
1038+ "location": "query"
1039+ },
1040+ "pageToken": {
1041+ "type": "string",
1042+ "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.",
1043+ "location": "query"
1044+ },
1045+ "project": {
1046+ "type": "string",
1047+ "description": "Identifies the project addressed by this request.",
1048+ "required": true,
1049+ "location": "path"
1050+ },
1051+ "sortBy": {
1052+ "type": "string",
1053+ "description": "Sorting criterion. The only supported values are START_TIME and ID.",
1054+ "default": "START_TIME",
1055+ "enum": [
1056+ "ID",
1057+ "START_TIME"
1058+ ],
1059+ "enumDescriptions": [
1060+ "",
1061+ ""
1062+ ],
1063+ "location": "query"
1064+ }
1065+ },
1066+ "parameterOrder": [
1067+ "project",
1068+ "managedZone"
1069+ ],
1070+ "response": {
1071+ "$ref": "ManagedZoneOperationsListResponse"
1072+ },
1073+ "scopes": [
1074+ "https://www.googleapis.com/auth/cloud-platform",
1075+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1076+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1077+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1078+ ]
1079+ }
1080+ }
1081+ },
1082+ "managedZones": {
1083+ "methods": {
1084+ "create": {
1085+ "id": "dns.managedZones.create",
1086+ "path": "{project}/managedZones",
1087+ "httpMethod": "POST",
1088+ "description": "Create a new ManagedZone.",
1089+ "parameters": {
1090+ "clientOperationId": {
1091+ "type": "string",
1092+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1093+ "location": "query"
1094+ },
1095+ "project": {
1096+ "type": "string",
1097+ "description": "Identifies the project addressed by this request.",
1098+ "required": true,
1099+ "location": "path"
1100+ }
1101+ },
1102+ "parameterOrder": [
1103+ "project"
1104+ ],
1105+ "request": {
1106+ "$ref": "ManagedZone"
1107+ },
1108+ "response": {
1109+ "$ref": "ManagedZone"
1110+ },
1111+ "scopes": [
1112+ "https://www.googleapis.com/auth/cloud-platform",
1113+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1114+ ]
1115+ },
1116+ "delete": {
1117+ "id": "dns.managedZones.delete",
1118+ "path": "{project}/managedZones/{managedZone}",
1119+ "httpMethod": "DELETE",
1120+ "description": "Delete a previously created ManagedZone.",
1121+ "parameters": {
1122+ "clientOperationId": {
1123+ "type": "string",
1124+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1125+ "location": "query"
1126+ },
1127+ "managedZone": {
1128+ "type": "string",
1129+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
1130+ "required": true,
1131+ "location": "path"
1132+ },
1133+ "project": {
1134+ "type": "string",
1135+ "description": "Identifies the project addressed by this request.",
1136+ "required": true,
1137+ "location": "path"
1138+ }
1139+ },
1140+ "parameterOrder": [
1141+ "project",
1142+ "managedZone"
1143+ ],
1144+ "response": {
1145+ "$ref": "ManagedZonesDeleteResponse"
1146+ },
1147+ "scopes": [
1148+ "https://www.googleapis.com/auth/cloud-platform",
1149+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1150+ ]
1151+ },
1152+ "get": {
1153+ "id": "dns.managedZones.get",
1154+ "path": "{project}/managedZones/{managedZone}",
1155+ "httpMethod": "GET",
1156+ "description": "Fetch the representation of an existing ManagedZone.",
1157+ "parameters": {
1158+ "clientOperationId": {
1159+ "type": "string",
1160+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1161+ "location": "query"
1162+ },
1163+ "managedZone": {
1164+ "type": "string",
1165+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
1166+ "required": true,
1167+ "location": "path"
1168+ },
1169+ "project": {
1170+ "type": "string",
1171+ "description": "Identifies the project addressed by this request.",
1172+ "required": true,
1173+ "location": "path"
1174+ }
1175+ },
1176+ "parameterOrder": [
1177+ "project",
1178+ "managedZone"
1179+ ],
1180+ "response": {
1181+ "$ref": "ManagedZone"
1182+ },
1183+ "scopes": [
1184+ "https://www.googleapis.com/auth/cloud-platform",
1185+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1186+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1187+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1188+ ]
1189+ },
1190+ "list": {
1191+ "id": "dns.managedZones.list",
1192+ "path": "{project}/managedZones",
1193+ "httpMethod": "GET",
1194+ "description": "Enumerate ManagedZones that have been created but not yet deleted.",
1195+ "parameters": {
1196+ "dnsName": {
1197+ "type": "string",
1198+ "description": "Restricts the list to return only zones with this domain name.",
1199+ "location": "query"
1200+ },
1201+ "maxResults": {
1202+ "type": "integer",
1203+ "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.",
1204+ "format": "int32",
1205+ "location": "query"
1206+ },
1207+ "pageToken": {
1208+ "type": "string",
1209+ "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.",
1210+ "location": "query"
1211+ },
1212+ "project": {
1213+ "type": "string",
1214+ "description": "Identifies the project addressed by this request.",
1215+ "required": true,
1216+ "location": "path"
1217+ }
1218+ },
1219+ "parameterOrder": [
1220+ "project"
1221+ ],
1222+ "response": {
1223+ "$ref": "ManagedZonesListResponse"
1224+ },
1225+ "scopes": [
1226+ "https://www.googleapis.com/auth/cloud-platform",
1227+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1228+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1229+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1230+ ]
1231+ },
1232+ "patch": {
1233+ "id": "dns.managedZones.patch",
1234+ "path": "{project}/managedZones/{managedZone}",
1235+ "httpMethod": "PATCH",
1236+ "description": "Update an existing ManagedZone. This method supports patch semantics.",
1237+ "parameters": {
1238+ "clientOperationId": {
1239+ "type": "string",
1240+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1241+ "location": "query"
1242+ },
1243+ "managedZone": {
1244+ "type": "string",
1245+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
1246+ "required": true,
1247+ "location": "path"
1248+ },
1249+ "project": {
1250+ "type": "string",
1251+ "description": "Identifies the project addressed by this request.",
1252+ "required": true,
1253+ "location": "path"
1254+ }
1255+ },
1256+ "parameterOrder": [
1257+ "project",
1258+ "managedZone"
1259+ ],
1260+ "request": {
1261+ "$ref": "ManagedZone"
1262+ },
1263+ "response": {
1264+ "$ref": "Operation"
1265+ },
1266+ "scopes": [
1267+ "https://www.googleapis.com/auth/cloud-platform",
1268+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1269+ ]
1270+ },
1271+ "update": {
1272+ "id": "dns.managedZones.update",
1273+ "path": "{project}/managedZones/{managedZone}",
1274+ "httpMethod": "PUT",
1275+ "description": "Update an existing ManagedZone.",
1276+ "parameters": {
1277+ "clientOperationId": {
1278+ "type": "string",
1279+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1280+ "location": "query"
1281+ },
1282+ "managedZone": {
1283+ "type": "string",
1284+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
1285+ "required": true,
1286+ "location": "path"
1287+ },
1288+ "project": {
1289+ "type": "string",
1290+ "description": "Identifies the project addressed by this request.",
1291+ "required": true,
1292+ "location": "path"
1293+ }
1294+ },
1295+ "parameterOrder": [
1296+ "project",
1297+ "managedZone"
1298+ ],
1299+ "request": {
1300+ "$ref": "ManagedZone"
1301+ },
1302+ "response": {
1303+ "$ref": "Operation"
1304+ },
1305+ "scopes": [
1306+ "https://www.googleapis.com/auth/cloud-platform",
1307+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1308+ ]
1309+ }
1310+ }
1311+ },
1312+ "projects": {
1313+ "methods": {
1314+ "get": {
1315+ "id": "dns.projects.get",
1316+ "path": "{project}",
1317+ "httpMethod": "GET",
1318+ "description": "Fetch the representation of an existing Project.",
1319+ "parameters": {
1320+ "clientOperationId": {
1321+ "type": "string",
1322+ "description": "For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.",
1323+ "location": "query"
1324+ },
1325+ "project": {
1326+ "type": "string",
1327+ "description": "Identifies the project addressed by this request.",
1328+ "required": true,
1329+ "location": "path"
1330+ }
1331+ },
1332+ "parameterOrder": [
1333+ "project"
1334+ ],
1335+ "response": {
1336+ "$ref": "Project"
1337+ },
1338+ "scopes": [
1339+ "https://www.googleapis.com/auth/cloud-platform",
1340+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1341+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1342+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1343+ ]
1344+ }
1345+ }
1346+ },
1347+ "resourceRecordSets": {
1348+ "methods": {
1349+ "list": {
1350+ "id": "dns.resourceRecordSets.list",
1351+ "path": "{project}/managedZones/{managedZone}/rrsets",
1352+ "httpMethod": "GET",
1353+ "description": "Enumerate ResourceRecordSets that have been created but not yet deleted.",
1354+ "parameters": {
1355+ "managedZone": {
1356+ "type": "string",
1357+ "description": "Identifies the managed zone addressed by this request. Can be the managed zone name or id.",
1358+ "required": true,
1359+ "location": "path"
1360+ },
1361+ "maxResults": {
1362+ "type": "integer",
1363+ "description": "Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.",
1364+ "format": "int32",
1365+ "location": "query"
1366+ },
1367+ "name": {
1368+ "type": "string",
1369+ "description": "Restricts the list to return only records with this fully qualified domain name.",
1370+ "location": "query"
1371+ },
1372+ "pageToken": {
1373+ "type": "string",
1374+ "description": "Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.",
1375+ "location": "query"
1376+ },
1377+ "project": {
1378+ "type": "string",
1379+ "description": "Identifies the project addressed by this request.",
1380+ "required": true,
1381+ "location": "path"
1382+ },
1383+ "type": {
1384+ "type": "string",
1385+ "description": "Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present.",
1386+ "location": "query"
1387+ }
1388+ },
1389+ "parameterOrder": [
1390+ "project",
1391+ "managedZone"
1392+ ],
1393+ "response": {
1394+ "$ref": "ResourceRecordSetsListResponse"
1395+ },
1396+ "scopes": [
1397+ "https://www.googleapis.com/auth/cloud-platform",
1398+ "https://www.googleapis.com/auth/cloud-platform.read-only",
1399+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
1400+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"
1401+ ]
1402+ }
1403+ }
1404+ }
1405+ }
1406+}
gogol-dns/gen/Network/Google/DNS.hs+154−2
@@ -41,6 +41,18 @@ module Network.Google.DNS
4141 -- ** dns.changes.list
4242 , module Network.Google.Resource.DNS.Changes.List
4343
44+ -- ** dns.dnskeys.get
45+ , module Network.Google.Resource.DNS.DNSkeys.Get
46+
47+ -- ** dns.dnskeys.list
48+ , module Network.Google.Resource.DNS.DNSkeys.List
49+
50+ -- ** dns.managedZoneOperations.get
51+ , module Network.Google.Resource.DNS.ManagedZoneOperations.Get
52+
53+ -- ** dns.managedZoneOperations.list
54+ , module Network.Google.Resource.DNS.ManagedZoneOperations.List
55+
4456 -- ** dns.managedZones.create
4557 , module Network.Google.Resource.DNS.ManagedZones.Create
4658
@@ -53,6 +65,12 @@ module Network.Google.DNS
5365 -- ** dns.managedZones.list
5466 , module Network.Google.Resource.DNS.ManagedZones.List
5567
68+ -- ** dns.managedZones.patch
69+ , module Network.Google.Resource.DNS.ManagedZones.Patch
70+
71+ -- ** dns.managedZones.update
72+ , module Network.Google.Resource.DNS.ManagedZones.Update
73+
5674 -- ** dns.projects.get
5775 , module Network.Google.Resource.DNS.Projects.Get
5876
@@ -61,12 +79,41 @@ module Network.Google.DNS
6179
6280 -- * Types
6381
82+ -- ** DNSKeySpecAlgorithm
83+ , DNSKeySpecAlgorithm (..)
84+
85+ -- ** ManagedZoneDNSSecConfigNonExistence
86+ , ManagedZoneDNSSecConfigNonExistence (..)
87+
88+ -- ** OperationDNSKeyContext
89+ , OperationDNSKeyContext
90+ , operationDNSKeyContext
91+ , odkcOldValue
92+ , odkcNewValue
93+
94+ -- ** DNSKeysListResponse
95+ , DNSKeysListResponse
96+ , dnsKeysListResponse
97+ , dklrNextPageToken
98+ , dklrDNSKeys
99+ , dklrKind
100+ , dklrHeader
101+
64102 -- ** ChangesListResponse
65103 , ChangesListResponse
66104 , changesListResponse
67105 , clrNextPageToken
68106 , clrChanges
69107 , clrKind
108+ , clrHeader
109+
110+ -- ** ManagedZoneDNSSecConfigState
111+ , ManagedZoneDNSSecConfigState (..)
112+
113+ -- ** ManagedZonesDeleteResponse
114+ , ManagedZonesDeleteResponse
115+ , managedZonesDeleteResponse
116+ , mzdrHeader
70117
71118 -- ** Project
72119 , Project
@@ -76,9 +123,32 @@ module Network.Google.DNS
76123 , pNumber
77124 , pQuota
78125
126+ -- ** Operation
127+ , Operation
128+ , operation
129+ , oStatus
130+ , oStartTime
131+ , oKind
132+ , oUser
133+ , oId
134+ , oType
135+ , oZoneContext
136+ , oDNSKeyContext
137+
138+ -- ** DNSKeySpec
139+ , DNSKeySpec
140+ , dnsKeySpec
141+ , dksKeyType
142+ , dksKind
143+ , dksAlgorithm
144+ , dksKeyLength
145+
79146 -- ** ChangesListSortBy
80147 , ChangesListSortBy (..)
81148
149+ -- ** DNSKeyDigestType
150+ , DNSKeyDigestType (..)
151+
82152 -- ** Change
83153 , Change
84154 , change
@@ -88,22 +158,76 @@ module Network.Google.DNS
88158 , cKind
89159 , cDeletions
90160 , cId
161+ , cIsServing
162+
163+ -- ** DNSKey
164+ , DNSKey
165+ , dnsKey
166+ , dkCreationTime
167+ , dkKeyTag
168+ , dkKind
169+ , dkDigests
170+ , dkPublicKey
171+ , dkAlgorithm
172+ , dkId
173+ , dkType
174+ , dkKeyLength
175+ , dkIsActive
176+ , dkDescription
177+
178+ -- ** OperationStatus
179+ , OperationStatus (..)
180+
181+ -- ** OperationManagedZoneContext
182+ , OperationManagedZoneContext
183+ , operationManagedZoneContext
184+ , omzcOldValue
185+ , omzcNewValue
186+
187+ -- ** DNSKeyAlgorithm
188+ , DNSKeyAlgorithm (..)
189+
190+ -- ** ResponseHeader
191+ , ResponseHeader
192+ , responseHeader
193+ , rhOperationId
194+
195+ -- ** DNSKeySpecKeyType
196+ , DNSKeySpecKeyType (..)
197+
198+ -- ** ManagedZoneOperationsListResponse
199+ , ManagedZoneOperationsListResponse
200+ , managedZoneOperationsListResponse
201+ , mzolrNextPageToken
202+ , mzolrKind
203+ , mzolrHeader
204+ , mzolrOperations
91205
92206 -- ** ResourceRecordSetsListResponse
93207 , ResourceRecordSetsListResponse
94208 , resourceRecordSetsListResponse
95209 , rrslrNextPageToken
96210 , rrslrKind
211+ , rrslrHeader
97212 , rrslrRrSets
98213
99214 -- ** ChangeStatus
100215 , ChangeStatus (..)
101216
217+ -- ** ManagedZoneDNSSecConfig
218+ , ManagedZoneDNSSecConfig
219+ , managedZoneDNSSecConfig
220+ , mzdscState
221+ , mzdscKind
222+ , mzdscDefaultKeySpecs
223+ , mzdscNonExistence
224+
102225 -- ** ResourceRecordSet
103226 , ResourceRecordSet
104227 , resourceRecordSet
105228 , rrsTtl
106229 , rrsKind
230+ , rrsSignatureRrDatas
107231 , rrsName
108232 , rrsType
109233 , rrsRrDatas
@@ -118,24 +242,40 @@ module Network.Google.DNS
118242 , mzId
119243 , mzDNSName
120244 , mzDescription
245+ , mzDNSsecConfig
121246 , mzNameServers
122247
123248 -- ** Quota
124249 , Quota
125250 , quota
126251 , qRrSetDeletionsPerChange
252+ , qWhiteListedKeySpecs
127253 , qRrSetsPerManagedZone
128254 , qKind
129255 , qResourceRecordsPerRrSet
130256 , qRrSetAdditionsPerChange
131257 , qManagedZones
132258 , qTotalRrDataSizePerChange
259+ , qDNSKeysPerManagedZone
260+
261+ -- ** DNSKeyType
262+ , DNSKeyType (..)
263+
264+ -- ** DNSKeyDigest
265+ , DNSKeyDigest
266+ , dnsKeyDigest
267+ , dkdDigest
268+ , dkdType
269+
270+ -- ** ManagedZoneOperationsListSortBy
271+ , ManagedZoneOperationsListSortBy (..)
133272
134273 -- ** ManagedZonesListResponse
135274 , ManagedZonesListResponse
136275 , managedZonesListResponse
137276 , mzlrNextPageToken
138277 , mzlrKind
278+ , mzlrHeader
139279 , mzlrManagedZones
140280 ) where
141281
@@ -144,10 +284,16 @@ import Network.Google.Prelude
144284import Network.Google.Resource.DNS.Changes.Create
145285import Network.Google.Resource.DNS.Changes.Get
146286import Network.Google.Resource.DNS.Changes.List
287+import Network.Google.Resource.DNS.DNSkeys.Get
288+import Network.Google.Resource.DNS.DNSkeys.List
289+import Network.Google.Resource.DNS.ManagedZoneOperations.Get
290+import Network.Google.Resource.DNS.ManagedZoneOperations.List
147291import Network.Google.Resource.DNS.ManagedZones.Create
148292import Network.Google.Resource.DNS.ManagedZones.Delete
149293import Network.Google.Resource.DNS.ManagedZones.Get
150294import Network.Google.Resource.DNS.ManagedZones.List
295+import Network.Google.Resource.DNS.ManagedZones.Patch
296+import Network.Google.Resource.DNS.ManagedZones.Update
151297import Network.Google.Resource.DNS.Projects.Get
152298import Network.Google.Resource.DNS.ResourceRecordSets.List
153299
@@ -157,11 +303,17 @@ TODO
157303
158304-- | Represents the entirety of the methods and resources available for the Google Cloud DNS API service.
159305type DNSAPI =
160− ChangesListResource :<|> ChangesGetResource :<|>
161− ChangesCreateResource
306+ DNSkeysListResource :<|> DNSkeysGetResource :<|>
307+ ChangesListResource
308+ :<|> ChangesGetResource
309+ :<|> ChangesCreateResource
162310 :<|> ResourceRecordSetsListResource
311+ :<|> ManagedZoneOperationsListResource
312+ :<|> ManagedZoneOperationsGetResource
163313 :<|> ManagedZonesListResource
314+ :<|> ManagedZonesPatchResource
164315 :<|> ManagedZonesGetResource
165316 :<|> ManagedZonesCreateResource
166317 :<|> ManagedZonesDeleteResource
318+ :<|> ManagedZonesUpdateResource
167319 :<|> ProjectsGetResource
gogol-dns/gen/Network/Google/DNS/Types.hs+124−2
@@ -25,12 +25,41 @@ module Network.Google.DNS.Types
2525 , ndevClouddnsReadwriteScope
2626 , cloudPlatformScope
2727
28+ -- * DNSKeySpecAlgorithm
29+ , DNSKeySpecAlgorithm (..)
30+
31+ -- * ManagedZoneDNSSecConfigNonExistence
32+ , ManagedZoneDNSSecConfigNonExistence (..)
33+
34+ -- * OperationDNSKeyContext
35+ , OperationDNSKeyContext
36+ , operationDNSKeyContext
37+ , odkcOldValue
38+ , odkcNewValue
39+
40+ -- * DNSKeysListResponse
41+ , DNSKeysListResponse
42+ , dnsKeysListResponse
43+ , dklrNextPageToken
44+ , dklrDNSKeys
45+ , dklrKind
46+ , dklrHeader
47+
2848 -- * ChangesListResponse
2949 , ChangesListResponse
3050 , changesListResponse
3151 , clrNextPageToken
3252 , clrChanges
3353 , clrKind
54+ , clrHeader
55+
56+ -- * ManagedZoneDNSSecConfigState
57+ , ManagedZoneDNSSecConfigState (..)
58+
59+ -- * ManagedZonesDeleteResponse
60+ , ManagedZonesDeleteResponse
61+ , managedZonesDeleteResponse
62+ , mzdrHeader
3463
3564 -- * Project
3665 , Project
@@ -40,9 +69,32 @@ module Network.Google.DNS.Types
4069 , pNumber
4170 , pQuota
4271
72+ -- * Operation
73+ , Operation
74+ , operation
75+ , oStatus
76+ , oStartTime
77+ , oKind
78+ , oUser
79+ , oId
80+ , oType
81+ , oZoneContext
82+ , oDNSKeyContext
83+
84+ -- * DNSKeySpec
85+ , DNSKeySpec
86+ , dnsKeySpec
87+ , dksKeyType
88+ , dksKind
89+ , dksAlgorithm
90+ , dksKeyLength
91+
4392 -- * ChangesListSortBy
4493 , ChangesListSortBy (..)
4594
95+ -- * DNSKeyDigestType
96+ , DNSKeyDigestType (..)
97+
4698 -- * Change
4799 , Change
48100 , change
@@ -52,22 +104,76 @@ module Network.Google.DNS.Types
52104 , cKind
53105 , cDeletions
54106 , cId
107+ , cIsServing
108+
109+ -- * DNSKey
110+ , DNSKey
111+ , dnsKey
112+ , dkCreationTime
113+ , dkKeyTag
114+ , dkKind
115+ , dkDigests
116+ , dkPublicKey
117+ , dkAlgorithm
118+ , dkId
119+ , dkType
120+ , dkKeyLength
121+ , dkIsActive
122+ , dkDescription
123+
124+ -- * OperationStatus
125+ , OperationStatus (..)
126+
127+ -- * OperationManagedZoneContext
128+ , OperationManagedZoneContext
129+ , operationManagedZoneContext
130+ , omzcOldValue
131+ , omzcNewValue
132+
133+ -- * DNSKeyAlgorithm
134+ , DNSKeyAlgorithm (..)
135+
136+ -- * ResponseHeader
137+ , ResponseHeader
138+ , responseHeader
139+ , rhOperationId
140+
141+ -- * DNSKeySpecKeyType
142+ , DNSKeySpecKeyType (..)
143+
144+ -- * ManagedZoneOperationsListResponse
145+ , ManagedZoneOperationsListResponse
146+ , managedZoneOperationsListResponse
147+ , mzolrNextPageToken
148+ , mzolrKind
149+ , mzolrHeader
150+ , mzolrOperations
55151
56152 -- * ResourceRecordSetsListResponse
57153 , ResourceRecordSetsListResponse
58154 , resourceRecordSetsListResponse
59155 , rrslrNextPageToken
60156 , rrslrKind
157+ , rrslrHeader
61158 , rrslrRrSets
62159
63160 -- * ChangeStatus
64161 , ChangeStatus (..)
65162
163+ -- * ManagedZoneDNSSecConfig
164+ , ManagedZoneDNSSecConfig
165+ , managedZoneDNSSecConfig
166+ , mzdscState
167+ , mzdscKind
168+ , mzdscDefaultKeySpecs
169+ , mzdscNonExistence
170+
66171 -- * ResourceRecordSet
67172 , ResourceRecordSet
68173 , resourceRecordSet
69174 , rrsTtl
70175 , rrsKind
176+ , rrsSignatureRrDatas
71177 , rrsName
72178 , rrsType
73179 , rrsRrDatas
@@ -82,24 +188,40 @@ module Network.Google.DNS.Types
82188 , mzId
83189 , mzDNSName
84190 , mzDescription
191+ , mzDNSsecConfig
85192 , mzNameServers
86193
87194 -- * Quota
88195 , Quota
89196 , quota
90197 , qRrSetDeletionsPerChange
198+ , qWhiteListedKeySpecs
91199 , qRrSetsPerManagedZone
92200 , qKind
93201 , qResourceRecordsPerRrSet
94202 , qRrSetAdditionsPerChange
95203 , qManagedZones
96204 , qTotalRrDataSizePerChange
205+ , qDNSKeysPerManagedZone
206+
207+ -- * DNSKeyType
208+ , DNSKeyType (..)
209+
210+ -- * DNSKeyDigest
211+ , DNSKeyDigest
212+ , dnsKeyDigest
213+ , dkdDigest
214+ , dkdType
215+
216+ -- * ManagedZoneOperationsListSortBy
217+ , ManagedZoneOperationsListSortBy (..)
97218
98219 -- * ManagedZonesListResponse
99220 , ManagedZonesListResponse
100221 , managedZonesListResponse
101222 , mzlrNextPageToken
102223 , mzlrKind
224+ , mzlrHeader
103225 , mzlrManagedZones
104226 ) where
105227
@@ -107,10 +229,10 @@ import Network.Google.DNS.Types.Product
107229import Network.Google.DNS.Types.Sum
108230import Network.Google.Prelude
109231
110−-- | Default request referring to version 'v1' of the Google Cloud DNS API. This contains the host and root path used as a starting point for constructing service requests.
232+-- | Default request referring to version 'v2beta1' of the Google Cloud DNS API. This contains the host and root path used as a starting point for constructing service requests.
111233dNSService :: ServiceConfig
112234dNSService
113− = defaultService (ServiceId "dns:v1")
235+ = defaultService (ServiceId "dns:v2beta1")
114236 "www.googleapis.com"
115237
116238-- | View your DNS records hosted by Google Cloud DNS
gogol-dns/gen/Network/Google/DNS/Types/Product.hs+916−14
@@ -20,6 +20,131 @@ module Network.Google.DNS.Types.Product where
2020import Network.Google.DNS.Types.Sum
2121import Network.Google.Prelude
2222
23+--
24+-- /See:/ 'operationDNSKeyContext' smart constructor.
25+data OperationDNSKeyContext = OperationDNSKeyContext'
26+ { _odkcOldValue :: !(Maybe DNSKey)
27+ , _odkcNewValue :: !(Maybe DNSKey)
28+ } deriving (Eq,Show,Data,Typeable,Generic)
29+
30+-- | Creates a value of 'OperationDNSKeyContext' with the minimum fields required to make a request.
31+--
32+-- Use one of the following lenses to modify other fields as desired:
33+--
34+-- * 'odkcOldValue'
35+--
36+-- * 'odkcNewValue'
37+operationDNSKeyContext
38+ :: OperationDNSKeyContext
39+operationDNSKeyContext =
40+ OperationDNSKeyContext'
41+ { _odkcOldValue = Nothing
42+ , _odkcNewValue = Nothing
43+ }
44+
45+-- | The pre-operation DnsKey resource.
46+odkcOldValue :: Lens' OperationDNSKeyContext (Maybe DNSKey)
47+odkcOldValue
48+ = lens _odkcOldValue (\ s a -> s{_odkcOldValue = a})
49+
50+-- | The post-operation DnsKey resource.
51+odkcNewValue :: Lens' OperationDNSKeyContext (Maybe DNSKey)
52+odkcNewValue
53+ = lens _odkcNewValue (\ s a -> s{_odkcNewValue = a})
54+
55+instance FromJSON OperationDNSKeyContext where
56+ parseJSON
57+ = withObject "OperationDNSKeyContext"
58+ (\ o ->
59+ OperationDNSKeyContext' <$>
60+ (o .:? "oldValue") <*> (o .:? "newValue"))
61+
62+instance ToJSON OperationDNSKeyContext where
63+ toJSON OperationDNSKeyContext'{..}
64+ = object
65+ (catMaybes
66+ [("oldValue" .=) <$> _odkcOldValue,
67+ ("newValue" .=) <$> _odkcNewValue])
68+
69+-- | The response to a request to enumerate DnsKeys in a ManagedZone.
70+--
71+-- /See:/ 'dnsKeysListResponse' smart constructor.
72+data DNSKeysListResponse = DNSKeysListResponse'
73+ { _dklrNextPageToken :: !(Maybe Text)
74+ , _dklrDNSKeys :: !(Maybe [DNSKey])
75+ , _dklrKind :: !Text
76+ , _dklrHeader :: !(Maybe ResponseHeader)
77+ } deriving (Eq,Show,Data,Typeable,Generic)
78+
79+-- | Creates a value of 'DNSKeysListResponse' with the minimum fields required to make a request.
80+--
81+-- Use one of the following lenses to modify other fields as desired:
82+--
83+-- * 'dklrNextPageToken'
84+--
85+-- * 'dklrDNSKeys'
86+--
87+-- * 'dklrKind'
88+--
89+-- * 'dklrHeader'
90+dnsKeysListResponse
91+ :: DNSKeysListResponse
92+dnsKeysListResponse =
93+ DNSKeysListResponse'
94+ { _dklrNextPageToken = Nothing
95+ , _dklrDNSKeys = Nothing
96+ , _dklrKind = "dns#dnsKeysListResponse"
97+ , _dklrHeader = Nothing
98+ }
99+
100+-- | The presence of this field indicates that there exist more results
101+-- following your last page of results in pagination order. To fetch them,
102+-- make another list request using this value as your pagination token. In
103+-- this way you can retrieve the complete contents of even very large
104+-- collections one page at a time. However, if the contents of the
105+-- collection change between the first and last paginated list request, the
106+-- set of all elements returned will be an inconsistent view of the
107+-- collection. There is no way to retrieve a \"snapshot\" of collections
108+-- larger than the maximum page size.
109+dklrNextPageToken :: Lens' DNSKeysListResponse (Maybe Text)
110+dklrNextPageToken
111+ = lens _dklrNextPageToken
112+ (\ s a -> s{_dklrNextPageToken = a})
113+
114+-- | The requested resources.
115+dklrDNSKeys :: Lens' DNSKeysListResponse [DNSKey]
116+dklrDNSKeys
117+ = lens _dklrDNSKeys (\ s a -> s{_dklrDNSKeys = a}) .
118+ _Default
119+ . _Coerce
120+
121+-- | Type of resource.
122+dklrKind :: Lens' DNSKeysListResponse Text
123+dklrKind = lens _dklrKind (\ s a -> s{_dklrKind = a})
124+
125+dklrHeader :: Lens' DNSKeysListResponse (Maybe ResponseHeader)
126+dklrHeader
127+ = lens _dklrHeader (\ s a -> s{_dklrHeader = a})
128+
129+instance FromJSON DNSKeysListResponse where
130+ parseJSON
131+ = withObject "DNSKeysListResponse"
132+ (\ o ->
133+ DNSKeysListResponse' <$>
134+ (o .:? "nextPageToken") <*>
135+ (o .:? "dnsKeys" .!= mempty)
136+ <*> (o .:? "kind" .!= "dns#dnsKeysListResponse")
137+ <*> (o .:? "header"))
138+
139+instance ToJSON DNSKeysListResponse where
140+ toJSON DNSKeysListResponse'{..}
141+ = object
142+ (catMaybes
143+ [("nextPageToken" .=) <$> _dklrNextPageToken,
144+ ("dnsKeys" .=) <$> _dklrDNSKeys,
145+ Just ("kind" .= _dklrKind),
146+ ("header" .=) <$> _dklrHeader])
147+
23148-- | The response to a request to enumerate Changes to a ResourceRecordSets
24149-- collection.
25150--
@@ -28,6 +153,7 @@ data ChangesListResponse = ChangesListResponse'
28153 { _clrNextPageToken :: !(Maybe Text)
29154 , _clrChanges :: !(Maybe [Change])
30155 , _clrKind :: !Text
156+ , _clrHeader :: !(Maybe ResponseHeader)
31157 } deriving (Eq,Show,Data,Typeable,Generic)
32158
33159-- | Creates a value of 'ChangesListResponse' with the minimum fields required to make a request.
@@ -39,6 +165,8 @@ data ChangesListResponse = ChangesListResponse'
39165-- * 'clrChanges'
40166--
41167-- * 'clrKind'
168+--
169+-- * 'clrHeader'
42170changesListResponse
43171 :: ChangesListResponse
44172changesListResponse =
@@ -46,6 +174,7 @@ changesListResponse =
46174 { _clrNextPageToken = Nothing
47175 , _clrChanges = Nothing
48176 , _clrKind = "dns#changesListResponse"
177+ , _clrHeader = Nothing
49178 }
50179
51180-- | The presence of this field indicates that there exist more results
@@ -73,6 +202,10 @@ clrChanges
73202clrKind :: Lens' ChangesListResponse Text
74203clrKind = lens _clrKind (\ s a -> s{_clrKind = a})
75204
205+clrHeader :: Lens' ChangesListResponse (Maybe ResponseHeader)
206+clrHeader
207+ = lens _clrHeader (\ s a -> s{_clrHeader = a})
208+
76209instance FromJSON ChangesListResponse where
77210 parseJSON
78211 = withObject "ChangesListResponse"
@@ -80,7 +213,8 @@ instance FromJSON ChangesListResponse where
80213 ChangesListResponse' <$>
81214 (o .:? "nextPageToken") <*>
82215 (o .:? "changes" .!= mempty)
83− <*> (o .:? "kind" .!= "dns#changesListResponse"))
216+ <*> (o .:? "kind" .!= "dns#changesListResponse")
217+ <*> (o .:? "header"))
84218
85219instance ToJSON ChangesListResponse where
86220 toJSON ChangesListResponse'{..}
@@ -88,7 +222,40 @@ instance ToJSON ChangesListResponse where
88222 (catMaybes
89223 [("nextPageToken" .=) <$> _clrNextPageToken,
90224 ("changes" .=) <$> _clrChanges,
91− Just ("kind" .= _clrKind)])
225+ Just ("kind" .= _clrKind),
226+ ("header" .=) <$> _clrHeader])
227+
228+--
229+-- /See:/ 'managedZonesDeleteResponse' smart constructor.
230+newtype ManagedZonesDeleteResponse = ManagedZonesDeleteResponse'
231+ { _mzdrHeader :: Maybe ResponseHeader
232+ } deriving (Eq,Show,Data,Typeable,Generic)
233+
234+-- | Creates a value of 'ManagedZonesDeleteResponse' with the minimum fields required to make a request.
235+--
236+-- Use one of the following lenses to modify other fields as desired:
237+--
238+-- * 'mzdrHeader'
239+managedZonesDeleteResponse
240+ :: ManagedZonesDeleteResponse
241+managedZonesDeleteResponse =
242+ ManagedZonesDeleteResponse'
243+ { _mzdrHeader = Nothing
244+ }
245+
246+mzdrHeader :: Lens' ManagedZonesDeleteResponse (Maybe ResponseHeader)
247+mzdrHeader
248+ = lens _mzdrHeader (\ s a -> s{_mzdrHeader = a})
249+
250+instance FromJSON ManagedZonesDeleteResponse where
251+ parseJSON
252+ = withObject "ManagedZonesDeleteResponse"
253+ (\ o ->
254+ ManagedZonesDeleteResponse' <$> (o .:? "header"))
255+
256+instance ToJSON ManagedZonesDeleteResponse where
257+ toJSON ManagedZonesDeleteResponse'{..}
258+ = object (catMaybes [("header" .=) <$> _mzdrHeader])
92259
93260-- | A project resource. The project is a top level container for resources
94261-- including Cloud DNS ManagedZones. Projects can be created only in the
@@ -160,6 +327,202 @@ instance ToJSON Project where
160327 ("number" .=) <$> _pNumber,
161328 ("quota" .=) <$> _pQuota])
162329
330+-- | An operation represents a successful mutation performed on a Cloud DNS
331+-- resource. Operations provide: - An audit log of server resource
332+-- mutations. - A way to recover\/retry API calls in the case where the
333+-- response is never received by the caller. Use the caller specified
334+-- client_operation_id.
335+--
336+-- /See:/ 'operation' smart constructor.
337+data Operation = Operation'
338+ { _oStatus :: !(Maybe OperationStatus)
339+ , _oStartTime :: !(Maybe Text)
340+ , _oKind :: !Text
341+ , _oUser :: !(Maybe Text)
342+ , _oId :: !(Maybe Text)
343+ , _oType :: !(Maybe Text)
344+ , _oZoneContext :: !(Maybe OperationManagedZoneContext)
345+ , _oDNSKeyContext :: !(Maybe OperationDNSKeyContext)
346+ } deriving (Eq,Show,Data,Typeable,Generic)
347+
348+-- | Creates a value of 'Operation' with the minimum fields required to make a request.
349+--
350+-- Use one of the following lenses to modify other fields as desired:
351+--
352+-- * 'oStatus'
353+--
354+-- * 'oStartTime'
355+--
356+-- * 'oKind'
357+--
358+-- * 'oUser'
359+--
360+-- * 'oId'
361+--
362+-- * 'oType'
363+--
364+-- * 'oZoneContext'
365+--
366+-- * 'oDNSKeyContext'
367+operation
368+ :: Operation
369+operation =
370+ Operation'
371+ { _oStatus = Nothing
372+ , _oStartTime = Nothing
373+ , _oKind = "dns#operation"
374+ , _oUser = Nothing
375+ , _oId = Nothing
376+ , _oType = Nothing
377+ , _oZoneContext = Nothing
378+ , _oDNSKeyContext = Nothing
379+ }
380+
381+-- | Status of the operation. Can be one of the following: \"PENDING\" or
382+-- \"DONE\" (output only).
383+oStatus :: Lens' Operation (Maybe OperationStatus)
384+oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
385+
386+-- | The time that this operation was started by the server. This is in
387+-- RFC3339 text format (output only).
388+oStartTime :: Lens' Operation (Maybe Text)
389+oStartTime
390+ = lens _oStartTime (\ s a -> s{_oStartTime = a})
391+
392+-- | Identifies what kind of resource this is. Value: the fixed string
393+-- \"dns#operation\".
394+oKind :: Lens' Operation Text
395+oKind = lens _oKind (\ s a -> s{_oKind = a})
396+
397+-- | User who requested the operation, for example: user\'example.com.
398+-- cloud-dns-system for operations automatically done by the system.
399+-- (output only)
400+oUser :: Lens' Operation (Maybe Text)
401+oUser = lens _oUser (\ s a -> s{_oUser = a})
402+
403+-- | Unique identifier for the resource. This is the client_operation_id if
404+-- the client specified it when the mutation was initiated, otherwise, it
405+-- is generated by the server. The name must be 1-63 characters long and
406+-- match the regular expression [-a-z0-9]? (output only)
407+oId :: Lens' Operation (Maybe Text)
408+oId = lens _oId (\ s a -> s{_oId = a})
409+
410+-- | Type of the operation. Operations include insert, update, and delete
411+-- (output only).
412+oType :: Lens' Operation (Maybe Text)
413+oType = lens _oType (\ s a -> s{_oType = a})
414+
415+-- | Only populated if the operation targeted a ManagedZone (output only).
416+oZoneContext :: Lens' Operation (Maybe OperationManagedZoneContext)
417+oZoneContext
418+ = lens _oZoneContext (\ s a -> s{_oZoneContext = a})
419+
420+-- | Only populated if the operation targeted a DnsKey (output only).
421+oDNSKeyContext :: Lens' Operation (Maybe OperationDNSKeyContext)
422+oDNSKeyContext
423+ = lens _oDNSKeyContext
424+ (\ s a -> s{_oDNSKeyContext = a})
425+
426+instance FromJSON Operation where
427+ parseJSON
428+ = withObject "Operation"
429+ (\ o ->
430+ Operation' <$>
431+ (o .:? "status") <*> (o .:? "startTime") <*>
432+ (o .:? "kind" .!= "dns#operation")
433+ <*> (o .:? "user")
434+ <*> (o .:? "id")
435+ <*> (o .:? "type")
436+ <*> (o .:? "zoneContext")
437+ <*> (o .:? "dnsKeyContext"))
438+
439+instance ToJSON Operation where
440+ toJSON Operation'{..}
441+ = object
442+ (catMaybes
443+ [("status" .=) <$> _oStatus,
444+ ("startTime" .=) <$> _oStartTime,
445+ Just ("kind" .= _oKind), ("user" .=) <$> _oUser,
446+ ("id" .=) <$> _oId, ("type" .=) <$> _oType,
447+ ("zoneContext" .=) <$> _oZoneContext,
448+ ("dnsKeyContext" .=) <$> _oDNSKeyContext])
449+
450+-- | Parameters for DnsKey key generation. Used for generating initial keys
451+-- for a new ManagedZone and as default when adding a new DnsKey.
452+--
453+-- /See:/ 'dnsKeySpec' smart constructor.
454+data DNSKeySpec = DNSKeySpec'
455+ { _dksKeyType :: !(Maybe DNSKeySpecKeyType)
456+ , _dksKind :: !Text
457+ , _dksAlgorithm :: !(Maybe DNSKeySpecAlgorithm)
458+ , _dksKeyLength :: !(Maybe (Textual Word32))
459+ } deriving (Eq,Show,Data,Typeable,Generic)
460+
461+-- | Creates a value of 'DNSKeySpec' with the minimum fields required to make a request.
462+--
463+-- Use one of the following lenses to modify other fields as desired:
464+--
465+-- * 'dksKeyType'
466+--
467+-- * 'dksKind'
468+--
469+-- * 'dksAlgorithm'
470+--
471+-- * 'dksKeyLength'
472+dnsKeySpec
473+ :: DNSKeySpec
474+dnsKeySpec =
475+ DNSKeySpec'
476+ { _dksKeyType = Nothing
477+ , _dksKind = "dns#dnsKeySpec"
478+ , _dksAlgorithm = Nothing
479+ , _dksKeyLength = Nothing
480+ }
481+
482+-- | One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING
483+-- have the Secure Entry Point flag set and, when active, will be used to
484+-- sign only resource record sets of type DNSKEY. Otherwise, the Secure
485+-- Entry Point flag will be cleared and this key will be used to sign only
486+-- resource record sets of other types.
487+dksKeyType :: Lens' DNSKeySpec (Maybe DNSKeySpecKeyType)
488+dksKeyType
489+ = lens _dksKeyType (\ s a -> s{_dksKeyType = a})
490+
491+-- | Identifies what kind of resource this is. Value: the fixed string
492+-- \"dns#dnsKeySpec\".
493+dksKind :: Lens' DNSKeySpec Text
494+dksKind = lens _dksKind (\ s a -> s{_dksKind = a})
495+
496+-- | String mnemonic specifying the DNSSEC algorithm of this key.
497+dksAlgorithm :: Lens' DNSKeySpec (Maybe DNSKeySpecAlgorithm)
498+dksAlgorithm
499+ = lens _dksAlgorithm (\ s a -> s{_dksAlgorithm = a})
500+
501+-- | Length of the keys in bits.
502+dksKeyLength :: Lens' DNSKeySpec (Maybe Word32)
503+dksKeyLength
504+ = lens _dksKeyLength (\ s a -> s{_dksKeyLength = a})
505+ . mapping _Coerce
506+
507+instance FromJSON DNSKeySpec where
508+ parseJSON
509+ = withObject "DNSKeySpec"
510+ (\ o ->
511+ DNSKeySpec' <$>
512+ (o .:? "keyType") <*>
513+ (o .:? "kind" .!= "dns#dnsKeySpec")
514+ <*> (o .:? "algorithm")
515+ <*> (o .:? "keyLength"))
516+
517+instance ToJSON DNSKeySpec where
518+ toJSON DNSKeySpec'{..}
519+ = object
520+ (catMaybes
521+ [("keyType" .=) <$> _dksKeyType,
522+ Just ("kind" .= _dksKind),
523+ ("algorithm" .=) <$> _dksAlgorithm,
524+ ("keyLength" .=) <$> _dksKeyLength])
525+
163526-- | An atomic update to a collection of ResourceRecordSets.
164527--
165528-- /See:/ 'change' smart constructor.
@@ -170,6 +533,7 @@ data Change = Change'
170533 , _cKind :: !Text
171534 , _cDeletions :: !(Maybe [ResourceRecordSet])
172535 , _cId :: !(Maybe Text)
536+ , _cIsServing :: !(Maybe Bool)
173537 } deriving (Eq,Show,Data,Typeable,Generic)
174538
175539-- | Creates a value of 'Change' with the minimum fields required to make a request.
@@ -187,6 +551,8 @@ data Change = Change'
187551-- * 'cDeletions'
188552--
189553-- * 'cId'
554+--
555+-- * 'cIsServing'
190556change
191557 :: Change
192558change =
@@ -197,6 +563,7 @@ change =
197563 , _cKind = "dns#change"
198564 , _cDeletions = Nothing
199565 , _cId = Nothing
566+ , _cIsServing = Nothing
200567 }
201568
202569-- | Status of the operation (output only).
@@ -232,6 +599,11 @@ cDeletions
232599cId :: Lens' Change (Maybe Text)
233600cId = lens _cId (\ s a -> s{_cId = a})
234601
602+-- | If the DNS queries for the zone will be served.
603+cIsServing :: Lens' Change (Maybe Bool)
604+cIsServing
605+ = lens _cIsServing (\ s a -> s{_cIsServing = a})
606+
235607instance FromJSON Change where
236608 parseJSON
237609 = withObject "Change"
@@ -241,7 +613,8 @@ instance FromJSON Change where
241613 <*> (o .:? "startTime")
242614 <*> (o .:? "kind" .!= "dns#change")
243615 <*> (o .:? "deletions" .!= mempty)
244− <*> (o .:? "id"))
616+ <*> (o .:? "id")
617+ <*> (o .:? "isServing"))
245618
246619instance ToJSON Change where
247620 toJSON Change'{..}
@@ -251,14 +624,348 @@ instance ToJSON Change where
251624 ("additions" .=) <$> _cAdditions,
252625 ("startTime" .=) <$> _cStartTime,
253626 Just ("kind" .= _cKind),
254− ("deletions" .=) <$> _cDeletions,
255− ("id" .=) <$> _cId])
627+ ("deletions" .=) <$> _cDeletions, ("id" .=) <$> _cId,
628+ ("isServing" .=) <$> _cIsServing])
629+
630+-- | A DNSSEC key pair.
631+--
632+-- /See:/ 'dnsKey' smart constructor.
633+data DNSKey = DNSKey'
634+ { _dkCreationTime :: !(Maybe Text)
635+ , _dkKeyTag :: !(Maybe (Textual Int32))
636+ , _dkKind :: !Text
637+ , _dkDigests :: !(Maybe [DNSKeyDigest])
638+ , _dkPublicKey :: !(Maybe Text)
639+ , _dkAlgorithm :: !(Maybe DNSKeyAlgorithm)
640+ , _dkId :: !(Maybe Text)
641+ , _dkType :: !(Maybe DNSKeyType)
642+ , _dkKeyLength :: !(Maybe (Textual Word32))
643+ , _dkIsActive :: !(Maybe Bool)
644+ , _dkDescription :: !(Maybe Text)
645+ } deriving (Eq,Show,Data,Typeable,Generic)
646+
647+-- | Creates a value of 'DNSKey' with the minimum fields required to make a request.
648+--
649+-- Use one of the following lenses to modify other fields as desired:
650+--
651+-- * 'dkCreationTime'
652+--
653+-- * 'dkKeyTag'
654+--
655+-- * 'dkKind'
656+--
657+-- * 'dkDigests'
658+--
659+-- * 'dkPublicKey'
660+--
661+-- * 'dkAlgorithm'
662+--
663+-- * 'dkId'
664+--
665+-- * 'dkType'
666+--
667+-- * 'dkKeyLength'
668+--
669+-- * 'dkIsActive'
670+--
671+-- * 'dkDescription'
672+dnsKey
673+ :: DNSKey
674+dnsKey =
675+ DNSKey'
676+ { _dkCreationTime = Nothing
677+ , _dkKeyTag = Nothing
678+ , _dkKind = "dns#dnsKey"
679+ , _dkDigests = Nothing
680+ , _dkPublicKey = Nothing
681+ , _dkAlgorithm = Nothing
682+ , _dkId = Nothing
683+ , _dkType = Nothing
684+ , _dkKeyLength = Nothing
685+ , _dkIsActive = Nothing
686+ , _dkDescription = Nothing
687+ }
688+
689+-- | The time that this resource was created in the control plane. This is in
690+-- RFC3339 text format. Output only.
691+dkCreationTime :: Lens' DNSKey (Maybe Text)
692+dkCreationTime
693+ = lens _dkCreationTime
694+ (\ s a -> s{_dkCreationTime = a})
695+
696+-- | The key tag is a non-cryptographic hash of the a DNSKEY resource record
697+-- associated with this DnsKey. The key tag can be used to identify a
698+-- DNSKEY more quickly (but it is not a unique identifier). In particular,
699+-- the key tag is used in a parent zone\'s DS record to point at the DNSKEY
700+-- in this child ManagedZone. The key tag is a number in the range [0,
701+-- 65535] and the algorithm to calculate it is specified in RFC4034
702+-- Appendix B. Output only.
703+dkKeyTag :: Lens' DNSKey (Maybe Int32)
704+dkKeyTag
705+ = lens _dkKeyTag (\ s a -> s{_dkKeyTag = a}) .
706+ mapping _Coerce
707+
708+-- | Identifies what kind of resource this is. Value: the fixed string
709+-- \"dns#dnsKey\".
710+dkKind :: Lens' DNSKey Text
711+dkKind = lens _dkKind (\ s a -> s{_dkKind = a})
712+
713+-- | Cryptographic hashes of the DNSKEY resource record associated with this
714+-- DnsKey. These digests are needed to construct a DS record that points at
715+-- this DNS key. Output only.
716+dkDigests :: Lens' DNSKey [DNSKeyDigest]
717+dkDigests
718+ = lens _dkDigests (\ s a -> s{_dkDigests = a}) .
719+ _Default
720+ . _Coerce
721+
722+-- | Base64 encoded public half of this key. Output only.
723+dkPublicKey :: Lens' DNSKey (Maybe Text)
724+dkPublicKey
725+ = lens _dkPublicKey (\ s a -> s{_dkPublicKey = a})
726+
727+-- | String mnemonic specifying the DNSSEC algorithm of this key. Immutable
728+-- after creation time.
729+dkAlgorithm :: Lens' DNSKey (Maybe DNSKeyAlgorithm)
730+dkAlgorithm
731+ = lens _dkAlgorithm (\ s a -> s{_dkAlgorithm = a})
732+
733+-- | Unique identifier for the resource; defined by the server (output only).
734+dkId :: Lens' DNSKey (Maybe Text)
735+dkId = lens _dkId (\ s a -> s{_dkId = a})
736+
737+-- | One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING
738+-- have the Secure Entry Point flag set and, when active, will be used to
739+-- sign only resource record sets of type DNSKEY. Otherwise, the Secure
740+-- Entry Point flag will be cleared and this key will be used to sign only
741+-- resource record sets of other types. Immutable after creation time.
742+dkType :: Lens' DNSKey (Maybe DNSKeyType)
743+dkType = lens _dkType (\ s a -> s{_dkType = a})
744+
745+-- | Length of the key in bits. Specified at creation time then immutable.
746+dkKeyLength :: Lens' DNSKey (Maybe Word32)
747+dkKeyLength
748+ = lens _dkKeyLength (\ s a -> s{_dkKeyLength = a}) .
749+ mapping _Coerce
750+
751+-- | Active keys will be used to sign subsequent changes to the ManagedZone.
752+-- Inactive keys will still be present as DNSKEY Resource Records for the
753+-- use of resolvers validating existing signatures.
754+dkIsActive :: Lens' DNSKey (Maybe Bool)
755+dkIsActive
756+ = lens _dkIsActive (\ s a -> s{_dkIsActive = a})
757+
758+-- | A mutable string of at most 1024 characters associated with this
759+-- resource for the user\'s convenience. Has no effect on the resource\'s
760+-- function.
761+dkDescription :: Lens' DNSKey (Maybe Text)
762+dkDescription
763+ = lens _dkDescription
764+ (\ s a -> s{_dkDescription = a})
765+
766+instance FromJSON DNSKey where
767+ parseJSON
768+ = withObject "DNSKey"
769+ (\ o ->
770+ DNSKey' <$>
771+ (o .:? "creationTime") <*> (o .:? "keyTag") <*>
772+ (o .:? "kind" .!= "dns#dnsKey")
773+ <*> (o .:? "digests" .!= mempty)
774+ <*> (o .:? "publicKey")
775+ <*> (o .:? "algorithm")
776+ <*> (o .:? "id")
777+ <*> (o .:? "type")
778+ <*> (o .:? "keyLength")
779+ <*> (o .:? "isActive")
780+ <*> (o .:? "description"))
781+
782+instance ToJSON DNSKey where
783+ toJSON DNSKey'{..}
784+ = object
785+ (catMaybes
786+ [("creationTime" .=) <$> _dkCreationTime,
787+ ("keyTag" .=) <$> _dkKeyTag,
788+ Just ("kind" .= _dkKind),
789+ ("digests" .=) <$> _dkDigests,
790+ ("publicKey" .=) <$> _dkPublicKey,
791+ ("algorithm" .=) <$> _dkAlgorithm,
792+ ("id" .=) <$> _dkId, ("type" .=) <$> _dkType,
793+ ("keyLength" .=) <$> _dkKeyLength,
794+ ("isActive" .=) <$> _dkIsActive,
795+ ("description" .=) <$> _dkDescription])
796+
797+--
798+-- /See:/ 'operationManagedZoneContext' smart constructor.
799+data OperationManagedZoneContext = OperationManagedZoneContext'
800+ { _omzcOldValue :: !(Maybe ManagedZone)
801+ , _omzcNewValue :: !(Maybe ManagedZone)
802+ } deriving (Eq,Show,Data,Typeable,Generic)
803+
804+-- | Creates a value of 'OperationManagedZoneContext' with the minimum fields required to make a request.
805+--
806+-- Use one of the following lenses to modify other fields as desired:
807+--
808+-- * 'omzcOldValue'
809+--
810+-- * 'omzcNewValue'
811+operationManagedZoneContext
812+ :: OperationManagedZoneContext
813+operationManagedZoneContext =
814+ OperationManagedZoneContext'
815+ { _omzcOldValue = Nothing
816+ , _omzcNewValue = Nothing
817+ }
818+
819+-- | The pre-operation ManagedZone resource.
820+omzcOldValue :: Lens' OperationManagedZoneContext (Maybe ManagedZone)
821+omzcOldValue
822+ = lens _omzcOldValue (\ s a -> s{_omzcOldValue = a})
823+
824+-- | The post-operation ManagedZone resource.
825+omzcNewValue :: Lens' OperationManagedZoneContext (Maybe ManagedZone)
826+omzcNewValue
827+ = lens _omzcNewValue (\ s a -> s{_omzcNewValue = a})
828+
829+instance FromJSON OperationManagedZoneContext where
830+ parseJSON
831+ = withObject "OperationManagedZoneContext"
832+ (\ o ->
833+ OperationManagedZoneContext' <$>
834+ (o .:? "oldValue") <*> (o .:? "newValue"))
835+
836+instance ToJSON OperationManagedZoneContext where
837+ toJSON OperationManagedZoneContext'{..}
838+ = object
839+ (catMaybes
840+ [("oldValue" .=) <$> _omzcOldValue,
841+ ("newValue" .=) <$> _omzcNewValue])
842+
843+-- | Elements common to every response.
844+--
845+-- /See:/ 'responseHeader' smart constructor.
846+newtype ResponseHeader = ResponseHeader'
847+ { _rhOperationId :: Maybe Text
848+ } deriving (Eq,Show,Data,Typeable,Generic)
849+
850+-- | Creates a value of 'ResponseHeader' with the minimum fields required to make a request.
851+--
852+-- Use one of the following lenses to modify other fields as desired:
853+--
854+-- * 'rhOperationId'
855+responseHeader
856+ :: ResponseHeader
857+responseHeader =
858+ ResponseHeader'
859+ { _rhOperationId = Nothing
860+ }
861+
862+-- | For mutating operation requests that completed successfully. This is the
863+-- client_operation_id if the client specified it, otherwise it is
864+-- generated by the server (output only).
865+rhOperationId :: Lens' ResponseHeader (Maybe Text)
866+rhOperationId
867+ = lens _rhOperationId
868+ (\ s a -> s{_rhOperationId = a})
869+
870+instance FromJSON ResponseHeader where
871+ parseJSON
872+ = withObject "ResponseHeader"
873+ (\ o -> ResponseHeader' <$> (o .:? "operationId"))
874+
875+instance ToJSON ResponseHeader where
876+ toJSON ResponseHeader'{..}
877+ = object
878+ (catMaybes [("operationId" .=) <$> _rhOperationId])
879+
880+--
881+-- /See:/ 'managedZoneOperationsListResponse' smart constructor.
882+data ManagedZoneOperationsListResponse = ManagedZoneOperationsListResponse'
883+ { _mzolrNextPageToken :: !(Maybe Text)
884+ , _mzolrKind :: !Text
885+ , _mzolrHeader :: !(Maybe ResponseHeader)
886+ , _mzolrOperations :: !(Maybe [Operation])
887+ } deriving (Eq,Show,Data,Typeable,Generic)
888+
889+-- | Creates a value of 'ManagedZoneOperationsListResponse' with the minimum fields required to make a request.
890+--
891+-- Use one of the following lenses to modify other fields as desired:
892+--
893+-- * 'mzolrNextPageToken'
894+--
895+-- * 'mzolrKind'
896+--
897+-- * 'mzolrHeader'
898+--
899+-- * 'mzolrOperations'
900+managedZoneOperationsListResponse
901+ :: ManagedZoneOperationsListResponse
902+managedZoneOperationsListResponse =
903+ ManagedZoneOperationsListResponse'
904+ { _mzolrNextPageToken = Nothing
905+ , _mzolrKind = "dns#managedZoneOperationsListResponse"
906+ , _mzolrHeader = Nothing
907+ , _mzolrOperations = Nothing
908+ }
909+
910+-- | The presence of this field indicates that there exist more results
911+-- following your last page of results in pagination order. To fetch them,
912+-- make another list request using this value as your page token. In this
913+-- way you can retrieve the complete contents of even very large
914+-- collections one page at a time. However, if the contents of the
915+-- collection change between the first and last paginated list request, the
916+-- set of all elements returned will be an inconsistent view of the
917+-- collection. There is no way to retrieve a consistent snapshot of a
918+-- collection larger than the maximum page size.
919+mzolrNextPageToken :: Lens' ManagedZoneOperationsListResponse (Maybe Text)
920+mzolrNextPageToken
921+ = lens _mzolrNextPageToken
922+ (\ s a -> s{_mzolrNextPageToken = a})
923+
924+-- | Type of resource.
925+mzolrKind :: Lens' ManagedZoneOperationsListResponse Text
926+mzolrKind
927+ = lens _mzolrKind (\ s a -> s{_mzolrKind = a})
928+
929+mzolrHeader :: Lens' ManagedZoneOperationsListResponse (Maybe ResponseHeader)
930+mzolrHeader
931+ = lens _mzolrHeader (\ s a -> s{_mzolrHeader = a})
932+
933+-- | The operation resources.
934+mzolrOperations :: Lens' ManagedZoneOperationsListResponse [Operation]
935+mzolrOperations
936+ = lens _mzolrOperations
937+ (\ s a -> s{_mzolrOperations = a})
938+ . _Default
939+ . _Coerce
940+
941+instance FromJSON ManagedZoneOperationsListResponse
942+ where
943+ parseJSON
944+ = withObject "ManagedZoneOperationsListResponse"
945+ (\ o ->
946+ ManagedZoneOperationsListResponse' <$>
947+ (o .:? "nextPageToken") <*>
948+ (o .:? "kind" .!=
949+ "dns#managedZoneOperationsListResponse")
950+ <*> (o .:? "header")
951+ <*> (o .:? "operations" .!= mempty))
952+
953+instance ToJSON ManagedZoneOperationsListResponse
954+ where
955+ toJSON ManagedZoneOperationsListResponse'{..}
956+ = object
957+ (catMaybes
958+ [("nextPageToken" .=) <$> _mzolrNextPageToken,
959+ Just ("kind" .= _mzolrKind),
960+ ("header" .=) <$> _mzolrHeader,
961+ ("operations" .=) <$> _mzolrOperations])
256962
257963--
258964-- /See:/ 'resourceRecordSetsListResponse' smart constructor.
259965data ResourceRecordSetsListResponse = ResourceRecordSetsListResponse'
260966 { _rrslrNextPageToken :: !(Maybe Text)
261967 , _rrslrKind :: !Text
968+ , _rrslrHeader :: !(Maybe ResponseHeader)
262969 , _rrslrRrSets :: !(Maybe [ResourceRecordSet])
263970 } deriving (Eq,Show,Data,Typeable,Generic)
264971
@@ -270,6 +977,8 @@ data ResourceRecordSetsListResponse = ResourceRecordSetsListResponse'
270977--
271978-- * 'rrslrKind'
272979--
980+-- * 'rrslrHeader'
981+--
273982-- * 'rrslrRrSets'
274983resourceRecordSetsListResponse
275984 :: ResourceRecordSetsListResponse
@@ -277,6 +986,7 @@ resourceRecordSetsListResponse =
277986 ResourceRecordSetsListResponse'
278987 { _rrslrNextPageToken = Nothing
279988 , _rrslrKind = "dns#resourceRecordSetsListResponse"
989+ , _rrslrHeader = Nothing
280990 , _rrslrRrSets = Nothing
281991 }
282992
@@ -299,6 +1009,10 @@ rrslrKind :: Lens' ResourceRecordSetsListResponse Text
2991009rrslrKind
3001010 = lens _rrslrKind (\ s a -> s{_rrslrKind = a})
3011011
1012+rrslrHeader :: Lens' ResourceRecordSetsListResponse (Maybe ResponseHeader)
1013+rrslrHeader
1014+ = lens _rrslrHeader (\ s a -> s{_rrslrHeader = a})
1015+
3021016-- | The resource record set resources.
3031017rrslrRrSets :: Lens' ResourceRecordSetsListResponse [ResourceRecordSet]
3041018rrslrRrSets
@@ -315,6 +1029,7 @@ instance FromJSON ResourceRecordSetsListResponse
3151029 (o .:? "nextPageToken") <*>
3161030 (o .:? "kind" .!=
3171031 "dns#resourceRecordSetsListResponse")
1032+ <*> (o .:? "header")
3181033 <*> (o .:? "rrsets" .!= mempty))
3191034
3201035instance ToJSON ResourceRecordSetsListResponse where
@@ -323,17 +1038,95 @@ instance ToJSON ResourceRecordSetsListResponse where
3231038 (catMaybes
3241039 [("nextPageToken" .=) <$> _rrslrNextPageToken,
3251040 Just ("kind" .= _rrslrKind),
1041+ ("header" .=) <$> _rrslrHeader,
3261042 ("rrsets" .=) <$> _rrslrRrSets])
3271043
1044+--
1045+-- /See:/ 'managedZoneDNSSecConfig' smart constructor.
1046+data ManagedZoneDNSSecConfig = ManagedZoneDNSSecConfig'
1047+ { _mzdscState :: !(Maybe ManagedZoneDNSSecConfigState)
1048+ , _mzdscKind :: !Text
1049+ , _mzdscDefaultKeySpecs :: !(Maybe [DNSKeySpec])
1050+ , _mzdscNonExistence :: !(Maybe ManagedZoneDNSSecConfigNonExistence)
1051+ } deriving (Eq,Show,Data,Typeable,Generic)
1052+
1053+-- | Creates a value of 'ManagedZoneDNSSecConfig' with the minimum fields required to make a request.
1054+--
1055+-- Use one of the following lenses to modify other fields as desired:
1056+--
1057+-- * 'mzdscState'
1058+--
1059+-- * 'mzdscKind'
1060+--
1061+-- * 'mzdscDefaultKeySpecs'
1062+--
1063+-- * 'mzdscNonExistence'
1064+managedZoneDNSSecConfig
1065+ :: ManagedZoneDNSSecConfig
1066+managedZoneDNSSecConfig =
1067+ ManagedZoneDNSSecConfig'
1068+ { _mzdscState = Nothing
1069+ , _mzdscKind = "dns#managedZoneDnsSecConfig"
1070+ , _mzdscDefaultKeySpecs = Nothing
1071+ , _mzdscNonExistence = Nothing
1072+ }
1073+
1074+-- | Specifies whether DNSSEC is enabled, and what mode it is in.
1075+mzdscState :: Lens' ManagedZoneDNSSecConfig (Maybe ManagedZoneDNSSecConfigState)
1076+mzdscState
1077+ = lens _mzdscState (\ s a -> s{_mzdscState = a})
1078+
1079+-- | Identifies what kind of resource this is. Value: the fixed string
1080+-- \"dns#managedZoneDnsSecConfig\".
1081+mzdscKind :: Lens' ManagedZoneDNSSecConfig Text
1082+mzdscKind
1083+ = lens _mzdscKind (\ s a -> s{_mzdscKind = a})
1084+
1085+-- | Specifies parameters that will be used for generating initial DnsKeys
1086+-- for this ManagedZone. Output only while state is not OFF.
1087+mzdscDefaultKeySpecs :: Lens' ManagedZoneDNSSecConfig [DNSKeySpec]
1088+mzdscDefaultKeySpecs
1089+ = lens _mzdscDefaultKeySpecs
1090+ (\ s a -> s{_mzdscDefaultKeySpecs = a})
1091+ . _Default
1092+ . _Coerce
1093+
1094+-- | Specifies the mechanism used to provide authenticated
1095+-- denial-of-existence responses. Output only while state is not OFF.
1096+mzdscNonExistence :: Lens' ManagedZoneDNSSecConfig (Maybe ManagedZoneDNSSecConfigNonExistence)
1097+mzdscNonExistence
1098+ = lens _mzdscNonExistence
1099+ (\ s a -> s{_mzdscNonExistence = a})
1100+
1101+instance FromJSON ManagedZoneDNSSecConfig where
1102+ parseJSON
1103+ = withObject "ManagedZoneDNSSecConfig"
1104+ (\ o ->
1105+ ManagedZoneDNSSecConfig' <$>
1106+ (o .:? "state") <*>
1107+ (o .:? "kind" .!= "dns#managedZoneDnsSecConfig")
1108+ <*> (o .:? "defaultKeySpecs" .!= mempty)
1109+ <*> (o .:? "nonExistence"))
1110+
1111+instance ToJSON ManagedZoneDNSSecConfig where
1112+ toJSON ManagedZoneDNSSecConfig'{..}
1113+ = object
1114+ (catMaybes
1115+ [("state" .=) <$> _mzdscState,
1116+ Just ("kind" .= _mzdscKind),
1117+ ("defaultKeySpecs" .=) <$> _mzdscDefaultKeySpecs,
1118+ ("nonExistence" .=) <$> _mzdscNonExistence])
1119+
3281120-- | A unit of data that will be returned by the DNS servers.
3291121--
3301122-- /See:/ 'resourceRecordSet' smart constructor.
3311123data ResourceRecordSet = ResourceRecordSet'
332− { _rrsTtl :: !(Maybe (Textual Int32))
333− , _rrsKind :: !Text
334− , _rrsName :: !(Maybe Text)
335− , _rrsType :: !(Maybe Text)
336− , _rrsRrDatas :: !(Maybe [Text])
1124+ { _rrsTtl :: !(Maybe (Textual Int32))
1125+ , _rrsKind :: !Text
1126+ , _rrsSignatureRrDatas :: !(Maybe [Text])
1127+ , _rrsName :: !(Maybe Text)
1128+ , _rrsType :: !(Maybe Text)
1129+ , _rrsRrDatas :: !(Maybe [Text])
3371130 } deriving (Eq,Show,Data,Typeable,Generic)
3381131
3391132-- | Creates a value of 'ResourceRecordSet' with the minimum fields required to make a request.
@@ -344,6 +1137,8 @@ data ResourceRecordSet = ResourceRecordSet'
3441137--
3451138-- * 'rrsKind'
3461139--
1140+-- * 'rrsSignatureRrDatas'
1141+--
3471142-- * 'rrsName'
3481143--
3491144-- * 'rrsType'
@@ -355,6 +1150,7 @@ resourceRecordSet =
3551150 ResourceRecordSet'
3561151 { _rrsTtl = Nothing
3571152 , _rrsKind = "dns#resourceRecordSet"
1153+ , _rrsSignatureRrDatas = Nothing
3581154 , _rrsName = Nothing
3591155 , _rrsType = Nothing
3601156 , _rrsRrDatas = Nothing
@@ -372,6 +1168,14 @@ rrsTtl
3721168rrsKind :: Lens' ResourceRecordSet Text
3731169rrsKind = lens _rrsKind (\ s a -> s{_rrsKind = a})
3741170
1171+-- | As defined in RFC 4034 (section 3.2).
1172+rrsSignatureRrDatas :: Lens' ResourceRecordSet [Text]
1173+rrsSignatureRrDatas
1174+ = lens _rrsSignatureRrDatas
1175+ (\ s a -> s{_rrsSignatureRrDatas = a})
1176+ . _Default
1177+ . _Coerce
1178+
3751179-- | For example, www.example.com.
3761180rrsName :: Lens' ResourceRecordSet (Maybe Text)
3771181rrsName = lens _rrsName (\ s a -> s{_rrsName = a})
@@ -395,6 +1199,7 @@ instance FromJSON ResourceRecordSet where
3951199 ResourceRecordSet' <$>
3961200 (o .:? "ttl") <*>
3971201 (o .:? "kind" .!= "dns#resourceRecordSet")
1202+ <*> (o .:? "signatureRrdatas" .!= mempty)
3981203 <*> (o .:? "name")
3991204 <*> (o .:? "type")
4001205 <*> (o .:? "rrdatas" .!= mempty))
@@ -404,6 +1209,7 @@ instance ToJSON ResourceRecordSet where
4041209 = object
4051210 (catMaybes
4061211 [("ttl" .=) <$> _rrsTtl, Just ("kind" .= _rrsKind),
1212+ ("signatureRrdatas" .=) <$> _rrsSignatureRrDatas,
4071213 ("name" .=) <$> _rrsName, ("type" .=) <$> _rrsType,
4081214 ("rrdatas" .=) <$> _rrsRrDatas])
4091215
@@ -420,6 +1226,7 @@ data ManagedZone = ManagedZone'
4201226 , _mzId :: !(Maybe (Textual Word64))
4211227 , _mzDNSName :: !(Maybe Text)
4221228 , _mzDescription :: !(Maybe Text)
1229+ , _mzDNSsecConfig :: !(Maybe ManagedZoneDNSSecConfig)
4231230 , _mzNameServers :: !(Maybe [Text])
4241231 } deriving (Eq,Show,Data,Typeable,Generic)
4251232
@@ -441,6 +1248,8 @@ data ManagedZone = ManagedZone'
4411248--
4421249-- * 'mzDescription'
4431250--
1251+-- * 'mzDNSsecConfig'
1252+--
4441253-- * 'mzNameServers'
4451254managedZone
4461255 :: ManagedZone
@@ -453,6 +1262,7 @@ managedZone =
4531262 , _mzId = Nothing
4541263 , _mzDNSName = Nothing
4551264 , _mzDescription = Nothing
1265+ , _mzDNSsecConfig = Nothing
4561266 , _mzNameServers = Nothing
4571267 }
4581268
@@ -477,7 +1287,7 @@ mzNameServerSet
4771287 (\ s a -> s{_mzNameServerSet = a})
4781288
4791289-- | User assigned name for this resource. Must be unique within the project.
480−-- The name must be 1-32 characters long, must begin with a letter, end
1290+-- The name must be 1-63 characters long, must begin with a letter, end
4811291-- with a letter or digit, and only contain lowercase letters, digits or
4821292-- dashes.
4831293mzName :: Lens' ManagedZone (Maybe Text)
@@ -502,6 +1312,12 @@ mzDescription
5021312 = lens _mzDescription
5031313 (\ s a -> s{_mzDescription = a})
5041314
1315+-- | DNSSEC configuration.
1316+mzDNSsecConfig :: Lens' ManagedZone (Maybe ManagedZoneDNSSecConfig)
1317+mzDNSsecConfig
1318+ = lens _mzDNSsecConfig
1319+ (\ s a -> s{_mzDNSsecConfig = a})
1320+
5051321-- | Delegate your managed_zone to these virtual name servers; defined by the
5061322-- server (output only)
5071323mzNameServers :: Lens' ManagedZone [Text]
@@ -523,6 +1339,7 @@ instance FromJSON ManagedZone where
5231339 <*> (o .:? "id")
5241340 <*> (o .:? "dnsName")
5251341 <*> (o .:? "description")
1342+ <*> (o .:? "dnssecConfig")
5261343 <*> (o .:? "nameServers" .!= mempty))
5271344
5281345instance ToJSON ManagedZone where
@@ -535,6 +1352,7 @@ instance ToJSON ManagedZone where
5351352 ("name" .=) <$> _mzName, ("id" .=) <$> _mzId,
5361353 ("dnsName" .=) <$> _mzDNSName,
5371354 ("description" .=) <$> _mzDescription,
1355+ ("dnssecConfig" .=) <$> _mzDNSsecConfig,
5381356 ("nameServers" .=) <$> _mzNameServers])
5391357
5401358-- | Limits associated with a Project.
@@ -542,12 +1360,14 @@ instance ToJSON ManagedZone where
5421360-- /See:/ 'quota' smart constructor.
5431361data Quota = Quota'
5441362 { _qRrSetDeletionsPerChange :: !(Maybe (Textual Int32))
1363+ , _qWhiteListedKeySpecs :: !(Maybe [DNSKeySpec])
5451364 , _qRrSetsPerManagedZone :: !(Maybe (Textual Int32))
5461365 , _qKind :: !Text
5471366 , _qResourceRecordsPerRrSet :: !(Maybe (Textual Int32))
5481367 , _qRrSetAdditionsPerChange :: !(Maybe (Textual Int32))
5491368 , _qManagedZones :: !(Maybe (Textual Int32))
5501369 , _qTotalRrDataSizePerChange :: !(Maybe (Textual Int32))
1370+ , _qDNSKeysPerManagedZone :: !(Maybe (Textual Int32))
5511371 } deriving (Eq,Show,Data,Typeable,Generic)
5521372
5531373-- | Creates a value of 'Quota' with the minimum fields required to make a request.
@@ -556,6 +1376,8 @@ data Quota = Quota'
5561376--
5571377-- * 'qRrSetDeletionsPerChange'
5581378--
1379+-- * 'qWhiteListedKeySpecs'
1380+--
5591381-- * 'qRrSetsPerManagedZone'
5601382--
5611383-- * 'qKind'
@@ -567,17 +1389,21 @@ data Quota = Quota'
5671389-- * 'qManagedZones'
5681390--
5691391-- * 'qTotalRrDataSizePerChange'
1392+--
1393+-- * 'qDNSKeysPerManagedZone'
5701394quota
5711395 :: Quota
5721396quota =
5731397 Quota'
5741398 { _qRrSetDeletionsPerChange = Nothing
1399+ , _qWhiteListedKeySpecs = Nothing
5751400 , _qRrSetsPerManagedZone = Nothing
5761401 , _qKind = "dns#quota"
5771402 , _qResourceRecordsPerRrSet = Nothing
5781403 , _qRrSetAdditionsPerChange = Nothing
5791404 , _qManagedZones = Nothing
5801405 , _qTotalRrDataSizePerChange = Nothing
1406+ , _qDNSKeysPerManagedZone = Nothing
5811407 }
5821408
5831409-- | Maximum allowed number of ResourceRecordSets to delete per
@@ -588,6 +1414,14 @@ qRrSetDeletionsPerChange
5881414 (\ s a -> s{_qRrSetDeletionsPerChange = a})
5891415 . mapping _Coerce
5901416
1417+-- | DNSSEC algorithm and key length types that can be used for DnsKeys.
1418+qWhiteListedKeySpecs :: Lens' Quota [DNSKeySpec]
1419+qWhiteListedKeySpecs
1420+ = lens _qWhiteListedKeySpecs
1421+ (\ s a -> s{_qWhiteListedKeySpecs = a})
1422+ . _Default
1423+ . _Coerce
1424+
5911425-- | Maximum allowed number of ResourceRecordSets per zone in the project.
5921426qRrSetsPerManagedZone :: Lens' Quota (Maybe Int32)
5931427qRrSetsPerManagedZone
@@ -630,18 +1464,27 @@ qTotalRrDataSizePerChange
6301464 (\ s a -> s{_qTotalRrDataSizePerChange = a})
6311465 . mapping _Coerce
6321466
1467+-- | Maximum allowed number of DnsKeys per ManagedZone.
1468+qDNSKeysPerManagedZone :: Lens' Quota (Maybe Int32)
1469+qDNSKeysPerManagedZone
1470+ = lens _qDNSKeysPerManagedZone
1471+ (\ s a -> s{_qDNSKeysPerManagedZone = a})
1472+ . mapping _Coerce
1473+
6331474instance FromJSON Quota where
6341475 parseJSON
6351476 = withObject "Quota"
6361477 (\ o ->
6371478 Quota' <$>
6381479 (o .:? "rrsetDeletionsPerChange") <*>
639− (o .:? "rrsetsPerManagedZone")
1480+ (o .:? "whitelistedKeySpecs" .!= mempty)
1481+ <*> (o .:? "rrsetsPerManagedZone")
6401482 <*> (o .:? "kind" .!= "dns#quota")
6411483 <*> (o .:? "resourceRecordsPerRrset")
6421484 <*> (o .:? "rrsetAdditionsPerChange")
6431485 <*> (o .:? "managedZones")
644− <*> (o .:? "totalRrdataSizePerChange"))
1486+ <*> (o .:? "totalRrdataSizePerChange")
1487+ <*> (o .:? "dnsKeysPerManagedZone"))
6451488
6461489instance ToJSON Quota where
6471490 toJSON Quota'{..}
@@ -649,6 +1492,7 @@ instance ToJSON Quota where
6491492 (catMaybes
6501493 [("rrsetDeletionsPerChange" .=) <$>
6511494 _qRrSetDeletionsPerChange,
1495+ ("whitelistedKeySpecs" .=) <$> _qWhiteListedKeySpecs,
6521496 ("rrsetsPerManagedZone" .=) <$>
6531497 _qRrSetsPerManagedZone,
6541498 Just ("kind" .= _qKind),
@@ -658,13 +1502,62 @@ instance ToJSON Quota where
6581502 _qRrSetAdditionsPerChange,
6591503 ("managedZones" .=) <$> _qManagedZones,
6601504 ("totalRrdataSizePerChange" .=) <$>
661− _qTotalRrDataSizePerChange])
1505+ _qTotalRrDataSizePerChange,
1506+ ("dnsKeysPerManagedZone" .=) <$>
1507+ _qDNSKeysPerManagedZone])
1508+
1509+--
1510+-- /See:/ 'dnsKeyDigest' smart constructor.
1511+data DNSKeyDigest = DNSKeyDigest'
1512+ { _dkdDigest :: !(Maybe Text)
1513+ , _dkdType :: !(Maybe DNSKeyDigestType)
1514+ } deriving (Eq,Show,Data,Typeable,Generic)
1515+
1516+-- | Creates a value of 'DNSKeyDigest' with the minimum fields required to make a request.
1517+--
1518+-- Use one of the following lenses to modify other fields as desired:
1519+--
1520+-- * 'dkdDigest'
1521+--
1522+-- * 'dkdType'
1523+dnsKeyDigest
1524+ :: DNSKeyDigest
1525+dnsKeyDigest =
1526+ DNSKeyDigest'
1527+ { _dkdDigest = Nothing
1528+ , _dkdType = Nothing
1529+ }
1530+
1531+-- | The base-16 encoded bytes of this digest. Suitable for use in a DS
1532+-- resource record.
1533+dkdDigest :: Lens' DNSKeyDigest (Maybe Text)
1534+dkdDigest
1535+ = lens _dkdDigest (\ s a -> s{_dkdDigest = a})
1536+
1537+-- | Specifies the algorithm used to calculate this digest.
1538+dkdType :: Lens' DNSKeyDigest (Maybe DNSKeyDigestType)
1539+dkdType = lens _dkdType (\ s a -> s{_dkdType = a})
1540+
1541+instance FromJSON DNSKeyDigest where
1542+ parseJSON
1543+ = withObject "DNSKeyDigest"
1544+ (\ o ->
1545+ DNSKeyDigest' <$>
1546+ (o .:? "digest") <*> (o .:? "type"))
1547+
1548+instance ToJSON DNSKeyDigest where
1549+ toJSON DNSKeyDigest'{..}
1550+ = object
1551+ (catMaybes
1552+ [("digest" .=) <$> _dkdDigest,
1553+ ("type" .=) <$> _dkdType])
6621554
6631555--
6641556-- /See:/ 'managedZonesListResponse' smart constructor.
6651557data ManagedZonesListResponse = ManagedZonesListResponse'
6661558 { _mzlrNextPageToken :: !(Maybe Text)
6671559 , _mzlrKind :: !Text
1560+ , _mzlrHeader :: !(Maybe ResponseHeader)
6681561 , _mzlrManagedZones :: !(Maybe [ManagedZone])
6691562 } deriving (Eq,Show,Data,Typeable,Generic)
6701563
@@ -676,6 +1569,8 @@ data ManagedZonesListResponse = ManagedZonesListResponse'
6761569--
6771570-- * 'mzlrKind'
6781571--
1572+-- * 'mzlrHeader'
1573+--
6791574-- * 'mzlrManagedZones'
6801575managedZonesListResponse
6811576 :: ManagedZonesListResponse
@@ -683,6 +1578,7 @@ managedZonesListResponse =
6831578 ManagedZonesListResponse'
6841579 { _mzlrNextPageToken = Nothing
6851580 , _mzlrKind = "dns#managedZonesListResponse"
1581+ , _mzlrHeader = Nothing
6861582 , _mzlrManagedZones = Nothing
6871583 }
6881584
@@ -704,6 +1600,10 @@ mzlrNextPageToken
7041600mzlrKind :: Lens' ManagedZonesListResponse Text
7051601mzlrKind = lens _mzlrKind (\ s a -> s{_mzlrKind = a})
7061602
1603+mzlrHeader :: Lens' ManagedZonesListResponse (Maybe ResponseHeader)
1604+mzlrHeader
1605+ = lens _mzlrHeader (\ s a -> s{_mzlrHeader = a})
1606+
7071607-- | The managed zone resources.
7081608mzlrManagedZones :: Lens' ManagedZonesListResponse [ManagedZone]
7091609mzlrManagedZones
@@ -719,6 +1619,7 @@ instance FromJSON ManagedZonesListResponse where
7191619 ManagedZonesListResponse' <$>
7201620 (o .:? "nextPageToken") <*>
7211621 (o .:? "kind" .!= "dns#managedZonesListResponse")
1622+ <*> (o .:? "header")
7221623 <*> (o .:? "managedZones" .!= mempty))
7231624
7241625instance ToJSON ManagedZonesListResponse where
@@ -727,4 +1628,5 @@ instance ToJSON ManagedZonesListResponse where
7271628 (catMaybes
7281629 [("nextPageToken" .=) <$> _mzlrNextPageToken,
7291630 Just ("kind" .= _mzlrKind),
1631+ ("header" .=) <$> _mzlrHeader,
7301632 ("managedZones" .=) <$> _mzlrManagedZones])
gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+297−11
@@ -18,22 +18,120 @@ module Network.Google.DNS.Types.Sum where
1818
1919import Network.Google.Prelude
2020
21+-- | String mnemonic specifying the DNSSEC algorithm of this key.
22+data DNSKeySpecAlgorithm
23+ = ECDSAP256SHA256
24+ -- ^ @ECDSAP256SHA256@
25+ | ECDSAP384SHA384
26+ -- ^ @ECDSAP384SHA384@
27+ | RSASHA1
28+ -- ^ @RSASHA1@
29+ | RSASHA256
30+ -- ^ @RSASHA256@
31+ | RSASHA512
32+ -- ^ @RSASHA512@
33+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
34+
35+instance Hashable DNSKeySpecAlgorithm
36+
37+instance FromHttpApiData DNSKeySpecAlgorithm where
38+ parseQueryParam = \case
39+ "ECDSAP256SHA256" -> Right ECDSAP256SHA256
40+ "ECDSAP384SHA384" -> Right ECDSAP384SHA384
41+ "RSASHA1" -> Right RSASHA1
42+ "RSASHA256" -> Right RSASHA256
43+ "RSASHA512" -> Right RSASHA512
44+ x -> Left ("Unable to parse DNSKeySpecAlgorithm from: " <> x)
45+
46+instance ToHttpApiData DNSKeySpecAlgorithm where
47+ toQueryParam = \case
48+ ECDSAP256SHA256 -> "ECDSAP256SHA256"
49+ ECDSAP384SHA384 -> "ECDSAP384SHA384"
50+ RSASHA1 -> "RSASHA1"
51+ RSASHA256 -> "RSASHA256"
52+ RSASHA512 -> "RSASHA512"
53+
54+instance FromJSON DNSKeySpecAlgorithm where
55+ parseJSON = parseJSONText "DNSKeySpecAlgorithm"
56+
57+instance ToJSON DNSKeySpecAlgorithm where
58+ toJSON = toJSONText
59+
60+-- | Specifies the mechanism used to provide authenticated
61+-- denial-of-existence responses. Output only while state is not OFF.
62+data ManagedZoneDNSSecConfigNonExistence
63+ = Nsec
64+ -- ^ @NSEC@
65+ | NSEC3
66+ -- ^ @NSEC3@
67+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
68+
69+instance Hashable ManagedZoneDNSSecConfigNonExistence
70+
71+instance FromHttpApiData ManagedZoneDNSSecConfigNonExistence where
72+ parseQueryParam = \case
73+ "NSEC" -> Right Nsec
74+ "NSEC3" -> Right NSEC3
75+ x -> Left ("Unable to parse ManagedZoneDNSSecConfigNonExistence from: " <> x)
76+
77+instance ToHttpApiData ManagedZoneDNSSecConfigNonExistence where
78+ toQueryParam = \case
79+ Nsec -> "NSEC"
80+ NSEC3 -> "NSEC3"
81+
82+instance FromJSON ManagedZoneDNSSecConfigNonExistence where
83+ parseJSON = parseJSONText "ManagedZoneDNSSecConfigNonExistence"
84+
85+instance ToJSON ManagedZoneDNSSecConfigNonExistence where
86+ toJSON = toJSONText
87+
88+-- | Specifies whether DNSSEC is enabled, and what mode it is in.
89+data ManagedZoneDNSSecConfigState
90+ = Off
91+ -- ^ @OFF@
92+ | ON
93+ -- ^ @ON@
94+ | Transfer
95+ -- ^ @TRANSFER@
96+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
97+
98+instance Hashable ManagedZoneDNSSecConfigState
99+
100+instance FromHttpApiData ManagedZoneDNSSecConfigState where
101+ parseQueryParam = \case
102+ "OFF" -> Right Off
103+ "ON" -> Right ON
104+ "TRANSFER" -> Right Transfer
105+ x -> Left ("Unable to parse ManagedZoneDNSSecConfigState from: " <> x)
106+
107+instance ToHttpApiData ManagedZoneDNSSecConfigState where
108+ toQueryParam = \case
109+ Off -> "OFF"
110+ ON -> "ON"
111+ Transfer -> "TRANSFER"
112+
113+instance FromJSON ManagedZoneDNSSecConfigState where
114+ parseJSON = parseJSONText "ManagedZoneDNSSecConfigState"
115+
116+instance ToJSON ManagedZoneDNSSecConfigState where
117+ toJSON = toJSONText
118+
21119-- | Sorting criterion. The only supported value is change sequence.
22120data ChangesListSortBy
23121 = ChangeSequence
24− -- ^ @changeSequence@
122+ -- ^ @CHANGE_SEQUENCE@
25123 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
26124
27125instance Hashable ChangesListSortBy
28126
29127instance FromHttpApiData ChangesListSortBy where
30128 parseQueryParam = \case
31− "changeSequence" -> Right ChangeSequence
129+ "CHANGE_SEQUENCE" -> Right ChangeSequence
32130 x -> Left ("Unable to parse ChangesListSortBy from: " <> x)
33131
34132instance ToHttpApiData ChangesListSortBy where
35133 toQueryParam = \case
36− ChangeSequence -> "changeSequence"
134+ ChangeSequence -> "CHANGE_SEQUENCE"
37135
38136instance FromJSON ChangesListSortBy where
39137 parseJSON = parseJSONText "ChangesListSortBy"
@@ -41,29 +139,217 @@ instance FromJSON ChangesListSortBy where
41139instance ToJSON ChangesListSortBy where
42140 toJSON = toJSONText
43141
44−-- | Status of the operation (output only).
45−data ChangeStatus
142+-- | Specifies the algorithm used to calculate this digest.
143+data DNSKeyDigestType
144+ = SHA1
145+ -- ^ @SHA1@
146+ | SHA256
147+ -- ^ @SHA256@
148+ | SHA384
149+ -- ^ @SHA384@
150+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
151+
152+instance Hashable DNSKeyDigestType
153+
154+instance FromHttpApiData DNSKeyDigestType where
155+ parseQueryParam = \case
156+ "SHA1" -> Right SHA1
157+ "SHA256" -> Right SHA256
158+ "SHA384" -> Right SHA384
159+ x -> Left ("Unable to parse DNSKeyDigestType from: " <> x)
160+
161+instance ToHttpApiData DNSKeyDigestType where
162+ toQueryParam = \case
163+ SHA1 -> "SHA1"
164+ SHA256 -> "SHA256"
165+ SHA384 -> "SHA384"
166+
167+instance FromJSON DNSKeyDigestType where
168+ parseJSON = parseJSONText "DNSKeyDigestType"
169+
170+instance ToJSON DNSKeyDigestType where
171+ toJSON = toJSONText
172+
173+-- | Status of the operation. Can be one of the following: \"PENDING\" or
174+-- \"DONE\" (output only).
175+data OperationStatus
46176 = Done
47− -- ^ @done@
177+ -- ^ @DONE@
48178 | Pending
49− -- ^ @pending@
179+ -- ^ @PENDING@
180+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
181+
182+instance Hashable OperationStatus
183+
184+instance FromHttpApiData OperationStatus where
185+ parseQueryParam = \case
186+ "DONE" -> Right Done
187+ "PENDING" -> Right Pending
188+ x -> Left ("Unable to parse OperationStatus from: " <> x)
189+
190+instance ToHttpApiData OperationStatus where
191+ toQueryParam = \case
192+ Done -> "DONE"
193+ Pending -> "PENDING"
194+
195+instance FromJSON OperationStatus where
196+ parseJSON = parseJSONText "OperationStatus"
197+
198+instance ToJSON OperationStatus where
199+ toJSON = toJSONText
200+
201+-- | String mnemonic specifying the DNSSEC algorithm of this key. Immutable
202+-- after creation time.
203+data DNSKeyAlgorithm
204+ = DKAECDSAP256SHA256
205+ -- ^ @ECDSAP256SHA256@
206+ | DKAECDSAP384SHA384
207+ -- ^ @ECDSAP384SHA384@
208+ | DKARSASHA1
209+ -- ^ @RSASHA1@
210+ | DKARSASHA256
211+ -- ^ @RSASHA256@
212+ | DKARSASHA512
213+ -- ^ @RSASHA512@
214+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
215+
216+instance Hashable DNSKeyAlgorithm
217+
218+instance FromHttpApiData DNSKeyAlgorithm where
219+ parseQueryParam = \case
220+ "ECDSAP256SHA256" -> Right DKAECDSAP256SHA256
221+ "ECDSAP384SHA384" -> Right DKAECDSAP384SHA384
222+ "RSASHA1" -> Right DKARSASHA1
223+ "RSASHA256" -> Right DKARSASHA256
224+ "RSASHA512" -> Right DKARSASHA512
225+ x -> Left ("Unable to parse DNSKeyAlgorithm from: " <> x)
226+
227+instance ToHttpApiData DNSKeyAlgorithm where
228+ toQueryParam = \case
229+ DKAECDSAP256SHA256 -> "ECDSAP256SHA256"
230+ DKAECDSAP384SHA384 -> "ECDSAP384SHA384"
231+ DKARSASHA1 -> "RSASHA1"
232+ DKARSASHA256 -> "RSASHA256"
233+ DKARSASHA512 -> "RSASHA512"
234+
235+instance FromJSON DNSKeyAlgorithm where
236+ parseJSON = parseJSONText "DNSKeyAlgorithm"
237+
238+instance ToJSON DNSKeyAlgorithm where
239+ toJSON = toJSONText
240+
241+-- | One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING
242+-- have the Secure Entry Point flag set and, when active, will be used to
243+-- sign only resource record sets of type DNSKEY. Otherwise, the Secure
244+-- Entry Point flag will be cleared and this key will be used to sign only
245+-- resource record sets of other types.
246+data DNSKeySpecKeyType
247+ = KeySigning
248+ -- ^ @KEY_SIGNING@
249+ | ZoneSigning
250+ -- ^ @ZONE_SIGNING@
251+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
252+
253+instance Hashable DNSKeySpecKeyType
254+
255+instance FromHttpApiData DNSKeySpecKeyType where
256+ parseQueryParam = \case
257+ "KEY_SIGNING" -> Right KeySigning
258+ "ZONE_SIGNING" -> Right ZoneSigning
259+ x -> Left ("Unable to parse DNSKeySpecKeyType from: " <> x)
260+
261+instance ToHttpApiData DNSKeySpecKeyType where
262+ toQueryParam = \case
263+ KeySigning -> "KEY_SIGNING"
264+ ZoneSigning -> "ZONE_SIGNING"
265+
266+instance FromJSON DNSKeySpecKeyType where
267+ parseJSON = parseJSONText "DNSKeySpecKeyType"
268+
269+instance ToJSON DNSKeySpecKeyType where
270+ toJSON = toJSONText
271+
272+-- | Status of the operation (output only).
273+data ChangeStatus
274+ = CSDone
275+ -- ^ @DONE@
276+ | CSPending
277+ -- ^ @PENDING@
50278 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
51279
52280instance Hashable ChangeStatus
53281
54282instance FromHttpApiData ChangeStatus where
55283 parseQueryParam = \case
56− "done" -> Right Done
57− "pending" -> Right Pending
284+ "DONE" -> Right CSDone
285+ "PENDING" -> Right CSPending
58286 x -> Left ("Unable to parse ChangeStatus from: " <> x)
59287
60288instance ToHttpApiData ChangeStatus where
61289 toQueryParam = \case
62− Done -> "done"
63− Pending -> "pending"
290+ CSDone -> "DONE"
291+ CSPending -> "PENDING"
64292
65293instance FromJSON ChangeStatus where
66294 parseJSON = parseJSONText "ChangeStatus"
67295
68296instance ToJSON ChangeStatus where
69297 toJSON = toJSONText
298+
299+-- | One of \"KEY_SIGNING\" or \"ZONE_SIGNING\". Keys of type KEY_SIGNING
300+-- have the Secure Entry Point flag set and, when active, will be used to
301+-- sign only resource record sets of type DNSKEY. Otherwise, the Secure
302+-- Entry Point flag will be cleared and this key will be used to sign only
303+-- resource record sets of other types. Immutable after creation time.
304+data DNSKeyType
305+ = DKTKeySigning
306+ -- ^ @KEY_SIGNING@
307+ | DKTZoneSigning
308+ -- ^ @ZONE_SIGNING@
309+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
310+
311+instance Hashable DNSKeyType
312+
313+instance FromHttpApiData DNSKeyType where
314+ parseQueryParam = \case
315+ "KEY_SIGNING" -> Right DKTKeySigning
316+ "ZONE_SIGNING" -> Right DKTZoneSigning
317+ x -> Left ("Unable to parse DNSKeyType from: " <> x)
318+
319+instance ToHttpApiData DNSKeyType where
320+ toQueryParam = \case
321+ DKTKeySigning -> "KEY_SIGNING"
322+ DKTZoneSigning -> "ZONE_SIGNING"
323+
324+instance FromJSON DNSKeyType where
325+ parseJSON = parseJSONText "DNSKeyType"
326+
327+instance ToJSON DNSKeyType where
328+ toJSON = toJSONText
329+
330+-- | Sorting criterion. The only supported values are START_TIME and ID.
331+data ManagedZoneOperationsListSortBy
332+ = ID
333+ -- ^ @ID@
334+ | StartTime
335+ -- ^ @START_TIME@
336+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
337+
338+instance Hashable ManagedZoneOperationsListSortBy
339+
340+instance FromHttpApiData ManagedZoneOperationsListSortBy where
341+ parseQueryParam = \case
342+ "ID" -> Right ID
343+ "START_TIME" -> Right StartTime
344+ x -> Left ("Unable to parse ManagedZoneOperationsListSortBy from: " <> x)
345+
346+instance ToHttpApiData ManagedZoneOperationsListSortBy where
347+ toQueryParam = \case
348+ ID -> "ID"
349+ StartTime -> "START_TIME"
350+
351+instance FromJSON ManagedZoneOperationsListSortBy where
352+ parseJSON = parseJSONText "ManagedZoneOperationsListSortBy"
353+
354+instance ToJSON ManagedZoneOperationsListSortBy where
355+ toJSON = toJSONText
gogol-dns/gen/Network/Google/Resource/DNS/Changes/Create.hs+22−7
@@ -36,6 +36,7 @@ module Network.Google.Resource.DNS.Changes.Create
3636 , ccProject
3737 , ccPayload
3838 , ccManagedZone
39+ , ccClientOperationId
3940 ) where
4041
4142import Network.Google.DNS.Types
@@ -45,22 +46,24 @@ import Network.Google.Prelude
4546-- 'ChangesCreate' request conforms to.
4647type ChangesCreateResource =
4748 "dns" :>
48− "v1" :>
49+ "v2beta1" :>
4950 "projects" :>
5051 Capture "project" Text :>
5152 "managedZones" :>
5253 Capture "managedZone" Text :>
5354 "changes" :>
54− QueryParam "alt" AltJSON :>
55− ReqBody '[JSON] Change :> Post '[JSON] Change
55+ QueryParam "clientOperationId" Text :>
56+ QueryParam "alt" AltJSON :>
57+ ReqBody '[JSON] Change :> Post '[JSON] Change
5658
5759-- | Atomically update the ResourceRecordSet collection.
5860--
5961-- /See:/ 'changesCreate' smart constructor.
6062data ChangesCreate = ChangesCreate'
61− { _ccProject :: !Text
62− , _ccPayload :: !Change
63− , _ccManagedZone :: !Text
63+ { _ccProject :: !Text
64+ , _ccPayload :: !Change
65+ , _ccManagedZone :: !Text
66+ , _ccClientOperationId :: !(Maybe Text)
6467 } deriving (Eq,Show,Data,Typeable,Generic)
6568
6669-- | Creates a value of 'ChangesCreate' with the minimum fields required to make a request.
@@ -72,6 +75,8 @@ data ChangesCreate = ChangesCreate'
7275-- * 'ccPayload'
7376--
7477-- * 'ccManagedZone'
78+--
79+-- * 'ccClientOperationId'
7580changesCreate
7681 :: Text -- ^ 'ccProject'
7782 -> Change -- ^ 'ccPayload'
@@ -82,6 +87,7 @@ changesCreate pCcProject_ pCcPayload_ pCcManagedZone_ =
8287 { _ccProject = pCcProject_
8388 , _ccPayload = pCcPayload_
8489 , _ccManagedZone = pCcManagedZone_
90+ , _ccClientOperationId = Nothing
8591 }
8692
8793-- | Identifies the project addressed by this request.
@@ -101,13 +107,22 @@ ccManagedZone
101107 = lens _ccManagedZone
102108 (\ s a -> s{_ccManagedZone = a})
103109
110+-- | For mutating operation requests only. An optional identifier specified
111+-- by the client. Must be unique for operation resources in the Operations
112+-- collection.
113+ccClientOperationId :: Lens' ChangesCreate (Maybe Text)
114+ccClientOperationId
115+ = lens _ccClientOperationId
116+ (\ s a -> s{_ccClientOperationId = a})
117+
104118instance GoogleRequest ChangesCreate where
105119 type Rs ChangesCreate = Change
106120 type Scopes ChangesCreate =
107121 '["https://www.googleapis.com/auth/cloud-platform",
108122 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
109123 requestClient ChangesCreate'{..}
110− = go _ccProject _ccManagedZone (Just AltJSON)
124+ = go _ccProject _ccManagedZone _ccClientOperationId
125+ (Just AltJSON)
111126 _ccPayload
112127 dNSService
113128 where go
gogol-dns/gen/Network/Google/Resource/DNS/Changes/Get.hs+20−5
@@ -36,6 +36,7 @@ module Network.Google.Resource.DNS.Changes.Get
3636 , cgProject
3737 , cgChangeId
3838 , cgManagedZone
39+ , cgClientOperationId
3940 ) where
4041
4142import Network.Google.DNS.Types
@@ -45,22 +46,24 @@ import Network.Google.Prelude
4546-- 'ChangesGet' request conforms to.
4647type ChangesGetResource =
4748 "dns" :>
48− "v1" :>
49+ "v2beta1" :>
4950 "projects" :>
5051 Capture "project" Text :>
5152 "managedZones" :>
5253 Capture "managedZone" Text :>
5354 "changes" :>
5455 Capture "changeId" Text :>
55− QueryParam "alt" AltJSON :> Get '[JSON] Change
56+ QueryParam "clientOperationId" Text :>
57+ QueryParam "alt" AltJSON :> Get '[JSON] Change
5658
5759-- | Fetch the representation of an existing Change.
5860--
5961-- /See:/ 'changesGet' smart constructor.
6062data ChangesGet = ChangesGet'
61− { _cgProject :: !Text
62− , _cgChangeId :: !Text
63− , _cgManagedZone :: !Text
63+ { _cgProject :: !Text
64+ , _cgChangeId :: !Text
65+ , _cgManagedZone :: !Text
66+ , _cgClientOperationId :: !(Maybe Text)
6467 } deriving (Eq,Show,Data,Typeable,Generic)
6568
6669-- | Creates a value of 'ChangesGet' with the minimum fields required to make a request.
@@ -72,6 +75,8 @@ data ChangesGet = ChangesGet'
7275-- * 'cgChangeId'
7376--
7477-- * 'cgManagedZone'
78+--
79+-- * 'cgClientOperationId'
7580changesGet
7681 :: Text -- ^ 'cgProject'
7782 -> Text -- ^ 'cgChangeId'
@@ -82,6 +87,7 @@ changesGet pCgProject_ pCgChangeId_ pCgManagedZone_ =
8287 { _cgProject = pCgProject_
8388 , _cgChangeId = pCgChangeId_
8489 , _cgManagedZone = pCgManagedZone_
90+ , _cgClientOperationId = Nothing
8591 }
8692
8793-- | Identifies the project addressed by this request.
@@ -102,6 +108,14 @@ cgManagedZone
102108 = lens _cgManagedZone
103109 (\ s a -> s{_cgManagedZone = a})
104110
111+-- | For mutating operation requests only. An optional identifier specified
112+-- by the client. Must be unique for operation resources in the Operations
113+-- collection.
114+cgClientOperationId :: Lens' ChangesGet (Maybe Text)
115+cgClientOperationId
116+ = lens _cgClientOperationId
117+ (\ s a -> s{_cgClientOperationId = a})
118+
105119instance GoogleRequest ChangesGet where
106120 type Rs ChangesGet = Change
107121 type Scopes ChangesGet =
@@ -111,6 +125,7 @@ instance GoogleRequest ChangesGet where
111125 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
112126 requestClient ChangesGet'{..}
113127 = go _cgProject _cgManagedZone _cgChangeId
128+ _cgClientOperationId
114129 (Just AltJSON)
115130 dNSService
116131 where go
gogol-dns/gen/Network/Google/Resource/DNS/Changes/List.hs+1−1
@@ -48,7 +48,7 @@ import Network.Google.Prelude
4848-- 'ChangesList' request conforms to.
4949type ChangesListResource =
5050 "dns" :>
51− "v1" :>
51+ "v2beta1" :>
5252 "projects" :>
5353 Capture "project" Text :>
5454 "managedZones" :>
gogol-dns/gen/Network/Google/Resource/DNS/DNSkeys/Get.hsnew file+146
@@ -0,0 +1,146 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.DNSkeys.Get
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Fetch the representation of an existing DnsKey.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.dnskeys.get@.
26+module Network.Google.Resource.DNS.DNSkeys.Get
27+ (
28+ -- * REST Resource
29+ DNSkeysGetResource
30+
31+ -- * Creating a Request
32+ , dnskeysGet
33+ , DNSkeysGet
34+
35+ -- * Request Lenses
36+ , dgProject
37+ , dgDigestType
38+ , dgDNSKeyId
39+ , dgManagedZone
40+ , dgClientOperationId
41+ ) where
42+
43+import Network.Google.DNS.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @dns.dnskeys.get@ method which the
47+-- 'DNSkeysGet' request conforms to.
48+type DNSkeysGetResource =
49+ "dns" :>
50+ "v2beta1" :>
51+ "projects" :>
52+ Capture "project" Text :>
53+ "managedZones" :>
54+ Capture "managedZone" Text :>
55+ "dnsKeys" :>
56+ Capture "dnsKeyId" Text :>
57+ QueryParam "digestType" Text :>
58+ QueryParam "clientOperationId" Text :>
59+ QueryParam "alt" AltJSON :> Get '[JSON] DNSKey
60+
61+-- | Fetch the representation of an existing DnsKey.
62+--
63+-- /See:/ 'dnskeysGet' smart constructor.
64+data DNSkeysGet = DNSkeysGet'
65+ { _dgProject :: !Text
66+ , _dgDigestType :: !(Maybe Text)
67+ , _dgDNSKeyId :: !Text
68+ , _dgManagedZone :: !Text
69+ , _dgClientOperationId :: !(Maybe Text)
70+ } deriving (Eq,Show,Data,Typeable,Generic)
71+
72+-- | Creates a value of 'DNSkeysGet' with the minimum fields required to make a request.
73+--
74+-- Use one of the following lenses to modify other fields as desired:
75+--
76+-- * 'dgProject'
77+--
78+-- * 'dgDigestType'
79+--
80+-- * 'dgDNSKeyId'
81+--
82+-- * 'dgManagedZone'
83+--
84+-- * 'dgClientOperationId'
85+dnskeysGet
86+ :: Text -- ^ 'dgProject'
87+ -> Text -- ^ 'dgDNSKeyId'
88+ -> Text -- ^ 'dgManagedZone'
89+ -> DNSkeysGet
90+dnskeysGet pDgProject_ pDgDNSKeyId_ pDgManagedZone_ =
91+ DNSkeysGet'
92+ { _dgProject = pDgProject_
93+ , _dgDigestType = Nothing
94+ , _dgDNSKeyId = pDgDNSKeyId_
95+ , _dgManagedZone = pDgManagedZone_
96+ , _dgClientOperationId = Nothing
97+ }
98+
99+-- | Identifies the project addressed by this request.
100+dgProject :: Lens' DNSkeysGet Text
101+dgProject
102+ = lens _dgProject (\ s a -> s{_dgProject = a})
103+
104+-- | An optional comma-separated list of digest types to compute and display
105+-- for key signing keys. If omitted, the recommended digest type will be
106+-- computed and displayed.
107+dgDigestType :: Lens' DNSkeysGet (Maybe Text)
108+dgDigestType
109+ = lens _dgDigestType (\ s a -> s{_dgDigestType = a})
110+
111+-- | The identifier of the requested DnsKey.
112+dgDNSKeyId :: Lens' DNSkeysGet Text
113+dgDNSKeyId
114+ = lens _dgDNSKeyId (\ s a -> s{_dgDNSKeyId = a})
115+
116+-- | Identifies the managed zone addressed by this request. Can be the
117+-- managed zone name or id.
118+dgManagedZone :: Lens' DNSkeysGet Text
119+dgManagedZone
120+ = lens _dgManagedZone
121+ (\ s a -> s{_dgManagedZone = a})
122+
123+-- | For mutating operation requests only. An optional identifier specified
124+-- by the client. Must be unique for operation resources in the Operations
125+-- collection.
126+dgClientOperationId :: Lens' DNSkeysGet (Maybe Text)
127+dgClientOperationId
128+ = lens _dgClientOperationId
129+ (\ s a -> s{_dgClientOperationId = a})
130+
131+instance GoogleRequest DNSkeysGet where
132+ type Rs DNSkeysGet = DNSKey
133+ type Scopes DNSkeysGet =
134+ '["https://www.googleapis.com/auth/cloud-platform",
135+ "https://www.googleapis.com/auth/cloud-platform.read-only",
136+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
137+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
138+ requestClient DNSkeysGet'{..}
139+ = go _dgProject _dgManagedZone _dgDNSKeyId
140+ _dgDigestType
141+ _dgClientOperationId
142+ (Just AltJSON)
143+ dNSService
144+ where go
145+ = buildClient (Proxy :: Proxy DNSkeysGetResource)
146+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/DNSkeys/List.hsnew file+146
@@ -0,0 +1,146 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.DNSkeys.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Enumerate DnsKeys to a ResourceRecordSet collection.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.dnskeys.list@.
26+module Network.Google.Resource.DNS.DNSkeys.List
27+ (
28+ -- * REST Resource
29+ DNSkeysListResource
30+
31+ -- * Creating a Request
32+ , dnskeysList
33+ , DNSkeysList
34+
35+ -- * Request Lenses
36+ , dlProject
37+ , dlDigestType
38+ , dlPageToken
39+ , dlManagedZone
40+ , dlMaxResults
41+ ) where
42+
43+import Network.Google.DNS.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @dns.dnskeys.list@ method which the
47+-- 'DNSkeysList' request conforms to.
48+type DNSkeysListResource =
49+ "dns" :>
50+ "v2beta1" :>
51+ "projects" :>
52+ Capture "project" Text :>
53+ "managedZones" :>
54+ Capture "managedZone" Text :>
55+ "dnsKeys" :>
56+ QueryParam "digestType" Text :>
57+ QueryParam "pageToken" Text :>
58+ QueryParam "maxResults" (Textual Int32) :>
59+ QueryParam "alt" AltJSON :>
60+ Get '[JSON] DNSKeysListResponse
61+
62+-- | Enumerate DnsKeys to a ResourceRecordSet collection.
63+--
64+-- /See:/ 'dnskeysList' smart constructor.
65+data DNSkeysList = DNSkeysList'
66+ { _dlProject :: !Text
67+ , _dlDigestType :: !(Maybe Text)
68+ , _dlPageToken :: !(Maybe Text)
69+ , _dlManagedZone :: !Text
70+ , _dlMaxResults :: !(Maybe (Textual Int32))
71+ } deriving (Eq,Show,Data,Typeable,Generic)
72+
73+-- | Creates a value of 'DNSkeysList' with the minimum fields required to make a request.
74+--
75+-- Use one of the following lenses to modify other fields as desired:
76+--
77+-- * 'dlProject'
78+--
79+-- * 'dlDigestType'
80+--
81+-- * 'dlPageToken'
82+--
83+-- * 'dlManagedZone'
84+--
85+-- * 'dlMaxResults'
86+dnskeysList
87+ :: Text -- ^ 'dlProject'
88+ -> Text -- ^ 'dlManagedZone'
89+ -> DNSkeysList
90+dnskeysList pDlProject_ pDlManagedZone_ =
91+ DNSkeysList'
92+ { _dlProject = pDlProject_
93+ , _dlDigestType = Nothing
94+ , _dlPageToken = Nothing
95+ , _dlManagedZone = pDlManagedZone_
96+ , _dlMaxResults = Nothing
97+ }
98+
99+-- | Identifies the project addressed by this request.
100+dlProject :: Lens' DNSkeysList Text
101+dlProject
102+ = lens _dlProject (\ s a -> s{_dlProject = a})
103+
104+-- | An optional comma-separated list of digest types to compute and display
105+-- for key signing keys. If omitted, the recommended digest type will be
106+-- computed and displayed.
107+dlDigestType :: Lens' DNSkeysList (Maybe Text)
108+dlDigestType
109+ = lens _dlDigestType (\ s a -> s{_dlDigestType = a})
110+
111+-- | Optional. A tag returned by a previous list request that was truncated.
112+-- Use this parameter to continue a previous list request.
113+dlPageToken :: Lens' DNSkeysList (Maybe Text)
114+dlPageToken
115+ = lens _dlPageToken (\ s a -> s{_dlPageToken = a})
116+
117+-- | Identifies the managed zone addressed by this request. Can be the
118+-- managed zone name or id.
119+dlManagedZone :: Lens' DNSkeysList Text
120+dlManagedZone
121+ = lens _dlManagedZone
122+ (\ s a -> s{_dlManagedZone = a})
123+
124+-- | Optional. Maximum number of results to be returned. If unspecified, the
125+-- server will decide how many results to return.
126+dlMaxResults :: Lens' DNSkeysList (Maybe Int32)
127+dlMaxResults
128+ = lens _dlMaxResults (\ s a -> s{_dlMaxResults = a})
129+ . mapping _Coerce
130+
131+instance GoogleRequest DNSkeysList where
132+ type Rs DNSkeysList = DNSKeysListResponse
133+ type Scopes DNSkeysList =
134+ '["https://www.googleapis.com/auth/cloud-platform",
135+ "https://www.googleapis.com/auth/cloud-platform.read-only",
136+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
137+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
138+ requestClient DNSkeysList'{..}
139+ = go _dlProject _dlManagedZone _dlDigestType
140+ _dlPageToken
141+ _dlMaxResults
142+ (Just AltJSON)
143+ dNSService
144+ where go
145+ = buildClient (Proxy :: Proxy DNSkeysListResource)
146+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZoneOperations/Get.hsnew file+133
@@ -0,0 +1,133 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.ManagedZoneOperations.Get
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Fetch the representation of an existing Operation.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.managedZoneOperations.get@.
26+module Network.Google.Resource.DNS.ManagedZoneOperations.Get
27+ (
28+ -- * REST Resource
29+ ManagedZoneOperationsGetResource
30+
31+ -- * Creating a Request
32+ , managedZoneOperationsGet
33+ , ManagedZoneOperationsGet
34+
35+ -- * Request Lenses
36+ , mzogProject
37+ , mzogOperation
38+ , mzogManagedZone
39+ , mzogClientOperationId
40+ ) where
41+
42+import Network.Google.DNS.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @dns.managedZoneOperations.get@ method which the
46+-- 'ManagedZoneOperationsGet' request conforms to.
47+type ManagedZoneOperationsGetResource =
48+ "dns" :>
49+ "v2beta1" :>
50+ "projects" :>
51+ Capture "project" Text :>
52+ "managedZones" :>
53+ Capture "managedZone" Text :>
54+ "operations" :>
55+ Capture "operation" Text :>
56+ QueryParam "clientOperationId" Text :>
57+ QueryParam "alt" AltJSON :> Get '[JSON] Operation
58+
59+-- | Fetch the representation of an existing Operation.
60+--
61+-- /See:/ 'managedZoneOperationsGet' smart constructor.
62+data ManagedZoneOperationsGet = ManagedZoneOperationsGet'
63+ { _mzogProject :: !Text
64+ , _mzogOperation :: !Text
65+ , _mzogManagedZone :: !Text
66+ , _mzogClientOperationId :: !(Maybe Text)
67+ } deriving (Eq,Show,Data,Typeable,Generic)
68+
69+-- | Creates a value of 'ManagedZoneOperationsGet' with the minimum fields required to make a request.
70+--
71+-- Use one of the following lenses to modify other fields as desired:
72+--
73+-- * 'mzogProject'
74+--
75+-- * 'mzogOperation'
76+--
77+-- * 'mzogManagedZone'
78+--
79+-- * 'mzogClientOperationId'
80+managedZoneOperationsGet
81+ :: Text -- ^ 'mzogProject'
82+ -> Text -- ^ 'mzogOperation'
83+ -> Text -- ^ 'mzogManagedZone'
84+ -> ManagedZoneOperationsGet
85+managedZoneOperationsGet pMzogProject_ pMzogOperation_ pMzogManagedZone_ =
86+ ManagedZoneOperationsGet'
87+ { _mzogProject = pMzogProject_
88+ , _mzogOperation = pMzogOperation_
89+ , _mzogManagedZone = pMzogManagedZone_
90+ , _mzogClientOperationId = Nothing
91+ }
92+
93+-- | Identifies the project addressed by this request.
94+mzogProject :: Lens' ManagedZoneOperationsGet Text
95+mzogProject
96+ = lens _mzogProject (\ s a -> s{_mzogProject = a})
97+
98+-- | Identifies the operation addressed by this request.
99+mzogOperation :: Lens' ManagedZoneOperationsGet Text
100+mzogOperation
101+ = lens _mzogOperation
102+ (\ s a -> s{_mzogOperation = a})
103+
104+-- | Identifies the managed zone addressed by this request.
105+mzogManagedZone :: Lens' ManagedZoneOperationsGet Text
106+mzogManagedZone
107+ = lens _mzogManagedZone
108+ (\ s a -> s{_mzogManagedZone = a})
109+
110+-- | For mutating operation requests only. An optional identifier specified
111+-- by the client. Must be unique for operation resources in the Operations
112+-- collection.
113+mzogClientOperationId :: Lens' ManagedZoneOperationsGet (Maybe Text)
114+mzogClientOperationId
115+ = lens _mzogClientOperationId
116+ (\ s a -> s{_mzogClientOperationId = a})
117+
118+instance GoogleRequest ManagedZoneOperationsGet where
119+ type Rs ManagedZoneOperationsGet = Operation
120+ type Scopes ManagedZoneOperationsGet =
121+ '["https://www.googleapis.com/auth/cloud-platform",
122+ "https://www.googleapis.com/auth/cloud-platform.read-only",
123+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
124+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
125+ requestClient ManagedZoneOperationsGet'{..}
126+ = go _mzogProject _mzogManagedZone _mzogOperation
127+ _mzogClientOperationId
128+ (Just AltJSON)
129+ dNSService
130+ where go
131+ = buildClient
132+ (Proxy :: Proxy ManagedZoneOperationsGetResource)
133+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZoneOperations/List.hsnew file+149
@@ -0,0 +1,149 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.ManagedZoneOperations.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Enumerate Operations for the given ManagedZone.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.managedZoneOperations.list@.
26+module Network.Google.Resource.DNS.ManagedZoneOperations.List
27+ (
28+ -- * REST Resource
29+ ManagedZoneOperationsListResource
30+
31+ -- * Creating a Request
32+ , managedZoneOperationsList
33+ , ManagedZoneOperationsList
34+
35+ -- * Request Lenses
36+ , mzolProject
37+ , mzolPageToken
38+ , mzolManagedZone
39+ , mzolMaxResults
40+ , mzolSortBy
41+ ) where
42+
43+import Network.Google.DNS.Types
44+import Network.Google.Prelude
45+
46+-- | A resource alias for @dns.managedZoneOperations.list@ method which the
47+-- 'ManagedZoneOperationsList' request conforms to.
48+type ManagedZoneOperationsListResource =
49+ "dns" :>
50+ "v2beta1" :>
51+ "projects" :>
52+ Capture "project" Text :>
53+ "managedZones" :>
54+ Capture "managedZone" Text :>
55+ "operations" :>
56+ QueryParam "pageToken" Text :>
57+ QueryParam "maxResults" (Textual Int32) :>
58+ QueryParam "sortBy" ManagedZoneOperationsListSortBy
59+ :>
60+ QueryParam "alt" AltJSON :>
61+ Get '[JSON] ManagedZoneOperationsListResponse
62+
63+-- | Enumerate Operations for the given ManagedZone.
64+--
65+-- /See:/ 'managedZoneOperationsList' smart constructor.
66+data ManagedZoneOperationsList = ManagedZoneOperationsList'
67+ { _mzolProject :: !Text
68+ , _mzolPageToken :: !(Maybe Text)
69+ , _mzolManagedZone :: !Text
70+ , _mzolMaxResults :: !(Maybe (Textual Int32))
71+ , _mzolSortBy :: !ManagedZoneOperationsListSortBy
72+ } deriving (Eq,Show,Data,Typeable,Generic)
73+
74+-- | Creates a value of 'ManagedZoneOperationsList' with the minimum fields required to make a request.
75+--
76+-- Use one of the following lenses to modify other fields as desired:
77+--
78+-- * 'mzolProject'
79+--
80+-- * 'mzolPageToken'
81+--
82+-- * 'mzolManagedZone'
83+--
84+-- * 'mzolMaxResults'
85+--
86+-- * 'mzolSortBy'
87+managedZoneOperationsList
88+ :: Text -- ^ 'mzolProject'
89+ -> Text -- ^ 'mzolManagedZone'
90+ -> ManagedZoneOperationsList
91+managedZoneOperationsList pMzolProject_ pMzolManagedZone_ =
92+ ManagedZoneOperationsList'
93+ { _mzolProject = pMzolProject_
94+ , _mzolPageToken = Nothing
95+ , _mzolManagedZone = pMzolManagedZone_
96+ , _mzolMaxResults = Nothing
97+ , _mzolSortBy = StartTime
98+ }
99+
100+-- | Identifies the project addressed by this request.
101+mzolProject :: Lens' ManagedZoneOperationsList Text
102+mzolProject
103+ = lens _mzolProject (\ s a -> s{_mzolProject = a})
104+
105+-- | Optional. A tag returned by a previous list request that was truncated.
106+-- Use this parameter to continue a previous list request.
107+mzolPageToken :: Lens' ManagedZoneOperationsList (Maybe Text)
108+mzolPageToken
109+ = lens _mzolPageToken
110+ (\ s a -> s{_mzolPageToken = a})
111+
112+-- | Identifies the managed zone addressed by this request.
113+mzolManagedZone :: Lens' ManagedZoneOperationsList Text
114+mzolManagedZone
115+ = lens _mzolManagedZone
116+ (\ s a -> s{_mzolManagedZone = a})
117+
118+-- | Optional. Maximum number of results to be returned. If unspecified, the
119+-- server will decide how many results to return.
120+mzolMaxResults :: Lens' ManagedZoneOperationsList (Maybe Int32)
121+mzolMaxResults
122+ = lens _mzolMaxResults
123+ (\ s a -> s{_mzolMaxResults = a})
124+ . mapping _Coerce
125+
126+-- | Sorting criterion. The only supported values are START_TIME and ID.
127+mzolSortBy :: Lens' ManagedZoneOperationsList ManagedZoneOperationsListSortBy
128+mzolSortBy
129+ = lens _mzolSortBy (\ s a -> s{_mzolSortBy = a})
130+
131+instance GoogleRequest ManagedZoneOperationsList
132+ where
133+ type Rs ManagedZoneOperationsList =
134+ ManagedZoneOperationsListResponse
135+ type Scopes ManagedZoneOperationsList =
136+ '["https://www.googleapis.com/auth/cloud-platform",
137+ "https://www.googleapis.com/auth/cloud-platform.read-only",
138+ "https://www.googleapis.com/auth/ndev.clouddns.readonly",
139+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
140+ requestClient ManagedZoneOperationsList'{..}
141+ = go _mzolProject _mzolManagedZone _mzolPageToken
142+ _mzolMaxResults
143+ (Just _mzolSortBy)
144+ (Just AltJSON)
145+ dNSService
146+ where go
147+ = buildClient
148+ (Proxy :: Proxy ManagedZoneOperationsListResource)
149+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Create.hs+22−7
@@ -35,6 +35,7 @@ module Network.Google.Resource.DNS.ManagedZones.Create
3535 -- * Request Lenses
3636 , mzcProject
3737 , mzcPayload
38+ , mzcClientOperationId
3839 ) where
3940
4041import Network.Google.DNS.Types
@@ -44,20 +45,22 @@ import Network.Google.Prelude
4445-- 'ManagedZonesCreate' request conforms to.
4546type ManagedZonesCreateResource =
4647 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
4849 "projects" :>
4950 Capture "project" Text :>
5051 "managedZones" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] ManagedZone :>
53− Post '[JSON] ManagedZone
52+ QueryParam "clientOperationId" Text :>
53+ QueryParam "alt" AltJSON :>
54+ ReqBody '[JSON] ManagedZone :>
55+ Post '[JSON] ManagedZone
5456
5557-- | Create a new ManagedZone.
5658--
5759-- /See:/ 'managedZonesCreate' smart constructor.
5860data ManagedZonesCreate = ManagedZonesCreate'
59− { _mzcProject :: !Text
60− , _mzcPayload :: !ManagedZone
61+ { _mzcProject :: !Text
62+ , _mzcPayload :: !ManagedZone
63+ , _mzcClientOperationId :: !(Maybe Text)
6164 } deriving (Eq,Show,Data,Typeable,Generic)
6265
6366-- | Creates a value of 'ManagedZonesCreate' with the minimum fields required to make a request.
@@ -67,6 +70,8 @@ data ManagedZonesCreate = ManagedZonesCreate'
6770-- * 'mzcProject'
6871--
6972-- * 'mzcPayload'
73+--
74+-- * 'mzcClientOperationId'
7075managedZonesCreate
7176 :: Text -- ^ 'mzcProject'
7277 -> ManagedZone -- ^ 'mzcPayload'
@@ -75,6 +80,7 @@ managedZonesCreate pMzcProject_ pMzcPayload_ =
7580 ManagedZonesCreate'
7681 { _mzcProject = pMzcProject_
7782 , _mzcPayload = pMzcPayload_
83+ , _mzcClientOperationId = Nothing
7884 }
7985
8086-- | Identifies the project addressed by this request.
@@ -87,13 +93,22 @@ mzcPayload :: Lens' ManagedZonesCreate ManagedZone
8793mzcPayload
8894 = lens _mzcPayload (\ s a -> s{_mzcPayload = a})
8995
96+-- | For mutating operation requests only. An optional identifier specified
97+-- by the client. Must be unique for operation resources in the Operations
98+-- collection.
99+mzcClientOperationId :: Lens' ManagedZonesCreate (Maybe Text)
100+mzcClientOperationId
101+ = lens _mzcClientOperationId
102+ (\ s a -> s{_mzcClientOperationId = a})
103+
90104instance GoogleRequest ManagedZonesCreate where
91105 type Rs ManagedZonesCreate = ManagedZone
92106 type Scopes ManagedZonesCreate =
93107 '["https://www.googleapis.com/auth/cloud-platform",
94108 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
95109 requestClient ManagedZonesCreate'{..}
96− = go _mzcProject (Just AltJSON) _mzcPayload
110+ = go _mzcProject _mzcClientOperationId (Just AltJSON)
111+ _mzcPayload
97112 dNSService
98113 where go
99114 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Delete.hs+24−6
@@ -35,6 +35,7 @@ module Network.Google.Resource.DNS.ManagedZones.Delete
3535 -- * Request Lenses
3636 , mzdProject
3737 , mzdManagedZone
38+ , mzdClientOperationId
3839 ) where
3940
4041import Network.Google.DNS.Types
@@ -44,19 +45,22 @@ import Network.Google.Prelude
4445-- 'ManagedZonesDelete' request conforms to.
4546type ManagedZonesDeleteResource =
4647 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
4849 "projects" :>
4950 Capture "project" Text :>
5051 "managedZones" :>
5152 Capture "managedZone" Text :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
53+ QueryParam "clientOperationId" Text :>
54+ QueryParam "alt" AltJSON :>
55+ Delete '[JSON] ManagedZonesDeleteResponse
5356
5457-- | Delete a previously created ManagedZone.
5558--
5659-- /See:/ 'managedZonesDelete' smart constructor.
5760data ManagedZonesDelete = ManagedZonesDelete'
58− { _mzdProject :: !Text
59− , _mzdManagedZone :: !Text
61+ { _mzdProject :: !Text
62+ , _mzdManagedZone :: !Text
63+ , _mzdClientOperationId :: !(Maybe Text)
6064 } deriving (Eq,Show,Data,Typeable,Generic)
6165
6266-- | Creates a value of 'ManagedZonesDelete' with the minimum fields required to make a request.
@@ -66,6 +70,8 @@ data ManagedZonesDelete = ManagedZonesDelete'
6670-- * 'mzdProject'
6771--
6872-- * 'mzdManagedZone'
73+--
74+-- * 'mzdClientOperationId'
6975managedZonesDelete
7076 :: Text -- ^ 'mzdProject'
7177 -> Text -- ^ 'mzdManagedZone'
@@ -74,6 +80,7 @@ managedZonesDelete pMzdProject_ pMzdManagedZone_ =
7480 ManagedZonesDelete'
7581 { _mzdProject = pMzdProject_
7682 , _mzdManagedZone = pMzdManagedZone_
83+ , _mzdClientOperationId = Nothing
7784 }
7885
7986-- | Identifies the project addressed by this request.
@@ -88,13 +95,24 @@ mzdManagedZone
8895 = lens _mzdManagedZone
8996 (\ s a -> s{_mzdManagedZone = a})
9097
98+-- | For mutating operation requests only. An optional identifier specified
99+-- by the client. Must be unique for operation resources in the Operations
100+-- collection.
101+mzdClientOperationId :: Lens' ManagedZonesDelete (Maybe Text)
102+mzdClientOperationId
103+ = lens _mzdClientOperationId
104+ (\ s a -> s{_mzdClientOperationId = a})
105+
91106instance GoogleRequest ManagedZonesDelete where
92− type Rs ManagedZonesDelete = ()
107+ type Rs ManagedZonesDelete =
108+ ManagedZonesDeleteResponse
93109 type Scopes ManagedZonesDelete =
94110 '["https://www.googleapis.com/auth/cloud-platform",
95111 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
96112 requestClient ManagedZonesDelete'{..}
97− = go _mzdProject _mzdManagedZone (Just AltJSON)
113+ = go _mzdProject _mzdManagedZone
114+ _mzdClientOperationId
115+ (Just AltJSON)
98116 dNSService
99117 where go
100118 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Get.hs+21−5
@@ -35,6 +35,7 @@ module Network.Google.Resource.DNS.ManagedZones.Get
3535 -- * Request Lenses
3636 , mzgProject
3737 , mzgManagedZone
38+ , mzgClientOperationId
3839 ) where
3940
4041import Network.Google.DNS.Types
@@ -44,19 +45,21 @@ import Network.Google.Prelude
4445-- 'ManagedZonesGet' request conforms to.
4546type ManagedZonesGetResource =
4647 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
4849 "projects" :>
4950 Capture "project" Text :>
5051 "managedZones" :>
5152 Capture "managedZone" Text :>
52− QueryParam "alt" AltJSON :> Get '[JSON] ManagedZone
53+ QueryParam "clientOperationId" Text :>
54+ QueryParam "alt" AltJSON :> Get '[JSON] ManagedZone
5355
5456-- | Fetch the representation of an existing ManagedZone.
5557--
5658-- /See:/ 'managedZonesGet' smart constructor.
5759data ManagedZonesGet = ManagedZonesGet'
58− { _mzgProject :: !Text
59− , _mzgManagedZone :: !Text
60+ { _mzgProject :: !Text
61+ , _mzgManagedZone :: !Text
62+ , _mzgClientOperationId :: !(Maybe Text)
6063 } deriving (Eq,Show,Data,Typeable,Generic)
6164
6265-- | Creates a value of 'ManagedZonesGet' with the minimum fields required to make a request.
@@ -66,6 +69,8 @@ data ManagedZonesGet = ManagedZonesGet'
6669-- * 'mzgProject'
6770--
6871-- * 'mzgManagedZone'
72+--
73+-- * 'mzgClientOperationId'
6974managedZonesGet
7075 :: Text -- ^ 'mzgProject'
7176 -> Text -- ^ 'mzgManagedZone'
@@ -74,6 +79,7 @@ managedZonesGet pMzgProject_ pMzgManagedZone_ =
7479 ManagedZonesGet'
7580 { _mzgProject = pMzgProject_
7681 , _mzgManagedZone = pMzgManagedZone_
82+ , _mzgClientOperationId = Nothing
7783 }
7884
7985-- | Identifies the project addressed by this request.
@@ -88,6 +94,14 @@ mzgManagedZone
8894 = lens _mzgManagedZone
8995 (\ s a -> s{_mzgManagedZone = a})
9096
97+-- | For mutating operation requests only. An optional identifier specified
98+-- by the client. Must be unique for operation resources in the Operations
99+-- collection.
100+mzgClientOperationId :: Lens' ManagedZonesGet (Maybe Text)
101+mzgClientOperationId
102+ = lens _mzgClientOperationId
103+ (\ s a -> s{_mzgClientOperationId = a})
104+
91105instance GoogleRequest ManagedZonesGet where
92106 type Rs ManagedZonesGet = ManagedZone
93107 type Scopes ManagedZonesGet =
@@ -96,7 +110,9 @@ instance GoogleRequest ManagedZonesGet where
96110 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
97111 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
98112 requestClient ManagedZonesGet'{..}
99− = go _mzgProject _mzgManagedZone (Just AltJSON)
113+ = go _mzgProject _mzgManagedZone
114+ _mzgClientOperationId
115+ (Just AltJSON)
100116 dNSService
101117 where go
102118 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/List.hs+1−1
@@ -46,7 +46,7 @@ import Network.Google.Prelude
4646-- 'ManagedZonesList' request conforms to.
4747type ManagedZonesListResource =
4848 "dns" :>
49− "v1" :>
49+ "v2beta1" :>
5050 "projects" :>
5151 Capture "project" Text :>
5252 "managedZones" :>
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Patch.hsnew file+132
@@ -0,0 +1,132 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.ManagedZones.Patch
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update an existing ManagedZone. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.managedZones.patch@.
26+module Network.Google.Resource.DNS.ManagedZones.Patch
27+ (
28+ -- * REST Resource
29+ ManagedZonesPatchResource
30+
31+ -- * Creating a Request
32+ , managedZonesPatch
33+ , ManagedZonesPatch
34+
35+ -- * Request Lenses
36+ , mzpProject
37+ , mzpPayload
38+ , mzpManagedZone
39+ , mzpClientOperationId
40+ ) where
41+
42+import Network.Google.DNS.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @dns.managedZones.patch@ method which the
46+-- 'ManagedZonesPatch' request conforms to.
47+type ManagedZonesPatchResource =
48+ "dns" :>
49+ "v2beta1" :>
50+ "projects" :>
51+ Capture "project" Text :>
52+ "managedZones" :>
53+ Capture "managedZone" Text :>
54+ QueryParam "clientOperationId" Text :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] ManagedZone :>
57+ Patch '[JSON] Operation
58+
59+-- | Update an existing ManagedZone. This method supports patch semantics.
60+--
61+-- /See:/ 'managedZonesPatch' smart constructor.
62+data ManagedZonesPatch = ManagedZonesPatch'
63+ { _mzpProject :: !Text
64+ , _mzpPayload :: !ManagedZone
65+ , _mzpManagedZone :: !Text
66+ , _mzpClientOperationId :: !(Maybe Text)
67+ } deriving (Eq,Show,Data,Typeable,Generic)
68+
69+-- | Creates a value of 'ManagedZonesPatch' with the minimum fields required to make a request.
70+--
71+-- Use one of the following lenses to modify other fields as desired:
72+--
73+-- * 'mzpProject'
74+--
75+-- * 'mzpPayload'
76+--
77+-- * 'mzpManagedZone'
78+--
79+-- * 'mzpClientOperationId'
80+managedZonesPatch
81+ :: Text -- ^ 'mzpProject'
82+ -> ManagedZone -- ^ 'mzpPayload'
83+ -> Text -- ^ 'mzpManagedZone'
84+ -> ManagedZonesPatch
85+managedZonesPatch pMzpProject_ pMzpPayload_ pMzpManagedZone_ =
86+ ManagedZonesPatch'
87+ { _mzpProject = pMzpProject_
88+ , _mzpPayload = pMzpPayload_
89+ , _mzpManagedZone = pMzpManagedZone_
90+ , _mzpClientOperationId = Nothing
91+ }
92+
93+-- | Identifies the project addressed by this request.
94+mzpProject :: Lens' ManagedZonesPatch Text
95+mzpProject
96+ = lens _mzpProject (\ s a -> s{_mzpProject = a})
97+
98+-- | Multipart request metadata.
99+mzpPayload :: Lens' ManagedZonesPatch ManagedZone
100+mzpPayload
101+ = lens _mzpPayload (\ s a -> s{_mzpPayload = a})
102+
103+-- | Identifies the managed zone addressed by this request. Can be the
104+-- managed zone name or id.
105+mzpManagedZone :: Lens' ManagedZonesPatch Text
106+mzpManagedZone
107+ = lens _mzpManagedZone
108+ (\ s a -> s{_mzpManagedZone = a})
109+
110+-- | For mutating operation requests only. An optional identifier specified
111+-- by the client. Must be unique for operation resources in the Operations
112+-- collection.
113+mzpClientOperationId :: Lens' ManagedZonesPatch (Maybe Text)
114+mzpClientOperationId
115+ = lens _mzpClientOperationId
116+ (\ s a -> s{_mzpClientOperationId = a})
117+
118+instance GoogleRequest ManagedZonesPatch where
119+ type Rs ManagedZonesPatch = Operation
120+ type Scopes ManagedZonesPatch =
121+ '["https://www.googleapis.com/auth/cloud-platform",
122+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
123+ requestClient ManagedZonesPatch'{..}
124+ = go _mzpProject _mzpManagedZone
125+ _mzpClientOperationId
126+ (Just AltJSON)
127+ _mzpPayload
128+ dNSService
129+ where go
130+ = buildClient
131+ (Proxy :: Proxy ManagedZonesPatchResource)
132+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Update.hsnew file+131
@@ -0,0 +1,131 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.DNS.ManagedZones.Update
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update an existing ManagedZone.
24+--
25+-- /See:/ <https://developers.google.com/cloud-dns Google Cloud DNS API Reference> for @dns.managedZones.update@.
26+module Network.Google.Resource.DNS.ManagedZones.Update
27+ (
28+ -- * REST Resource
29+ ManagedZonesUpdateResource
30+
31+ -- * Creating a Request
32+ , managedZonesUpdate
33+ , ManagedZonesUpdate
34+
35+ -- * Request Lenses
36+ , mzuProject
37+ , mzuPayload
38+ , mzuManagedZone
39+ , mzuClientOperationId
40+ ) where
41+
42+import Network.Google.DNS.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @dns.managedZones.update@ method which the
46+-- 'ManagedZonesUpdate' request conforms to.
47+type ManagedZonesUpdateResource =
48+ "dns" :>
49+ "v2beta1" :>
50+ "projects" :>
51+ Capture "project" Text :>
52+ "managedZones" :>
53+ Capture "managedZone" Text :>
54+ QueryParam "clientOperationId" Text :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] ManagedZone :> Put '[JSON] Operation
57+
58+-- | Update an existing ManagedZone.
59+--
60+-- /See:/ 'managedZonesUpdate' smart constructor.
61+data ManagedZonesUpdate = ManagedZonesUpdate'
62+ { _mzuProject :: !Text
63+ , _mzuPayload :: !ManagedZone
64+ , _mzuManagedZone :: !Text
65+ , _mzuClientOperationId :: !(Maybe Text)
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ManagedZonesUpdate' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'mzuProject'
73+--
74+-- * 'mzuPayload'
75+--
76+-- * 'mzuManagedZone'
77+--
78+-- * 'mzuClientOperationId'
79+managedZonesUpdate
80+ :: Text -- ^ 'mzuProject'
81+ -> ManagedZone -- ^ 'mzuPayload'
82+ -> Text -- ^ 'mzuManagedZone'
83+ -> ManagedZonesUpdate
84+managedZonesUpdate pMzuProject_ pMzuPayload_ pMzuManagedZone_ =
85+ ManagedZonesUpdate'
86+ { _mzuProject = pMzuProject_
87+ , _mzuPayload = pMzuPayload_
88+ , _mzuManagedZone = pMzuManagedZone_
89+ , _mzuClientOperationId = Nothing
90+ }
91+
92+-- | Identifies the project addressed by this request.
93+mzuProject :: Lens' ManagedZonesUpdate Text
94+mzuProject
95+ = lens _mzuProject (\ s a -> s{_mzuProject = a})
96+
97+-- | Multipart request metadata.
98+mzuPayload :: Lens' ManagedZonesUpdate ManagedZone
99+mzuPayload
100+ = lens _mzuPayload (\ s a -> s{_mzuPayload = a})
101+
102+-- | Identifies the managed zone addressed by this request. Can be the
103+-- managed zone name or id.
104+mzuManagedZone :: Lens' ManagedZonesUpdate Text
105+mzuManagedZone
106+ = lens _mzuManagedZone
107+ (\ s a -> s{_mzuManagedZone = a})
108+
109+-- | For mutating operation requests only. An optional identifier specified
110+-- by the client. Must be unique for operation resources in the Operations
111+-- collection.
112+mzuClientOperationId :: Lens' ManagedZonesUpdate (Maybe Text)
113+mzuClientOperationId
114+ = lens _mzuClientOperationId
115+ (\ s a -> s{_mzuClientOperationId = a})
116+
117+instance GoogleRequest ManagedZonesUpdate where
118+ type Rs ManagedZonesUpdate = Operation
119+ type Scopes ManagedZonesUpdate =
120+ '["https://www.googleapis.com/auth/cloud-platform",
121+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
122+ requestClient ManagedZonesUpdate'{..}
123+ = go _mzuProject _mzuManagedZone
124+ _mzuClientOperationId
125+ (Just AltJSON)
126+ _mzuPayload
127+ dNSService
128+ where go
129+ = buildClient
130+ (Proxy :: Proxy ManagedZonesUpdateResource)
131+ mempty
gogol-dns/gen/Network/Google/Resource/DNS/Projects/Get.hs+20−5
@@ -34,6 +34,7 @@ module Network.Google.Resource.DNS.Projects.Get
3434
3535 -- * Request Lenses
3636 , pgProject
37+ , pgClientOperationId
3738 ) where
3839
3940import Network.Google.DNS.Types
@@ -43,16 +44,18 @@ import Network.Google.Prelude
4344-- 'ProjectsGet' request conforms to.
4445type ProjectsGetResource =
4546 "dns" :>
46− "v1" :>
47+ "v2beta1" :>
4748 "projects" :>
4849 Capture "project" Text :>
49− QueryParam "alt" AltJSON :> Get '[JSON] Project
50+ QueryParam "clientOperationId" Text :>
51+ QueryParam "alt" AltJSON :> Get '[JSON] Project
5052
5153-- | Fetch the representation of an existing Project.
5254--
5355-- /See:/ 'projectsGet' smart constructor.
54−newtype ProjectsGet = ProjectsGet'
55− { _pgProject :: Text
56+data ProjectsGet = ProjectsGet'
57+ { _pgProject :: !Text
58+ , _pgClientOperationId :: !(Maybe Text)
5659 } deriving (Eq,Show,Data,Typeable,Generic)
5760
5861-- | Creates a value of 'ProjectsGet' with the minimum fields required to make a request.
@@ -60,12 +63,15 @@ newtype ProjectsGet = ProjectsGet'
6063-- Use one of the following lenses to modify other fields as desired:
6164--
6265-- * 'pgProject'
66+--
67+-- * 'pgClientOperationId'
6368projectsGet
6469 :: Text -- ^ 'pgProject'
6570 -> ProjectsGet
6671projectsGet pPgProject_ =
6772 ProjectsGet'
6873 { _pgProject = pPgProject_
74+ , _pgClientOperationId = Nothing
6975 }
7076
7177-- | Identifies the project addressed by this request.
@@ -73,6 +79,14 @@ pgProject :: Lens' ProjectsGet Text
7379pgProject
7480 = lens _pgProject (\ s a -> s{_pgProject = a})
7581
82+-- | For mutating operation requests only. An optional identifier specified
83+-- by the client. Must be unique for operation resources in the Operations
84+-- collection.
85+pgClientOperationId :: Lens' ProjectsGet (Maybe Text)
86+pgClientOperationId
87+ = lens _pgClientOperationId
88+ (\ s a -> s{_pgClientOperationId = a})
89+
7690instance GoogleRequest ProjectsGet where
7791 type Rs ProjectsGet = Project
7892 type Scopes ProjectsGet =
@@ -81,7 +95,8 @@ instance GoogleRequest ProjectsGet where
8195 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
8296 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
8397 requestClient ProjectsGet'{..}
84− = go _pgProject (Just AltJSON) dNSService
98+ = go _pgProject _pgClientOperationId (Just AltJSON)
99+ dNSService
85100 where go
86101 = buildClient (Proxy :: Proxy ProjectsGetResource)
87102 mempty
gogol-dns/gen/Network/Google/Resource/DNS/ResourceRecordSets/List.hs+1−1
@@ -48,7 +48,7 @@ import Network.Google.Prelude
4848-- 'ResourceRecordSetsList' request conforms to.
4949type ResourceRecordSetsListResource =
5050 "dns" :>
51− "v1" :>
51+ "v2beta1" :>
5252 "projects" :>
5353 Capture "project" Text :>
5454 "managedZones" :>
gogol-dns/gogol-dns.cabal+7−1
@@ -19,7 +19,7 @@ description:
1919 /Warning:/ This is an experimental prototype/preview release which is still
2020 under exploratory development and not intended for public use, caveat emptor!
2121 .
22− This library is compatible with version @v1@
22+ This library is compatible with version @v2beta1@
2323 of the API.
2424
2525source-repository head
@@ -38,10 +38,16 @@ library
3838 , Network.Google.Resource.DNS.Changes.Create
3939 , Network.Google.Resource.DNS.Changes.Get
4040 , Network.Google.Resource.DNS.Changes.List
41+ , Network.Google.Resource.DNS.DNSkeys.Get
42+ , Network.Google.Resource.DNS.DNSkeys.List
43+ , Network.Google.Resource.DNS.ManagedZoneOperations.Get
44+ , Network.Google.Resource.DNS.ManagedZoneOperations.List
4145 , Network.Google.Resource.DNS.ManagedZones.Create
4246 , Network.Google.Resource.DNS.ManagedZones.Delete
4347 , Network.Google.Resource.DNS.ManagedZones.Get
4448 , Network.Google.Resource.DNS.ManagedZones.List
49+ , Network.Google.Resource.DNS.ManagedZones.Patch
50+ , Network.Google.Resource.DNS.ManagedZones.Update
4551 , Network.Google.Resource.DNS.Projects.Get
4652 , Network.Google.Resource.DNS.ResourceRecordSets.List
4753