docs update

This commit is contained in:
Damodar Lohani
2022-08-29 12:09:22 +00:00
parent 60c05fad25
commit 3f9bbd5fc7
69 changed files with 73 additions and 62 deletions
@@ -12,7 +12,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false);
const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false);
promise.then(function (response) {
console.log(response);
@@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5');
promise.then(function (response) {
console.log(response);
@@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = functions.update('[FUNCTION_ID]', '[NAME]', []);
const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]);
promise.then(function (response) {
console.log(response);
@@ -12,7 +12,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png');
const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png'));
promise.then(function (response) {
console.log(response);