@@ -4,6 +4,13 @@ var auto = require('autocreate');
44
55var Resource = require ( '../Resource' ) ;
66
7+ /**
8+ * ZoneCustomHostNames represents the /zones/:zoneID/custom_hostnames API endpoint.
9+ *
10+ * @class ZoneCustomHostNames
11+ * @hideconstructor
12+ * @extends Resource
13+ */
714module . exports = auto ( prototypal ( {
815 extends : Resource ,
916 path : 'zones/:zoneId/custom_hostnames' ,
@@ -15,4 +22,60 @@ module.exports = auto(prototypal({
1522 'add' ,
1623 'del'
1724 ]
25+
26+ /**
27+ * browse allows for listing all of a zone's custom hostanames
28+ *
29+ * @function browse
30+ * @memberof ZoneCustomHostNames
31+ * @instance
32+ * @async
33+ * @param {string } zone_id - The zone ID
34+ * @returns {Promise<Object> } The custom hostname browse response object.
35+ */
36+ /**
37+ * read allows for retrieving a specific custom hostname
38+ *
39+ * @function read
40+ * @memberof ZoneCustomHostNames
41+ * @instance
42+ * @async
43+ * @param {string } zone_id - The zone ID
44+ * @param {string } id - The custom hostname ID
45+ * @returns {Promise<Object> } The custom hostname response object.
46+ */
47+ /**
48+ * edit allows for modifying a specific zone
49+ *
50+ * @function edit
51+ * @memberof ZoneCustomHostNames
52+ * @instance
53+ * @async
54+ * @param {string } zone_id - The zone ID
55+ * @param {string } id - The custom hostname ID
56+ * @param {Object } config - The modified custom hostname object
57+ * @returns {Promise<Object> } The custom hostname response object.
58+ */
59+ /**
60+ * add allows for creating a new zone
61+ *
62+ * @function add
63+ * @memberof ZoneCustomHostNames
64+ * @instance
65+ * @async
66+ * @param {string } zone_id - The zone ID
67+ * @param {Object } config - The new custom hostname object
68+ * @returns {Promise<Object> } The custom hostname response object.
69+ */
70+ /**
71+ * del allows for removing a new zone
72+ *
73+ * @function del
74+ * @memberof ZoneCustomHostNames
75+ * @instance
76+ * @async
77+ * @param {string } zone_id - The zone ID
78+ * @param {string } id - The custom hostname ID to delete
79+ * @returns {Promise<Object> } The custom hostname response object.
80+ */
1881} ) ) ;
0 commit comments