Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getEmpty(accountName, options, callback) {
if (!callback && typeof options === 'function') {
callback = options;
options = undefined;
}
let cb = callback;
if (!callback) {
return this.getEmptyWithHttpOperationResponse(accountName, options).then((operationRes) => {
return Promise.resolve(operationRes.bodyAsJson);
}).catch((err) => {
return Promise.reject(err);
});
}
else {
msRest.promiseToCallback(this.getEmptyWithHttpOperationResponse(accountName, options))((err, data) => {
if (err) {
return cb(err);
}
let result = data.bodyAsJson;
return cb(err, result, data.request, data.response);
});
}
}
}
getEmpty(vault, secret, keyName, options, callback) {
if (!callback && typeof options === 'function') {
callback = options;
options = undefined;
}
let cb = callback;
if (!callback) {
return this.getEmptyWithHttpOperationResponse(vault, secret, keyName, options).then((operationRes) => {
return Promise.resolve(operationRes.bodyAsJson);
}).catch((err) => {
return Promise.reject(err);
});
}
else {
msRest.promiseToCallback(this.getEmptyWithHttpOperationResponse(vault, secret, keyName, options))((err, data) => {
if (err) {
return cb(err);
}
let result = data.bodyAsJson;
return cb(err, result, data.request, data.response);
});
}
}
}
getEmpty(accountName, options, callback) {
if (!callback && typeof options === 'function') {
callback = options;
options = undefined;
}
let cb = callback;
if (!callback) {
return this.getEmptyWithHttpOperationResponse(accountName, options).then((operationRes) => {
return Promise.resolve(operationRes.bodyAsJson);
}).catch((err) => {
return Promise.reject(err);
});
}
else {
msRest.promiseToCallback(this.getEmptyWithHttpOperationResponse(accountName, options))((err, data) => {
if (err) {
return cb(err);
}
let result = data.bodyAsJson;
return cb(err, result, data.request, data.response);
});
}
}
}
getEmpty(options, callback) {
if (!callback && typeof options === 'function') {
callback = options;
options = undefined;
}
let cb = callback;
if (!callback) {
return this.getEmptyWithHttpOperationResponse(options).then((operationRes) => {
return Promise.resolve(operationRes.bodyAsJson);
}).catch((err) => {
return Promise.reject(err);
});
}
else {
msRest.promiseToCallback(this.getEmptyWithHttpOperationResponse(options))((err, data) => {
if (err) {
return cb(err);
}
let result = data.bodyAsJson;
return cb(err, result, data.request, data.response);
});
}
}
putEmpty(options, callback) {
getEmpty(options, callback) {
if (!callback && typeof options === 'function') {
callback = options;
options = undefined;
}
let cb = callback;
if (!callback) {
return this.getEmptyWithHttpOperationResponse(options).then((operationRes) => {
return Promise.resolve(operationRes.bodyAsJson);
}).catch((err) => {
return Promise.reject(err);
});
}
else {
msRest.promiseToCallback(this.getEmptyWithHttpOperationResponse(options))((err, data) => {
if (err) {
return cb(err);
}
let result = data.bodyAsJson;
return cb(err, result, data.request, data.response);
});
}
}
getNull(options, callback) {