Browse Source

generated code; get/del domain

develop
Robin Thoni 8 years ago
parent
commit
c6189ca3eb
51 changed files with 2185 additions and 3 deletions
  1. 14
    0
      app/Http/Business/DnsCommentsBusiness.php
  2. 14
    0
      app/Http/Business/DnsCryptokeysBusiness.php
  3. 14
    0
      app/Http/Business/DnsDomainmetadataBusiness.php
  4. 31
    0
      app/Http/Business/DnsDomainsBusiness.php
  5. 14
    0
      app/Http/Business/DnsRecordsBusiness.php
  6. 14
    0
      app/Http/Business/DnsSupermastersBusiness.php
  7. 14
    0
      app/Http/Business/DnsTsigkeysBusiness.php
  8. 14
    0
      app/Http/Controller/DnsCommentsController.php
  9. 14
    0
      app/Http/Controller/DnsCryptokeysController.php
  10. 14
    0
      app/Http/Controller/DnsDomainmetadataController.php
  11. 43
    0
      app/Http/Controller/DnsDomainsController.php
  12. 14
    0
      app/Http/Controller/DnsRecordsController.php
  13. 14
    0
      app/Http/Controller/DnsSupermastersController.php
  14. 14
    0
      app/Http/Controller/DnsTsigkeysController.php
  15. 157
    0
      app/Http/DBO/DnsCommentsDbo.php
  16. 50
    0
      app/Http/DBO/DnsCommentsDboArray.php
  17. 121
    0
      app/Http/DBO/DnsCryptokeysDbo.php
  18. 50
    0
      app/Http/DBO/DnsCryptokeysDboArray.php
  19. 103
    0
      app/Http/DBO/DnsDomainmetadataDbo.php
  20. 50
    0
      app/Http/DBO/DnsDomainmetadataDboArray.php
  21. 157
    0
      app/Http/DBO/DnsDomainsDbo.php
  22. 50
    0
      app/Http/DBO/DnsDomainsDboArray.php
  23. 229
    0
      app/Http/DBO/DnsRecordsDbo.php
  24. 50
    0
      app/Http/DBO/DnsRecordsDboArray.php
  25. 85
    0
      app/Http/DBO/DnsSupermastersDbo.php
  26. 50
    0
      app/Http/DBO/DnsSupermastersDboArray.php
  27. 103
    0
      app/Http/DBO/DnsTsigkeysDbo.php
  28. 50
    0
      app/Http/DBO/DnsTsigkeysDboArray.php
  29. 14
    0
      app/Http/DataAccess/DnsCommentsDataAccess.php
  30. 14
    0
      app/Http/DataAccess/DnsCryptokeysDataAccess.php
  31. 14
    0
      app/Http/DataAccess/DnsDomainmetadataDataAccess.php
  32. 14
    0
      app/Http/DataAccess/DnsDomainsDataAccess.php
  33. 14
    0
      app/Http/DataAccess/DnsRecordsDataAccess.php
  34. 14
    0
      app/Http/DataAccess/DnsSupermastersDataAccess.php
  35. 14
    0
      app/Http/DataAccess/DnsTsigkeysDataAccess.php
  36. 9
    0
      app/Http/DataAccess/Models/DnsComments.php
  37. 59
    0
      app/Http/DataAccess/Models/DnsCommentsModel.php
  38. 9
    0
      app/Http/DataAccess/Models/DnsCryptokeys.php
  39. 55
    0
      app/Http/DataAccess/Models/DnsCryptokeysModel.php
  40. 9
    0
      app/Http/DataAccess/Models/DnsDomainmetadata.php
  41. 53
    0
      app/Http/DataAccess/Models/DnsDomainmetadataModel.php
  42. 9
    0
      app/Http/DataAccess/Models/DnsDomains.php
  43. 59
    0
      app/Http/DataAccess/Models/DnsDomainsModel.php
  44. 9
    0
      app/Http/DataAccess/Models/DnsRecords.php
  45. 67
    0
      app/Http/DataAccess/Models/DnsRecordsModel.php
  46. 9
    0
      app/Http/DataAccess/Models/DnsSupermasters.php
  47. 51
    0
      app/Http/DataAccess/Models/DnsSupermastersModel.php
  48. 9
    0
      app/Http/DataAccess/Models/DnsTsigkeys.php
  49. 53
    0
      app/Http/DataAccess/Models/DnsTsigkeysModel.php
  50. 7
    3
      app/Http/routes.php
  51. 73
    0
      confs/pdns.gpgsql.conf

+ 14
- 0
app/Http/Business/DnsCommentsBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsCommentsDataAccess;
7
+use App\Http\DBO\DnsCommentsDbo;
8
+
9
+class DnsCommentsBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsCommentsDataAccess();
13
+    }
14
+}

+ 14
- 0
app/Http/Business/DnsCryptokeysBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsCryptokeysDataAccess;
7
+use App\Http\DBO\DnsCryptokeysDbo;
8
+
9
+class DnsCryptokeysBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsCryptokeysDataAccess();
13
+    }
14
+}

+ 14
- 0
app/Http/Business/DnsDomainmetadataBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsDomainmetadataDataAccess;
7
+use App\Http\DBO\DnsDomainmetadataDbo;
8
+
9
+class DnsDomainmetadataBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsDomainmetadataDataAccess();
13
+    }
14
+}

+ 31
- 0
app/Http/Business/DnsDomainsBusiness.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsDomainsDataAccess;
7
+use App\Http\DBO\DnsDomainsDbo;
8
+
9
+class DnsDomainsBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsDomainsDataAccess();
13
+    }
14
+
15
+    public static function checkDomain(DnsDomainsDbo $domain)
16
+    {
17
+        if (is_null($domain->getName()) || !is_string($domain->getName())) {
18
+            self::badInput("Name must be an string");
19
+        }
20
+    }
21
+
22
+    public static function add(DnsDomainsDbo $domain)
23
+    {
24
+        return 0;
25
+    }
26
+
27
+    public static function edit(DnsDomainsDbo $domain)
28
+    {
29
+        return 0;
30
+    }
31
+}

+ 14
- 0
app/Http/Business/DnsRecordsBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsRecordsDataAccess;
7
+use App\Http\DBO\DnsRecordsDbo;
8
+
9
+class DnsRecordsBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsRecordsDataAccess();
13
+    }
14
+}

+ 14
- 0
app/Http/Business/DnsSupermastersBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsSupermastersDataAccess;
7
+use App\Http\DBO\DnsSupermastersDbo;
8
+
9
+class DnsSupermastersBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsSupermastersDataAccess();
13
+    }
14
+}

+ 14
- 0
app/Http/Business/DnsTsigkeysBusiness.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use App\Http\DataAccess\DnsTsigkeysDataAccess;
7
+use App\Http\DBO\DnsTsigkeysDbo;
8
+
9
+class DnsTsigkeysBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new DnsTsigkeysDataAccess();
13
+    }
14
+}

+ 14
- 0
app/Http/Controller/DnsCommentsController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsCommentsBusiness;
7
+use App\Http\DBO\DnsCommentsDbo;
8
+
9
+class DnsCommentsController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsCommentsBusiness();
13
+    }
14
+}

+ 14
- 0
app/Http/Controller/DnsCryptokeysController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsCryptokeysBusiness;
7
+use App\Http\DBO\DnsCryptokeysDbo;
8
+
9
+class DnsCryptokeysController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsCryptokeysBusiness();
13
+    }
14
+}

+ 14
- 0
app/Http/Controller/DnsDomainmetadataController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsDomainmetadataBusiness;
7
+use App\Http\DBO\DnsDomainmetadataDbo;
8
+
9
+class DnsDomainmetadataController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsDomainmetadataBusiness();
13
+    }
14
+}

+ 43
- 0
app/Http/Controller/DnsDomainsController.php View File

@@ -0,0 +1,43 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\Dbo\LuIntDbo;
6
+use Luticate\Utils\LuController;
7
+use App\Http\Business\DnsDomainsBusiness;
8
+use App\Http\DBO\DnsDomainsDbo;
9
+
10
+class DnsDomainsController extends LuController {
11
+    protected function getBusiness()
12
+    {
13
+        return new DnsDomainsBusiness();
14
+    }
15
+
16
+    /**
17
+     * Get all dns domains
18
+     * @param int $page The page number, 0 based
19
+     * @param int $perPage Items per page
20
+     * @param string $query The filter query
21
+     * @return \App\Http\DBO\DnsDomainsDbo[]
22
+     */
23
+    public function getAll($page = 0, $perPage = 20000000, $query = "")
24
+    {
25
+        return DnsDomainsBusiness::getAll($page, $perPage, $query);
26
+    }
27
+
28
+    public function add(DnsDomainsDbo $domain)
29
+    {
30
+        return DnsDomainsBusiness::add($domain);
31
+    }
32
+
33
+    public function del(LuIntDbo $domain_id)
34
+    {
35
+        return DnsDomainsBusiness::deleteById($domain_id->getInt());
36
+    }
37
+
38
+    public function edit(LuIntDbo $domain_id, DnsDomainsDbo $domain)
39
+    {
40
+        $domain->setId($domain_id->getInt());
41
+        return DnsDomainsBusiness::edit($domain);
42
+    }
43
+}

+ 14
- 0
app/Http/Controller/DnsRecordsController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsRecordsBusiness;
7
+use App\Http\DBO\DnsRecordsDbo;
8
+
9
+class DnsRecordsController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsRecordsBusiness();
13
+    }
14
+}

+ 14
- 0
app/Http/Controller/DnsSupermastersController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsSupermastersBusiness;
7
+use App\Http\DBO\DnsSupermastersDbo;
8
+
9
+class DnsSupermastersController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsSupermastersBusiness();
13
+    }
14
+}

+ 14
- 0
app/Http/Controller/DnsTsigkeysController.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use App\Http\Business\DnsTsigkeysBusiness;
7
+use App\Http\DBO\DnsTsigkeysDbo;
8
+
9
+class DnsTsigkeysController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new DnsTsigkeysBusiness();
13
+    }
14
+}

+ 157
- 0
app/Http/DBO/DnsCommentsDbo.php View File

@@ -0,0 +1,157 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsCommentsDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "DomainId" => $this->_domainId,
19
+            "Name" => $this->_name,
20
+            "Type" => $this->_type,
21
+            "ModifiedAt" => $this->_modifiedAt,
22
+            "Account" => $this->_account,
23
+            "Comment" => $this->_comment
24
+        );
25
+    }
26
+
27
+    public static function jsonDeserialize($json)
28
+    {
29
+        $dbo = new DnsCommentsDbo();
30
+        if (isset($json["Id"])) {
31
+            $dbo->setId($json["Id"]);
32
+        }
33
+        if (isset($json["DomainId"])) {
34
+            $dbo->setDomainId($json["DomainId"]);
35
+        }
36
+        if (isset($json["Name"])) {
37
+            $dbo->setName($json["Name"]);
38
+        }
39
+        if (isset($json["Type"])) {
40
+            $dbo->setType($json["Type"]);
41
+        }
42
+        if (isset($json["ModifiedAt"])) {
43
+            $dbo->setModifiedAt($json["ModifiedAt"]);
44
+        }
45
+        if (isset($json["Account"])) {
46
+            $dbo->setAccount($json["Account"]);
47
+        }
48
+        if (isset($json["Comment"])) {
49
+            $dbo->setComment($json["Comment"]);
50
+        }
51
+        return $dbo;
52
+    }
53
+
54
+    public static function generateSample()
55
+    {
56
+        $dbo = new DnsCommentsDbo();
57
+        $dbo->setId(42);
58
+        $dbo->setDomainId(42);
59
+        $dbo->setName("sample string");
60
+        $dbo->setType("sample string");
61
+        $dbo->setModifiedAt(42);
62
+        $dbo->setAccount("sample string");
63
+        $dbo->setComment("sample string");
64
+        return $dbo;
65
+    }
66
+
67
+    /**
68
+     * @var integer
69
+     */
70
+    protected $_id;
71
+    public function getId()
72
+    {
73
+        return $this->_id;
74
+    }
75
+    public function setId($value)
76
+    {
77
+        $this->_id = $value;
78
+    }
79
+
80
+    /**
81
+     * @var integer
82
+     */
83
+    protected $_domainId;
84
+    public function getDomainId()
85
+    {
86
+        return $this->_domainId;
87
+    }
88
+    public function setDomainId($value)
89
+    {
90
+        $this->_domainId = $value;
91
+    }
92
+
93
+    /**
94
+     * @var string
95
+     */
96
+    protected $_name;
97
+    public function getName()
98
+    {
99
+        return $this->_name;
100
+    }
101
+    public function setName($value)
102
+    {
103
+        $this->_name = $value;
104
+    }
105
+
106
+    /**
107
+     * @var string
108
+     */
109
+    protected $_type;
110
+    public function getType()
111
+    {
112
+        return $this->_type;
113
+    }
114
+    public function setType($value)
115
+    {
116
+        $this->_type = $value;
117
+    }
118
+
119
+    /**
120
+     * @var integer
121
+     */
122
+    protected $_modifiedAt;
123
+    public function getModifiedAt()
124
+    {
125
+        return $this->_modifiedAt;
126
+    }
127
+    public function setModifiedAt($value)
128
+    {
129
+        $this->_modifiedAt = $value;
130
+    }
131
+
132
+    /**
133
+     * @var string
134
+     */
135
+    protected $_account;
136
+    public function getAccount()
137
+    {
138
+        return $this->_account;
139
+    }
140
+    public function setAccount($value)
141
+    {
142
+        $this->_account = $value;
143
+    }
144
+
145
+    /**
146
+     * @var string
147
+     */
148
+    protected $_comment;
149
+    public function getComment()
150
+    {
151
+        return $this->_comment;
152
+    }
153
+    public function setComment($value)
154
+    {
155
+        $this->_comment = $value;
156
+    }
157
+}

+ 50
- 0
app/Http/DBO/DnsCommentsDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsCommentsDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsCommentsDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsCommentsDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsCommentsDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsCommentsDbo::generateSample(),
47
+            DnsCommentsDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 121
- 0
app/Http/DBO/DnsCryptokeysDbo.php View File

@@ -0,0 +1,121 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsCryptokeysDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "DomainId" => $this->_domainId,
19
+            "Flags" => $this->_flags,
20
+            "Active" => $this->_active,
21
+            "Content" => $this->_content
22
+        );
23
+    }
24
+
25
+    public static function jsonDeserialize($json)
26
+    {
27
+        $dbo = new DnsCryptokeysDbo();
28
+        if (isset($json["Id"])) {
29
+            $dbo->setId($json["Id"]);
30
+        }
31
+        if (isset($json["DomainId"])) {
32
+            $dbo->setDomainId($json["DomainId"]);
33
+        }
34
+        if (isset($json["Flags"])) {
35
+            $dbo->setFlags($json["Flags"]);
36
+        }
37
+        if (isset($json["Active"])) {
38
+            $dbo->setActive($json["Active"]);
39
+        }
40
+        if (isset($json["Content"])) {
41
+            $dbo->setContent($json["Content"]);
42
+        }
43
+        return $dbo;
44
+    }
45
+
46
+    public static function generateSample()
47
+    {
48
+        $dbo = new DnsCryptokeysDbo();
49
+        $dbo->setId(42);
50
+        $dbo->setDomainId(42);
51
+        $dbo->setFlags(42);
52
+        $dbo->setActive(true);
53
+        $dbo->setContent("sample string");
54
+        return $dbo;
55
+    }
56
+
57
+    /**
58
+     * @var integer
59
+     */
60
+    protected $_id;
61
+    public function getId()
62
+    {
63
+        return $this->_id;
64
+    }
65
+    public function setId($value)
66
+    {
67
+        $this->_id = $value;
68
+    }
69
+
70
+    /**
71
+     * @var integer
72
+     */
73
+    protected $_domainId;
74
+    public function getDomainId()
75
+    {
76
+        return $this->_domainId;
77
+    }
78
+    public function setDomainId($value)
79
+    {
80
+        $this->_domainId = $value;
81
+    }
82
+
83
+    /**
84
+     * @var integer
85
+     */
86
+    protected $_flags;
87
+    public function getFlags()
88
+    {
89
+        return $this->_flags;
90
+    }
91
+    public function setFlags($value)
92
+    {
93
+        $this->_flags = $value;
94
+    }
95
+
96
+    /**
97
+     * @var boolean
98
+     */
99
+    protected $_active;
100
+    public function getActive()
101
+    {
102
+        return $this->_active;
103
+    }
104
+    public function setActive($value)
105
+    {
106
+        $this->_active = $value;
107
+    }
108
+
109
+    /**
110
+     * @var text
111
+     */
112
+    protected $_content;
113
+    public function getContent()
114
+    {
115
+        return $this->_content;
116
+    }
117
+    public function setContent($value)
118
+    {
119
+        $this->_content = $value;
120
+    }
121
+}

+ 50
- 0
app/Http/DBO/DnsCryptokeysDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsCryptokeysDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsCryptokeysDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsCryptokeysDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsCryptokeysDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsCryptokeysDbo::generateSample(),
47
+            DnsCryptokeysDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 103
- 0
app/Http/DBO/DnsDomainmetadataDbo.php View File

@@ -0,0 +1,103 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsDomainmetadataDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "DomainId" => $this->_domainId,
19
+            "Kind" => $this->_kind,
20
+            "Content" => $this->_content
21
+        );
22
+    }
23
+
24
+    public static function jsonDeserialize($json)
25
+    {
26
+        $dbo = new DnsDomainmetadataDbo();
27
+        if (isset($json["Id"])) {
28
+            $dbo->setId($json["Id"]);
29
+        }
30
+        if (isset($json["DomainId"])) {
31
+            $dbo->setDomainId($json["DomainId"]);
32
+        }
33
+        if (isset($json["Kind"])) {
34
+            $dbo->setKind($json["Kind"]);
35
+        }
36
+        if (isset($json["Content"])) {
37
+            $dbo->setContent($json["Content"]);
38
+        }
39
+        return $dbo;
40
+    }
41
+
42
+    public static function generateSample()
43
+    {
44
+        $dbo = new DnsDomainmetadataDbo();
45
+        $dbo->setId(42);
46
+        $dbo->setDomainId(42);
47
+        $dbo->setKind("sample string");
48
+        $dbo->setContent("sample string");
49
+        return $dbo;
50
+    }
51
+
52
+    /**
53
+     * @var integer
54
+     */
55
+    protected $_id;
56
+    public function getId()
57
+    {
58
+        return $this->_id;
59
+    }
60
+    public function setId($value)
61
+    {
62
+        $this->_id = $value;
63
+    }
64
+
65
+    /**
66
+     * @var integer
67
+     */
68
+    protected $_domainId;
69
+    public function getDomainId()
70
+    {
71
+        return $this->_domainId;
72
+    }
73
+    public function setDomainId($value)
74
+    {
75
+        $this->_domainId = $value;
76
+    }
77
+
78
+    /**
79
+     * @var string
80
+     */
81
+    protected $_kind;
82
+    public function getKind()
83
+    {
84
+        return $this->_kind;
85
+    }
86
+    public function setKind($value)
87
+    {
88
+        $this->_kind = $value;
89
+    }
90
+
91
+    /**
92
+     * @var text
93
+     */
94
+    protected $_content;
95
+    public function getContent()
96
+    {
97
+        return $this->_content;
98
+    }
99
+    public function setContent($value)
100
+    {
101
+        $this->_content = $value;
102
+    }
103
+}

+ 50
- 0
app/Http/DBO/DnsDomainmetadataDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsDomainmetadataDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsDomainmetadataDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsDomainmetadataDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsDomainmetadataDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsDomainmetadataDbo::generateSample(),
47
+            DnsDomainmetadataDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 157
- 0
app/Http/DBO/DnsDomainsDbo.php View File

@@ -0,0 +1,157 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsDomainsDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "Name" => $this->_name,
19
+            "Master" => $this->_master,
20
+            "LastCheck" => $this->_lastCheck,
21
+            "Type" => $this->_type,
22
+            "NotifiedSerial" => $this->_notifiedSerial,
23
+            "Account" => $this->_account
24
+        );
25
+    }
26
+
27
+    public static function jsonDeserialize($json)
28
+    {
29
+        $dbo = new DnsDomainsDbo();
30
+        if (isset($json["Id"])) {
31
+            $dbo->setId($json["Id"]);
32
+        }
33
+        if (isset($json["Name"])) {
34
+            $dbo->setName($json["Name"]);
35
+        }
36
+        if (isset($json["Master"])) {
37
+            $dbo->setMaster($json["Master"]);
38
+        }
39
+        if (isset($json["LastCheck"])) {
40
+            $dbo->setLastCheck($json["LastCheck"]);
41
+        }
42
+        if (isset($json["Type"])) {
43
+            $dbo->setType($json["Type"]);
44
+        }
45
+        if (isset($json["NotifiedSerial"])) {
46
+            $dbo->setNotifiedSerial($json["NotifiedSerial"]);
47
+        }
48
+        if (isset($json["Account"])) {
49
+            $dbo->setAccount($json["Account"]);
50
+        }
51
+        return $dbo;
52
+    }
53
+
54
+    public static function generateSample()
55
+    {
56
+        $dbo = new DnsDomainsDbo();
57
+        $dbo->setId(42);
58
+        $dbo->setName("sample string");
59
+        $dbo->setMaster("sample string");
60
+        $dbo->setLastCheck(42);
61
+        $dbo->setType("sample string");
62
+        $dbo->setNotifiedSerial(42);
63
+        $dbo->setAccount("sample string");
64
+        return $dbo;
65
+    }
66
+
67
+    /**
68
+     * @var integer
69
+     */
70
+    protected $_id;
71
+    public function getId()
72
+    {
73
+        return $this->_id;
74
+    }
75
+    public function setId($value)
76
+    {
77
+        $this->_id = $value;
78
+    }
79
+
80
+    /**
81
+     * @var string
82
+     */
83
+    protected $_name;
84
+    public function getName()
85
+    {
86
+        return $this->_name;
87
+    }
88
+    public function setName($value)
89
+    {
90
+        $this->_name = $value;
91
+    }
92
+
93
+    /**
94
+     * @var string
95
+     */
96
+    protected $_master;
97
+    public function getMaster()
98
+    {
99
+        return $this->_master;
100
+    }
101
+    public function setMaster($value)
102
+    {
103
+        $this->_master = $value;
104
+    }
105
+
106
+    /**
107
+     * @var integer
108
+     */
109
+    protected $_lastCheck;
110
+    public function getLastCheck()
111
+    {
112
+        return $this->_lastCheck;
113
+    }
114
+    public function setLastCheck($value)
115
+    {
116
+        $this->_lastCheck = $value;
117
+    }
118
+
119
+    /**
120
+     * @var string
121
+     */
122
+    protected $_type;
123
+    public function getType()
124
+    {
125
+        return $this->_type;
126
+    }
127
+    public function setType($value)
128
+    {
129
+        $this->_type = $value;
130
+    }
131
+
132
+    /**
133
+     * @var integer
134
+     */
135
+    protected $_notifiedSerial;
136
+    public function getNotifiedSerial()
137
+    {
138
+        return $this->_notifiedSerial;
139
+    }
140
+    public function setNotifiedSerial($value)
141
+    {
142
+        $this->_notifiedSerial = $value;
143
+    }
144
+
145
+    /**
146
+     * @var string
147
+     */
148
+    protected $_account;
149
+    public function getAccount()
150
+    {
151
+        return $this->_account;
152
+    }
153
+    public function setAccount($value)
154
+    {
155
+        $this->_account = $value;
156
+    }
157
+}

+ 50
- 0
app/Http/DBO/DnsDomainsDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsDomainsDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsDomainsDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsDomainsDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsDomainsDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsDomainsDbo::generateSample(),
47
+            DnsDomainsDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 229
- 0
app/Http/DBO/DnsRecordsDbo.php View File

@@ -0,0 +1,229 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsRecordsDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "DomainId" => $this->_domainId,
19
+            "Name" => $this->_name,
20
+            "Type" => $this->_type,
21
+            "Content" => $this->_content,
22
+            "Ttl" => $this->_ttl,
23
+            "Prio" => $this->_prio,
24
+            "ChangeDate" => $this->_changeDate,
25
+            "Disabled" => $this->_disabled,
26
+            "Ordername" => $this->_ordername,
27
+            "Auth" => $this->_auth
28
+        );
29
+    }
30
+
31
+    public static function jsonDeserialize($json)
32
+    {
33
+        $dbo = new DnsRecordsDbo();
34
+        if (isset($json["Id"])) {
35
+            $dbo->setId($json["Id"]);
36
+        }
37
+        if (isset($json["DomainId"])) {
38
+            $dbo->setDomainId($json["DomainId"]);
39
+        }
40
+        if (isset($json["Name"])) {
41
+            $dbo->setName($json["Name"]);
42
+        }
43
+        if (isset($json["Type"])) {
44
+            $dbo->setType($json["Type"]);
45
+        }
46
+        if (isset($json["Content"])) {
47
+            $dbo->setContent($json["Content"]);
48
+        }
49
+        if (isset($json["Ttl"])) {
50
+            $dbo->setTtl($json["Ttl"]);
51
+        }
52
+        if (isset($json["Prio"])) {
53
+            $dbo->setPrio($json["Prio"]);
54
+        }
55
+        if (isset($json["ChangeDate"])) {
56
+            $dbo->setChangeDate($json["ChangeDate"]);
57
+        }
58
+        if (isset($json["Disabled"])) {
59
+            $dbo->setDisabled($json["Disabled"]);
60
+        }
61
+        if (isset($json["Ordername"])) {
62
+            $dbo->setOrdername($json["Ordername"]);
63
+        }
64
+        if (isset($json["Auth"])) {
65
+            $dbo->setAuth($json["Auth"]);
66
+        }
67
+        return $dbo;
68
+    }
69
+
70
+    public static function generateSample()
71
+    {
72
+        $dbo = new DnsRecordsDbo();
73
+        $dbo->setId(42);
74
+        $dbo->setDomainId(42);
75
+        $dbo->setName("sample string");
76
+        $dbo->setType("sample string");
77
+        $dbo->setContent("sample string");
78
+        $dbo->setTtl(42);
79
+        $dbo->setPrio(42);
80
+        $dbo->setChangeDate(42);
81
+        $dbo->setDisabled(true);
82
+        $dbo->setOrdername("sample string");
83
+        $dbo->setAuth(true);
84
+        return $dbo;
85
+    }
86
+
87
+    /**
88
+     * @var integer
89
+     */
90
+    protected $_id;
91
+    public function getId()
92
+    {
93
+        return $this->_id;
94
+    }
95
+    public function setId($value)
96
+    {
97
+        $this->_id = $value;
98
+    }
99
+
100
+    /**
101
+     * @var integer
102
+     */
103
+    protected $_domainId;
104
+    public function getDomainId()
105
+    {
106
+        return $this->_domainId;
107
+    }
108
+    public function setDomainId($value)
109
+    {
110
+        $this->_domainId = $value;
111
+    }
112
+
113
+    /**
114
+     * @var string
115
+     */
116
+    protected $_name;
117
+    public function getName()
118
+    {
119
+        return $this->_name;
120
+    }
121
+    public function setName($value)
122
+    {
123
+        $this->_name = $value;
124
+    }
125
+
126
+    /**
127
+     * @var string
128
+     */
129
+    protected $_type;
130
+    public function getType()
131
+    {
132
+        return $this->_type;
133
+    }
134
+    public function setType($value)
135
+    {
136
+        $this->_type = $value;
137
+    }
138
+
139
+    /**
140
+     * @var string
141
+     */
142
+    protected $_content;
143
+    public function getContent()
144
+    {
145
+        return $this->_content;
146
+    }
147
+    public function setContent($value)
148
+    {
149
+        $this->_content = $value;
150
+    }
151
+
152
+    /**
153
+     * @var integer
154
+     */
155
+    protected $_ttl;
156
+    public function getTtl()
157
+    {
158
+        return $this->_ttl;
159
+    }
160
+    public function setTtl($value)
161
+    {
162
+        $this->_ttl = $value;
163
+    }
164
+
165
+    /**
166
+     * @var integer
167
+     */
168
+    protected $_prio;
169
+    public function getPrio()
170
+    {
171
+        return $this->_prio;
172
+    }
173
+    public function setPrio($value)
174
+    {
175
+        $this->_prio = $value;
176
+    }
177
+
178
+    /**
179
+     * @var integer
180
+     */
181
+    protected $_changeDate;
182
+    public function getChangeDate()
183
+    {
184
+        return $this->_changeDate;
185
+    }
186
+    public function setChangeDate($value)
187
+    {
188
+        $this->_changeDate = $value;
189
+    }
190
+
191
+    /**
192
+     * @var boolean
193
+     */
194
+    protected $_disabled;
195
+    public function getDisabled()
196
+    {
197
+        return $this->_disabled;
198
+    }
199
+    public function setDisabled($value)
200
+    {
201
+        $this->_disabled = $value;
202
+    }
203
+
204
+    /**
205
+     * @var string
206
+     */
207
+    protected $_ordername;
208
+    public function getOrdername()
209
+    {
210
+        return $this->_ordername;
211
+    }
212
+    public function setOrdername($value)
213
+    {
214
+        $this->_ordername = $value;
215
+    }
216
+
217
+    /**
218
+     * @var boolean
219
+     */
220
+    protected $_auth;
221
+    public function getAuth()
222
+    {
223
+        return $this->_auth;
224
+    }
225
+    public function setAuth($value)
226
+    {
227
+        $this->_auth = $value;
228
+    }
229
+}

+ 50
- 0
app/Http/DBO/DnsRecordsDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsRecordsDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsRecordsDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsRecordsDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsRecordsDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsRecordsDbo::generateSample(),
47
+            DnsRecordsDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 85
- 0
app/Http/DBO/DnsSupermastersDbo.php View File

@@ -0,0 +1,85 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsSupermastersDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Ip" => $this->_ip,
18
+            "Nameserver" => $this->_nameserver,
19
+            "Account" => $this->_account
20
+        );
21
+    }
22
+
23
+    public static function jsonDeserialize($json)
24
+    {
25
+        $dbo = new DnsSupermastersDbo();
26
+        if (isset($json["Ip"])) {
27
+            $dbo->setIp($json["Ip"]);
28
+        }
29
+        if (isset($json["Nameserver"])) {
30
+            $dbo->setNameserver($json["Nameserver"]);
31
+        }
32
+        if (isset($json["Account"])) {
33
+            $dbo->setAccount($json["Account"]);
34
+        }
35
+        return $dbo;
36
+    }
37
+
38
+    public static function generateSample()
39
+    {
40
+        $dbo = new DnsSupermastersDbo();
41
+        $dbo->setIp("sample string");
42
+        $dbo->setNameserver("sample string");
43
+        $dbo->setAccount("sample string");
44
+        return $dbo;
45
+    }
46
+
47
+    /**
48
+     * @var inet
49
+     */
50
+    protected $_ip;
51
+    public function getIp()
52
+    {
53
+        return $this->_ip;
54
+    }
55
+    public function setIp($value)
56
+    {
57
+        $this->_ip = $value;
58
+    }
59
+
60
+    /**
61
+     * @var string
62
+     */
63
+    protected $_nameserver;
64
+    public function getNameserver()
65
+    {
66
+        return $this->_nameserver;
67
+    }
68
+    public function setNameserver($value)
69
+    {
70
+        $this->_nameserver = $value;
71
+    }
72
+
73
+    /**
74
+     * @var string
75
+     */
76
+    protected $_account;
77
+    public function getAccount()
78
+    {
79
+        return $this->_account;
80
+    }
81
+    public function setAccount($value)
82
+    {
83
+        $this->_account = $value;
84
+    }
85
+}

+ 50
- 0
app/Http/DBO/DnsSupermastersDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsSupermastersDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsSupermastersDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsSupermastersDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsSupermastersDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsSupermastersDbo::generateSample(),
47
+            DnsSupermastersDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 103
- 0
app/Http/DBO/DnsTsigkeysDbo.php View File

@@ -0,0 +1,103 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsTsigkeysDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Id" => $this->_id,
18
+            "Name" => $this->_name,
19
+            "Algorithm" => $this->_algorithm,
20
+            "Secret" => $this->_secret
21
+        );
22
+    }
23
+
24
+    public static function jsonDeserialize($json)
25
+    {
26
+        $dbo = new DnsTsigkeysDbo();
27
+        if (isset($json["Id"])) {
28
+            $dbo->setId($json["Id"]);
29
+        }
30
+        if (isset($json["Name"])) {
31
+            $dbo->setName($json["Name"]);
32
+        }
33
+        if (isset($json["Algorithm"])) {
34
+            $dbo->setAlgorithm($json["Algorithm"]);
35
+        }
36
+        if (isset($json["Secret"])) {
37
+            $dbo->setSecret($json["Secret"]);
38
+        }
39
+        return $dbo;
40
+    }
41
+
42
+    public static function generateSample()
43
+    {
44
+        $dbo = new DnsTsigkeysDbo();
45
+        $dbo->setId(42);
46
+        $dbo->setName("sample string");
47
+        $dbo->setAlgorithm("sample string");
48
+        $dbo->setSecret("sample string");
49
+        return $dbo;
50
+    }
51
+
52
+    /**
53
+     * @var integer
54
+     */
55
+    protected $_id;
56
+    public function getId()
57
+    {
58
+        return $this->_id;
59
+    }
60
+    public function setId($value)
61
+    {
62
+        $this->_id = $value;
63
+    }
64
+
65
+    /**
66
+     * @var string
67
+     */
68
+    protected $_name;
69
+    public function getName()
70
+    {
71
+        return $this->_name;
72
+    }
73
+    public function setName($value)
74
+    {
75
+        $this->_name = $value;
76
+    }
77
+
78
+    /**
79
+     * @var string
80
+     */
81
+    protected $_algorithm;
82
+    public function getAlgorithm()
83
+    {
84
+        return $this->_algorithm;
85
+    }
86
+    public function setAlgorithm($value)
87
+    {
88
+        $this->_algorithm = $value;
89
+    }
90
+
91
+    /**
92
+     * @var string
93
+     */
94
+    protected $_secret;
95
+    public function getSecret()
96
+    {
97
+        return $this->_secret;
98
+    }
99
+    public function setSecret($value)
100
+    {
101
+        $this->_secret = $value;
102
+    }
103
+}

+ 50
- 0
app/Http/DBO/DnsTsigkeysDboArray.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace App\Http\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class DnsTsigkeysDboArray extends LuDbo {
13
+
14
+    /**
15
+    * @var DnsTsigkeysDbo[]
16
+    */
17
+    protected $_array;
18
+    public function getArray()
19
+    {
20
+        return $this->_array;
21
+    }
22
+    public function setArray($value)
23
+    {
24
+        $this->_array = $value;
25
+    }
26
+
27
+    public function jsonSerialize()
28
+    {
29
+        return $this->_array;
30
+    }
31
+
32
+    public static function jsonDeserialize($json)
33
+    {
34
+        $dbo = new DnsTsigkeysDboArray();
35
+        $array = [];
36
+        foreach ($json as $data) {
37
+            $array[] = DnsTsigkeysDbo::jsonDeserialize($data);
38
+        }
39
+        $dbo->setArray($array);
40
+        return $dbo;
41
+    }
42
+
43
+    public static function generateSample()
44
+    {
45
+        return [
46
+            DnsTsigkeysDbo::generateSample(),
47
+            DnsTsigkeysDbo::generateSample()
48
+        ];
49
+    }
50
+}

+ 14
- 0
app/Http/DataAccess/DnsCommentsDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsComments;
7
+use App\Http\DBO\DnsCommentsDbo;
8
+
9
+class DnsCommentsDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsComments();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsCryptokeysDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsCryptokeys;
7
+use App\Http\DBO\DnsCryptokeysDbo;
8
+
9
+class DnsCryptokeysDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsCryptokeys();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsDomainmetadataDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsDomainmetadata;
7
+use App\Http\DBO\DnsDomainmetadataDbo;
8
+
9
+class DnsDomainmetadataDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsDomainmetadata();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsDomainsDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsDomains;
7
+use App\Http\DBO\DnsDomainsDbo;
8
+
9
+class DnsDomainsDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsDomains();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsRecordsDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsRecords;
7
+use App\Http\DBO\DnsRecordsDbo;
8
+
9
+class DnsRecordsDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsRecords();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsSupermastersDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsSupermasters;
7
+use App\Http\DBO\DnsSupermastersDbo;
8
+
9
+class DnsSupermastersDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsSupermasters();
13
+    }
14
+}

+ 14
- 0
app/Http/DataAccess/DnsTsigkeysDataAccess.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use App\Http\DataAccess\Models\DnsTsigkeys;
7
+use App\Http\DBO\DnsTsigkeysDbo;
8
+
9
+class DnsTsigkeysDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new DnsTsigkeys();
13
+    }
14
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsComments.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsCommentsDbo;
6
+
7
+class DnsComments extends DnsCommentsModel
8
+{
9
+}

+ 59
- 0
app/Http/DataAccess/Models/DnsCommentsModel.php View File

@@ -0,0 +1,59 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsComments.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsCommentsDbo;
15
+
16
+class DnsCommentsModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsCommentsDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setDomainId($this->domain_id);
30
+        $dbo->setName($this->name);
31
+        $dbo->setType($this->type);
32
+        $dbo->setModifiedAt($this->modified_at);
33
+        $dbo->setAccount($this->account);
34
+        $dbo->setComment($this->comment);
35
+
36
+        return $dbo;
37
+    }
38
+
39
+    /**
40
+     * @param $dbo DnsCommentsDbo
41
+     * @param $model LuModel|null
42
+     * @return DnsComments
43
+     */
44
+    public function fromDbo($dbo, $model = null)
45
+    {
46
+        if (is_null($model))
47
+            $model = new DnsComments();
48
+
49
+        $model->id = $dbo->getId();
50
+        $model->domain_id = $dbo->getDomainId();
51
+        $model->name = $dbo->getName();
52
+        $model->type = $dbo->getType();
53
+        $model->modified_at = $dbo->getModifiedAt();
54
+        $model->account = $dbo->getAccount();
55
+        $model->comment = $dbo->getComment();
56
+
57
+        return $model;
58
+    }
59
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsCryptokeys.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsCryptokeysDbo;
6
+
7
+class DnsCryptokeys extends DnsCryptokeysModel
8
+{
9
+}

+ 55
- 0
app/Http/DataAccess/Models/DnsCryptokeysModel.php View File

@@ -0,0 +1,55 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsCryptokeys.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsCryptokeysDbo;
15
+
16
+class DnsCryptokeysModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsCryptokeysDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setDomainId($this->domain_id);
30
+        $dbo->setFlags($this->flags);
31
+        $dbo->setActive($this->active);
32
+        $dbo->setContent($this->content);
33
+
34
+        return $dbo;
35
+    }
36
+
37
+    /**
38
+     * @param $dbo DnsCryptokeysDbo
39
+     * @param $model LuModel|null
40
+     * @return DnsCryptokeys
41
+     */
42
+    public function fromDbo($dbo, $model = null)
43
+    {
44
+        if (is_null($model))
45
+            $model = new DnsCryptokeys();
46
+
47
+        $model->id = $dbo->getId();
48
+        $model->domain_id = $dbo->getDomainId();
49
+        $model->flags = $dbo->getFlags();
50
+        $model->active = $dbo->getActive();
51
+        $model->content = $dbo->getContent();
52
+
53
+        return $model;
54
+    }
55
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsDomainmetadata.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsDomainmetadataDbo;
6
+
7
+class DnsDomainmetadata extends DnsDomainmetadataModel
8
+{
9
+}

+ 53
- 0
app/Http/DataAccess/Models/DnsDomainmetadataModel.php View File

@@ -0,0 +1,53 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsDomainmetadata.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsDomainmetadataDbo;
15
+
16
+class DnsDomainmetadataModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsDomainmetadataDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setDomainId($this->domain_id);
30
+        $dbo->setKind($this->kind);
31
+        $dbo->setContent($this->content);
32
+
33
+        return $dbo;
34
+    }
35
+
36
+    /**
37
+     * @param $dbo DnsDomainmetadataDbo
38
+     * @param $model LuModel|null
39
+     * @return DnsDomainmetadata
40
+     */
41
+    public function fromDbo($dbo, $model = null)
42
+    {
43
+        if (is_null($model))
44
+            $model = new DnsDomainmetadata();
45
+
46
+        $model->id = $dbo->getId();
47
+        $model->domain_id = $dbo->getDomainId();
48
+        $model->kind = $dbo->getKind();
49
+        $model->content = $dbo->getContent();
50
+
51
+        return $model;
52
+    }
53
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsDomains.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsDomainsDbo;
6
+
7
+class DnsDomains extends DnsDomainsModel
8
+{
9
+}

+ 59
- 0
app/Http/DataAccess/Models/DnsDomainsModel.php View File

@@ -0,0 +1,59 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsDomains.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsDomainsDbo;
15
+
16
+class DnsDomainsModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsDomainsDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setName($this->name);
30
+        $dbo->setMaster($this->master);
31
+        $dbo->setLastCheck($this->last_check);
32
+        $dbo->setType($this->type);
33
+        $dbo->setNotifiedSerial($this->notified_serial);
34
+        $dbo->setAccount($this->account);
35
+
36
+        return $dbo;
37
+    }
38
+
39
+    /**
40
+     * @param $dbo DnsDomainsDbo
41
+     * @param $model LuModel|null
42
+     * @return DnsDomains
43
+     */
44
+    public function fromDbo($dbo, $model = null)
45
+    {
46
+        if (is_null($model))
47
+            $model = new DnsDomains();
48
+
49
+        $model->id = $dbo->getId();
50
+        $model->name = $dbo->getName();
51
+        $model->master = $dbo->getMaster();
52
+        $model->last_check = $dbo->getLastCheck();
53
+        $model->type = $dbo->getType();
54
+        $model->notified_serial = $dbo->getNotifiedSerial();
55
+        $model->account = $dbo->getAccount();
56
+
57
+        return $model;
58
+    }
59
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsRecords.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsRecordsDbo;
6
+
7
+class DnsRecords extends DnsRecordsModel
8
+{
9
+}

+ 67
- 0
app/Http/DataAccess/Models/DnsRecordsModel.php View File

@@ -0,0 +1,67 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsRecords.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsRecordsDbo;
15
+
16
+class DnsRecordsModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsRecordsDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setDomainId($this->domain_id);
30
+        $dbo->setName($this->name);
31
+        $dbo->setType($this->type);
32
+        $dbo->setContent($this->content);
33
+        $dbo->setTtl($this->ttl);
34
+        $dbo->setPrio($this->prio);
35
+        $dbo->setChangeDate($this->change_date);
36
+        $dbo->setDisabled($this->disabled);
37
+        $dbo->setOrdername($this->ordername);
38
+        $dbo->setAuth($this->auth);
39
+
40
+        return $dbo;
41
+    }
42
+
43
+    /**
44
+     * @param $dbo DnsRecordsDbo
45
+     * @param $model LuModel|null
46
+     * @return DnsRecords
47
+     */
48
+    public function fromDbo($dbo, $model = null)
49
+    {
50
+        if (is_null($model))
51
+            $model = new DnsRecords();
52
+
53
+        $model->id = $dbo->getId();
54
+        $model->domain_id = $dbo->getDomainId();
55
+        $model->name = $dbo->getName();
56
+        $model->type = $dbo->getType();
57
+        $model->content = $dbo->getContent();
58
+        $model->ttl = $dbo->getTtl();
59
+        $model->prio = $dbo->getPrio();
60
+        $model->change_date = $dbo->getChangeDate();
61
+        $model->disabled = $dbo->getDisabled();
62
+        $model->ordername = $dbo->getOrdername();
63
+        $model->auth = $dbo->getAuth();
64
+
65
+        return $model;
66
+    }
67
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsSupermasters.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsSupermastersDbo;
6
+
7
+class DnsSupermasters extends DnsSupermastersModel
8
+{
9
+}

+ 51
- 0
app/Http/DataAccess/Models/DnsSupermastersModel.php View File

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsSupermasters.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsSupermastersDbo;
15
+
16
+class DnsSupermastersModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsSupermastersDbo();
27
+
28
+        $dbo->setIp($this->ip);
29
+        $dbo->setNameserver($this->nameserver);
30
+        $dbo->setAccount($this->account);
31
+
32
+        return $dbo;
33
+    }
34
+
35
+    /**
36
+     * @param $dbo DnsSupermastersDbo
37
+     * @param $model LuModel|null
38
+     * @return DnsSupermasters
39
+     */
40
+    public function fromDbo($dbo, $model = null)
41
+    {
42
+        if (is_null($model))
43
+            $model = new DnsSupermasters();
44
+
45
+        $model->ip = $dbo->getIp();
46
+        $model->nameserver = $dbo->getNameserver();
47
+        $model->account = $dbo->getAccount();
48
+
49
+        return $model;
50
+    }
51
+}

+ 9
- 0
app/Http/DataAccess/Models/DnsTsigkeys.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace App\Http\DataAccess\Models;
4
+
5
+use App\Http\DBO\DnsTsigkeysDbo;
6
+
7
+class DnsTsigkeys extends DnsTsigkeysModel
8
+{
9
+}

+ 53
- 0
app/Http/DataAccess/Models/DnsTsigkeysModel.php View File

@@ -0,0 +1,53 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE DnsTsigkeys.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace App\Http\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use App\Http\DBO\DnsTsigkeysDbo;
15
+
16
+class DnsTsigkeysModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new DnsTsigkeysDbo();
27
+
28
+        $dbo->setId($this->id);
29
+        $dbo->setName($this->name);
30
+        $dbo->setAlgorithm($this->algorithm);
31
+        $dbo->setSecret($this->secret);
32
+
33
+        return $dbo;
34
+    }
35
+
36
+    /**
37
+     * @param $dbo DnsTsigkeysDbo
38
+     * @param $model LuModel|null
39
+     * @return DnsTsigkeys
40
+     */
41
+    public function fromDbo($dbo, $model = null)
42
+    {
43
+        if (is_null($model))
44
+            $model = new DnsTsigkeys();
45
+
46
+        $model->id = $dbo->getId();
47
+        $model->name = $dbo->getName();
48
+        $model->algorithm = $dbo->getAlgorithm();
49
+        $model->secret = $dbo->getSecret();
50
+
51
+        return $model;
52
+    }
53
+}

+ 7
- 3
app/Http/routes.php View File

@@ -6,10 +6,14 @@ use Luticate\Utils\LuRoute;
6 6
 
7 7
 $route = LuRoute::getInstance();
8 8
 
9
-$int = LuRoute::REG_INT;
9
+$int = LuRoute::REG_UINT;
10
+$domain_id = "{domain_id:$int}";
10 11
 
11 12
 LuticateBusiness::setupAuth();
12 13
 LuticateBusiness::setupRoutes();
13
-LuDocBusiness::setupRoutes("/project");
14
+LuDocBusiness::setupRoutes("/lunet");
14 15
 
15
-//$route->get("/data", "Data", "getAll", ProjectPermissions::HOST_GET);
16
+$route->get("/dns", "DnsDomains", "getAll");
17
+$route->post("/dns/add", "DnsDomains", "add");
18
+$route->post("/dns/$domain_id/del", "DnsDomains", "del");
19
+$route->post("/dns/$domain_id/edit", "DnsDomains", "edit");

+ 73
- 0
confs/pdns.gpgsql.conf View File

@@ -0,0 +1,73 @@
1
+
2
+
3
+gpgsql-basic-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE disabled=false and type='%s' and name='%s'
4
+gpgsql-id-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE disabled=false and type='%s' and name='%s' and domain_id='%s'
5
+gpgsql-any-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE disabled=false and name='%s'
6
+gpgsql-any-id-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE disabled=false and name='%s' and domain_id='%s'
7
+
8
+gpgsql-list-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE (disabled=false OR '%s') and domain_id='%s' order by name, type
9
+gpgsql-list-subzone-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE disabled=false and (name='%s' OR name like '%s') and domain_id='%s'
10
+
11
+gpgsql-remove-empty-non-terminals-from-zone-query = delete from dns_records where domain_id='%s' and type is null
12
+gpgsql-delete-empty-non-terminal-query = delete from dns_records where domain_id='%s' and name='%s' and type is null
13
+
14
+gpgsql-master-zone-query = select master from dns_domains where name='%s' and type='SLAVE'
15
+
16
+gpgsql-info-zone-query = select id,name,master,last_check,notified_serial,type,account from dns_domains where name='%s'
17
+
18
+gpgsql-info-all-slaves-query = select id,name,master,last_check from dns_domains where type='SLAVE'
19
+gpgsql-supermaster-query = select account from dns_supermasters where ip='%s' and nameserver='%s'
20
+gpgsql-supermaster-name-to-ips = select ip,account from dns_supermasters where nameserver='%s' and account='%s'
21
+
22
+gpgsql-insert-zone-query = insert into dns_domains (type,name,master,account,last_check, notified_serial) values('%s','%s','%s','%s',null,null)
23
+
24
+gpgsql-insert-record-query = insert into dns_records (content,ttl,prio,type,domain_id,disabled,name,ordername,auth,change_date) values ('%s','%s','%s','%s','%s','%s','%s','%s','%s',null)
25
+#gpgsql-insert-empty-non-terminal-order-query = insert into dns_records (type,domain_id,disabled,name,ordername,auth,ttl,prio,change_date,content) values (null,'%s',false,'%s','%s','%s',null,null,null,null)
26
+
27
+gpgsql-get-order-first-query = select ordername from dns_records where disabled=false and domain_id='%s' and ordername is not null order by 1 using ~<~ limit 1
28
+gpgsql-get-order-before-query = select ordername, name from dns_records where disabled=false and ordername ~<=~ '%s' and domain_id='%s' and ordername is not null order by 1 using ~>~ limit 1
29
+gpgsql-get-order-after-query = select ordername from dns_records where disabled=false and ordername ~>~ '%s' and domain_id='%s' and ordername is not null order by 1 using ~<~ limit 1
30
+gpgsql-get-order-last-query = select ordername, name from dns_records where disabled=false and ordername != '' and domain_id='%s' and ordername is not null order by 1 using ~>~ limit 1
31
+
32
+#gpgsql-update-ordername-and-auth-query = update dns_records set ordername='%s',auth='%s' where domain_id='%s' and name='%s' and disabled=false
33
+#gpgsql-update-ordername-and-auth-type-query = update dns_records set ordername='%s',auth='%s' where domain_id='%s' and name='%s' and type='%s' and disabled=false
34
+#gpgsql-nullify-ordername-and-update-auth-query = update dns_records set ordername=NULL,auth='%s' where domain_id='%s' and name='%s' and disabled=false
35
+#gpgsql-nullify-ordername-and-update-auth-type-query = update dns_records set ordername=NULL,auth='%s' where domain_id='%s' and name='%s' and type='%s' and disabled=false
36
+
37
+gpgsql-update-master-query = update dns_domains set master='%s' where name='%s'
38
+gpgsql-update-kind-query = update dns_domains set type='%s' where name='%s'
39
+#gpgsql-update-account-query = update dns_domains set account='%s' where name='%s'
40
+gpgsql-update-serial-query = update dns_domains set notified_serial='%s' where id='%s'
41
+gpgsql-update-lastcheck-query = update dns_domains set last_check='%s' where id='%s'
42
+gpgsql-zone-lastchange-query = select max(change_date) from dns_records where domain_id='%s'
43
+gpgsql-info-all-master-query = select id,name,master,last_check,notified_serial,type from dns_domains where type='MASTER'
44
+gpgsql-delete-domain-query = delete from dns_domains where name='%s'
45
+gpgsql-delete-zone-query = delete from dns_records where domain_id='%s'
46
+gpgsql-delete-rrset-query = delete from dns_records where domain_id='%s' and name='%s' and type='%s'
47
+gpgsql-delete-names-query = delete from dns_records where domain_id='%s' and name='%s'
48
+
49
+gpgsql-add-domain-key-query = insert into dns_cryptokeys (domain_id, flags, active, content) select id, '%s', '%s', '%s' from dns_domains where name='%s'
50
+gpgsql-list-domain-keys-query = select cryptokeys.id, flags, case when active then 1 else 0 end as active, content from dns_domains, cryptokeys where cryptokeys.domain_id=domains.id and name='%s'
51
+gpgsql-get-all-domain-metadata-query = select kind,content from dns_domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s'
52
+gpgsql-get-domain-metadata-query = select content from dns_domains, domainmetadata where domainmetadata.domain_id=domains.id and name='%s' and domainmetadata.kind='%s'
53
+gpgsql-clear-domain-metadata-query = delete from dns_domainmetadata where domain_id=(select id from dns_domains where name='%s') and domainmetadata.kind='%s'
54
+gpgsql-clear-domain-all-metadata-query = delete from dns_domainmetadata where domain_id=(select id from dns_domains where name='%s')
55
+gpgsql-set-domain-metadata-query = insert into dns_domainmetadata (domain_id, kind, content) select id, '%s', '%s' from dns_domains where name='%s'
56
+gpgsql-activate-domain-key-query = update dns_cryptokeys set active=true where domain_id=(select id from dns_domains where name='%s') and  cryptokeys.id='%s'
57
+gpgsql-deactivate-domain-key-query = update dns_cryptokeys set active=false where domain_id=(select id from dns_domains where name='%s') and  cryptokeys.id='%s'
58
+gpgsql-remove-domain-key-query = delete from dns_cryptokeys where domain_id=(select id from dns_domains where name='%s') and cryptokeys.id='%s'
59
+gpgsql-clear-domain-all-keys-query = delete from dns_cryptokeys where domain_id=(select id from dns_domains where name='%s')
60
+gpgsql-get-tsig-key-query = select algorithm, secret from dns_tsigkeys where name='%s'
61
+gpgsql-set-tsig-key-query = insert into dns_tsigkeys (name,algorithm,secret) values('%s','%s','%s')
62
+gpgsql-delete-tsig-key-query = delete from dns_tsigkeys where name='%s'
63
+gpgsql-get-tsig-keys-query = select name,algorithm, secret from dns_tsigkeys
64
+
65
+gpgsql-get-all-domains-query = select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check, domains.account from dns_domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=false OR '%s'
66
+
67
+gpgsql-list-comments-query = SELECT domain_id,name,type,modified_at,account,comment FROM dns_comments WHERE domain_id='%s'
68
+gpgsql-insert-comment-query = INSERT INTO dns_comments (domain_id, name, type, modified_at, account, comment) VALUES ('%s', '%s', '%s', '%s', '%s', '%s')
69
+gpgsql-delete-comment-rrset-query = DELETE FROM dns_comments WHERE domain_id='%s' AND name='%s' AND type='%s'
70
+gpgsql-delete-comments-query = DELETE FROM dns_comments WHERE domain_id='%s'
71
+#gpgsql-search-records-query = SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM dns_records WHERE name LIKE '%s' OR content LIKE '%s' LIMIT '%s'
72
+#gpgsql-search-comments-query = SELECT domain_id,name,type,modified_at,account,comment FROM dns_comments WHERE name LIKE '%s' OR comment LIKE '%s' LIMIT '%s'
73
+#gpgsql-is-our-domain-query = SELECT id FROM dns_domains WHERE id = '%s' OR name = '%s'

Loading…
Cancel
Save