on develop help sign in
Regenerating gogol-dns from latest service definition
c57926aBrendan Hay
gen/model/dns/v1/dns-api.json+3−3
@@ -1,11 +1,11 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/ctEt-71wWAltEdgLnIcGLfJZeFE\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/axl9KJ_uxEHQoHpuwJyeyQD2IZ4\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "dns:v1",
5 "id": "dns:v1",
6 "name": "dns",
6 "name": "dns",
7 "version": "v1",
7 "version": "v1",
8− "revision": "20160413",
8+ "revision": "20160920",
9 "title": "Google Cloud DNS API",
9 "title": "Google Cloud DNS API",
10 "description": "Configures and serves authoritative DNS records.",
10 "description": "Configures and serves authoritative DNS records.",
11 "ownerDomain": "google.com",
11 "ownerDomain": "google.com",
@@ -183,7 +183,7 @@
183 },
183 },
184 "name": {
184 "name": {
185 "type": "string",
185 "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."
187 },
187 },
188 "nameServerSet": {
188 "nameServerSet": {
189 "type": "string",
189 "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
41 -- ** dns.changes.list
41 -- ** dns.changes.list
42 , module Network.Google.Resource.DNS.Changes.List
42 , module Network.Google.Resource.DNS.Changes.List
43
43
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+
44 -- ** dns.managedZones.create
56 -- ** dns.managedZones.create
45 , module Network.Google.Resource.DNS.ManagedZones.Create
57 , module Network.Google.Resource.DNS.ManagedZones.Create
46
58
@@ -53,6 +65,12 @@ module Network.Google.DNS
53 -- ** dns.managedZones.list
65 -- ** dns.managedZones.list
54 , module Network.Google.Resource.DNS.ManagedZones.List
66 , module Network.Google.Resource.DNS.ManagedZones.List
55
67
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+
56 -- ** dns.projects.get
74 -- ** dns.projects.get
57 , module Network.Google.Resource.DNS.Projects.Get
75 , module Network.Google.Resource.DNS.Projects.Get
58
76
@@ -61,12 +79,41 @@ module Network.Google.DNS
61
79
62 -- * Types
80 -- * Types
63
81
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+
64 -- ** ChangesListResponse
102 -- ** ChangesListResponse
65 , ChangesListResponse
103 , ChangesListResponse
66 , changesListResponse
104 , changesListResponse
67 , clrNextPageToken
105 , clrNextPageToken
68 , clrChanges
106 , clrChanges
69 , clrKind
107 , clrKind
108+ , clrHeader
109+
110+ -- ** ManagedZoneDNSSecConfigState
111+ , ManagedZoneDNSSecConfigState (..)
112+
113+ -- ** ManagedZonesDeleteResponse
114+ , ManagedZonesDeleteResponse
115+ , managedZonesDeleteResponse
116+ , mzdrHeader
70
117
71 -- ** Project
118 -- ** Project
72 , Project
119 , Project
@@ -76,9 +123,32 @@ module Network.Google.DNS
76 , pNumber
123 , pNumber
77 , pQuota
124 , pQuota
78
125
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+
79 -- ** ChangesListSortBy
146 -- ** ChangesListSortBy
80 , ChangesListSortBy (..)
147 , ChangesListSortBy (..)
81
148
149+ -- ** DNSKeyDigestType
150+ , DNSKeyDigestType (..)
151+
82 -- ** Change
152 -- ** Change
83 , Change
153 , Change
84 , change
154 , change
@@ -88,22 +158,76 @@ module Network.Google.DNS
88 , cKind
158 , cKind
89 , cDeletions
159 , cDeletions
90 , cId
160 , 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
91
205
92 -- ** ResourceRecordSetsListResponse
206 -- ** ResourceRecordSetsListResponse
93 , ResourceRecordSetsListResponse
207 , ResourceRecordSetsListResponse
94 , resourceRecordSetsListResponse
208 , resourceRecordSetsListResponse
95 , rrslrNextPageToken
209 , rrslrNextPageToken
96 , rrslrKind
210 , rrslrKind
211+ , rrslrHeader
97 , rrslrRrSets
212 , rrslrRrSets
98
213
99 -- ** ChangeStatus
214 -- ** ChangeStatus
100 , ChangeStatus (..)
215 , ChangeStatus (..)
101
216
217+ -- ** ManagedZoneDNSSecConfig
218+ , ManagedZoneDNSSecConfig
219+ , managedZoneDNSSecConfig
220+ , mzdscState
221+ , mzdscKind
222+ , mzdscDefaultKeySpecs
223+ , mzdscNonExistence
224+
102 -- ** ResourceRecordSet
225 -- ** ResourceRecordSet
103 , ResourceRecordSet
226 , ResourceRecordSet
104 , resourceRecordSet
227 , resourceRecordSet
105 , rrsTtl
228 , rrsTtl
106 , rrsKind
229 , rrsKind
230+ , rrsSignatureRrDatas
107 , rrsName
231 , rrsName
108 , rrsType
232 , rrsType
109 , rrsRrDatas
233 , rrsRrDatas
@@ -118,24 +242,40 @@ module Network.Google.DNS
118 , mzId
242 , mzId
119 , mzDNSName
243 , mzDNSName
120 , mzDescription
244 , mzDescription
245+ , mzDNSsecConfig
121 , mzNameServers
246 , mzNameServers
122
247
123 -- ** Quota
248 -- ** Quota
124 , Quota
249 , Quota
125 , quota
250 , quota
126 , qRrSetDeletionsPerChange
251 , qRrSetDeletionsPerChange
252+ , qWhiteListedKeySpecs
127 , qRrSetsPerManagedZone
253 , qRrSetsPerManagedZone
128 , qKind
254 , qKind
129 , qResourceRecordsPerRrSet
255 , qResourceRecordsPerRrSet
130 , qRrSetAdditionsPerChange
256 , qRrSetAdditionsPerChange
131 , qManagedZones
257 , qManagedZones
132 , qTotalRrDataSizePerChange
258 , qTotalRrDataSizePerChange
259+ , qDNSKeysPerManagedZone
260+
261+ -- ** DNSKeyType
262+ , DNSKeyType (..)
263+
264+ -- ** DNSKeyDigest
265+ , DNSKeyDigest
266+ , dnsKeyDigest
267+ , dkdDigest
268+ , dkdType
269+
270+ -- ** ManagedZoneOperationsListSortBy
271+ , ManagedZoneOperationsListSortBy (..)
133
272
134 -- ** ManagedZonesListResponse
273 -- ** ManagedZonesListResponse
135 , ManagedZonesListResponse
274 , ManagedZonesListResponse
136 , managedZonesListResponse
275 , managedZonesListResponse
137 , mzlrNextPageToken
276 , mzlrNextPageToken
138 , mzlrKind
277 , mzlrKind
278+ , mzlrHeader
139 , mzlrManagedZones
279 , mzlrManagedZones
140 ) where
280 ) where
141
281
@@ -144,10 +284,16 @@ import Network.Google.Prelude
144import Network.Google.Resource.DNS.Changes.Create
284import Network.Google.Resource.DNS.Changes.Create
145import Network.Google.Resource.DNS.Changes.Get
285import Network.Google.Resource.DNS.Changes.Get
146import Network.Google.Resource.DNS.Changes.List
286import 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
147import Network.Google.Resource.DNS.ManagedZones.Create
291import Network.Google.Resource.DNS.ManagedZones.Create
148import Network.Google.Resource.DNS.ManagedZones.Delete
292import Network.Google.Resource.DNS.ManagedZones.Delete
149import Network.Google.Resource.DNS.ManagedZones.Get
293import Network.Google.Resource.DNS.ManagedZones.Get
150import Network.Google.Resource.DNS.ManagedZones.List
294import Network.Google.Resource.DNS.ManagedZones.List
295+import Network.Google.Resource.DNS.ManagedZones.Patch
296+import Network.Google.Resource.DNS.ManagedZones.Update
151import Network.Google.Resource.DNS.Projects.Get
297import Network.Google.Resource.DNS.Projects.Get
152import Network.Google.Resource.DNS.ResourceRecordSets.List
298import Network.Google.Resource.DNS.ResourceRecordSets.List
153
299
@@ -157,11 +303,17 @@ TODO
157
303
158-- | Represents the entirety of the methods and resources available for the Google Cloud DNS API service.
304-- | Represents the entirety of the methods and resources available for the Google Cloud DNS API service.
159type DNSAPI =
305type DNSAPI =
306+ DNSkeysListResource :<|> DNSkeysGetResource :<|>
160− ChangesListResource :<|> ChangesGetResource :<|>
307+ ChangesListResource
308+ :<|> ChangesGetResource
161− ChangesCreateResource
309+ :<|> ChangesCreateResource
162 :<|> ResourceRecordSetsListResource
310 :<|> ResourceRecordSetsListResource
311+ :<|> ManagedZoneOperationsListResource
312+ :<|> ManagedZoneOperationsGetResource
163 :<|> ManagedZonesListResource
313 :<|> ManagedZonesListResource
314+ :<|> ManagedZonesPatchResource
164 :<|> ManagedZonesGetResource
315 :<|> ManagedZonesGetResource
165 :<|> ManagedZonesCreateResource
316 :<|> ManagedZonesCreateResource
166 :<|> ManagedZonesDeleteResource
317 :<|> ManagedZonesDeleteResource
318+ :<|> ManagedZonesUpdateResource
167 :<|> ProjectsGetResource
319 :<|> ProjectsGetResource
gogol-dns/gen/Network/Google/DNS/Types.hs+124−2
@@ -25,12 +25,41 @@ module Network.Google.DNS.Types
25 , ndevClouddnsReadwriteScope
25 , ndevClouddnsReadwriteScope
26 , cloudPlatformScope
26 , cloudPlatformScope
27
27
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+
28 -- * ChangesListResponse
48 -- * ChangesListResponse
29 , ChangesListResponse
49 , ChangesListResponse
30 , changesListResponse
50 , changesListResponse
31 , clrNextPageToken
51 , clrNextPageToken
32 , clrChanges
52 , clrChanges
33 , clrKind
53 , clrKind
54+ , clrHeader
55+
56+ -- * ManagedZoneDNSSecConfigState
57+ , ManagedZoneDNSSecConfigState (..)
58+
59+ -- * ManagedZonesDeleteResponse
60+ , ManagedZonesDeleteResponse
61+ , managedZonesDeleteResponse
62+ , mzdrHeader
34
63
35 -- * Project
64 -- * Project
36 , Project
65 , Project
@@ -40,9 +69,32 @@ module Network.Google.DNS.Types
40 , pNumber
69 , pNumber
41 , pQuota
70 , pQuota
42
71
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+
43 -- * ChangesListSortBy
92 -- * ChangesListSortBy
44 , ChangesListSortBy (..)
93 , ChangesListSortBy (..)
45
94
95+ -- * DNSKeyDigestType
96+ , DNSKeyDigestType (..)
97+
46 -- * Change
98 -- * Change
47 , Change
99 , Change
48 , change
100 , change
@@ -52,22 +104,76 @@ module Network.Google.DNS.Types
52 , cKind
104 , cKind
53 , cDeletions
105 , cDeletions
54 , cId
106 , 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
55
151
56 -- * ResourceRecordSetsListResponse
152 -- * ResourceRecordSetsListResponse
57 , ResourceRecordSetsListResponse
153 , ResourceRecordSetsListResponse
58 , resourceRecordSetsListResponse
154 , resourceRecordSetsListResponse
59 , rrslrNextPageToken
155 , rrslrNextPageToken
60 , rrslrKind
156 , rrslrKind
157+ , rrslrHeader
61 , rrslrRrSets
158 , rrslrRrSets
62
159
63 -- * ChangeStatus
160 -- * ChangeStatus
64 , ChangeStatus (..)
161 , ChangeStatus (..)
65
162
163+ -- * ManagedZoneDNSSecConfig
164+ , ManagedZoneDNSSecConfig
165+ , managedZoneDNSSecConfig
166+ , mzdscState
167+ , mzdscKind
168+ , mzdscDefaultKeySpecs
169+ , mzdscNonExistence
170+
66 -- * ResourceRecordSet
171 -- * ResourceRecordSet
67 , ResourceRecordSet
172 , ResourceRecordSet
68 , resourceRecordSet
173 , resourceRecordSet
69 , rrsTtl
174 , rrsTtl
70 , rrsKind
175 , rrsKind
176+ , rrsSignatureRrDatas
71 , rrsName
177 , rrsName
72 , rrsType
178 , rrsType
73 , rrsRrDatas
179 , rrsRrDatas
@@ -82,24 +188,40 @@ module Network.Google.DNS.Types
82 , mzId
188 , mzId
83 , mzDNSName
189 , mzDNSName
84 , mzDescription
190 , mzDescription
191+ , mzDNSsecConfig
85 , mzNameServers
192 , mzNameServers
86
193
87 -- * Quota
194 -- * Quota
88 , Quota
195 , Quota
89 , quota
196 , quota
90 , qRrSetDeletionsPerChange
197 , qRrSetDeletionsPerChange
198+ , qWhiteListedKeySpecs
91 , qRrSetsPerManagedZone
199 , qRrSetsPerManagedZone
92 , qKind
200 , qKind
93 , qResourceRecordsPerRrSet
201 , qResourceRecordsPerRrSet
94 , qRrSetAdditionsPerChange
202 , qRrSetAdditionsPerChange
95 , qManagedZones
203 , qManagedZones
96 , qTotalRrDataSizePerChange
204 , qTotalRrDataSizePerChange
205+ , qDNSKeysPerManagedZone
206+
207+ -- * DNSKeyType
208+ , DNSKeyType (..)
209+
210+ -- * DNSKeyDigest
211+ , DNSKeyDigest
212+ , dnsKeyDigest
213+ , dkdDigest
214+ , dkdType
215+
216+ -- * ManagedZoneOperationsListSortBy
217+ , ManagedZoneOperationsListSortBy (..)
97
218
98 -- * ManagedZonesListResponse
219 -- * ManagedZonesListResponse
99 , ManagedZonesListResponse
220 , ManagedZonesListResponse
100 , managedZonesListResponse
221 , managedZonesListResponse
101 , mzlrNextPageToken
222 , mzlrNextPageToken
102 , mzlrKind
223 , mzlrKind
224+ , mzlrHeader
103 , mzlrManagedZones
225 , mzlrManagedZones
104 ) where
226 ) where
105
227
@@ -107,10 +229,10 @@ import Network.Google.DNS.Types.Product
107import Network.Google.DNS.Types.Sum
229import Network.Google.DNS.Types.Sum
108import Network.Google.Prelude
230import Network.Google.Prelude
109
231
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.
111dNSService :: ServiceConfig
233dNSService :: ServiceConfig
112dNSService
234dNSService
113− = defaultService (ServiceId "dns:v1")
235+ = defaultService (ServiceId "dns:v2beta1")
114 "www.googleapis.com"
236 "www.googleapis.com"
115
237
116-- | View your DNS records hosted by Google Cloud DNS
238-- | 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
20import Network.Google.DNS.Types.Sum
20import Network.Google.DNS.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
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+
23-- | The response to a request to enumerate Changes to a ResourceRecordSets
148-- | The response to a request to enumerate Changes to a ResourceRecordSets
24-- collection.
149-- collection.
25--
150--
@@ -28,6 +153,7 @@ data ChangesListResponse = ChangesListResponse'
28 { _clrNextPageToken :: !(Maybe Text)
153 { _clrNextPageToken :: !(Maybe Text)
29 , _clrChanges :: !(Maybe [Change])
154 , _clrChanges :: !(Maybe [Change])
30 , _clrKind :: !Text
155 , _clrKind :: !Text
156+ , _clrHeader :: !(Maybe ResponseHeader)
31 } deriving (Eq,Show,Data,Typeable,Generic)
157 } deriving (Eq,Show,Data,Typeable,Generic)
32
158
33-- | Creates a value of 'ChangesListResponse' with the minimum fields required to make a request.
159-- | Creates a value of 'ChangesListResponse' with the minimum fields required to make a request.
@@ -39,6 +165,8 @@ data ChangesListResponse = ChangesListResponse'
39-- * 'clrChanges'
165-- * 'clrChanges'
40--
166--
41-- * 'clrKind'
167-- * 'clrKind'
168+--
169+-- * 'clrHeader'
42changesListResponse
170changesListResponse
43 :: ChangesListResponse
171 :: ChangesListResponse
44changesListResponse =
172changesListResponse =
@@ -46,6 +174,7 @@ changesListResponse =
46 { _clrNextPageToken = Nothing
174 { _clrNextPageToken = Nothing
47 , _clrChanges = Nothing
175 , _clrChanges = Nothing
48 , _clrKind = "dns#changesListResponse"
176 , _clrKind = "dns#changesListResponse"
177+ , _clrHeader = Nothing
49 }
178 }
50
179
51-- | The presence of this field indicates that there exist more results
180-- | The presence of this field indicates that there exist more results
@@ -73,6 +202,10 @@ clrChanges
73clrKind :: Lens' ChangesListResponse Text
202clrKind :: Lens' ChangesListResponse Text
74clrKind = lens _clrKind (\ s a -> s{_clrKind = a})
203clrKind = lens _clrKind (\ s a -> s{_clrKind = a})
75
204
205+clrHeader :: Lens' ChangesListResponse (Maybe ResponseHeader)
206+clrHeader
207+ = lens _clrHeader (\ s a -> s{_clrHeader = a})
208+
76instance FromJSON ChangesListResponse where
209instance FromJSON ChangesListResponse where
77 parseJSON
210 parseJSON
78 = withObject "ChangesListResponse"
211 = withObject "ChangesListResponse"
@@ -80,7 +213,8 @@ instance FromJSON ChangesListResponse where
80 ChangesListResponse' <$>
213 ChangesListResponse' <$>
81 (o .:? "nextPageToken") <*>
214 (o .:? "nextPageToken") <*>
82 (o .:? "changes" .!= mempty)
215 (o .:? "changes" .!= mempty)
83− <*> (o .:? "kind" .!= "dns#changesListResponse"))
216+ <*> (o .:? "kind" .!= "dns#changesListResponse")
217+ <*> (o .:? "header"))
84
218
85instance ToJSON ChangesListResponse where
219instance ToJSON ChangesListResponse where
86 toJSON ChangesListResponse'{..}
220 toJSON ChangesListResponse'{..}
@@ -88,7 +222,40 @@ instance ToJSON ChangesListResponse where
88 (catMaybes
222 (catMaybes
89 [("nextPageToken" .=) <$> _clrNextPageToken,
223 [("nextPageToken" .=) <$> _clrNextPageToken,
90 ("changes" .=) <$> _clrChanges,
224 ("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])
92
259
93-- | A project resource. The project is a top level container for resources
260-- | A project resource. The project is a top level container for resources
94-- including Cloud DNS ManagedZones. Projects can be created only in the
261-- including Cloud DNS ManagedZones. Projects can be created only in the
@@ -160,6 +327,202 @@ instance ToJSON Project where
160 ("number" .=) <$> _pNumber,
327 ("number" .=) <$> _pNumber,
161 ("quota" .=) <$> _pQuota])
328 ("quota" .=) <$> _pQuota])
162
329
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+
163-- | An atomic update to a collection of ResourceRecordSets.
526-- | An atomic update to a collection of ResourceRecordSets.
164--
527--
165-- /See:/ 'change' smart constructor.
528-- /See:/ 'change' smart constructor.
@@ -170,6 +533,7 @@ data Change = Change'
170 , _cKind :: !Text
533 , _cKind :: !Text
171 , _cDeletions :: !(Maybe [ResourceRecordSet])
534 , _cDeletions :: !(Maybe [ResourceRecordSet])
172 , _cId :: !(Maybe Text)
535 , _cId :: !(Maybe Text)
536+ , _cIsServing :: !(Maybe Bool)
173 } deriving (Eq,Show,Data,Typeable,Generic)
537 } deriving (Eq,Show,Data,Typeable,Generic)
174
538
175-- | Creates a value of 'Change' with the minimum fields required to make a request.
539-- | Creates a value of 'Change' with the minimum fields required to make a request.
@@ -187,6 +551,8 @@ data Change = Change'
187-- * 'cDeletions'
551-- * 'cDeletions'
188--
552--
189-- * 'cId'
553-- * 'cId'
554+--
555+-- * 'cIsServing'
190change
556change
191 :: Change
557 :: Change
192change =
558change =
@@ -197,6 +563,7 @@ change =
197 , _cKind = "dns#change"
563 , _cKind = "dns#change"
198 , _cDeletions = Nothing
564 , _cDeletions = Nothing
199 , _cId = Nothing
565 , _cId = Nothing
566+ , _cIsServing = Nothing
200 }
567 }
201
568
202-- | Status of the operation (output only).
569-- | Status of the operation (output only).
@@ -232,6 +599,11 @@ cDeletions
232cId :: Lens' Change (Maybe Text)
599cId :: Lens' Change (Maybe Text)
233cId = lens _cId (\ s a -> s{_cId = a})
600cId = lens _cId (\ s a -> s{_cId = a})
234
601
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+
235instance FromJSON Change where
607instance FromJSON Change where
236 parseJSON
608 parseJSON
237 = withObject "Change"
609 = withObject "Change"
@@ -241,7 +613,8 @@ instance FromJSON Change where
241 <*> (o .:? "startTime")
613 <*> (o .:? "startTime")
242 <*> (o .:? "kind" .!= "dns#change")
614 <*> (o .:? "kind" .!= "dns#change")
243 <*> (o .:? "deletions" .!= mempty)
615 <*> (o .:? "deletions" .!= mempty)
244− <*> (o .:? "id"))
616+ <*> (o .:? "id")
617+ <*> (o .:? "isServing"))
245
618
246instance ToJSON Change where
619instance ToJSON Change where
247 toJSON Change'{..}
620 toJSON Change'{..}
@@ -251,14 +624,348 @@ instance ToJSON Change where
251 ("additions" .=) <$> _cAdditions,
624 ("additions" .=) <$> _cAdditions,
252 ("startTime" .=) <$> _cStartTime,
625 ("startTime" .=) <$> _cStartTime,
253 Just ("kind" .= _cKind),
626 Just ("kind" .= _cKind),
254− ("deletions" .=) <$> _cDeletions,
627+ ("deletions" .=) <$> _cDeletions, ("id" .=) <$> _cId,
255− ("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])
256
962
257--
963--
258-- /See:/ 'resourceRecordSetsListResponse' smart constructor.
964-- /See:/ 'resourceRecordSetsListResponse' smart constructor.
259data ResourceRecordSetsListResponse = ResourceRecordSetsListResponse'
965data ResourceRecordSetsListResponse = ResourceRecordSetsListResponse'
260 { _rrslrNextPageToken :: !(Maybe Text)
966 { _rrslrNextPageToken :: !(Maybe Text)
261 , _rrslrKind :: !Text
967 , _rrslrKind :: !Text
968+ , _rrslrHeader :: !(Maybe ResponseHeader)
262 , _rrslrRrSets :: !(Maybe [ResourceRecordSet])
969 , _rrslrRrSets :: !(Maybe [ResourceRecordSet])
263 } deriving (Eq,Show,Data,Typeable,Generic)
970 } deriving (Eq,Show,Data,Typeable,Generic)
264
971
@@ -270,6 +977,8 @@ data ResourceRecordSetsListResponse = ResourceRecordSetsListResponse'
270--
977--
271-- * 'rrslrKind'
978-- * 'rrslrKind'
272--
979--
980+-- * 'rrslrHeader'
981+--
273-- * 'rrslrRrSets'
982-- * 'rrslrRrSets'
274resourceRecordSetsListResponse
983resourceRecordSetsListResponse
275 :: ResourceRecordSetsListResponse
984 :: ResourceRecordSetsListResponse
@@ -277,6 +986,7 @@ resourceRecordSetsListResponse =
277 ResourceRecordSetsListResponse'
986 ResourceRecordSetsListResponse'
278 { _rrslrNextPageToken = Nothing
987 { _rrslrNextPageToken = Nothing
279 , _rrslrKind = "dns#resourceRecordSetsListResponse"
988 , _rrslrKind = "dns#resourceRecordSetsListResponse"
989+ , _rrslrHeader = Nothing
280 , _rrslrRrSets = Nothing
990 , _rrslrRrSets = Nothing
281 }
991 }
282
992
@@ -299,6 +1009,10 @@ rrslrKind :: Lens' ResourceRecordSetsListResponse Text
299rrslrKind
1009rrslrKind
300 = lens _rrslrKind (\ s a -> s{_rrslrKind = a})
1010 = lens _rrslrKind (\ s a -> s{_rrslrKind = a})
301
1011
1012+rrslrHeader :: Lens' ResourceRecordSetsListResponse (Maybe ResponseHeader)
1013+rrslrHeader
1014+ = lens _rrslrHeader (\ s a -> s{_rrslrHeader = a})
1015+
302-- | The resource record set resources.
1016-- | The resource record set resources.
303rrslrRrSets :: Lens' ResourceRecordSetsListResponse [ResourceRecordSet]
1017rrslrRrSets :: Lens' ResourceRecordSetsListResponse [ResourceRecordSet]
304rrslrRrSets
1018rrslrRrSets
@@ -315,6 +1029,7 @@ instance FromJSON ResourceRecordSetsListResponse
315 (o .:? "nextPageToken") <*>
1029 (o .:? "nextPageToken") <*>
316 (o .:? "kind" .!=
1030 (o .:? "kind" .!=
317 "dns#resourceRecordSetsListResponse")
1031 "dns#resourceRecordSetsListResponse")
1032+ <*> (o .:? "header")
318 <*> (o .:? "rrsets" .!= mempty))
1033 <*> (o .:? "rrsets" .!= mempty))
319
1034
320instance ToJSON ResourceRecordSetsListResponse where
1035instance ToJSON ResourceRecordSetsListResponse where
@@ -323,17 +1038,95 @@ instance ToJSON ResourceRecordSetsListResponse where
323 (catMaybes
1038 (catMaybes
324 [("nextPageToken" .=) <$> _rrslrNextPageToken,
1039 [("nextPageToken" .=) <$> _rrslrNextPageToken,
325 Just ("kind" .= _rrslrKind),
1040 Just ("kind" .= _rrslrKind),
1041+ ("header" .=) <$> _rrslrHeader,
326 ("rrsets" .=) <$> _rrslrRrSets])
1042 ("rrsets" .=) <$> _rrslrRrSets])
327
1043
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+
328-- | A unit of data that will be returned by the DNS servers.
1120-- | A unit of data that will be returned by the DNS servers.
329--
1121--
330-- /See:/ 'resourceRecordSet' smart constructor.
1122-- /See:/ 'resourceRecordSet' smart constructor.
331data ResourceRecordSet = ResourceRecordSet'
1123data ResourceRecordSet = ResourceRecordSet'
332− { _rrsTtl :: !(Maybe (Textual Int32))
1124+ { _rrsTtl :: !(Maybe (Textual Int32))
333− , _rrsKind :: !Text
1125+ , _rrsKind :: !Text
1126+ , _rrsSignatureRrDatas :: !(Maybe [Text])
334− , _rrsName :: !(Maybe Text)
1127+ , _rrsName :: !(Maybe Text)
335− , _rrsType :: !(Maybe Text)
1128+ , _rrsType :: !(Maybe Text)
336− , _rrsRrDatas :: !(Maybe [Text])
1129+ , _rrsRrDatas :: !(Maybe [Text])
337 } deriving (Eq,Show,Data,Typeable,Generic)
1130 } deriving (Eq,Show,Data,Typeable,Generic)
338
1131
339-- | Creates a value of 'ResourceRecordSet' with the minimum fields required to make a request.
1132-- | Creates a value of 'ResourceRecordSet' with the minimum fields required to make a request.
@@ -344,6 +1137,8 @@ data ResourceRecordSet = ResourceRecordSet'
344--
1137--
345-- * 'rrsKind'
1138-- * 'rrsKind'
346--
1139--
1140+-- * 'rrsSignatureRrDatas'
1141+--
347-- * 'rrsName'
1142-- * 'rrsName'
348--
1143--
349-- * 'rrsType'
1144-- * 'rrsType'
@@ -355,6 +1150,7 @@ resourceRecordSet =
355 ResourceRecordSet'
1150 ResourceRecordSet'
356 { _rrsTtl = Nothing
1151 { _rrsTtl = Nothing
357 , _rrsKind = "dns#resourceRecordSet"
1152 , _rrsKind = "dns#resourceRecordSet"
1153+ , _rrsSignatureRrDatas = Nothing
358 , _rrsName = Nothing
1154 , _rrsName = Nothing
359 , _rrsType = Nothing
1155 , _rrsType = Nothing
360 , _rrsRrDatas = Nothing
1156 , _rrsRrDatas = Nothing
@@ -372,6 +1168,14 @@ rrsTtl
372rrsKind :: Lens' ResourceRecordSet Text
1168rrsKind :: Lens' ResourceRecordSet Text
373rrsKind = lens _rrsKind (\ s a -> s{_rrsKind = a})
1169rrsKind = lens _rrsKind (\ s a -> s{_rrsKind = a})
374
1170
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+
375-- | For example, www.example.com.
1179-- | For example, www.example.com.
376rrsName :: Lens' ResourceRecordSet (Maybe Text)
1180rrsName :: Lens' ResourceRecordSet (Maybe Text)
377rrsName = lens _rrsName (\ s a -> s{_rrsName = a})
1181rrsName = lens _rrsName (\ s a -> s{_rrsName = a})
@@ -395,6 +1199,7 @@ instance FromJSON ResourceRecordSet where
395 ResourceRecordSet' <$>
1199 ResourceRecordSet' <$>
396 (o .:? "ttl") <*>
1200 (o .:? "ttl") <*>
397 (o .:? "kind" .!= "dns#resourceRecordSet")
1201 (o .:? "kind" .!= "dns#resourceRecordSet")
1202+ <*> (o .:? "signatureRrdatas" .!= mempty)
398 <*> (o .:? "name")
1203 <*> (o .:? "name")
399 <*> (o .:? "type")
1204 <*> (o .:? "type")
400 <*> (o .:? "rrdatas" .!= mempty))
1205 <*> (o .:? "rrdatas" .!= mempty))
@@ -404,6 +1209,7 @@ instance ToJSON ResourceRecordSet where
404 = object
1209 = object
405 (catMaybes
1210 (catMaybes
406 [("ttl" .=) <$> _rrsTtl, Just ("kind" .= _rrsKind),
1211 [("ttl" .=) <$> _rrsTtl, Just ("kind" .= _rrsKind),
1212+ ("signatureRrdatas" .=) <$> _rrsSignatureRrDatas,
407 ("name" .=) <$> _rrsName, ("type" .=) <$> _rrsType,
1213 ("name" .=) <$> _rrsName, ("type" .=) <$> _rrsType,
408 ("rrdatas" .=) <$> _rrsRrDatas])
1214 ("rrdatas" .=) <$> _rrsRrDatas])
409
1215
@@ -420,6 +1226,7 @@ data ManagedZone = ManagedZone'
420 , _mzId :: !(Maybe (Textual Word64))
1226 , _mzId :: !(Maybe (Textual Word64))
421 , _mzDNSName :: !(Maybe Text)
1227 , _mzDNSName :: !(Maybe Text)
422 , _mzDescription :: !(Maybe Text)
1228 , _mzDescription :: !(Maybe Text)
1229+ , _mzDNSsecConfig :: !(Maybe ManagedZoneDNSSecConfig)
423 , _mzNameServers :: !(Maybe [Text])
1230 , _mzNameServers :: !(Maybe [Text])
424 } deriving (Eq,Show,Data,Typeable,Generic)
1231 } deriving (Eq,Show,Data,Typeable,Generic)
425
1232
@@ -441,6 +1248,8 @@ data ManagedZone = ManagedZone'
441--
1248--
442-- * 'mzDescription'
1249-- * 'mzDescription'
443--
1250--
1251+-- * 'mzDNSsecConfig'
1252+--
444-- * 'mzNameServers'
1253-- * 'mzNameServers'
445managedZone
1254managedZone
446 :: ManagedZone
1255 :: ManagedZone
@@ -453,6 +1262,7 @@ managedZone =
453 , _mzId = Nothing
1262 , _mzId = Nothing
454 , _mzDNSName = Nothing
1263 , _mzDNSName = Nothing
455 , _mzDescription = Nothing
1264 , _mzDescription = Nothing
1265+ , _mzDNSsecConfig = Nothing
456 , _mzNameServers = Nothing
1266 , _mzNameServers = Nothing
457 }
1267 }
458
1268
@@ -477,7 +1287,7 @@ mzNameServerSet
477 (\ s a -> s{_mzNameServerSet = a})
1287 (\ s a -> s{_mzNameServerSet = a})
478
1288
479-- | User assigned name for this resource. Must be unique within the project.
1289-- | 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
481-- with a letter or digit, and only contain lowercase letters, digits or
1291-- with a letter or digit, and only contain lowercase letters, digits or
482-- dashes.
1292-- dashes.
483mzName :: Lens' ManagedZone (Maybe Text)
1293mzName :: Lens' ManagedZone (Maybe Text)
@@ -502,6 +1312,12 @@ mzDescription
502 = lens _mzDescription
1312 = lens _mzDescription
503 (\ s a -> s{_mzDescription = a})
1313 (\ s a -> s{_mzDescription = a})
504
1314
1315+-- | DNSSEC configuration.
1316+mzDNSsecConfig :: Lens' ManagedZone (Maybe ManagedZoneDNSSecConfig)
1317+mzDNSsecConfig
1318+ = lens _mzDNSsecConfig
1319+ (\ s a -> s{_mzDNSsecConfig = a})
1320+
505-- | Delegate your managed_zone to these virtual name servers; defined by the
1321-- | Delegate your managed_zone to these virtual name servers; defined by the
506-- server (output only)
1322-- server (output only)
507mzNameServers :: Lens' ManagedZone [Text]
1323mzNameServers :: Lens' ManagedZone [Text]
@@ -523,6 +1339,7 @@ instance FromJSON ManagedZone where
523 <*> (o .:? "id")
1339 <*> (o .:? "id")
524 <*> (o .:? "dnsName")
1340 <*> (o .:? "dnsName")
525 <*> (o .:? "description")
1341 <*> (o .:? "description")
1342+ <*> (o .:? "dnssecConfig")
526 <*> (o .:? "nameServers" .!= mempty))
1343 <*> (o .:? "nameServers" .!= mempty))
527
1344
528instance ToJSON ManagedZone where
1345instance ToJSON ManagedZone where
@@ -535,6 +1352,7 @@ instance ToJSON ManagedZone where
535 ("name" .=) <$> _mzName, ("id" .=) <$> _mzId,
1352 ("name" .=) <$> _mzName, ("id" .=) <$> _mzId,
536 ("dnsName" .=) <$> _mzDNSName,
1353 ("dnsName" .=) <$> _mzDNSName,
537 ("description" .=) <$> _mzDescription,
1354 ("description" .=) <$> _mzDescription,
1355+ ("dnssecConfig" .=) <$> _mzDNSsecConfig,
538 ("nameServers" .=) <$> _mzNameServers])
1356 ("nameServers" .=) <$> _mzNameServers])
539
1357
540-- | Limits associated with a Project.
1358-- | Limits associated with a Project.
@@ -542,12 +1360,14 @@ instance ToJSON ManagedZone where
542-- /See:/ 'quota' smart constructor.
1360-- /See:/ 'quota' smart constructor.
543data Quota = Quota'
1361data Quota = Quota'
544 { _qRrSetDeletionsPerChange :: !(Maybe (Textual Int32))
1362 { _qRrSetDeletionsPerChange :: !(Maybe (Textual Int32))
1363+ , _qWhiteListedKeySpecs :: !(Maybe [DNSKeySpec])
545 , _qRrSetsPerManagedZone :: !(Maybe (Textual Int32))
1364 , _qRrSetsPerManagedZone :: !(Maybe (Textual Int32))
546 , _qKind :: !Text
1365 , _qKind :: !Text
547 , _qResourceRecordsPerRrSet :: !(Maybe (Textual Int32))
1366 , _qResourceRecordsPerRrSet :: !(Maybe (Textual Int32))
548 , _qRrSetAdditionsPerChange :: !(Maybe (Textual Int32))
1367 , _qRrSetAdditionsPerChange :: !(Maybe (Textual Int32))
549 , _qManagedZones :: !(Maybe (Textual Int32))
1368 , _qManagedZones :: !(Maybe (Textual Int32))
550 , _qTotalRrDataSizePerChange :: !(Maybe (Textual Int32))
1369 , _qTotalRrDataSizePerChange :: !(Maybe (Textual Int32))
1370+ , _qDNSKeysPerManagedZone :: !(Maybe (Textual Int32))
551 } deriving (Eq,Show,Data,Typeable,Generic)
1371 } deriving (Eq,Show,Data,Typeable,Generic)
552
1372
553-- | Creates a value of 'Quota' with the minimum fields required to make a request.
1373-- | Creates a value of 'Quota' with the minimum fields required to make a request.
@@ -556,6 +1376,8 @@ data Quota = Quota'
556--
1376--
557-- * 'qRrSetDeletionsPerChange'
1377-- * 'qRrSetDeletionsPerChange'
558--
1378--
1379+-- * 'qWhiteListedKeySpecs'
1380+--
559-- * 'qRrSetsPerManagedZone'
1381-- * 'qRrSetsPerManagedZone'
560--
1382--
561-- * 'qKind'
1383-- * 'qKind'
@@ -567,17 +1389,21 @@ data Quota = Quota'
567-- * 'qManagedZones'
1389-- * 'qManagedZones'
568--
1390--
569-- * 'qTotalRrDataSizePerChange'
1391-- * 'qTotalRrDataSizePerChange'
1392+--
1393+-- * 'qDNSKeysPerManagedZone'
570quota
1394quota
571 :: Quota
1395 :: Quota
572quota =
1396quota =
573 Quota'
1397 Quota'
574 { _qRrSetDeletionsPerChange = Nothing
1398 { _qRrSetDeletionsPerChange = Nothing
1399+ , _qWhiteListedKeySpecs = Nothing
575 , _qRrSetsPerManagedZone = Nothing
1400 , _qRrSetsPerManagedZone = Nothing
576 , _qKind = "dns#quota"
1401 , _qKind = "dns#quota"
577 , _qResourceRecordsPerRrSet = Nothing
1402 , _qResourceRecordsPerRrSet = Nothing
578 , _qRrSetAdditionsPerChange = Nothing
1403 , _qRrSetAdditionsPerChange = Nothing
579 , _qManagedZones = Nothing
1404 , _qManagedZones = Nothing
580 , _qTotalRrDataSizePerChange = Nothing
1405 , _qTotalRrDataSizePerChange = Nothing
1406+ , _qDNSKeysPerManagedZone = Nothing
581 }
1407 }
582
1408
583-- | Maximum allowed number of ResourceRecordSets to delete per
1409-- | Maximum allowed number of ResourceRecordSets to delete per
@@ -588,6 +1414,14 @@ qRrSetDeletionsPerChange
588 (\ s a -> s{_qRrSetDeletionsPerChange = a})
1414 (\ s a -> s{_qRrSetDeletionsPerChange = a})
589 . mapping _Coerce
1415 . mapping _Coerce
590
1416
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+
591-- | Maximum allowed number of ResourceRecordSets per zone in the project.
1425-- | Maximum allowed number of ResourceRecordSets per zone in the project.
592qRrSetsPerManagedZone :: Lens' Quota (Maybe Int32)
1426qRrSetsPerManagedZone :: Lens' Quota (Maybe Int32)
593qRrSetsPerManagedZone
1427qRrSetsPerManagedZone
@@ -630,18 +1464,27 @@ qTotalRrDataSizePerChange
630 (\ s a -> s{_qTotalRrDataSizePerChange = a})
1464 (\ s a -> s{_qTotalRrDataSizePerChange = a})
631 . mapping _Coerce
1465 . mapping _Coerce
632
1466
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+
633instance FromJSON Quota where
1474instance FromJSON Quota where
634 parseJSON
1475 parseJSON
635 = withObject "Quota"
1476 = withObject "Quota"
636 (\ o ->
1477 (\ o ->
637 Quota' <$>
1478 Quota' <$>
638 (o .:? "rrsetDeletionsPerChange") <*>
1479 (o .:? "rrsetDeletionsPerChange") <*>
1480+ (o .:? "whitelistedKeySpecs" .!= mempty)
639− (o .:? "rrsetsPerManagedZone")
1481+ <*> (o .:? "rrsetsPerManagedZone")
640 <*> (o .:? "kind" .!= "dns#quota")
1482 <*> (o .:? "kind" .!= "dns#quota")
641 <*> (o .:? "resourceRecordsPerRrset")
1483 <*> (o .:? "resourceRecordsPerRrset")
642 <*> (o .:? "rrsetAdditionsPerChange")
1484 <*> (o .:? "rrsetAdditionsPerChange")
643 <*> (o .:? "managedZones")
1485 <*> (o .:? "managedZones")
644− <*> (o .:? "totalRrdataSizePerChange"))
1486+ <*> (o .:? "totalRrdataSizePerChange")
1487+ <*> (o .:? "dnsKeysPerManagedZone"))
645
1488
646instance ToJSON Quota where
1489instance ToJSON Quota where
647 toJSON Quota'{..}
1490 toJSON Quota'{..}
@@ -649,6 +1492,7 @@ instance ToJSON Quota where
649 (catMaybes
1492 (catMaybes
650 [("rrsetDeletionsPerChange" .=) <$>
1493 [("rrsetDeletionsPerChange" .=) <$>
651 _qRrSetDeletionsPerChange,
1494 _qRrSetDeletionsPerChange,
1495+ ("whitelistedKeySpecs" .=) <$> _qWhiteListedKeySpecs,
652 ("rrsetsPerManagedZone" .=) <$>
1496 ("rrsetsPerManagedZone" .=) <$>
653 _qRrSetsPerManagedZone,
1497 _qRrSetsPerManagedZone,
654 Just ("kind" .= _qKind),
1498 Just ("kind" .= _qKind),
@@ -658,13 +1502,62 @@ instance ToJSON Quota where
658 _qRrSetAdditionsPerChange,
1502 _qRrSetAdditionsPerChange,
659 ("managedZones" .=) <$> _qManagedZones,
1503 ("managedZones" .=) <$> _qManagedZones,
660 ("totalRrdataSizePerChange" .=) <$>
1504 ("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])
662
1554
663--
1555--
664-- /See:/ 'managedZonesListResponse' smart constructor.
1556-- /See:/ 'managedZonesListResponse' smart constructor.
665data ManagedZonesListResponse = ManagedZonesListResponse'
1557data ManagedZonesListResponse = ManagedZonesListResponse'
666 { _mzlrNextPageToken :: !(Maybe Text)
1558 { _mzlrNextPageToken :: !(Maybe Text)
667 , _mzlrKind :: !Text
1559 , _mzlrKind :: !Text
1560+ , _mzlrHeader :: !(Maybe ResponseHeader)
668 , _mzlrManagedZones :: !(Maybe [ManagedZone])
1561 , _mzlrManagedZones :: !(Maybe [ManagedZone])
669 } deriving (Eq,Show,Data,Typeable,Generic)
1562 } deriving (Eq,Show,Data,Typeable,Generic)
670
1563
@@ -676,6 +1569,8 @@ data ManagedZonesListResponse = ManagedZonesListResponse'
676--
1569--
677-- * 'mzlrKind'
1570-- * 'mzlrKind'
678--
1571--
1572+-- * 'mzlrHeader'
1573+--
679-- * 'mzlrManagedZones'
1574-- * 'mzlrManagedZones'
680managedZonesListResponse
1575managedZonesListResponse
681 :: ManagedZonesListResponse
1576 :: ManagedZonesListResponse
@@ -683,6 +1578,7 @@ managedZonesListResponse =
683 ManagedZonesListResponse'
1578 ManagedZonesListResponse'
684 { _mzlrNextPageToken = Nothing
1579 { _mzlrNextPageToken = Nothing
685 , _mzlrKind = "dns#managedZonesListResponse"
1580 , _mzlrKind = "dns#managedZonesListResponse"
1581+ , _mzlrHeader = Nothing
686 , _mzlrManagedZones = Nothing
1582 , _mzlrManagedZones = Nothing
687 }
1583 }
688
1584
@@ -704,6 +1600,10 @@ mzlrNextPageToken
704mzlrKind :: Lens' ManagedZonesListResponse Text
1600mzlrKind :: Lens' ManagedZonesListResponse Text
705mzlrKind = lens _mzlrKind (\ s a -> s{_mzlrKind = a})
1601mzlrKind = lens _mzlrKind (\ s a -> s{_mzlrKind = a})
706
1602
1603+mzlrHeader :: Lens' ManagedZonesListResponse (Maybe ResponseHeader)
1604+mzlrHeader
1605+ = lens _mzlrHeader (\ s a -> s{_mzlrHeader = a})
1606+
707-- | The managed zone resources.
1607-- | The managed zone resources.
708mzlrManagedZones :: Lens' ManagedZonesListResponse [ManagedZone]
1608mzlrManagedZones :: Lens' ManagedZonesListResponse [ManagedZone]
709mzlrManagedZones
1609mzlrManagedZones
@@ -719,6 +1619,7 @@ instance FromJSON ManagedZonesListResponse where
719 ManagedZonesListResponse' <$>
1619 ManagedZonesListResponse' <$>
720 (o .:? "nextPageToken") <*>
1620 (o .:? "nextPageToken") <*>
721 (o .:? "kind" .!= "dns#managedZonesListResponse")
1621 (o .:? "kind" .!= "dns#managedZonesListResponse")
1622+ <*> (o .:? "header")
722 <*> (o .:? "managedZones" .!= mempty))
1623 <*> (o .:? "managedZones" .!= mempty))
723
1624
724instance ToJSON ManagedZonesListResponse where
1625instance ToJSON ManagedZonesListResponse where
@@ -727,4 +1628,5 @@ instance ToJSON ManagedZonesListResponse where
727 (catMaybes
1628 (catMaybes
728 [("nextPageToken" .=) <$> _mzlrNextPageToken,
1629 [("nextPageToken" .=) <$> _mzlrNextPageToken,
729 Just ("kind" .= _mzlrKind),
1630 Just ("kind" .= _mzlrKind),
1631+ ("header" .=) <$> _mzlrHeader,
730 ("managedZones" .=) <$> _mzlrManagedZones])
1632 ("managedZones" .=) <$> _mzlrManagedZones])
gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+297−11
@@ -18,22 +18,120 @@ module Network.Google.DNS.Types.Sum where
18
18
19import Network.Google.Prelude
19import Network.Google.Prelude
20
20
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+
21-- | Sorting criterion. The only supported value is change sequence.
119-- | Sorting criterion. The only supported value is change sequence.
22data ChangesListSortBy
120data ChangesListSortBy
23 = ChangeSequence
121 = ChangeSequence
24− -- ^ @changeSequence@
122+ -- ^ @CHANGE_SEQUENCE@
25 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
123 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
26
124
27instance Hashable ChangesListSortBy
125instance Hashable ChangesListSortBy
28
126
29instance FromHttpApiData ChangesListSortBy where
127instance FromHttpApiData ChangesListSortBy where
30 parseQueryParam = \case
128 parseQueryParam = \case
31− "changeSequence" -> Right ChangeSequence
129+ "CHANGE_SEQUENCE" -> Right ChangeSequence
32 x -> Left ("Unable to parse ChangesListSortBy from: " <> x)
130 x -> Left ("Unable to parse ChangesListSortBy from: " <> x)
33
131
34instance ToHttpApiData ChangesListSortBy where
132instance ToHttpApiData ChangesListSortBy where
35 toQueryParam = \case
133 toQueryParam = \case
36− ChangeSequence -> "changeSequence"
134+ ChangeSequence -> "CHANGE_SEQUENCE"
37
135
38instance FromJSON ChangesListSortBy where
136instance FromJSON ChangesListSortBy where
39 parseJSON = parseJSONText "ChangesListSortBy"
137 parseJSON = parseJSONText "ChangesListSortBy"
@@ -41,29 +139,217 @@ instance FromJSON ChangesListSortBy where
41instance ToJSON ChangesListSortBy where
139instance ToJSON ChangesListSortBy where
42 toJSON = toJSONText
140 toJSON = toJSONText
43
141
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+
44−-- | Status of the operation (output only).
173+-- | Status of the operation. Can be one of the following: \"PENDING\" or
45−data ChangeStatus
174+-- \"DONE\" (output only).
175+data OperationStatus
46 = Done
176 = Done
47− -- ^ @done@
177+ -- ^ @DONE@
48 | Pending
178 | 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@
50 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
278 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
51
279
52instance Hashable ChangeStatus
280instance Hashable ChangeStatus
53
281
54instance FromHttpApiData ChangeStatus where
282instance FromHttpApiData ChangeStatus where
55 parseQueryParam = \case
283 parseQueryParam = \case
56− "done" -> Right Done
284+ "DONE" -> Right CSDone
57− "pending" -> Right Pending
285+ "PENDING" -> Right CSPending
58 x -> Left ("Unable to parse ChangeStatus from: " <> x)
286 x -> Left ("Unable to parse ChangeStatus from: " <> x)
59
287
60instance ToHttpApiData ChangeStatus where
288instance ToHttpApiData ChangeStatus where
61 toQueryParam = \case
289 toQueryParam = \case
62− Done -> "done"
290+ CSDone -> "DONE"
63− Pending -> "pending"
291+ CSPending -> "PENDING"
64
292
65instance FromJSON ChangeStatus where
293instance FromJSON ChangeStatus where
66 parseJSON = parseJSONText "ChangeStatus"
294 parseJSON = parseJSONText "ChangeStatus"
67
295
68instance ToJSON ChangeStatus where
296instance ToJSON ChangeStatus where
69 toJSON = toJSONText
297 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
36 , ccProject
36 , ccProject
37 , ccPayload
37 , ccPayload
38 , ccManagedZone
38 , ccManagedZone
39+ , ccClientOperationId
39 ) where
40 ) where
40
41
41import Network.Google.DNS.Types
42import Network.Google.DNS.Types
@@ -45,22 +46,24 @@ import Network.Google.Prelude
45-- 'ChangesCreate' request conforms to.
46-- 'ChangesCreate' request conforms to.
46type ChangesCreateResource =
47type ChangesCreateResource =
47 "dns" :>
48 "dns" :>
48− "v1" :>
49+ "v2beta1" :>
49 "projects" :>
50 "projects" :>
50 Capture "project" Text :>
51 Capture "project" Text :>
51 "managedZones" :>
52 "managedZones" :>
52 Capture "managedZone" Text :>
53 Capture "managedZone" Text :>
53 "changes" :>
54 "changes" :>
55+ QueryParam "clientOperationId" Text :>
54− QueryParam "alt" AltJSON :>
56+ QueryParam "alt" AltJSON :>
55− ReqBody '[JSON] Change :> Post '[JSON] Change
57+ ReqBody '[JSON] Change :> Post '[JSON] Change
56
58
57-- | Atomically update the ResourceRecordSet collection.
59-- | Atomically update the ResourceRecordSet collection.
58--
60--
59-- /See:/ 'changesCreate' smart constructor.
61-- /See:/ 'changesCreate' smart constructor.
60data ChangesCreate = ChangesCreate'
62data ChangesCreate = ChangesCreate'
61− { _ccProject :: !Text
63+ { _ccProject :: !Text
62− , _ccPayload :: !Change
64+ , _ccPayload :: !Change
63− , _ccManagedZone :: !Text
65+ , _ccManagedZone :: !Text
66+ , _ccClientOperationId :: !(Maybe Text)
64 } deriving (Eq,Show,Data,Typeable,Generic)
67 } deriving (Eq,Show,Data,Typeable,Generic)
65
68
66-- | Creates a value of 'ChangesCreate' with the minimum fields required to make a request.
69-- | Creates a value of 'ChangesCreate' with the minimum fields required to make a request.
@@ -72,6 +75,8 @@ data ChangesCreate = ChangesCreate'
72-- * 'ccPayload'
75-- * 'ccPayload'
73--
76--
74-- * 'ccManagedZone'
77-- * 'ccManagedZone'
78+--
79+-- * 'ccClientOperationId'
75changesCreate
80changesCreate
76 :: Text -- ^ 'ccProject'
81 :: Text -- ^ 'ccProject'
77 -> Change -- ^ 'ccPayload'
82 -> Change -- ^ 'ccPayload'
@@ -82,6 +87,7 @@ changesCreate pCcProject_ pCcPayload_ pCcManagedZone_ =
82 { _ccProject = pCcProject_
87 { _ccProject = pCcProject_
83 , _ccPayload = pCcPayload_
88 , _ccPayload = pCcPayload_
84 , _ccManagedZone = pCcManagedZone_
89 , _ccManagedZone = pCcManagedZone_
90+ , _ccClientOperationId = Nothing
85 }
91 }
86
92
87-- | Identifies the project addressed by this request.
93-- | Identifies the project addressed by this request.
@@ -101,13 +107,22 @@ ccManagedZone
101 = lens _ccManagedZone
107 = lens _ccManagedZone
102 (\ s a -> s{_ccManagedZone = a})
108 (\ s a -> s{_ccManagedZone = a})
103
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+ccClientOperationId :: Lens' ChangesCreate (Maybe Text)
114+ccClientOperationId
115+ = lens _ccClientOperationId
116+ (\ s a -> s{_ccClientOperationId = a})
117+
104instance GoogleRequest ChangesCreate where
118instance GoogleRequest ChangesCreate where
105 type Rs ChangesCreate = Change
119 type Rs ChangesCreate = Change
106 type Scopes ChangesCreate =
120 type Scopes ChangesCreate =
107 '["https://www.googleapis.com/auth/cloud-platform",
121 '["https://www.googleapis.com/auth/cloud-platform",
108 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
122 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
109 requestClient ChangesCreate'{..}
123 requestClient ChangesCreate'{..}
110− = go _ccProject _ccManagedZone (Just AltJSON)
124+ = go _ccProject _ccManagedZone _ccClientOperationId
125+ (Just AltJSON)
111 _ccPayload
126 _ccPayload
112 dNSService
127 dNSService
113 where go
128 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
36 , cgProject
36 , cgProject
37 , cgChangeId
37 , cgChangeId
38 , cgManagedZone
38 , cgManagedZone
39+ , cgClientOperationId
39 ) where
40 ) where
40
41
41import Network.Google.DNS.Types
42import Network.Google.DNS.Types
@@ -45,22 +46,24 @@ import Network.Google.Prelude
45-- 'ChangesGet' request conforms to.
46-- 'ChangesGet' request conforms to.
46type ChangesGetResource =
47type ChangesGetResource =
47 "dns" :>
48 "dns" :>
48− "v1" :>
49+ "v2beta1" :>
49 "projects" :>
50 "projects" :>
50 Capture "project" Text :>
51 Capture "project" Text :>
51 "managedZones" :>
52 "managedZones" :>
52 Capture "managedZone" Text :>
53 Capture "managedZone" Text :>
53 "changes" :>
54 "changes" :>
54 Capture "changeId" Text :>
55 Capture "changeId" Text :>
56+ QueryParam "clientOperationId" Text :>
55− QueryParam "alt" AltJSON :> Get '[JSON] Change
57+ QueryParam "alt" AltJSON :> Get '[JSON] Change
56
58
57-- | Fetch the representation of an existing Change.
59-- | Fetch the representation of an existing Change.
58--
60--
59-- /See:/ 'changesGet' smart constructor.
61-- /See:/ 'changesGet' smart constructor.
60data ChangesGet = ChangesGet'
62data ChangesGet = ChangesGet'
61− { _cgProject :: !Text
63+ { _cgProject :: !Text
62− , _cgChangeId :: !Text
64+ , _cgChangeId :: !Text
63− , _cgManagedZone :: !Text
65+ , _cgManagedZone :: !Text
66+ , _cgClientOperationId :: !(Maybe Text)
64 } deriving (Eq,Show,Data,Typeable,Generic)
67 } deriving (Eq,Show,Data,Typeable,Generic)
65
68
66-- | Creates a value of 'ChangesGet' with the minimum fields required to make a request.
69-- | Creates a value of 'ChangesGet' with the minimum fields required to make a request.
@@ -72,6 +75,8 @@ data ChangesGet = ChangesGet'
72-- * 'cgChangeId'
75-- * 'cgChangeId'
73--
76--
74-- * 'cgManagedZone'
77-- * 'cgManagedZone'
78+--
79+-- * 'cgClientOperationId'
75changesGet
80changesGet
76 :: Text -- ^ 'cgProject'
81 :: Text -- ^ 'cgProject'
77 -> Text -- ^ 'cgChangeId'
82 -> Text -- ^ 'cgChangeId'
@@ -82,6 +87,7 @@ changesGet pCgProject_ pCgChangeId_ pCgManagedZone_ =
82 { _cgProject = pCgProject_
87 { _cgProject = pCgProject_
83 , _cgChangeId = pCgChangeId_
88 , _cgChangeId = pCgChangeId_
84 , _cgManagedZone = pCgManagedZone_
89 , _cgManagedZone = pCgManagedZone_
90+ , _cgClientOperationId = Nothing
85 }
91 }
86
92
87-- | Identifies the project addressed by this request.
93-- | Identifies the project addressed by this request.
@@ -102,6 +108,14 @@ cgManagedZone
102 = lens _cgManagedZone
108 = lens _cgManagedZone
103 (\ s a -> s{_cgManagedZone = a})
109 (\ s a -> s{_cgManagedZone = a})
104
110
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+
105instance GoogleRequest ChangesGet where
119instance GoogleRequest ChangesGet where
106 type Rs ChangesGet = Change
120 type Rs ChangesGet = Change
107 type Scopes ChangesGet =
121 type Scopes ChangesGet =
@@ -111,6 +125,7 @@ instance GoogleRequest ChangesGet where
111 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
125 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
112 requestClient ChangesGet'{..}
126 requestClient ChangesGet'{..}
113 = go _cgProject _cgManagedZone _cgChangeId
127 = go _cgProject _cgManagedZone _cgChangeId
128+ _cgClientOperationId
114 (Just AltJSON)
129 (Just AltJSON)
115 dNSService
130 dNSService
116 where go
131 where go
gogol-dns/gen/Network/Google/Resource/DNS/Changes/List.hs+1−1
@@ -48,7 +48,7 @@ import Network.Google.Prelude
48-- 'ChangesList' request conforms to.
48-- 'ChangesList' request conforms to.
49type ChangesListResource =
49type ChangesListResource =
50 "dns" :>
50 "dns" :>
51− "v1" :>
51+ "v2beta1" :>
52 "projects" :>
52 "projects" :>
53 Capture "project" Text :>
53 Capture "project" Text :>
54 "managedZones" :>
54 "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
35 -- * Request Lenses
35 -- * Request Lenses
36 , mzcProject
36 , mzcProject
37 , mzcPayload
37 , mzcPayload
38+ , mzcClientOperationId
38 ) where
39 ) where
39
40
40import Network.Google.DNS.Types
41import Network.Google.DNS.Types
@@ -44,20 +45,22 @@ import Network.Google.Prelude
44-- 'ManagedZonesCreate' request conforms to.
45-- 'ManagedZonesCreate' request conforms to.
45type ManagedZonesCreateResource =
46type ManagedZonesCreateResource =
46 "dns" :>
47 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
48 "projects" :>
49 "projects" :>
49 Capture "project" Text :>
50 Capture "project" Text :>
50 "managedZones" :>
51 "managedZones" :>
52+ QueryParam "clientOperationId" Text :>
51− QueryParam "alt" AltJSON :>
53+ QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] ManagedZone :>
54+ ReqBody '[JSON] ManagedZone :>
53− Post '[JSON] ManagedZone
55+ Post '[JSON] ManagedZone
54
56
55-- | Create a new ManagedZone.
57-- | Create a new ManagedZone.
56--
58--
57-- /See:/ 'managedZonesCreate' smart constructor.
59-- /See:/ 'managedZonesCreate' smart constructor.
58data ManagedZonesCreate = ManagedZonesCreate'
60data ManagedZonesCreate = ManagedZonesCreate'
59− { _mzcProject :: !Text
61+ { _mzcProject :: !Text
60− , _mzcPayload :: !ManagedZone
62+ , _mzcPayload :: !ManagedZone
63+ , _mzcClientOperationId :: !(Maybe Text)
61 } deriving (Eq,Show,Data,Typeable,Generic)
64 } deriving (Eq,Show,Data,Typeable,Generic)
62
65
63-- | Creates a value of 'ManagedZonesCreate' with the minimum fields required to make a request.
66-- | Creates a value of 'ManagedZonesCreate' with the minimum fields required to make a request.
@@ -67,6 +70,8 @@ data ManagedZonesCreate = ManagedZonesCreate'
67-- * 'mzcProject'
70-- * 'mzcProject'
68--
71--
69-- * 'mzcPayload'
72-- * 'mzcPayload'
73+--
74+-- * 'mzcClientOperationId'
70managedZonesCreate
75managedZonesCreate
71 :: Text -- ^ 'mzcProject'
76 :: Text -- ^ 'mzcProject'
72 -> ManagedZone -- ^ 'mzcPayload'
77 -> ManagedZone -- ^ 'mzcPayload'
@@ -75,6 +80,7 @@ managedZonesCreate pMzcProject_ pMzcPayload_ =
75 ManagedZonesCreate'
80 ManagedZonesCreate'
76 { _mzcProject = pMzcProject_
81 { _mzcProject = pMzcProject_
77 , _mzcPayload = pMzcPayload_
82 , _mzcPayload = pMzcPayload_
83+ , _mzcClientOperationId = Nothing
78 }
84 }
79
85
80-- | Identifies the project addressed by this request.
86-- | Identifies the project addressed by this request.
@@ -87,13 +93,22 @@ mzcPayload :: Lens' ManagedZonesCreate ManagedZone
87mzcPayload
93mzcPayload
88 = lens _mzcPayload (\ s a -> s{_mzcPayload = a})
94 = lens _mzcPayload (\ s a -> s{_mzcPayload = a})
89
95
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+
90instance GoogleRequest ManagedZonesCreate where
104instance GoogleRequest ManagedZonesCreate where
91 type Rs ManagedZonesCreate = ManagedZone
105 type Rs ManagedZonesCreate = ManagedZone
92 type Scopes ManagedZonesCreate =
106 type Scopes ManagedZonesCreate =
93 '["https://www.googleapis.com/auth/cloud-platform",
107 '["https://www.googleapis.com/auth/cloud-platform",
94 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
108 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
95 requestClient ManagedZonesCreate'{..}
109 requestClient ManagedZonesCreate'{..}
96− = go _mzcProject (Just AltJSON) _mzcPayload
110+ = go _mzcProject _mzcClientOperationId (Just AltJSON)
111+ _mzcPayload
97 dNSService
112 dNSService
98 where go
113 where go
99 = buildClient
114 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Delete.hs+24−6
@@ -35,6 +35,7 @@ module Network.Google.Resource.DNS.ManagedZones.Delete
35 -- * Request Lenses
35 -- * Request Lenses
36 , mzdProject
36 , mzdProject
37 , mzdManagedZone
37 , mzdManagedZone
38+ , mzdClientOperationId
38 ) where
39 ) where
39
40
40import Network.Google.DNS.Types
41import Network.Google.DNS.Types
@@ -44,19 +45,22 @@ import Network.Google.Prelude
44-- 'ManagedZonesDelete' request conforms to.
45-- 'ManagedZonesDelete' request conforms to.
45type ManagedZonesDeleteResource =
46type ManagedZonesDeleteResource =
46 "dns" :>
47 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
48 "projects" :>
49 "projects" :>
49 Capture "project" Text :>
50 Capture "project" Text :>
50 "managedZones" :>
51 "managedZones" :>
51 Capture "managedZone" Text :>
52 Capture "managedZone" Text :>
53+ QueryParam "clientOperationId" Text :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
54+ QueryParam "alt" AltJSON :>
55+ Delete '[JSON] ManagedZonesDeleteResponse
53
56
54-- | Delete a previously created ManagedZone.
57-- | Delete a previously created ManagedZone.
55--
58--
56-- /See:/ 'managedZonesDelete' smart constructor.
59-- /See:/ 'managedZonesDelete' smart constructor.
57data ManagedZonesDelete = ManagedZonesDelete'
60data ManagedZonesDelete = ManagedZonesDelete'
58− { _mzdProject :: !Text
61+ { _mzdProject :: !Text
59− , _mzdManagedZone :: !Text
62+ , _mzdManagedZone :: !Text
63+ , _mzdClientOperationId :: !(Maybe Text)
60 } deriving (Eq,Show,Data,Typeable,Generic)
64 } deriving (Eq,Show,Data,Typeable,Generic)
61
65
62-- | Creates a value of 'ManagedZonesDelete' with the minimum fields required to make a request.
66-- | Creates a value of 'ManagedZonesDelete' with the minimum fields required to make a request.
@@ -66,6 +70,8 @@ data ManagedZonesDelete = ManagedZonesDelete'
66-- * 'mzdProject'
70-- * 'mzdProject'
67--
71--
68-- * 'mzdManagedZone'
72-- * 'mzdManagedZone'
73+--
74+-- * 'mzdClientOperationId'
69managedZonesDelete
75managedZonesDelete
70 :: Text -- ^ 'mzdProject'
76 :: Text -- ^ 'mzdProject'
71 -> Text -- ^ 'mzdManagedZone'
77 -> Text -- ^ 'mzdManagedZone'
@@ -74,6 +80,7 @@ managedZonesDelete pMzdProject_ pMzdManagedZone_ =
74 ManagedZonesDelete'
80 ManagedZonesDelete'
75 { _mzdProject = pMzdProject_
81 { _mzdProject = pMzdProject_
76 , _mzdManagedZone = pMzdManagedZone_
82 , _mzdManagedZone = pMzdManagedZone_
83+ , _mzdClientOperationId = Nothing
77 }
84 }
78
85
79-- | Identifies the project addressed by this request.
86-- | Identifies the project addressed by this request.
@@ -88,13 +95,24 @@ mzdManagedZone
88 = lens _mzdManagedZone
95 = lens _mzdManagedZone
89 (\ s a -> s{_mzdManagedZone = a})
96 (\ s a -> s{_mzdManagedZone = a})
90
97
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+
91instance GoogleRequest ManagedZonesDelete where
106instance GoogleRequest ManagedZonesDelete where
92− type Rs ManagedZonesDelete = ()
107+ type Rs ManagedZonesDelete =
108+ ManagedZonesDeleteResponse
93 type Scopes ManagedZonesDelete =
109 type Scopes ManagedZonesDelete =
94 '["https://www.googleapis.com/auth/cloud-platform",
110 '["https://www.googleapis.com/auth/cloud-platform",
95 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
111 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
96 requestClient ManagedZonesDelete'{..}
112 requestClient ManagedZonesDelete'{..}
97− = go _mzdProject _mzdManagedZone (Just AltJSON)
113+ = go _mzdProject _mzdManagedZone
114+ _mzdClientOperationId
115+ (Just AltJSON)
98 dNSService
116 dNSService
99 where go
117 where go
100 = buildClient
118 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/Get.hs+21−5
@@ -35,6 +35,7 @@ module Network.Google.Resource.DNS.ManagedZones.Get
35 -- * Request Lenses
35 -- * Request Lenses
36 , mzgProject
36 , mzgProject
37 , mzgManagedZone
37 , mzgManagedZone
38+ , mzgClientOperationId
38 ) where
39 ) where
39
40
40import Network.Google.DNS.Types
41import Network.Google.DNS.Types
@@ -44,19 +45,21 @@ import Network.Google.Prelude
44-- 'ManagedZonesGet' request conforms to.
45-- 'ManagedZonesGet' request conforms to.
45type ManagedZonesGetResource =
46type ManagedZonesGetResource =
46 "dns" :>
47 "dns" :>
47− "v1" :>
48+ "v2beta1" :>
48 "projects" :>
49 "projects" :>
49 Capture "project" Text :>
50 Capture "project" Text :>
50 "managedZones" :>
51 "managedZones" :>
51 Capture "managedZone" Text :>
52 Capture "managedZone" Text :>
53+ QueryParam "clientOperationId" Text :>
52− QueryParam "alt" AltJSON :> Get '[JSON] ManagedZone
54+ QueryParam "alt" AltJSON :> Get '[JSON] ManagedZone
53
55
54-- | Fetch the representation of an existing ManagedZone.
56-- | Fetch the representation of an existing ManagedZone.
55--
57--
56-- /See:/ 'managedZonesGet' smart constructor.
58-- /See:/ 'managedZonesGet' smart constructor.
57data ManagedZonesGet = ManagedZonesGet'
59data ManagedZonesGet = ManagedZonesGet'
58− { _mzgProject :: !Text
60+ { _mzgProject :: !Text
59− , _mzgManagedZone :: !Text
61+ , _mzgManagedZone :: !Text
62+ , _mzgClientOperationId :: !(Maybe Text)
60 } deriving (Eq,Show,Data,Typeable,Generic)
63 } deriving (Eq,Show,Data,Typeable,Generic)
61
64
62-- | Creates a value of 'ManagedZonesGet' with the minimum fields required to make a request.
65-- | Creates a value of 'ManagedZonesGet' with the minimum fields required to make a request.
@@ -66,6 +69,8 @@ data ManagedZonesGet = ManagedZonesGet'
66-- * 'mzgProject'
69-- * 'mzgProject'
67--
70--
68-- * 'mzgManagedZone'
71-- * 'mzgManagedZone'
72+--
73+-- * 'mzgClientOperationId'
69managedZonesGet
74managedZonesGet
70 :: Text -- ^ 'mzgProject'
75 :: Text -- ^ 'mzgProject'
71 -> Text -- ^ 'mzgManagedZone'
76 -> Text -- ^ 'mzgManagedZone'
@@ -74,6 +79,7 @@ managedZonesGet pMzgProject_ pMzgManagedZone_ =
74 ManagedZonesGet'
79 ManagedZonesGet'
75 { _mzgProject = pMzgProject_
80 { _mzgProject = pMzgProject_
76 , _mzgManagedZone = pMzgManagedZone_
81 , _mzgManagedZone = pMzgManagedZone_
82+ , _mzgClientOperationId = Nothing
77 }
83 }
78
84
79-- | Identifies the project addressed by this request.
85-- | Identifies the project addressed by this request.
@@ -88,6 +94,14 @@ mzgManagedZone
88 = lens _mzgManagedZone
94 = lens _mzgManagedZone
89 (\ s a -> s{_mzgManagedZone = a})
95 (\ s a -> s{_mzgManagedZone = a})
90
96
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+
91instance GoogleRequest ManagedZonesGet where
105instance GoogleRequest ManagedZonesGet where
92 type Rs ManagedZonesGet = ManagedZone
106 type Rs ManagedZonesGet = ManagedZone
93 type Scopes ManagedZonesGet =
107 type Scopes ManagedZonesGet =
@@ -96,7 +110,9 @@ instance GoogleRequest ManagedZonesGet where
96 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
110 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
97 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
111 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
98 requestClient ManagedZonesGet'{..}
112 requestClient ManagedZonesGet'{..}
99− = go _mzgProject _mzgManagedZone (Just AltJSON)
113+ = go _mzgProject _mzgManagedZone
114+ _mzgClientOperationId
115+ (Just AltJSON)
100 dNSService
116 dNSService
101 where go
117 where go
102 = buildClient
118 = buildClient
gogol-dns/gen/Network/Google/Resource/DNS/ManagedZones/List.hs+1−1
@@ -46,7 +46,7 @@ import Network.Google.Prelude
46-- 'ManagedZonesList' request conforms to.
46-- 'ManagedZonesList' request conforms to.
47type ManagedZonesListResource =
47type ManagedZonesListResource =
48 "dns" :>
48 "dns" :>
49− "v1" :>
49+ "v2beta1" :>
50 "projects" :>
50 "projects" :>
51 Capture "project" Text :>
51 Capture "project" Text :>
52 "managedZones" :>
52 "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
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , pgProject
36 , pgProject
37+ , pgClientOperationId
37 ) where
38 ) where
38
39
39import Network.Google.DNS.Types
40import Network.Google.DNS.Types
@@ -43,16 +44,18 @@ import Network.Google.Prelude
43-- 'ProjectsGet' request conforms to.
44-- 'ProjectsGet' request conforms to.
44type ProjectsGetResource =
45type ProjectsGetResource =
45 "dns" :>
46 "dns" :>
46− "v1" :>
47+ "v2beta1" :>
47 "projects" :>
48 "projects" :>
48 Capture "project" Text :>
49 Capture "project" Text :>
50+ QueryParam "clientOperationId" Text :>
49− QueryParam "alt" AltJSON :> Get '[JSON] Project
51+ QueryParam "alt" AltJSON :> Get '[JSON] Project
50
52
51-- | Fetch the representation of an existing Project.
53-- | Fetch the representation of an existing Project.
52--
54--
53-- /See:/ 'projectsGet' smart constructor.
55-- /See:/ 'projectsGet' smart constructor.
54−newtype ProjectsGet = ProjectsGet'
56+data ProjectsGet = ProjectsGet'
55− { _pgProject :: Text
57+ { _pgProject :: !Text
58+ , _pgClientOperationId :: !(Maybe Text)
56 } deriving (Eq,Show,Data,Typeable,Generic)
59 } deriving (Eq,Show,Data,Typeable,Generic)
57
60
58-- | Creates a value of 'ProjectsGet' with the minimum fields required to make a request.
61-- | Creates a value of 'ProjectsGet' with the minimum fields required to make a request.
@@ -60,12 +63,15 @@ newtype ProjectsGet = ProjectsGet'
60-- Use one of the following lenses to modify other fields as desired:
63-- Use one of the following lenses to modify other fields as desired:
61--
64--
62-- * 'pgProject'
65-- * 'pgProject'
66+--
67+-- * 'pgClientOperationId'
63projectsGet
68projectsGet
64 :: Text -- ^ 'pgProject'
69 :: Text -- ^ 'pgProject'
65 -> ProjectsGet
70 -> ProjectsGet
66projectsGet pPgProject_ =
71projectsGet pPgProject_ =
67 ProjectsGet'
72 ProjectsGet'
68 { _pgProject = pPgProject_
73 { _pgProject = pPgProject_
74+ , _pgClientOperationId = Nothing
69 }
75 }
70
76
71-- | Identifies the project addressed by this request.
77-- | Identifies the project addressed by this request.
@@ -73,6 +79,14 @@ pgProject :: Lens' ProjectsGet Text
73pgProject
79pgProject
74 = lens _pgProject (\ s a -> s{_pgProject = a})
80 = lens _pgProject (\ s a -> s{_pgProject = a})
75
81
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+
76instance GoogleRequest ProjectsGet where
90instance GoogleRequest ProjectsGet where
77 type Rs ProjectsGet = Project
91 type Rs ProjectsGet = Project
78 type Scopes ProjectsGet =
92 type Scopes ProjectsGet =
@@ -81,7 +95,8 @@ instance GoogleRequest ProjectsGet where
81 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
95 "https://www.googleapis.com/auth/ndev.clouddns.readonly",
82 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
96 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
83 requestClient ProjectsGet'{..}
97 requestClient ProjectsGet'{..}
84− = go _pgProject (Just AltJSON) dNSService
98+ = go _pgProject _pgClientOperationId (Just AltJSON)
99+ dNSService
85 where go
100 where go
86 = buildClient (Proxy :: Proxy ProjectsGetResource)
101 = buildClient (Proxy :: Proxy ProjectsGetResource)
87 mempty
102 mempty
gogol-dns/gen/Network/Google/Resource/DNS/ResourceRecordSets/List.hs+1−1
@@ -48,7 +48,7 @@ import Network.Google.Prelude
48-- 'ResourceRecordSetsList' request conforms to.
48-- 'ResourceRecordSetsList' request conforms to.
49type ResourceRecordSetsListResource =
49type ResourceRecordSetsListResource =
50 "dns" :>
50 "dns" :>
51− "v1" :>
51+ "v2beta1" :>
52 "projects" :>
52 "projects" :>
53 Capture "project" Text :>
53 Capture "project" Text :>
54 "managedZones" :>
54 "managedZones" :>
gogol-dns/gogol-dns.cabal+7−1
@@ -19,7 +19,7 @@ description:
19 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
21 .
21 .
22− This library is compatible with version @v1@
22+ This library is compatible with version @v2beta1@
23 of the API.
23 of the API.
24
24
25source-repository head
25source-repository head
@@ -38,10 +38,16 @@ library
38 , Network.Google.Resource.DNS.Changes.Create
38 , Network.Google.Resource.DNS.Changes.Create
39 , Network.Google.Resource.DNS.Changes.Get
39 , Network.Google.Resource.DNS.Changes.Get
40 , Network.Google.Resource.DNS.Changes.List
40 , 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
41 , Network.Google.Resource.DNS.ManagedZones.Create
45 , Network.Google.Resource.DNS.ManagedZones.Create
42 , Network.Google.Resource.DNS.ManagedZones.Delete
46 , Network.Google.Resource.DNS.ManagedZones.Delete
43 , Network.Google.Resource.DNS.ManagedZones.Get
47 , Network.Google.Resource.DNS.ManagedZones.Get
44 , Network.Google.Resource.DNS.ManagedZones.List
48 , Network.Google.Resource.DNS.ManagedZones.List
49+ , Network.Google.Resource.DNS.ManagedZones.Patch
50+ , Network.Google.Resource.DNS.ManagedZones.Update
45 , Network.Google.Resource.DNS.Projects.Get
51 , Network.Google.Resource.DNS.Projects.Get
46 , Network.Google.Resource.DNS.ResourceRecordSets.List
52 , Network.Google.Resource.DNS.ResourceRecordSets.List
47
53