@clevercloud/client
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -549,12 +549,2 @@ "use strict"; | ||
} | ||
}, | ||
'es-addon': { | ||
_: { | ||
snapshots: { | ||
get: prepareRequest(providers.getElasticsearchAddonSnapshots, ['addonId']) | ||
} | ||
}, | ||
'snapshots-repository': { | ||
get: prepareRequest(providers.getElasticsearchAddonSnapshotsRepository) | ||
} | ||
} | ||
@@ -561,0 +551,0 @@ }, |
@@ -6,4 +6,2 @@ "use strict"; | ||
}); | ||
exports.getElasticsearchAddonSnapshotsRepository = getElasticsearchAddonSnapshotsRepository; | ||
exports.getElasticsearchAddonSnapshots = getElasticsearchAddonSnapshots; | ||
exports.getAddon = getAddon; | ||
@@ -14,37 +12,2 @@ | ||
/** | ||
* GET /providers/es-addon/snapshots-repository | ||
* @param {Object} params | ||
*/ | ||
function getElasticsearchAddonSnapshotsRepository() { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/providers/es-addon/snapshots-repository`, | ||
headers: { | ||
Accept: 'application/json' | ||
} // no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /providers/es-addon/{addonId}/snapshots | ||
* @param {Object} params | ||
* @param {String} params.addonId | ||
*/ | ||
function getElasticsearchAddonSnapshots(params) { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/providers/es-addon/${params.addonId}/snapshots`, | ||
headers: { | ||
Accept: 'application/json' | ||
} // no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /providers/{providerId}/{addonId} | ||
@@ -55,4 +18,2 @@ * @param {Object} params | ||
*/ | ||
function getAddon(params) { | ||
@@ -59,0 +20,0 @@ // no multipath for /self or /organisations/{id} |
@@ -527,12 +527,2 @@ import * as addon from './addon.js'; | ||
}, | ||
'es-addon': { | ||
_: { | ||
snapshots: { | ||
get: prepareRequest(providers.getElasticsearchAddonSnapshots, ['addonId']), | ||
}, | ||
}, | ||
'snapshots-repository': { | ||
get: prepareRequest(providers.getElasticsearchAddonSnapshotsRepository), | ||
}, | ||
}, | ||
}, | ||
@@ -539,0 +529,0 @@ self: { |
import { pickNonNull } from '../pick-non-null.js'; | ||
/** | ||
* GET /providers/es-addon/snapshots-repository | ||
* @param {Object} params | ||
*/ | ||
export function getElasticsearchAddonSnapshotsRepository() { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/providers/es-addon/snapshots-repository`, | ||
headers: { Accept: 'application/json' }, | ||
// no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /providers/es-addon/{addonId}/snapshots | ||
* @param {Object} params | ||
* @param {String} params.addonId | ||
*/ | ||
export function getElasticsearchAddonSnapshots(params) { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/providers/es-addon/${params.addonId}/snapshots`, | ||
headers: { Accept: 'application/json' }, | ||
// no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /providers/{providerId}/{addonId} | ||
@@ -36,0 +5,0 @@ * @param {Object} params |
{ | ||
"name": "@clevercloud/client", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "JavaScript REST client and utils for Clever Cloud's API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/CleverCloud/clever-client.js", |
371665
12149