..
This commit is contained in:
218
backend/node_modules/googleapis/apis/taskqueue/v1beta1.js
generated
vendored
Normal file
218
backend/node_modules/googleapis/apis/taskqueue/v1beta1.js
generated
vendored
Normal file
@@ -0,0 +1,218 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* TaskQueue API
|
||||
*
|
||||
* Accesses a Google App Engine Pull Task Queue over REST.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const taskqueue = google.taskqueue('v1beta1');
|
||||
*
|
||||
* @namespace taskqueue
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Taskqueue
|
||||
*/
|
||||
function Taskqueue(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.taskqueues = {
|
||||
/**
|
||||
* taskqueue.taskqueues.get
|
||||
*
|
||||
* @desc Get detailed information about a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.taskqueues.get
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.getStats Whether to get stats. Optional.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to get the properties of.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.tasks = {
|
||||
/**
|
||||
* taskqueue.tasks.delete
|
||||
*
|
||||
* @desc Delete a task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.delete
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The id of the task to delete.
|
||||
* @param {string} params.taskqueue The taskqueue to delete a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.get
|
||||
*
|
||||
* @desc Get a particular task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.get
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The task to get properties of.
|
||||
* @param {string} params.taskqueue The taskqueue in which the task belongs.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.lease
|
||||
*
|
||||
* @desc Lease 1 or more tasks from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.lease
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.leaseSecs The lease in seconds.
|
||||
* @param {integer} params.numTasks The number of tasks to lease.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The taskqueue to lease a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
lease: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/lease').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.list
|
||||
*
|
||||
* @desc List Tasks in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.list
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to list tasks from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Taskqueue;
|
||||
//# sourceMappingURL=v1beta1.js.map
|
||||
1
backend/node_modules/googleapis/apis/taskqueue/v1beta1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/taskqueue/v1beta1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1beta1.js","sourceRoot":"","sources":["v1beta1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,mBAAmB,OAAO;IACxB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,UAAU,GAAG;QAEhB;;;;;;;;;;;;;;;WAeG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,8DAA8D,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC7G,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBACxC,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBACpC,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,KAAK,GAAG;QAEX;;;;;;;;;;;;;;;WAeG;QACH,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACzC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,2EAA2E,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1H,MAAM,EAAE,QAAQ;iBACjB,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC;gBAChD,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC;gBAC5C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,GAAG,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACtC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,2EAA2E,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1H,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC;gBAChD,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC;gBAC5C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;;WAgBG;QACH,KAAK,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACxC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,0EAA0E,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACzH,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;gBACjE,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBACpC,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;WAcG;QACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;gBAClC,QAAQ,GAAG,OAAO,CAAC;gBACnB,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;YAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YAEjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,oEAAoE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACnH,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBACxC,UAAU,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBACpC,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAwCD,iBAAS,SAAS,CAAC"}
|
||||
282
backend/node_modules/googleapis/apis/taskqueue/v1beta1.ts
generated
vendored
Normal file
282
backend/node_modules/googleapis/apis/taskqueue/v1beta1.ts
generated
vendored
Normal file
@@ -0,0 +1,282 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* TaskQueue API
|
||||
*
|
||||
* Accesses a Google App Engine Pull Task Queue over REST.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const taskqueue = google.taskqueue('v1beta1');
|
||||
*
|
||||
* @namespace taskqueue
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Taskqueue
|
||||
*/
|
||||
function Taskqueue(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.taskqueues = {
|
||||
|
||||
/**
|
||||
* taskqueue.taskqueues.get
|
||||
*
|
||||
* @desc Get detailed information about a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.taskqueues.get
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.getStats Whether to get stats. Optional.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to get the properties of.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.tasks = {
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.delete
|
||||
*
|
||||
* @desc Delete a task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.delete
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The id of the task to delete.
|
||||
* @param {string} params.taskqueue The taskqueue to delete a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.get
|
||||
*
|
||||
* @desc Get a particular task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.get
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The task to get properties of.
|
||||
* @param {string} params.taskqueue The taskqueue in which the task belongs.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.lease
|
||||
*
|
||||
* @desc Lease 1 or more tasks from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.lease
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.leaseSecs The lease in seconds.
|
||||
* @param {integer} params.numTasks The number of tasks to lease.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The taskqueue to lease a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
lease: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/lease').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.list
|
||||
*
|
||||
* @desc List Tasks in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.list
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to list tasks from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Task
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
* @type object
|
||||
* @property {string} enqueueTimestamp Time (in seconds since the epoch) at which the task was enqueued.
|
||||
* @property {string} id Name of the task.
|
||||
* @property {string} kind The kind of object returned, in this case set to task.
|
||||
* @property {string} leaseTimestamp Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
|
||||
* @property {string} payloadBase64 A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
|
||||
* @property {string} queueName Name of the queue that the task is in.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef TaskQueue
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
* @type object
|
||||
* @property {object} acl ACLs that are applicable to this TaskQueue object.
|
||||
* @property {string} id Name of the taskqueue.
|
||||
* @property {string} kind The kind of REST object returned, in this case taskqueue.
|
||||
* @property {integer} maxLeases The number of times we should lease out tasks before giving up on them. If unset we lease them out forever until a worker deletes the task.
|
||||
* @property {object} stats Statistics for the TaskQueue object in question.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tasks
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
* @type object
|
||||
* @property {taskqueue(v1beta1).Task[]} items The actual list of tasks returned as a result of the lease operation.
|
||||
* @property {string} kind The kind of object returned, a list of tasks.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tasks2
|
||||
* @memberOf! taskqueue(v1beta1)
|
||||
* @type object
|
||||
* @property {taskqueue(v1beta1).Task[]} items The actual list of tasks currently active in the TaskQueue.
|
||||
* @property {string} kind The kind of object returned, a list of tasks.
|
||||
*/
|
||||
export = Taskqueue;
|
||||
329
backend/node_modules/googleapis/apis/taskqueue/v1beta2.js
generated
vendored
Normal file
329
backend/node_modules/googleapis/apis/taskqueue/v1beta2.js
generated
vendored
Normal file
@@ -0,0 +1,329 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* TaskQueue API
|
||||
*
|
||||
* Accesses a Google App Engine Pull Task Queue over REST.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const taskqueue = google.taskqueue('v1beta2');
|
||||
*
|
||||
* @namespace taskqueue
|
||||
* @type {Function}
|
||||
* @version v1beta2
|
||||
* @variation v1beta2
|
||||
* @param {object=} options Options for Taskqueue
|
||||
*/
|
||||
function Taskqueue(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.taskqueues = {
|
||||
/**
|
||||
* taskqueue.taskqueues.get
|
||||
*
|
||||
* @desc Get detailed information about a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.taskqueues.get
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.getStats Whether to get stats. Optional.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to get the properties of.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.tasks = {
|
||||
/**
|
||||
* taskqueue.tasks.delete
|
||||
*
|
||||
* @desc Delete a task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.delete
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The id of the task to delete.
|
||||
* @param {string} params.taskqueue The taskqueue to delete a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.get
|
||||
*
|
||||
* @desc Get a particular task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.get
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The task to get properties of.
|
||||
* @param {string} params.taskqueue The taskqueue in which the task belongs.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.insert
|
||||
*
|
||||
* @desc Insert a new task in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.insert
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies
|
||||
* @param {string} params.taskqueue The taskqueue to insert the task into
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.lease
|
||||
*
|
||||
* @desc Lease 1 or more tasks from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.lease
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.groupByTag When true, all returned tasks will have the same tag
|
||||
* @param {integer} params.leaseSecs The lease in seconds.
|
||||
* @param {integer} params.numTasks The number of tasks to lease.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string=} params.tag The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, i.e. the first available tag
|
||||
* @param {string} params.taskqueue The taskqueue to lease a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
lease: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/lease').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.list
|
||||
*
|
||||
* @desc List Tasks in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.list
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to list tasks from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.patch
|
||||
*
|
||||
* @desc Update tasks that are leased out of a TaskQueue. This method supports patch semantics.
|
||||
*
|
||||
* @alias taskqueue.tasks.patch
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.newLeaseSeconds The new lease in seconds.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task
|
||||
* @param {string} params.taskqueue
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* taskqueue.tasks.update
|
||||
*
|
||||
* @desc Update tasks that are leased out of a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.update
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.newLeaseSeconds The new lease in seconds.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task
|
||||
* @param {string} params.taskqueue
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Taskqueue;
|
||||
//# sourceMappingURL=v1beta2.js.map
|
||||
1
backend/node_modules/googleapis/apis/taskqueue/v1beta2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/taskqueue/v1beta2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
407
backend/node_modules/googleapis/apis/taskqueue/v1beta2.ts
generated
vendored
Normal file
407
backend/node_modules/googleapis/apis/taskqueue/v1beta2.ts
generated
vendored
Normal file
@@ -0,0 +1,407 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* TaskQueue API
|
||||
*
|
||||
* Accesses a Google App Engine Pull Task Queue over REST.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const taskqueue = google.taskqueue('v1beta2');
|
||||
*
|
||||
* @namespace taskqueue
|
||||
* @type {Function}
|
||||
* @version v1beta2
|
||||
* @variation v1beta2
|
||||
* @param {object=} options Options for Taskqueue
|
||||
*/
|
||||
function Taskqueue(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.taskqueues = {
|
||||
|
||||
/**
|
||||
* taskqueue.taskqueues.get
|
||||
*
|
||||
* @desc Get detailed information about a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.taskqueues.get
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.getStats Whether to get stats. Optional.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to get the properties of.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.tasks = {
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.delete
|
||||
*
|
||||
* @desc Delete a task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.delete
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The id of the task to delete.
|
||||
* @param {string} params.taskqueue The taskqueue to delete a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
delete: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.get
|
||||
*
|
||||
* @desc Get a particular task from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.get
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task The task to get properties of.
|
||||
* @param {string} params.taskqueue The taskqueue in which the task belongs.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.insert
|
||||
*
|
||||
* @desc Insert a new task in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.insert
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies
|
||||
* @param {string} params.taskqueue The taskqueue to insert the task into
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
insert: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.lease
|
||||
*
|
||||
* @desc Lease 1 or more tasks from a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.lease
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {boolean=} params.groupByTag When true, all returned tasks will have the same tag
|
||||
* @param {integer} params.leaseSecs The lease in seconds.
|
||||
* @param {integer} params.numTasks The number of tasks to lease.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string=} params.tag The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, i.e. the first available tag
|
||||
* @param {string} params.taskqueue The taskqueue to lease a task from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
lease: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/lease').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.list
|
||||
*
|
||||
* @desc List Tasks in a TaskQueue
|
||||
*
|
||||
* @alias taskqueue.tasks.list
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.taskqueue The id of the taskqueue to list tasks from.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
list: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue'],
|
||||
pathParams: ['project', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.patch
|
||||
*
|
||||
* @desc Update tasks that are leased out of a TaskQueue. This method supports patch semantics.
|
||||
*
|
||||
* @alias taskqueue.tasks.patch
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.newLeaseSeconds The new lease in seconds.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task
|
||||
* @param {string} params.taskqueue
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
patch: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* taskqueue.tasks.update
|
||||
*
|
||||
* @desc Update tasks that are leased out of a TaskQueue.
|
||||
*
|
||||
* @alias taskqueue.tasks.update
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.newLeaseSeconds The new lease in seconds.
|
||||
* @param {string} params.project The project under which the queue lies.
|
||||
* @param {string} params.task
|
||||
* @param {string} params.taskqueue
|
||||
* @param {taskqueue(v1beta2).Task} params.resource Request body data
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
update: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'],
|
||||
pathParams: ['project', 'task', 'taskqueue'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Task
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
* @type object
|
||||
* @property {string} enqueueTimestamp Time (in seconds since the epoch) at which the task was enqueued.
|
||||
* @property {string} id Name of the task.
|
||||
* @property {string} kind The kind of object returned, in this case set to task.
|
||||
* @property {string} leaseTimestamp Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
|
||||
* @property {string} payloadBase64 A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
|
||||
* @property {string} queueName Name of the queue that the task is in.
|
||||
* @property {integer} retry_count The number of leases applied to this task.
|
||||
* @property {string} tag Tag for the task, could be used later to lease tasks grouped by a specific tag.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef TaskQueue
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
* @type object
|
||||
* @property {object} acl ACLs that are applicable to this TaskQueue object.
|
||||
* @property {string} id Name of the taskqueue.
|
||||
* @property {string} kind The kind of REST object returned, in this case taskqueue.
|
||||
* @property {integer} maxLeases The number of times we should lease out tasks before giving up on them. If unset we lease them out forever until a worker deletes the task.
|
||||
* @property {object} stats Statistics for the TaskQueue object in question.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tasks
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
* @type object
|
||||
* @property {taskqueue(v1beta2).Task[]} items The actual list of tasks returned as a result of the lease operation.
|
||||
* @property {string} kind The kind of object returned, a list of tasks.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tasks2
|
||||
* @memberOf! taskqueue(v1beta2)
|
||||
* @type object
|
||||
* @property {taskqueue(v1beta2).Task[]} items The actual list of tasks currently active in the TaskQueue.
|
||||
* @property {string} kind The kind of object returned, a list of tasks.
|
||||
*/
|
||||
export = Taskqueue;
|
||||
Reference in New Issue
Block a user