googleapis-nodejs-cloudbuild
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -42,3 +42,3 @@ import { ServiceObject } from '@google-cloud/common'; | ||
*/ | ||
delete(options: any, callback?: any): void; | ||
delete(options?: any, callback?: any): void; | ||
/** | ||
@@ -54,3 +54,3 @@ * Get a Build Trigger if it exists. | ||
*/ | ||
get(options: any, callback?: any): void; | ||
get(options?: any, callback?: any): void; | ||
/** | ||
@@ -66,5 +66,5 @@ * Check if the build trigger exists. | ||
*/ | ||
exists(options: any, callback?: any): void; | ||
patch(options: any, callback?: any): void; | ||
run(options: any, callback?: any): void; | ||
exists(options?: any, callback?: any): void; | ||
patch(options?: any, callback?: any): void; | ||
run(options?: any, callback?: any): void; | ||
} |
@@ -28,3 +28,3 @@ "use strict"; | ||
parent: gcb, | ||
baseUrl: '', | ||
baseUrl: `projects/${gcb.projectId}/triggers`, | ||
id, | ||
@@ -58,3 +58,11 @@ createMethod: gcb.createBuildTrigger.bind(gcb), | ||
qs: options, | ||
}, callback || common_1.util.noop); | ||
}, (err, resp) => { | ||
if (err) { | ||
callback(err, resp); | ||
console.log(err); | ||
return; | ||
} | ||
console.log(resp); | ||
callback(null, resp) || common_1.util.noop; | ||
}); | ||
} | ||
@@ -61,0 +69,0 @@ /** |
{ | ||
"name": "googleapis-nodejs-cloudbuild", | ||
"description": "Google Cloud Build Client Library for Node.js (unofficial)", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "vizzuality-research", |
Sorry, the diff of this file is not supported yet
36380
481