summaryrefslogtreecommitdiff
path: root/designate/resources
diff options
context:
space:
mode:
Diffstat (limited to 'designate/resources')
-rw-r--r--designate/resources/schemas/admin/quota.json (renamed from designate/resources/schemas/v2/quota.json)0
-rw-r--r--designate/resources/schemas/v2/blacklist.json63
-rw-r--r--designate/resources/schemas/v2/blacklists.json38
-rw-r--r--designate/resources/schemas/v2/floatingip.json66
-rw-r--r--designate/resources/schemas/v2/floatingips.json38
-rw-r--r--designate/resources/schemas/v2/limits.json29
-rw-r--r--designate/resources/schemas/v2/pool.json107
-rw-r--r--designate/resources/schemas/v2/pools.json39
-rw-r--r--designate/resources/schemas/v2/rdata/a.json14
-rw-r--r--designate/resources/schemas/v2/rdata/aaaa.json14
-rw-r--r--designate/resources/schemas/v2/rdata/cname.json14
-rw-r--r--designate/resources/schemas/v2/rdata/mx.json17
-rw-r--r--designate/resources/schemas/v2/rdata/ns.json14
-rw-r--r--designate/resources/schemas/v2/rdata/ptr.json14
-rw-r--r--designate/resources/schemas/v2/rdata/soa.json43
-rw-r--r--designate/resources/schemas/v2/rdata/spf.json13
-rw-r--r--designate/resources/schemas/v2/rdata/srv.json29
-rw-r--r--designate/resources/schemas/v2/rdata/sshfp.json24
-rw-r--r--designate/resources/schemas/v2/rdata/txt.json13
-rw-r--r--designate/resources/schemas/v2/recordset.json103
-rw-r--r--designate/resources/schemas/v2/recordsets.json46
-rw-r--r--designate/resources/schemas/v2/tld.json63
-rw-r--r--designate/resources/schemas/v2/tlds.json38
-rw-r--r--designate/resources/schemas/v2/transfer_accept.json67
-rw-r--r--designate/resources/schemas/v2/transfer_accepts.json38
-rw-r--r--designate/resources/schemas/v2/transfer_request.json90
-rw-r--r--designate/resources/schemas/v2/transfer_requests.json38
-rw-r--r--designate/resources/schemas/v2/tsigkey.json76
-rw-r--r--designate/resources/schemas/v2/tsigkeys.json38
-rw-r--r--designate/resources/schemas/v2/zone.json167
-rw-r--r--designate/resources/schemas/v2/zones.json46
31 files changed, 0 insertions, 1399 deletions
diff --git a/designate/resources/schemas/v2/quota.json b/designate/resources/schemas/admin/quota.json
index 1181ccee..1181ccee 100644
--- a/designate/resources/schemas/v2/quota.json
+++ b/designate/resources/schemas/admin/quota.json
diff --git a/designate/resources/schemas/v2/blacklist.json b/designate/resources/schemas/v2/blacklist.json
deleted file mode 100644
index 0d1380b6..00000000
--- a/designate/resources/schemas/v2/blacklist.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "blacklist",
-
- "title": "blacklist",
- "description": "Blacklisted Zone",
- "additionalProperties": false,
-
- "required": ["blacklist"],
-
- "properties": {
- "blacklist": {
- "type": "object",
- "additionalProperties": false,
- "required": ["pattern"],
-
- "properties":{
- "id": {
- "type": "string",
- "description": "Blacklisted Zone Identifier",
- "format": "uuid",
- "readOnly": true
- },
- "pattern": {
- "type": "string",
- "description": "Regex for blacklisted zone name",
- "format": "regex",
- "maxLength": 255,
- "required": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of blacklisted zone creation",
- "format": "date-time",
- "readOnly": true
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the blacklisted zone",
- "maxLength": 160
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last blacklisted zone update",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/blacklists.json b/designate/resources/schemas/v2/blacklists.json
deleted file mode 100644
index b1612972..00000000
--- a/designate/resources/schemas/v2/blacklists.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "blacklist",
-
- "title": "blacklist",
- "description": "Blacklisted Zone",
- "additionalProperties": false,
-
- "required": ["blacklists"],
-
- "properties": {
- "blacklists": {
- "type": "array",
- "description": "Blacklist",
- "items": {"$ref": "blacklist#/properties/blacklist"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/floatingip.json b/designate/resources/schemas/v2/floatingip.json
deleted file mode 100644
index 92978d5c..00000000
--- a/designate/resources/schemas/v2/floatingip.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "floatingip",
-
- "title": "floatingip",
- "description": "Floating IP PTR",
- "additionalProperties": false,
-
- "required": ["floatingip"],
-
- "properties": {
- "floatingip": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Floating IP PTR identifier",
- "pattern": "^[A-Za-z0-9\\.\\-_]{1,100}:([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
- "readOnly": true
- },
- "ptrdname": {
- "type": ["string", "null"],
- "format": "hostname",
- "required:": true
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the PTR",
- "maxLength": 160
- },
- "ttl": {
- "type": "integer",
- "description": "Default time to live",
- "minimum": 0,
- "maximum": 2147483647
- },
- "status": {
- "type": ["null", "string"],
- "description": "Floating IP PTR Status",
- "enum": ["ACTIVE", "PENDING", "ERROR"],
- "readOnly": true
- },
- "action": {
- "type": ["null", "string"],
- "description": "Floating IP PTR Action",
- "enum": ["CREATE", "DELETE", "UPDATE", "NONE"],
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/floatingips.json b/designate/resources/schemas/v2/floatingips.json
deleted file mode 100644
index d9286b1c..00000000
--- a/designate/resources/schemas/v2/floatingips.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "floatingips",
-
- "title": "floatingips",
- "description": "Floating IP PTRs",
- "additionalProperties": false,
-
- "required": ["floatingips"],
-
- "properties": {
- "recordsets": {
- "type": "array",
- "description": "Floating IP",
- "items": {"$ref": "floatingips#/properties/flaotingip"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/limits.json b/designate/resources/schemas/v2/limits.json
deleted file mode 100644
index 45154ab1..00000000
--- a/designate/resources/schemas/v2/limits.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "limits",
-
- "title": "limits",
- "description": "Limits",
- "additionalProperties": false,
-
- "properties": {
- "limits": {
- "type": "object",
- "description": "Limits",
- "properties": {
- "absolute": {
- "type": "object",
- "properties": {
- "maxZones": {
- "type": "integer"
- },
- "maxZoneRecords": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/pool.json b/designate/resources/schemas/v2/pool.json
deleted file mode 100644
index 74a45aa2..00000000
--- a/designate/resources/schemas/v2/pool.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "pool",
-
- "title": "pool",
- "description": "Pool",
- "additionalProperties": false,
-
- "required": ["pool"],
-
- "properties": {
- "pool": {
- "type": "object",
- "additionalProperties": false,
- "required": ["name", "attributes", "ns_records"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Pool identifier",
- "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
- "readOnly": true
- },
- "project_id": {
- "type": ["string", "null"],
- "description": "Project identifier",
- "maxLength": 36,
- "immutable": true
- },
- "name": {
- "type": "string",
- "description": "Pool name",
- "maxLength": 50,
- "immutable": true
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the pool",
- "maxLength": 160
- },
- "attributes": {
- "type": "object",
- "description": "Pool attributes as name value pairs",
- "additionalProperties": true,
- "properties": {
- "scope": {
- "type": "string",
- "enum": ["public", "private"]
- }
- }
- },
- "ns_records": {
- "type": "array",
- "description": "List of NS Records for Zones in this pool",
- "minItems": 1,
- "items": {
- "type": "object",
- "additionalProperties": false,
- "required": ["priority", "hostname"],
- "properties": {
- "priority": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1000
- },
- "hostname": {
- "type": "string",
- "format": "hostname",
- "maxLength": 255
- }
- }
- }
- },
- "version": {
- "type": "integer",
- "description": "Pool version number",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of pool creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last pool modification",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
-
diff --git a/designate/resources/schemas/v2/pools.json b/designate/resources/schemas/v2/pools.json
deleted file mode 100644
index 309f0296..00000000
--- a/designate/resources/schemas/v2/pools.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "pools",
-
- "title": "pools",
- "description": "Pools",
- "additionalProperties": false,
-
- "required": ["pools"],
-
- "properties": {
- "pools": {
- "type": "array",
- "description": "Pools",
- "items": {"$ref": "pool#/properties/pool"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
-
diff --git a/designate/resources/schemas/v2/rdata/a.json b/designate/resources/schemas/v2/rdata/a.json
deleted file mode 100644
index d26c2841..00000000
--- a/designate/resources/schemas/v2/rdata/a.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["address"],
-
- "properties": {
- "address": {
- "type": "string",
- "format": "ipv4"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/aaaa.json b/designate/resources/schemas/v2/rdata/aaaa.json
deleted file mode 100644
index eb141353..00000000
--- a/designate/resources/schemas/v2/rdata/aaaa.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["address"],
-
- "properties": {
- "address": {
- "type": "string",
- "format": "ipv6"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/cname.json b/designate/resources/schemas/v2/rdata/cname.json
deleted file mode 100644
index 1f1b492b..00000000
--- a/designate/resources/schemas/v2/rdata/cname.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["cname"],
-
- "properties": {
- "cname": {
- "type": "string",
- "format": "hostname"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/mx.json b/designate/resources/schemas/v2/rdata/mx.json
deleted file mode 100644
index 6f3f307e..00000000
--- a/designate/resources/schemas/v2/rdata/mx.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["preference", "exchange"],
-
- "properties": {
- "preference": {
- "type": "integer"
- },
- "exchange": {
- "type": "string",
- "format": "hostname"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/ns.json b/designate/resources/schemas/v2/rdata/ns.json
deleted file mode 100644
index af60ae81..00000000
--- a/designate/resources/schemas/v2/rdata/ns.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["nsdname"],
-
- "properties": {
- "nsdname": {
- "type": "string",
- "format": "hostname"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/ptr.json b/designate/resources/schemas/v2/rdata/ptr.json
deleted file mode 100644
index 3d3b3b41..00000000
--- a/designate/resources/schemas/v2/rdata/ptr.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["ptrdname"],
-
- "properties": {
- "ptrdname": {
- "type": "string",
- "format": "hostname"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/soa.json b/designate/resources/schemas/v2/rdata/soa.json
deleted file mode 100644
index 255e085b..00000000
--- a/designate/resources/schemas/v2/rdata/soa.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["mname", "rname", "serial", "refresh", "retry", "expire", "minimum"],
-
- "properties": {
- "mname": {
- "type": "string",
- "format": "hostname"
- },
- "rname": {
- "type": "string",
- "format": "hostname"
- },
- "serial": {
- "type": "integer",
- "minimum": 0,
- "maximum": 214748364
- },
- "refresh": {
- "type": "integer",
- "minimum": 0,
- "maximum": 214748364
- },
- "retry": {
- "type": "integer",
- "minimum": 0,
- "maximum": 214748364
- },
- "expire": {
- "type": "integer",
- "minimum": 0,
- "maximum": 214748364
- },
- "minimum": {
- "type": "integer",
- "minimum": 0,
- "maximum": 214748364
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/spf.json b/designate/resources/schemas/v2/rdata/spf.json
deleted file mode 100644
index dc1b07c1..00000000
--- a/designate/resources/schemas/v2/rdata/spf.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["text"],
-
- "properties": {
- "text": {
- "type": "string"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/srv.json b/designate/resources/schemas/v2/rdata/srv.json
deleted file mode 100644
index 2114e004..00000000
--- a/designate/resources/schemas/v2/rdata/srv.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["priority", "weight", "port", "target"],
-
- "properties": {
- "priority": {
- "type": "integer",
- "minimum": 0,
- "maximum": 65535
- },
- "weight": {
- "type": "integer",
- "minimum": 0,
- "maximum": 65535
- },
- "port": {
- "type": "integer",
- "minimum": 0,
- "maximum": 65535
- },
- "target": {
- "type": "string",
- "format": "hostname"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/sshfp.json b/designate/resources/schemas/v2/rdata/sshfp.json
deleted file mode 100644
index 04386692..00000000
--- a/designate/resources/schemas/v2/rdata/sshfp.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["algorithm", "type", "fingerprint"],
-
- "properties": {
- "algorithm": {
- "type": "integer",
- "minimum": 1,
- "maximum": 2
- },
- "type": {
- "type": "integer",
- "minimum": 1,
- "maximum": 1
- },
- "fingerprint": {
- "type": "string",
- "pattern": "^[0-9A-Fa-f]{40}$"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/rdata/txt.json b/designate/resources/schemas/v2/rdata/txt.json
deleted file mode 100644
index dc1b07c1..00000000
--- a/designate/resources/schemas/v2/rdata/txt.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "additionalProperties": false,
-
- "required": ["text"],
-
- "properties": {
- "text": {
- "type": "string"
- }
- }
-}
diff --git a/designate/resources/schemas/v2/recordset.json b/designate/resources/schemas/v2/recordset.json
deleted file mode 100644
index b6aba18f..00000000
--- a/designate/resources/schemas/v2/recordset.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "recordset",
-
- "title": "recordset",
- "description": "RecordSet",
- "additionalProperties": false,
-
- "required": ["recordset"],
-
- "properties": {
- "recordset": {
- "type": "object",
- "additionalProperties": false,
- "required": ["name", "type"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "RecordSet identifier",
- "format": "uuid",
- "readOnly": true
- },
- "zone_id": {
- "type": "string",
- "description": "Zone identifier",
- "format": "uuid",
- "immutable": true
- },
- "name": {
- "type": "string",
- "description": "RecordSet name",
- "format": "hostname",
- "maxLength": 255,
- "immutable": true
- },
- "type": {
- "type": "string",
- "description": "RecordSet type (TODO: Make types extensible)",
- "enum": ["A", "AAAA", "CNAME", "MX", "SRV", "TXT", "SPF", "NS", "PTR", "SSHFP", "SOA"]
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the RecordSet",
- "maxLength": 160
- },
- "ttl": {
- "type": ["integer", "null"],
- "description": "Default time to live",
- "minimum": 0,
- "maximum": 2147483647,
- "default": null
- },
- "status": {
- "type": "string",
- "description": "Recordset Status",
- "enum": ["ACTIVE", "PENDING", "ERROR"],
- "readOnly": true
- },
- "action": {
- "type": "string",
- "description": "Recordset Action",
- "enum": ["CREATE", "DELETE", "UPDATE", "NONE"],
- "readOnly": true
- },
- "records": {
- "type": ["array", "null"],
- "description": "Records in the RecordSet",
- "default": null
- },
- "version": {
- "type": "integer",
- "description": "RecordSet version number",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of RecordSet creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last recordset modification",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/recordsets.json b/designate/resources/schemas/v2/recordsets.json
deleted file mode 100644
index 7b237d1c..00000000
--- a/designate/resources/schemas/v2/recordsets.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "recordsets",
-
- "title": "recordsets",
- "description": "RecordSets",
- "additionalProperties": false,
-
- "required": ["recordsets"],
-
- "properties": {
- "recordsets": {
- "type": "array",
- "description": "RecordSets",
- "items": {"$ref": "recordset#/properties/recordset"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- },
- "metadata": {
- "total_count": {
- "type": "integer",
- "description": "Total number of entries",
- "minimum": 0,
- "maximum": 2147483647
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/tld.json b/designate/resources/schemas/v2/tld.json
deleted file mode 100644
index 48500236..00000000
--- a/designate/resources/schemas/v2/tld.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "tld",
-
- "title": "tld",
- "description": "Tld",
- "additionalProperties": false,
-
- "required": ["tld"],
-
- "properties": {
- "tld": {
- "type": "object",
- "additionalProperties": false,
- "required": ["name"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Tld identifier",
- "format": "uuid",
- "readOnly": true
- },
- "name": {
- "type": "string",
- "description": "Tld name",
- "format": "tldname",
- "maxLength": 255,
- "immutable": true
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the tld",
- "maxLength": 160
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of tld creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last tld modification",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/tlds.json b/designate/resources/schemas/v2/tlds.json
deleted file mode 100644
index ff8734ef..00000000
--- a/designate/resources/schemas/v2/tlds.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "tlds",
-
- "title": "tlds",
- "description": "Tlds",
- "additionalProperties": false,
-
- "required": ["tlds"],
-
- "properties": {
- "tlds": {
- "type": "array",
- "description": "Tlds",
- "items": {"$ref": "tld#/properties/tld"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/transfer_accept.json b/designate/resources/schemas/v2/transfer_accept.json
deleted file mode 100644
index 1dfd8b40..00000000
--- a/designate/resources/schemas/v2/transfer_accept.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zone_transfer_accept",
-
- "title": "zone_transfer_accept",
- "description": "Zone Transfer Accept",
- "additionalProperties": false,
-
- "required": ["transfer_accept"],
-
- "properties": {
- "transfer_accept": {
- "type": "object",
- "additionalProperties": false,
- "required": ["zone_transfer_request_id", "key"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Zone Transfer Request identifier",
- "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
- "readOnly": true
- },
- "zone_transfer_request_id": {
- "type": "string",
- "description": "Request identifier",
- "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$"
- },
- "key": {
- "type": "string",
- "description": "Password used to complete the transfer",
- "maxLength": 160
- },
- "status": {
- "type": "string",
- "description": "Zone Status",
- "enum": ["ACTIVE", "PENDING", "DELETED", "ERROR", "COMPLETE"],
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of Request creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last Request modification",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/transfer_accepts.json b/designate/resources/schemas/v2/transfer_accepts.json
deleted file mode 100644
index e60a39a9..00000000
--- a/designate/resources/schemas/v2/transfer_accepts.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zone_transfer_accept",
-
- "title": "zone_transfer_accept",
- "description": "Zone Transfer Accept",
- "additionalProperties": false,
-
- "required": ["transfer_accepts"],
-
- "properties": {
- "transfer_accepts": {
- "type": "array",
- "description": "Zone Transfer Requests",
- "items": {"$ref": "transfer_accept#/properties/transfer_accept"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/transfer_request.json b/designate/resources/schemas/v2/transfer_request.json
deleted file mode 100644
index e6b09240..00000000
--- a/designate/resources/schemas/v2/transfer_request.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zone_transfer_request",
-
- "title": "zone_transfer_request",
- "description": "Zone Transfer Request",
- "additionalProperties": false,
-
- "required": ["transfer_request"],
-
- "properties": {
- "transfer_request": {
- "type": "object",
- "additionalProperties": false,
- "required": ["zone_id"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Zone Transfer Request identifier",
- "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
- "readOnly": true
- },
- "zone_id": {
- "type": "string",
- "description": "Zone identifier",
- "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
- "readOnly": true
- },
- "zone_name": {
- "type": ["string","null"],
- "description": "Zone Name for the Request",
- "maxLength": 255,
- "readOnly": true
- },
- "target_project_id": {
- "type": ["string", "null"],
- "description": "Tenant identifier",
- "maxLength": 160
- },
- "project_id": {
- "type": ["string", "null"],
- "description": "Project identifier",
- "maxLength": 36,
- "immutable": true
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the Request",
- "maxLength": 160
- },
- "key": {
- "type": "string",
- "description": "Password used to complete the transfer",
- "maxLength": 160
- },
- "status": {
- "type": "string",
- "description": "Zone Status",
- "enum": ["ACTIVE", "PENDING", "DELETED", "ERROR", "COMPLETE"],
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of Request creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last Request modification",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/transfer_requests.json b/designate/resources/schemas/v2/transfer_requests.json
deleted file mode 100644
index f28f23d7..00000000
--- a/designate/resources/schemas/v2/transfer_requests.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zone_transfer_request",
-
- "title": "zone_transfer_request",
- "description": "Zone Transfer Request",
- "additionalProperties": false,
-
- "required": ["transfer_requests"],
-
- "properties": {
- "transfer_request": {
- "type": "array",
- "description": "Zone Transfer Requests",
- "items": {"$ref": "transfer_request#/properties/transfer_request"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/tsigkey.json b/designate/resources/schemas/v2/tsigkey.json
deleted file mode 100644
index 8653ad14..00000000
--- a/designate/resources/schemas/v2/tsigkey.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "tsigkey",
-
- "title": "tsigkey",
- "description": "TSIG Key",
- "additionalProperties": false,
-
- "required": ["tsigkey"],
-
- "properties": {
- "tsigkey": {
- "type": "object",
- "additionalProperties": false,
- "required": ["name", "algorithm", "secret", "scope", "resource_id"],
-
- "properties":{
- "id": {
- "type": "string",
- "description": "TSIG Key Identifier",
- "format": "uuid",
- "readOnly": true
- },
- "name": {
- "type": "string",
- "description": "TSIG Key Name",
- "maxLength": 255
- },
- "algorithm": {
- "type": "string",
- "description": "TSIG Algorithm",
- "enum": ["hmac-md5", "hmac-sha1", "hmac-sha224", "hmac-sha256", "hmac-sha384", "hmac-sha512"]
- },
- "secret": {
- "type": "string",
- "description": "TSIG Secret",
- "maxLength": 255
- },
- "scope": {
- "type": "string",
- "description": "TSIG Key Scope",
- "enum": ["POOL", "ZONE"]
- },
- "resource_id": {
- "type": "string",
- "description": "TSIG Key Resource ID",
- "format": "uuid"
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of tsigkeyed zone creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last tsigkeyed zone update",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/tsigkeys.json b/designate/resources/schemas/v2/tsigkeys.json
deleted file mode 100644
index 7315613b..00000000
--- a/designate/resources/schemas/v2/tsigkeys.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "tsigkey",
-
- "title": "tsigkey",
- "description": "TSIG Key",
- "additionalProperties": false,
-
- "required": ["tsigkeys"],
-
- "properties": {
- "tsigkeys": {
- "type": "array",
- "description": "TSIG Key",
- "items": {"$ref": "tsigkey#/properties/tsigkey"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- }
- }
-}
diff --git a/designate/resources/schemas/v2/zone.json b/designate/resources/schemas/v2/zone.json
deleted file mode 100644
index bf7ad304..00000000
--- a/designate/resources/schemas/v2/zone.json
+++ /dev/null
@@ -1,167 +0,0 @@
-
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zone",
-
- "title": "zone",
- "description": "Zone",
- "additionalProperties": false,
-
- "required": ["zone"],
-
- "properties": {
- "zone": {
- "type": "object",
- "additionalProperties": false,
- "required": ["name"],
-
- "properties": {
- "id": {
- "type": "string",
- "description": "Zone identifier",
- "format": "uuid",
- "readOnly": true
- },
- "pool_id": {
- "type": "string",
- "description": "Pool identifier",
- "format": "uuid",
- "immutable": true
- },
- "project_id": {
- "type": ["string", "null"],
- "description": "Project identifier",
- "maxLength": 36,
- "immutable": true
- },
- "name": {
- "type": "string",
- "description": "Zone name",
- "format": "domainname",
- "maxLength": 255,
- "immutable": true
- },
- "type": {
- "type": "string",
- "description": "Zone Type",
- "enum": ["PRIMARY", "SECONDARY"]
- },
- "masters": {
- "type": ["array", "null"],
- "items": {
- "type": "string"
- },
- "description": "Masters for this Zone",
- "uniqueItems": true
- },
- "email": {
- "type": "string",
- "description": "Hostmaster email address",
- "format": "email",
- "maxLength": 255
- },
- "description": {
- "type": ["string", "null"],
- "description": "Description for the zone",
- "maxLength": 160
- },
- "ttl": {
- "type": "integer",
- "description": "Default time to live",
- "minimum": 0,
- "maximum": 2147483647
- },
- "status": {
- "type": "string",
- "description": "Zone Status",
- "enum": ["ACTIVE", "PENDING", "ERROR"],
- "readOnly": true
- },
- "action": {
- "type": "string",
- "description": "Zone Action",
- "enum": ["CREATE", "DELETE", "UPDATE", "NONE"],
- "readOnly": true
- },
- "serial": {
- "type": "integer",
- "description": "Zone serial number",
- "minimum": 0,
- "maximum": 4294967295,
- "readOnly": true
- },
- "version": {
- "type": "integer",
- "description": "Zone version number",
- "readOnly": true
- },
- "created_at": {
- "type": "string",
- "description": "Date and time of Zone creation",
- "format": "date-time",
- "readOnly": true
- },
- "updated_at": {
- "type": ["string", "null"],
- "description": "Date and time of last zone modification",
- "format": "date-time",
- "readOnly": true
- },
- "transferred_at": {
- "type": ["string", "null"],
- "description": "Date and time of last successful transfer",
- "format": "date-time",
- "readOnly": true
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- }
- }
- }
- },
- "oneOf": [
- {
- "description": "Primary zone",
- "required": ["email"],
- "properties": {
- "type": {
- "type": "string",
- "enum": ["PRIMARY"]
- },
- "masters": {
- "type": ["null", "array"],
- "maxItems": 0
- }
- }
- },
- {
- "description": "Secondary zone",
- "required": ["type", "masters"],
- "properties": {
- "type": {
- "type": "string",
- "enum": ["SECONDARY"]
- },
- "masters": {
- "type": "array",
- "items": {
- "type": "string",
- "format": "ipandport"
- },
- "description": "Masters for this Zone",
- "uniqueItems": true,
- "minItems": 1
- }
- }
- }
- ]
- }
- }
-} \ No newline at end of file
diff --git a/designate/resources/schemas/v2/zones.json b/designate/resources/schemas/v2/zones.json
deleted file mode 100644
index 0ddc6714..00000000
--- a/designate/resources/schemas/v2/zones.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-04/hyper-schema",
-
- "id": "zones",
-
- "title": "zones",
- "description": "Zones",
- "additionalProperties": false,
-
- "required": ["zones"],
-
- "properties": {
- "zones": {
- "type": "array",
- "description": "Zones",
- "items": {"$ref": "zone#/properties/zone"}
- },
- "links": {
- "type": "object",
- "additionalProperties": false,
-
- "properties": {
- "self": {
- "type": "string",
- "format": "url"
- },
- "next": {
- "type": ["string", "null"],
- "format": "url"
- },
- "previous": {
- "type": ["string", "null"],
- "format": "url"
- }
- }
- },
- "metadata": {
- "total_count": {
- "type": "integer",
- "description": "Total number of entries",
- "minimum": 0,
- "maximum": 2147483647
- }
- }
- }
-}