..
This commit is contained in:
75
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
75
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
"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");
|
||||
/**
|
||||
* Accelerated Mobile Pages (AMP) URL API
|
||||
*
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
*/
|
||||
function Acceleratedmobilepageurl(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.ampUrls = {
|
||||
/**
|
||||
* acceleratedmobilepageurl.ampUrls.batchGet
|
||||
*
|
||||
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
*
|
||||
* @alias acceleratedmobilepageurl.ampUrls.batchGet
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {acceleratedmobilepageurl(v1).BatchGetAmpUrlsRequest} 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
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Acceleratedmobilepageurl;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,kCAAkC,OAAO;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,OAAO,GAAG;QAEb;;;;;;;;;;;;;WAaG;QACH,QAAQ,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YAC3C,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,kDAAkD,CAAC;YAEtF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAyCD,iBAAS,wBAAwB,CAAC"}
|
||||
122
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.ts
generated
vendored
Normal file
122
backend/node_modules/googleapis/apis/acceleratedmobilepageurl/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Accelerated Mobile Pages (AMP) URL API
|
||||
*
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
*/
|
||||
function Acceleratedmobilepageurl(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.ampUrls = {
|
||||
|
||||
/**
|
||||
* acceleratedmobilepageurl.ampUrls.batchGet
|
||||
*
|
||||
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
*
|
||||
* @alias acceleratedmobilepageurl.ampUrls.batchGet
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {acceleratedmobilepageurl(v1).BatchGetAmpUrlsRequest} 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
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AmpUrl
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} ampUrl The AMP URL pointing to the publisher's web server.
|
||||
* @property {string} cdnAmpUrl The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
||||
the cached document in the Google AMP Cache.
|
||||
* @property {string} originalUrl The original non-AMP URL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AmpUrlError
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} errorCode The error code of an API call.
|
||||
* @property {string} errorMessage An optional descriptive error message.
|
||||
* @property {string} originalUrl The original non-AMP URL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef BatchGetAmpUrlsRequest
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {string} lookupStrategy The lookup_strategy being requested.
|
||||
* @property {string[]} urls List of URLs to look up for the paired AMP URLs.
|
||||
The URLs are case-sensitive. Up to 50 URLs per lookup
|
||||
(see [Usage Limits](/amp/cache/reference/limits)).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef BatchGetAmpUrlsResponse
|
||||
* @memberOf! acceleratedmobilepageurl(v1)
|
||||
* @type object
|
||||
* @property {acceleratedmobilepageurl(v1).AmpUrl[]} ampUrls For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
||||
not be in the same order as URLs in the batch request.
|
||||
If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
||||
only once.
|
||||
* @property {acceleratedmobilepageurl(v1).AmpUrlError[]} urlErrors The errors for requested URLs that have no AMP URL.
|
||||
*/
|
||||
export = Acceleratedmobilepageurl;
|
||||
278
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
278
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js
generated
vendored
Normal file
@@ -0,0 +1,278 @@
|
||||
"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");
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.2
|
||||
* @variation v1.2
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} 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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} 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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.creatives = {
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @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 + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.2).Creative} 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 + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @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 + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangebuyer;
|
||||
//# sourceMappingURL=v1.2.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.2.js","sourceRoot":"","sources":["v1.2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,yBAAyB,OAAO;IAC9B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,QAAQ,GAAG;QAEd;;;;;;;;;;;;;WAaG;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,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;WAYG;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,gCAAgC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;WAcG;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,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,OAAO;iBAChB,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;WAcG;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,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;WAcG;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,+DAA+D,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC9G,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;gBAChD,UAAU,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;gBAC5C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;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,iCAAiC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChF,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;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,iCAAiC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA6DD,iBAAS,eAAe,CAAC"}
|
||||
371
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.ts
generated
vendored
Normal file
371
backend/node_modules/googleapis/apis/adexchangebuyer/v1.2.ts
generated
vendored
Normal file
@@ -0,0 +1,371 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.2
|
||||
* @variation v1.2
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} 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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.2).Account} 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 + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.creatives = {
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @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 + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.2).Creative} 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 + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @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 + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {object[]} bidderLocation Your bidder locations that have distinct URLs.
|
||||
* @property {string} cookieMatchingNid The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
|
||||
* @property {string} cookieMatchingUrl The base URL used in cookie match requests.
|
||||
* @property {integer} id Account id.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {integer} maximumActiveCreatives The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
|
||||
* @property {integer} maximumTotalQps The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
|
||||
* @property {integer} numberActiveCreatives The number of creatives that this account inserted or bid with in the last 30 days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AccountsList
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {adexchangebuyer(v1.2).Account[]} items A list of accounts.
|
||||
* @property {string} kind Resource type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Creative
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {string} HTMLSnippet The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
|
||||
* @property {integer} accountId Account id.
|
||||
* @property {string[]} advertiserId Detected advertiser id, if any. Read-only. This field should not be set in requests.
|
||||
* @property {string} advertiserName The name of the company being advertised in the creative.
|
||||
* @property {string} agencyId The agency id for this creative.
|
||||
* @property {string} apiUploadTimestamp The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
|
||||
* @property {integer[]} attribute All attributes for the ads that may be shown from this snippet.
|
||||
* @property {string} buyerCreativeId A buyer-specific id identifying the creative in this ad.
|
||||
* @property {string[]} clickThroughUrl The set of destination urls for the snippet.
|
||||
* @property {object[]} corrections Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
|
||||
* @property {object[]} disapprovalReasons The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
|
||||
* @property {object} filteringReasons The filtering reasons for the creative. Read-only. This field should not be set in requests.
|
||||
* @property {integer} height Ad height.
|
||||
* @property {string[]} impressionTrackingUrl The set of urls to be called to record an impression.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {integer[]} productCategories Detected product categories, if any. Read-only. This field should not be set in requests.
|
||||
* @property {integer[]} restrictedCategories All restricted categories for the ads that may be shown from this snippet.
|
||||
* @property {integer[]} sensitiveCategories Detected sensitive categories, if any. Read-only. This field should not be set in requests.
|
||||
* @property {string} status Creative serving status. Read-only. This field should not be set in requests.
|
||||
* @property {integer[]} vendorType All vendor types for the ads that may be shown from this snippet.
|
||||
* @property {integer} version The version for this creative. Read-only. This field should not be set in requests.
|
||||
* @property {string} videoURL The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
||||
* @property {integer} width Ad width.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CreativesList
|
||||
* @memberOf! adexchangebuyer(v1.2)
|
||||
* @type object
|
||||
* @property {adexchangebuyer(v1.2).Creative[]} items A list of creatives.
|
||||
* @property {string} kind Resource type.
|
||||
* @property {string} nextPageToken Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangebuyer;
|
||||
766
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
766
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js
generated
vendored
Normal file
@@ -0,0 +1,766 @@
|
||||
"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");
|
||||
/**
|
||||
* Ad Exchange Buyer API
|
||||
*
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.3');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.3
|
||||
* @variation v1.3
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
*/
|
||||
function Adexchangebuyer(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
*
|
||||
* @desc Gets one account by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @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 + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
*
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.3).Account} 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 + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
*
|
||||
* @desc Updates an existing account.
|
||||
*
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {adexchangebuyer(v1.3).Account} 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 + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.billingInfo = {
|
||||
/**
|
||||
* adexchangebuyer.billingInfo.get
|
||||
*
|
||||
* @desc Returns the billing information for one account specified by account ID.
|
||||
*
|
||||
* @alias adexchangebuyer.billingInfo.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The account id.
|
||||
* @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 + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.billingInfo.list
|
||||
*
|
||||
* @desc Retrieves a list of billing information for all accounts of the authenticated user.
|
||||
*
|
||||
* @alias adexchangebuyer.billingInfo.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangebuyer/v1.3/billinginfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.budget = {
|
||||
/**
|
||||
* adexchangebuyer.budget.get
|
||||
*
|
||||
* @desc Returns the budget information for the adgroup specified by the accountId and billingId.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the budget information for.
|
||||
* @param {string} params.billingId The billing id to get the budget information for.
|
||||
* @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 + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.budget.patch
|
||||
*
|
||||
* @desc Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id associated with the budget being updated.
|
||||
* @param {string} params.billingId The billing id associated with the budget being updated.
|
||||
* @param {adexchangebuyer(v1.3).Budget} 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 + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.budget.update
|
||||
*
|
||||
* @desc Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
|
||||
*
|
||||
* @alias adexchangebuyer.budget.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id associated with the budget being updated.
|
||||
* @param {string} params.billingId The billing id associated with the budget being updated.
|
||||
* @param {adexchangebuyer(v1.3).Budget} 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 + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'billingId'],
|
||||
pathParams: ['accountId', 'billingId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.creatives = {
|
||||
/**
|
||||
* adexchangebuyer.creatives.get
|
||||
*
|
||||
* @desc Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.accountId The id for the account that will serve this creative.
|
||||
* @param {string} params.buyerCreativeId The buyer-specific id for this creative.
|
||||
* @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 + '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'buyerCreativeId'],
|
||||
pathParams: ['accountId', 'buyerCreativeId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
*
|
||||
* @desc Submit a new creative.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {adexchangebuyer(v1.3).Creative} 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 + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.creatives.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
*
|
||||
* @alias adexchangebuyer.creatives.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.accountId When specified, only creatives for the given account ids are returned.
|
||||
* @param {string=} params.buyerCreativeId When specified, only creatives for the given buyer creative ids are returned.
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
|
||||
* @param {string=} params.statusFilter When specified, only creatives having the given status are returned.
|
||||
* @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 + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.directDeals = {
|
||||
/**
|
||||
* adexchangebuyer.directDeals.get
|
||||
*
|
||||
* @desc Gets one direct deal by ID.
|
||||
*
|
||||
* @alias adexchangebuyer.directDeals.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.id The direct deal id
|
||||
* @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 + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['id'],
|
||||
pathParams: ['id'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.directDeals.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of direct deals.
|
||||
*
|
||||
* @alias adexchangebuyer.directDeals.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangebuyer/v1.3/directdeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.performanceReport = {
|
||||
/**
|
||||
* adexchangebuyer.performanceReport.list
|
||||
*
|
||||
* @desc Retrieves the authenticated user's list of performance metrics.
|
||||
*
|
||||
* @alias adexchangebuyer.performanceReport.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the reports.
|
||||
* @param {string} params.endDateTime The end time of the report in ISO 8601 timestamp format using UTC.
|
||||
* @param {integer=} params.maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
|
||||
* @param {string} params.startDateTime The start time of the report in ISO 8601 timestamp format using UTC.
|
||||
* @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 + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'endDateTime', 'startDateTime'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.pretargetingConfig = {
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.delete
|
||||
*
|
||||
* @desc Deletes an existing pretargeting config.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.delete
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to delete the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to delete.
|
||||
* @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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.get
|
||||
*
|
||||
* @desc Gets a specific pretargeting configuration
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.get
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to retrieve.
|
||||
* @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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.insert
|
||||
*
|
||||
* @desc Inserts a new pretargeting configuration.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.insert
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to insert the pretargeting config for.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} 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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.list
|
||||
*
|
||||
* @desc Retrieves a list of the authenticated user's pretargeting configurations.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.list
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to get the pretargeting configs for.
|
||||
* @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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.patch
|
||||
*
|
||||
* @desc Updates an existing pretargeting config. This method supports patch semantics.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.patch
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to update the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to update.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} 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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangebuyer.pretargetingConfig.update
|
||||
*
|
||||
* @desc Updates an existing pretargeting config.
|
||||
*
|
||||
* @alias adexchangebuyer.pretargetingConfig.update
|
||||
* @memberOf! adexchangebuyer(v1.3)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId The account id to update the pretargeting config for.
|
||||
* @param {string} params.configId The specific id of the configuration to update.
|
||||
* @param {adexchangebuyer(v1.3).PretargetingConfig} 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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'configId'],
|
||||
pathParams: ['accountId', 'configId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangebuyer;
|
||||
//# sourceMappingURL=v1.3.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1058
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.ts
generated
vendored
Normal file
1058
backend/node_modules/googleapis/apis/adexchangebuyer/v1.3.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1359
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
1359
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2226
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.ts
generated
vendored
Normal file
2226
backend/node_modules/googleapis/apis/adexchangebuyer/v1.4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1241
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
1241
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2115
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.ts
generated
vendored
Normal file
2115
backend/node_modules/googleapis/apis/adexchangebuyer2/v2beta1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
654
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js
generated
vendored
Normal file
654
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js
generated
vendored
Normal file
@@ -0,0 +1,654 @@
|
||||
"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");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1.1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @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 + '/adexchangeseller/v1.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adunits = {
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.alerts = {
|
||||
/**
|
||||
* adexchangeseller.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.alerts.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @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 + '/adexchangeseller/v1.1/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.metadata = {
|
||||
dimensions: {
|
||||
/**
|
||||
* adexchangeseller.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
/**
|
||||
* adexchangeseller.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.preferreddeals = {
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @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 + '/adexchangeseller/v1.1/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dealId'],
|
||||
pathParams: ['dealId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1.1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
927
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.ts
generated
vendored
Normal file
927
backend/node_modules/googleapis/apis/adexchangeseller/v1.1.ts
generated
vendored
Normal file
@@ -0,0 +1,927 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1.1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @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 + '/adexchangeseller/v1.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adclients = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adunits = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.alerts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.alerts.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @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 + '/adexchangeseller/v1.1/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.customchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.metadata = {
|
||||
dimensions: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.preferreddeals = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @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 + '/adexchangeseller/v1.1/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dealId'],
|
||||
pathParams: ['dealId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @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 + '/adexchangeseller/v1.1/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1.1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.urlchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this account.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#account.
|
||||
* @property {string} name Name of this account.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnit
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} code Identity code of this ad unit, not necessarily unique across ad clients.
|
||||
* @property {string} id Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adUnit.
|
||||
* @property {string} name Name of this ad unit.
|
||||
* @property {string} status Status of this ad unit. Possible values are:
|
||||
NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
|
||||
|
||||
ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
|
||||
|
||||
INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnits
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).AdUnit[]} items The ad units returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adUnits.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alert
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#alert.
|
||||
* @property {string} message The localized alert message.
|
||||
* @property {string} severity Severity of this alert. Possible values: INFO, WARNING, SEVERE.
|
||||
* @property {string} type Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alerts
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).Alert[]} items The alerts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#alerts.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metadata
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).ReportingMetadataEntry[]} items
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#metadata.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeal
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} advertiserName The name of the advertiser this deal is for.
|
||||
* @property {string} buyerNetworkName The name of the buyer network this deal is for.
|
||||
* @property {string} currencyCode The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
|
||||
* @property {string} endTime Time when this deal stops being active in seconds since the epoch (GMT). If not set then this deal is valid until manually disabled by the publisher.
|
||||
* @property {string} fixedCpm The fixed price for this preferred deal. In cpm micros of currency according to currencyCode. If set, then this preferred deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
|
||||
* @property {string} id Unique identifier of this preferred deal.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#preferredDeal.
|
||||
* @property {string} startTime Time when this deal becomes active in seconds since the epoch (GMT). If not set then this deal is active immediately upon creation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeals
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v1.1).PreferredDeal[]} items The preferred deals returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#preferredDeals.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
|
||||
* @property {string} totalMatchedRows The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportingMetadataEntry
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string[]} compatibleDimensions For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
|
||||
* @property {string[]} compatibleMetrics The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
|
||||
* @property {string} id Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry.
|
||||
* @property {string[]} requiredDimensions The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} requiredMetrics The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} supportedProducts The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v1.1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1.1).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
447
backend/node_modules/googleapis/apis/adexchangeseller/v1.js
generated
vendored
Normal file
447
backend/node_modules/googleapis/apis/adexchangeseller/v1.js
generated
vendored
Normal file
@@ -0,0 +1,447 @@
|
||||
"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");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.adunits = {
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
618
backend/node_modules/googleapis/apis/adexchangeseller/v1.ts
generated
vendored
Normal file
618
backend/node_modules/googleapis/apis/adexchangeseller/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,618 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v1');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.adclients = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adclients.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.adunits = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.get
|
||||
*
|
||||
* @desc Gets the specified ad unit in the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to get the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to retrieve.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.adunits.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels which the specified ad unit belongs to.
|
||||
*
|
||||
* @alias adexchangeseller.adunits.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'adUnitId'],
|
||||
pathParams: ['adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.customchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.get
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adunits: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.customchannels.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified custom channel.
|
||||
*
|
||||
* @alias adexchangeseller.customchannels.adunits.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.reports.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v1/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['savedReportId'],
|
||||
pathParams: ['savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.urlchannels = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnit
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} code Identity code of this ad unit, not necessarily unique across ad clients.
|
||||
* @property {string} id Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adUnit.
|
||||
* @property {string} name Name of this ad unit.
|
||||
* @property {string} status Status of this ad unit. Possible values are:
|
||||
NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
|
||||
|
||||
ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
|
||||
|
||||
INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdUnits
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).AdUnit[]} items The ad units returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adUnits.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
|
||||
* @property {string} totalMatchedRows The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v1).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
551
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js
generated
vendored
Normal file
551
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js
generated
vendored
Normal file
@@ -0,0 +1,551 @@
|
||||
"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");
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v2.0');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v2.0
|
||||
* @variation v2.0
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.list
|
||||
*
|
||||
* @desc List all accounts available to this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of accounts to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
/**
|
||||
* adexchangeseller.accounts.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.adclients.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
alerts: {
|
||||
/**
|
||||
* adexchangeseller.accounts.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.alerts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the alerts.
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
customchannels: {
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
pathParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
dimensions: {
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the dimensions.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the metrics.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
preferreddeals: {
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deal.
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'dealId'],
|
||||
pathParams: ['accountId', 'dealId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deals.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which owns the generated report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'savedReportId'],
|
||||
pathParams: ['accountId', 'savedReportId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved reports.
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
urlchannels: {
|
||||
/**
|
||||
* adexchangeseller.accounts.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexchangeseller;
|
||||
//# sourceMappingURL=v2.0.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
783
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.ts
generated
vendored
Normal file
783
backend/node_modules/googleapis/apis/adexchangeseller/v2.0.ts
generated
vendored
Normal file
@@ -0,0 +1,783 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Ad Exchange Seller API
|
||||
*
|
||||
* Accesses the inventory of Ad Exchange seller users and generates reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexchangeseller = google.adexchangeseller('v2.0');
|
||||
*
|
||||
* @namespace adexchangeseller
|
||||
* @type {Function}
|
||||
* @version v2.0
|
||||
* @variation v2.0
|
||||
* @param {object=} options Options for Adexchangeseller
|
||||
*/
|
||||
function Adexchangeseller(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.accounts = {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about. Tip: 'myaccount' is a valid ID.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.list
|
||||
*
|
||||
* @desc List all accounts available to this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of accounts to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.adclients.list
|
||||
*
|
||||
* @desc List all ad clients in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.adclients.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
alerts: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.alerts.list
|
||||
*
|
||||
* @desc List the alerts for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.alerts.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the alerts.
|
||||
* @param {string=} params.locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
customchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.get
|
||||
*
|
||||
* @desc Get the specified custom channel from the specified ad client.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client which contains the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to retrieve.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
pathParams: ['accountId', 'adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.customchannels.list
|
||||
*
|
||||
* @desc List all custom channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.customchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metadata: {
|
||||
dimensions: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.dimensions.list
|
||||
*
|
||||
* @desc List the metadata for the dimensions available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.dimensions.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the dimensions.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
metrics: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.metadata.metrics.list
|
||||
*
|
||||
* @desc List the metadata for the metrics available to this AdExchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.metadata.metrics.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account with visibility to the metrics.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
preferreddeals: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.get
|
||||
*
|
||||
* @desc Get information about the selected Ad Exchange Preferred Deal.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.get
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deal.
|
||||
* @param {string} params.dealId Preferred deal to get information about.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals/{dealId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'dealId'],
|
||||
pathParams: ['accountId', 'dealId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.preferreddeals.list
|
||||
*
|
||||
* @desc List the preferred deals for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.preferreddeals.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the deals.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/preferreddeals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which owns the generated report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
saved: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.generate
|
||||
*
|
||||
* @desc Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.generate
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string} params.savedReportId The saved report to retrieve.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'savedReportId'],
|
||||
pathParams: ['accountId', 'savedReportId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.reports.saved.list
|
||||
*
|
||||
* @desc List all saved reports in this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.reports.saved.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account owning the saved reports.
|
||||
* @param {integer=} params.maxResults The maximum number of saved reports to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/reports/saved').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
urlchannels: {
|
||||
|
||||
/**
|
||||
* adexchangeseller.accounts.urlchannels.list
|
||||
*
|
||||
* @desc List all URL channels in the specified ad client for this Ad Exchange account.
|
||||
*
|
||||
* @alias adexchangeseller.accounts.urlchannels.list
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to which the ad client belongs.
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adexchangeseller/v2.0/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Account
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this account.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#account.
|
||||
* @property {string} name Name of this account.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Accounts
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).Account[]} items The accounts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#accounts.
|
||||
* @property {string} nextPageToken Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClient
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {boolean} arcOptIn Whether this ad client is opted in to ARC.
|
||||
* @property {string} id Unique identifier of this ad client.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#adClient.
|
||||
* @property {string} productCode This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
|
||||
* @property {boolean} supportsReporting Whether this ad client supports being reported on.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AdClients
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).AdClient[]} items The ad clients returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#adClients.
|
||||
* @property {string} nextPageToken Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alert
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#alert.
|
||||
* @property {string} message The localized alert message.
|
||||
* @property {string} severity Severity of this alert. Possible values: INFO, WARNING, SEVERE.
|
||||
* @property {string} type Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Alerts
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).Alert[]} items The alerts returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#alerts.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannel
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} code Code of this custom channel, not necessarily unique across ad clients.
|
||||
* @property {string} id Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#customChannel.
|
||||
* @property {string} name Name of this custom channel.
|
||||
* @property {object} targetingInfo The targeting information of this custom channel, if activated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CustomChannels
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).CustomChannel[]} items The custom channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#customChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metadata
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).ReportingMetadataEntry[]} items
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#metadata.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeal
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} advertiserName The name of the advertiser this deal is for.
|
||||
* @property {string} buyerNetworkName The name of the buyer network this deal is for.
|
||||
* @property {string} currencyCode The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
|
||||
* @property {string} endTime Time when this deal stops being active in seconds since the epoch (GMT). If not set then this deal is valid until manually disabled by the publisher.
|
||||
* @property {string} fixedCpm The fixed price for this preferred deal. In cpm micros of currency according to currencyCode. If set, then this preferred deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
|
||||
* @property {string} id Unique identifier of this preferred deal.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#preferredDeal.
|
||||
* @property {string} startTime Time when this deal becomes active in seconds since the epoch (GMT). If not set then this deal is active immediately upon creation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PreferredDeals
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {adexchangeseller(v2.0).PreferredDeal[]} items The preferred deals returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#preferredDeals.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string[]} averages The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {object[]} headers The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
|
||||
* @property {string} kind Kind this is, in this case adexchangeseller#report.
|
||||
* @property {array[]} rows The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
|
||||
* @property {string} totalMatchedRows The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
|
||||
* @property {string[]} totals The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
|
||||
* @property {string[]} warnings Any warnings associated with generation of the report.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportingMetadataEntry
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string[]} compatibleDimensions For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
|
||||
* @property {string[]} compatibleMetrics The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
|
||||
* @property {string} id Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry.
|
||||
* @property {string[]} requiredDimensions The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} requiredMetrics The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
|
||||
* @property {string[]} supportedProducts The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReport
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this saved report.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#savedReport.
|
||||
* @property {string} name This saved report's name.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SavedReports
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).SavedReport[]} items The saved reports returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#savedReports.
|
||||
* @property {string} nextPageToken Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannel
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} id Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
|
||||
* @property {string} kind Kind of resource this is, in this case adexchangeseller#urlChannel.
|
||||
* @property {string} urlPattern URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UrlChannels
|
||||
* @memberOf! adexchangeseller(v2.0)
|
||||
* @type object
|
||||
* @property {string} etag ETag of this response for caching purposes.
|
||||
* @property {adexchangeseller(v2.0).UrlChannel[]} items The URL channels returned in this list response.
|
||||
* @property {string} kind Kind of list this is, in this case adexchangeseller#urlChannels.
|
||||
* @property {string} nextPageToken Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
export = Adexchangeseller;
|
||||
108
backend/node_modules/googleapis/apis/adexperiencereport/v1.js
generated
vendored
Normal file
108
backend/node_modules/googleapis/apis/adexperiencereport/v1.js
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
"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");
|
||||
/**
|
||||
* Google Ad Experience Report API
|
||||
*
|
||||
* View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
*/
|
||||
function Adexperiencereport(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.sites = {
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
*
|
||||
* @desc Gets a summary of the ad experience rating of a site.
|
||||
*
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
|
||||
* @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://adexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.violatingSites = {
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
*
|
||||
* @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||
*
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @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://adexperiencereport.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adexperiencereport;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adexperiencereport/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adexperiencereport/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,4BAA4B,OAAO;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,KAAK,GAAG;QAEX;;;;;;;;;;;;;WAaG;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,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC3D,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,cAAc,GAAG;QAEpB;;;;;;;;;;;;WAYG;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,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACnE,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8BD,iBAAS,kBAAkB,CAAC"}
|
||||
150
backend/node_modules/googleapis/apis/adexperiencereport/v1.ts
generated
vendored
Normal file
150
backend/node_modules/googleapis/apis/adexperiencereport/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google Ad Experience Report API
|
||||
*
|
||||
* View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
*/
|
||||
function Adexperiencereport(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.sites = {
|
||||
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
*
|
||||
* @desc Gets a summary of the ad experience rating of a site.
|
||||
*
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
|
||||
* @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://adexperiencereport.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.violatingSites = {
|
||||
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
*
|
||||
* @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||
*
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @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://adexperiencereport.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef PlatformSummary
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {string} betterAdsStatus The status of the site reviewed for the Better Ads Standards.
|
||||
* @property {string} enforcementTime The date on which ad filtering begins.
|
||||
* @property {string} filterStatus The ad filtering status of the site.
|
||||
* @property {string} lastChangeTime The last time that the site changed status.
|
||||
* @property {string[]} region The assigned regions for the site and platform.
|
||||
* @property {string} reportUrl A link that leads to a full ad experience report.
|
||||
* @property {boolean} underReview Whether the site is currently under review.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SiteSummaryResponse
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {adexperiencereport(v1).PlatformSummary} desktopSummary Summary for the desktop review of the site.
|
||||
* @property {adexperiencereport(v1).PlatformSummary} mobileSummary Summary for the mobile review of the site.
|
||||
* @property {string} reviewedSite The name of the site reviewed.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ViolatingSitesResponse
|
||||
* @memberOf! adexperiencereport(v1)
|
||||
* @type object
|
||||
* @property {adexperiencereport(v1).SiteSummaryResponse[]} violatingSites A list of summaries of violating sites.
|
||||
*/
|
||||
export = Adexperiencereport;
|
||||
215
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
215
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
"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");
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version datatransfer_v1
|
||||
* @variation datatransfer_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.applications = {
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
*
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
*
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.applicationId ID of the application resource to be retrieved.
|
||||
* @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 + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['applicationId'],
|
||||
pathParams: ['applicationId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
*
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
*
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.pageToken Token to specify next page in the list.
|
||||
* @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 + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.transfers = {
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
*
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
*
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dataTransferId ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
* @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 + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dataTransferId'],
|
||||
pathParams: ['dataTransferId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
*
|
||||
* @desc Inserts a data transfer request.
|
||||
*
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(datatransfer_v1).DataTransfer} 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 + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
*
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
*
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.newOwnerUserId Destination user's profile ID.
|
||||
* @param {string=} params.oldOwnerUserId Source user's profile ID.
|
||||
* @param {string=} params.pageToken Token to specify the next page in the list.
|
||||
* @param {string=} params.status Status of the transfer.
|
||||
* @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 + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Admin;
|
||||
//# sourceMappingURL=datatransfer_v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/datatransfer_v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"datatransfer_v1.js","sourceRoot":"","sources":["datatransfer_v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,eAAe,OAAO;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,YAAY,GAAG;QAElB;;;;;;;;;;;;;WAaG;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,qDAAqD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,eAAe,CAAC;gBACjC,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;WAeG;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,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;WAaG;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,mDAAmD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAClG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,gBAAgB,CAAC;gBAClC,UAAU,EAAE,CAAC,gBAAgB,CAAC;gBAC9B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;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,kCAAkC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjF,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;;;;WAkBG;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,kCAAkC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA+DD,iBAAS,KAAK,CAAC"}
|
||||
302
backend/node_modules/googleapis/apis/admin/datatransfer_v1.ts
generated
vendored
Normal file
302
backend/node_modules/googleapis/apis/admin/datatransfer_v1.ts
generated
vendored
Normal file
@@ -0,0 +1,302 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version datatransfer_v1
|
||||
* @variation datatransfer_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.applications = {
|
||||
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
*
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
*
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.applicationId ID of the application resource to be retrieved.
|
||||
* @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 + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['applicationId'],
|
||||
pathParams: ['applicationId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
*
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
*
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.pageToken Token to specify next page in the list.
|
||||
* @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 + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.transfers = {
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
*
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
*
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.dataTransferId ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
* @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 + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['dataTransferId'],
|
||||
pathParams: ['dataTransferId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
*
|
||||
* @desc Inserts a data transfer request.
|
||||
*
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(datatransfer_v1).DataTransfer} 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 + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
*
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
*
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the Google Apps account.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Default is 100.
|
||||
* @param {string=} params.newOwnerUserId Destination user's profile ID.
|
||||
* @param {string=} params.oldOwnerUserId Source user's profile ID.
|
||||
* @param {string=} params.pageToken Token to specify the next page in the list.
|
||||
* @param {string=} params.status Status of the transfer.
|
||||
* @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 + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Application
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} etag Etag of the resource.
|
||||
* @property {string} id The application's ID.
|
||||
* @property {string} kind Identifies the resource as a DataTransfer Application Resource.
|
||||
* @property {string} name The application's name.
|
||||
* @property {admin(datatransfer_v1).ApplicationTransferParam[]} transferParams The list of all possible transfer parameters for this application. These parameters can be used to select the data of the user in this application to be transfered.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationDataTransfer
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} applicationId The application's ID.
|
||||
* @property {admin(datatransfer_v1).ApplicationTransferParam[]} applicationTransferParams The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.
|
||||
* @property {string} applicationTransferStatus Current status of transfer for this application. (Read-only)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationTransferParam
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {string} key The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||
* @property {string[]} value The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ApplicationsListResponse
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).Application[]} applications List of applications that support data transfer and are also installed for the customer.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind Identifies the resource as a collection of Applications.
|
||||
* @property {string} nextPageToken Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DataTransfer
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).ApplicationDataTransfer[]} applicationDataTransfers List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} id The transfer's ID (Read-only).
|
||||
* @property {string} kind Identifies the resource as a DataTransfer request.
|
||||
* @property {string} newOwnerUserId ID of the user to whom the data is being transfered.
|
||||
* @property {string} oldOwnerUserId ID of the user whose data is being transfered.
|
||||
* @property {string} overallTransferStatusCode Overall transfer status (Read-only).
|
||||
* @property {string} requestTime The time at which the data transfer was requested (Read-only).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DataTransfersListResponse
|
||||
* @memberOf! admin(datatransfer_v1)
|
||||
* @type object
|
||||
* @property {admin(datatransfer_v1).DataTransfer[]} dataTransfers List of data transfer requests.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind Identifies the resource as a collection of data transfer requests.
|
||||
* @property {string} nextPageToken Continuation token which will be used to specify next page in list API.
|
||||
*/
|
||||
export = Admin;
|
||||
3434
backend/node_modules/googleapis/apis/admin/directory_v1.js
generated
vendored
Normal file
3434
backend/node_modules/googleapis/apis/admin/directory_v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/admin/directory_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/directory_v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4648
backend/node_modules/googleapis/apis/admin/directory_v1.ts
generated
vendored
Normal file
4648
backend/node_modules/googleapis/apis/admin/directory_v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
240
backend/node_modules/googleapis/apis/admin/reports_v1.js
generated
vendored
Normal file
240
backend/node_modules/googleapis/apis/admin/reports_v1.js
generated
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
"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");
|
||||
/**
|
||||
* Admin Reports API
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version reports_v1
|
||||
* @variation reports_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.activities = {
|
||||
/**
|
||||
* reports.activities.list
|
||||
*
|
||||
* @desc Retrieves a list of activities for a specific customer and application.
|
||||
*
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.
|
||||
* @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 + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* reports.activities.watch
|
||||
*
|
||||
* @desc Push changes to activities
|
||||
*
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.
|
||||
* @param {admin(reports_v1).Channel} 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
|
||||
*/
|
||||
watch: 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 + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.channels = {
|
||||
/**
|
||||
* admin.channels.stop
|
||||
*
|
||||
* @desc Stop watching resources through this channel
|
||||
*
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(reports_v1).Channel} 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
|
||||
*/
|
||||
stop: 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 + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customerUsageReports = {
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a specific customer.
|
||||
*
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @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 + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['date'],
|
||||
pathParams: ['date'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.userUsageReport = {
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of users.
|
||||
*
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.filters Represents the set of filters including parameter operator value.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Maximum allowed is 1000
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered.
|
||||
* @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 + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'date'],
|
||||
pathParams: ['date', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Admin;
|
||||
//# sourceMappingURL=reports_v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/admin/reports_v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/admin/reports_v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"reports_v1.js","sourceRoot":"","sources":["reports_v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,eAAe,OAAO;IACpB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,UAAU,GAAG;QAEhB;;;;;;;;;;;;;;;;;;;;;;WAsBG;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,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,iBAAiB,CAAC;gBAC9C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;gBAC1C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;;;;;;;;;WAuBG;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,iFAAiF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAChI,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC;gBAC9C,UAAU,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC;gBAC1C,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,QAAQ,GAAG;QAEd;;;;;;;;;;;;;WAaG;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,kDAAkD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjG,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,oBAAoB,GAAG;QAE1B;;;;;;;;;;;;;;;;WAgBG;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,sCAAsC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrF,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,eAAe,GAAG;QAErB;;;;;;;;;;;;;;;;;;;WAmBG;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,sDAAsD,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrG,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;gBACnC,UAAU,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;gBAC/B,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8DD,iBAAS,KAAK,CAAC"}
|
||||
330
backend/node_modules/googleapis/apis/admin/reports_v1.ts
generated
vendored
Normal file
330
backend/node_modules/googleapis/apis/admin/reports_v1.ts
generated
vendored
Normal file
@@ -0,0 +1,330 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Admin Reports API
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* @namespace admin
|
||||
* @type {Function}
|
||||
* @version reports_v1
|
||||
* @variation reports_v1
|
||||
* @param {object=} options Options for Admin
|
||||
*/
|
||||
function Admin(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.activities = {
|
||||
|
||||
/**
|
||||
* reports.activities.list
|
||||
*
|
||||
* @desc Retrieves a list of activities for a specific customer and application.
|
||||
*
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.
|
||||
* @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 + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* reports.activities.watch
|
||||
*
|
||||
* @desc Push changes to activities
|
||||
*
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string=} params.endTime Return events which occurred at or before this time.
|
||||
* @param {string=} params.eventName Name of the event being queried.
|
||||
* @param {string=} params.filters Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
|
||||
* @param {integer=} params.maxResults Number of activity records to be shown in each page.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.startTime Return events which occurred at or after this time.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.
|
||||
* @param {admin(reports_v1).Channel} 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
|
||||
*/
|
||||
watch: 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 + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'applicationName'],
|
||||
pathParams: ['applicationName', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.channels = {
|
||||
|
||||
/**
|
||||
* admin.channels.stop
|
||||
*
|
||||
* @desc Stop watching resources through this channel
|
||||
*
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {admin(reports_v1).Channel} 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
|
||||
*/
|
||||
stop: 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 + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.customerUsageReports = {
|
||||
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a specific customer.
|
||||
*
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @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 + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['date'],
|
||||
pathParams: ['date'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.userUsageReport = {
|
||||
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
*
|
||||
* @desc Retrieves a report which is a collection of properties / statistics for a set of users.
|
||||
*
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! admin(reports_v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId Represents the customer for which the data is to be fetched.
|
||||
* @param {string} params.date Represents the date in yyyy-mm-dd format for which the data is to be fetched.
|
||||
* @param {string=} params.filters Represents the set of filters including parameter operator value.
|
||||
* @param {integer=} params.maxResults Maximum number of results to return. Maximum allowed is 1000
|
||||
* @param {string=} params.pageToken Token to specify next page.
|
||||
* @param {string=} params.parameters Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
|
||||
* @param {string} params.userKey Represents the profile id or the user email for which the data should be filtered.
|
||||
* @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 + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userKey', 'date'],
|
||||
pathParams: ['date', 'userKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Activities
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {admin(reports_v1).Activity[]} items Each record in read response.
|
||||
* @property {string} kind Kind of list response this is.
|
||||
* @property {string} nextPageToken Token for retrieving the next page
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Activity
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {object} actor User doing the action.
|
||||
* @property {string} etag ETag of the entry.
|
||||
* @property {object[]} events Activity events.
|
||||
* @property {object} id Unique identifier for each activity record.
|
||||
* @property {string} ipAddress IP Address of the user doing the action.
|
||||
* @property {string} kind Kind of resource this is.
|
||||
* @property {string} ownerDomain Domain of source customer.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Channel
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} address The address where notifications are delivered for this channel.
|
||||
* @property {string} expiration Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
|
||||
* @property {string} id A UUID or similar unique string that identifies this channel.
|
||||
* @property {string} kind Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
|
||||
* @property {object} params Additional parameters controlling delivery channel behavior. Optional.
|
||||
* @property {boolean} payload A Boolean value to indicate whether payload is wanted. Optional.
|
||||
* @property {string} resourceId An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
|
||||
* @property {string} resourceUri A version-specific identifier for the watched resource.
|
||||
* @property {string} token An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
|
||||
* @property {string} type The type of delivery mechanism used for this channel.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UsageReport
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} date The date to which the record belongs.
|
||||
* @property {object} entity Information about the type of the item.
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind The kind of object.
|
||||
* @property {object[]} parameters Parameter value pairs for various applications.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UsageReports
|
||||
* @memberOf! admin(reports_v1)
|
||||
* @type object
|
||||
* @property {string} etag ETag of the resource.
|
||||
* @property {string} kind The kind of object.
|
||||
* @property {string} nextPageToken Token for retrieving the next page
|
||||
* @property {admin(reports_v1).UsageReport[]} usageReports Various application parameter records.
|
||||
* @property {object[]} warnings Warnings if any.
|
||||
*/
|
||||
export = Admin;
|
||||
1427
backend/node_modules/googleapis/apis/adsense/v1.4.js
generated
vendored
Normal file
1427
backend/node_modules/googleapis/apis/adsense/v1.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/adsense/v1.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adsense/v1.4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1842
backend/node_modules/googleapis/apis/adsense/v1.4.ts
generated
vendored
Normal file
1842
backend/node_modules/googleapis/apis/adsense/v1.4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
969
backend/node_modules/googleapis/apis/adsensehost/v4.1.js
generated
vendored
Normal file
969
backend/node_modules/googleapis/apis/adsensehost/v4.1.js
generated
vendored
Normal file
@@ -0,0 +1,969 @@
|
||||
"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");
|
||||
/**
|
||||
* AdSense Host API
|
||||
*
|
||||
* Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const adsensehost = google.adsensehost('v4.1');
|
||||
*
|
||||
* @namespace adsensehost
|
||||
* @type {Function}
|
||||
* @version v4.1
|
||||
* @variation v4.1
|
||||
* @param {object=} options Options for Adsensehost
|
||||
*/
|
||||
function Adsensehost(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.accounts = {
|
||||
/**
|
||||
* adsensehost.accounts.get
|
||||
*
|
||||
* @desc Get information about the selected associated AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account to get information about.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.list
|
||||
*
|
||||
* @desc List hosted accounts associated with this AdSense account by ad client id.
|
||||
*
|
||||
* @alias adsensehost.accounts.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.filterAdClientId Ad clients to list accounts for.
|
||||
* @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 + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['filterAdClientId'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
adclients: {
|
||||
/**
|
||||
* adsensehost.accounts.adclients.get
|
||||
*
|
||||
* @desc Get information about one of the ad clients in the specified publisher's AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adclients.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client to get.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adclients.list
|
||||
*
|
||||
* @desc List all hosted ad clients in the specified hosted account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adclients.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account for which to list ad clients.
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
adunits: {
|
||||
/**
|
||||
* adsensehost.accounts.adunits.delete
|
||||
*
|
||||
* @desc Delete the specified ad unit from the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad unit.
|
||||
* @param {string} params.adClientId Ad client for which to get ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to delete.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.get
|
||||
*
|
||||
* @desc Get the specified host ad unit in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad unit.
|
||||
* @param {string} params.adClientId Ad client for which to get ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.getAdCode
|
||||
*
|
||||
* @desc Get ad code for the specified ad unit, attaching the specified host custom channels.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.getAdCode
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client with contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get the code for.
|
||||
* @param {string=} params.hostCustomChannelId Host custom channel to attach to the ad code.
|
||||
* @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
|
||||
*/
|
||||
getAdCode: 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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.insert
|
||||
*
|
||||
* @desc Insert the supplied ad unit into the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which will contain the ad unit.
|
||||
* @param {string} params.adClientId Ad client into which to insert the ad unit.
|
||||
* @param {adsensehost(v4.1).AdUnit} 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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.list
|
||||
*
|
||||
* @desc List all ad units in the specified publisher's AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client for which to list ad units.
|
||||
* @param {boolean=} params.includeInactive Whether to include inactive ad units. Default: true.
|
||||
* @param {integer=} params.maxResults The maximum number of ad units to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.patch
|
||||
*
|
||||
* @desc Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.patch
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {string} params.adUnitId Ad unit to get.
|
||||
* @param {adsensehost(v4.1).AdUnit} 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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId', 'adUnitId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.accounts.adunits.update
|
||||
*
|
||||
* @desc Update the supplied ad unit in the specified publisher AdSense account.
|
||||
*
|
||||
* @alias adsensehost.accounts.adunits.update
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account which contains the ad client.
|
||||
* @param {string} params.adClientId Ad client which contains the ad unit.
|
||||
* @param {adsensehost(v4.1).AdUnit} 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 + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'adClientId'],
|
||||
pathParams: ['accountId', 'adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
reports: {
|
||||
/**
|
||||
* adsensehost.accounts.reports.generate
|
||||
*
|
||||
* @desc Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adsensehost.accounts.reports.generate
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Hosted account upon which to report.
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'startDate', 'endDate'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.adclients = {
|
||||
/**
|
||||
* adsensehost.adclients.get
|
||||
*
|
||||
* @desc Get information about one of the ad clients in the Host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.adclients.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to get.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.adclients.list
|
||||
*
|
||||
* @desc List all host ad clients in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.adclients.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.maxResults The maximum number of ad clients to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adsensehost/v4.1/adclients').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.associationsessions = {
|
||||
/**
|
||||
* adsensehost.associationsessions.start
|
||||
*
|
||||
* @desc Create an association session for initiating an association with an AdSense user.
|
||||
*
|
||||
* @alias adsensehost.associationsessions.start
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.productCode Products to associate with the user.
|
||||
* @param {string=} params.userLocale The preferred locale of the user.
|
||||
* @param {string=} params.websiteLocale The locale of the user's hosted website.
|
||||
* @param {string} params.websiteUrl The URL of the user's hosted website.
|
||||
* @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
|
||||
*/
|
||||
start: 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 + '/adsensehost/v4.1/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['productCode', 'websiteUrl'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.associationsessions.verify
|
||||
*
|
||||
* @desc Verify an association session after the association callback returns from AdSense signup.
|
||||
*
|
||||
* @alias adsensehost.associationsessions.verify
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.token The token returned to the association callback URL.
|
||||
* @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
|
||||
*/
|
||||
verify: 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 + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['token'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.customchannels = {
|
||||
/**
|
||||
* adsensehost.customchannels.delete
|
||||
*
|
||||
* @desc Delete a specific custom channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to delete the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to delete.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.get
|
||||
*
|
||||
* @desc Get a specific custom channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.get
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to get the custom channel.
|
||||
* @param {string} params.customChannelId Custom channel to get.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId', 'customChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.insert
|
||||
*
|
||||
* @desc Add a new custom channel to the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to which the new custom channel will be added.
|
||||
* @param {adsensehost(v4.1).CustomChannel} 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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.list
|
||||
*
|
||||
* @desc List all host custom channels in this AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list custom channels.
|
||||
* @param {integer=} params.maxResults The maximum number of custom channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.patch
|
||||
*
|
||||
* @desc Update a custom channel in the host AdSense account. This method supports patch semantics.
|
||||
*
|
||||
* @alias adsensehost.customchannels.patch
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client in which the custom channel will be updated.
|
||||
* @param {string} params.customChannelId Custom channel to get.
|
||||
* @param {adsensehost(v4.1).CustomChannel} 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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'customChannelId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.customchannels.update
|
||||
*
|
||||
* @desc Update a custom channel in the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.customchannels.update
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client in which the custom channel will be updated.
|
||||
* @param {adsensehost(v4.1).CustomChannel} 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 + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.reports = {
|
||||
/**
|
||||
* adsensehost.reports.generate
|
||||
*
|
||||
* @desc Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
|
||||
*
|
||||
* @alias adsensehost.reports.generate
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimension Dimensions to base the report on.
|
||||
* @param {string} params.endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {string=} params.filter Filters to be run on the report.
|
||||
* @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
|
||||
* @param {integer=} params.maxResults The maximum number of rows of report data to return.
|
||||
* @param {string=} params.metric Numeric columns to include in the report.
|
||||
* @param {string=} params.sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
|
||||
* @param {string} params.startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
||||
* @param {integer=} params.startIndex Index of the first row of report data to return.
|
||||
* @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
|
||||
*/
|
||||
generate: 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 + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['startDate', 'endDate'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.urlchannels = {
|
||||
/**
|
||||
* adsensehost.urlchannels.delete
|
||||
*
|
||||
* @desc Delete a URL channel from the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.delete
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client from which to delete the URL channel.
|
||||
* @param {string} params.urlChannelId URL channel to delete.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId', 'urlChannelId'],
|
||||
pathParams: ['adClientId', 'urlChannelId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.urlchannels.insert
|
||||
*
|
||||
* @desc Add a new URL channel to the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.insert
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client to which the new URL channel will be added.
|
||||
* @param {adsensehost(v4.1).UrlChannel} 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 + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* adsensehost.urlchannels.list
|
||||
*
|
||||
* @desc List all host URL channels in the host AdSense account.
|
||||
*
|
||||
* @alias adsensehost.urlchannels.list
|
||||
* @memberOf! adsensehost(v4.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.adClientId Ad client for which to list URL channels.
|
||||
* @param {integer=} params.maxResults The maximum number of URL channels to include in the response, used for paging.
|
||||
* @param {string=} params.pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
|
||||
* @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 + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['adClientId'],
|
||||
pathParams: ['adClientId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Adsensehost;
|
||||
//# sourceMappingURL=v4.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/adsensehost/v4.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/adsensehost/v4.1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1239
backend/node_modules/googleapis/apis/adsensehost/v4.1.ts
generated
vendored
Normal file
1239
backend/node_modules/googleapis/apis/adsensehost/v4.1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
271
backend/node_modules/googleapis/apis/analytics/v2.4.js
generated
vendored
Normal file
271
backend/node_modules/googleapis/apis/analytics/v2.4.js
generated
vendored
Normal file
@@ -0,0 +1,271 @@
|
||||
"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");
|
||||
/**
|
||||
* Google Analytics API
|
||||
*
|
||||
* Views and manages your Google Analytics data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analytics = google.analytics('v2.4');
|
||||
*
|
||||
* @namespace analytics
|
||||
* @type {Function}
|
||||
* @version v2.4
|
||||
* @variation v2.4
|
||||
* @param {object=} options Options for Analytics
|
||||
*/
|
||||
function Analytics(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.data = {
|
||||
/**
|
||||
* analytics.data.get
|
||||
*
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
*
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
* @param {string} params.end-date End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
* @param {string=} params.filters A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
* @param {string} params.ids Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
* @param {integer=} params.max-results The maximum number of entries to include in this feed.
|
||||
* @param {string} params.metrics A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
|
||||
* @param {string=} params.segment An Analytics advanced segment to be applied to the report data.
|
||||
* @param {string=} params.sort A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
* @param {string} params.start-date Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/data').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['ids', 'start-date', 'end-date', 'metrics'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.management = {
|
||||
accounts: {
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
*
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of accounts to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
goals: {
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
*
|
||||
* @desc Lists goals to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
|
||||
* @param {integer=} params.max-results The maximum number of goals to include in this response.
|
||||
* @param {string} params.profileId View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
|
||||
* @param {integer=} params.start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId', 'profileId'],
|
||||
pathParams: ['accountId', 'profileId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
profiles: {
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
*
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
|
||||
* @param {integer=} params.max-results The maximum number of views (profiles) to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId'],
|
||||
pathParams: ['accountId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
segments: {
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
*
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of advanced segments to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/segments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
webproperties: {
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
*
|
||||
* @desc Lists web properties to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
|
||||
* @param {integer=} params.max-results The maximum number of web properties to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Analytics;
|
||||
//# sourceMappingURL=v2.4.js.map
|
||||
1
backend/node_modules/googleapis/apis/analytics/v2.4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analytics/v2.4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v2.4.js","sourceRoot":"","sources":["v2.4.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,IAAI,GAAG;QAEV;;;;;;;;;;;;;;;;;;;;;;WAsBG;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,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;gBAC5D,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,UAAU,GAAG;QAChB,QAAQ,EAAE;YAER;;;;;;;;;;;;;;eAcG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACpF,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,EAAE;oBAClB,UAAU,EAAE,EAAE;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,KAAK,EAAE;YAEL;;;;;;;;;;;;;;;;;eAiBG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,0GAA0G,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACzJ,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,WAAW,CAAC;oBAC3D,UAAU,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,CAAC;oBACvD,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,QAAQ,EAAE;YAER;;;;;;;;;;;;;;;;eAgBG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,wFAAwF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACvI,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBAC9C,UAAU,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBAC1C,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,QAAQ,EAAE;YAER;;;;;;;;;;;;;;eAcG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBACpF,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,EAAE;oBAClB,UAAU,EAAE,EAAE;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;QACD,aAAa,EAAE;YAEb;;;;;;;;;;;;;;;eAeG;YACH,IAAI,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;gBACvC,EAAE,CAAC,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC;oBAClC,QAAQ,GAAG,OAAO,CAAC;oBACnB,OAAO,GAAG,EAAE,CAAC;gBACf,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;gBAE1B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;gBAEjE,MAAM,UAAU,GAAG;oBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;wBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,+DAA+D,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;wBAC9G,MAAM,EAAE,KAAK;qBACd,EAAE,OAAO,CAAC;oBACX,MAAM,EAAE,MAAM;oBACd,cAAc,EAAE,CAAC,WAAW,CAAC;oBAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;oBACzB,OAAO,EAAE,IAAI;iBACd,CAAC;gBAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,iBAAS,SAAS,CAAC"}
|
||||
300
backend/node_modules/googleapis/apis/analytics/v2.4.ts
generated
vendored
Normal file
300
backend/node_modules/googleapis/apis/analytics/v2.4.ts
generated
vendored
Normal file
@@ -0,0 +1,300 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google Analytics API
|
||||
*
|
||||
* Views and manages your Google Analytics data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analytics = google.analytics('v2.4');
|
||||
*
|
||||
* @namespace analytics
|
||||
* @type {Function}
|
||||
* @version v2.4
|
||||
* @variation v2.4
|
||||
* @param {object=} options Options for Analytics
|
||||
*/
|
||||
function Analytics(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.data = {
|
||||
|
||||
/**
|
||||
* analytics.data.get
|
||||
*
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
*
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
* @param {string} params.end-date End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
* @param {string=} params.filters A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
* @param {string} params.ids Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
* @param {integer=} params.max-results The maximum number of entries to include in this feed.
|
||||
* @param {string} params.metrics A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
|
||||
* @param {string=} params.segment An Analytics advanced segment to be applied to the report data.
|
||||
* @param {string=} params.sort A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
* @param {string} params.start-date Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/data').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['ids', 'start-date', 'end-date', 'metrics'],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.management = {
|
||||
accounts: {
|
||||
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
*
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of accounts to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
goals: {
|
||||
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
*
|
||||
* @desc Lists goals to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
|
||||
* @param {integer=} params.max-results The maximum number of goals to include in this response.
|
||||
* @param {string} params.profileId View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
|
||||
* @param {integer=} params.start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId', 'profileId'],
|
||||
pathParams: ['accountId', 'profileId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
profiles: {
|
||||
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
*
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID for the views (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
|
||||
* @param {integer=} params.max-results The maximum number of views (profiles) to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @param {string} params.webPropertyId Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId', 'webPropertyId'],
|
||||
pathParams: ['accountId', 'webPropertyId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
segments: {
|
||||
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
*
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {integer=} params.max-results The maximum number of advanced segments to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/segments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
webproperties: {
|
||||
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
*
|
||||
* @desc Lists web properties to which the user has access.
|
||||
*
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! analytics(v2.4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
|
||||
* @param {integer=} params.max-results The maximum number of web properties to include in this response.
|
||||
* @param {integer=} params.start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
* @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 + '/analytics/v2.4/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['accountId'],
|
||||
pathParams: ['accountId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export = Analytics;
|
||||
3142
backend/node_modules/googleapis/apis/analytics/v3.js
generated
vendored
Normal file
3142
backend/node_modules/googleapis/apis/analytics/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/analytics/v3.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analytics/v3.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4372
backend/node_modules/googleapis/apis/analytics/v3.ts
generated
vendored
Normal file
4372
backend/node_modules/googleapis/apis/analytics/v3.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
74
backend/node_modules/googleapis/apis/analyticsreporting/v4.js
generated
vendored
Normal file
74
backend/node_modules/googleapis/apis/analyticsreporting/v4.js
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
"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");
|
||||
/**
|
||||
* Google Analytics Reporting API
|
||||
*
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
*/
|
||||
function Analyticsreporting(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.reports = {
|
||||
/**
|
||||
* analyticsreporting.reports.batchGet
|
||||
*
|
||||
* @desc Returns the Analytics data.
|
||||
*
|
||||
* @alias analyticsreporting.reports.batchGet
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {analyticsreporting(v4).GetReportsRequest} 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
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Analyticsreporting;
|
||||
//# sourceMappingURL=v4.js.map
|
||||
1
backend/node_modules/googleapis/apis/analyticsreporting/v4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/analyticsreporting/v4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v4.js","sourceRoot":"","sources":["v4.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,4BAA4B,OAAO;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,OAAO,GAAG;QAEb;;;;;;;;;;;;;WAaG;QACH,QAAQ,EAAE,UAAU,MAAM,EAAE,OAAO,EAAE,QAAQ;YAC3C,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,4CAA4C,CAAC;YAEhF,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;oBACrB,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrE,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA8iBD,iBAAS,kBAAkB,CAAC"}
|
||||
638
backend/node_modules/googleapis/apis/analyticsreporting/v4.ts
generated
vendored
Normal file
638
backend/node_modules/googleapis/apis/analyticsreporting/v4.ts
generated
vendored
Normal file
@@ -0,0 +1,638 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google Analytics Reporting API
|
||||
*
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
*/
|
||||
function Analyticsreporting(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.reports = {
|
||||
|
||||
/**
|
||||
* analyticsreporting.reports.batchGet
|
||||
*
|
||||
* @desc Returns the Analytics data.
|
||||
*
|
||||
* @alias analyticsreporting.reports.batchGet
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {analyticsreporting(v4).GetReportsRequest} 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
|
||||
*/
|
||||
batchGet: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Cohort
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DateRange} dateRange This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users
|
||||
whose first visit date is between start date and end date defined in the
|
||||
DateRange. The date ranges should be aligned for cohort requests. If the
|
||||
request contains `ga:cohortNthDay` it should be exactly one day long,
|
||||
if `ga:cohortNthWeek` it should be aligned to the week boundary (starting
|
||||
at Sunday and ending Saturday), and for `ga:cohortNthMonth` the date range
|
||||
should be aligned to the month (starting at the first and ending on the
|
||||
last day of the month).
|
||||
For LTV requests there are no such restrictions.
|
||||
You do not need to supply a date range for the
|
||||
`reportsRequest.dateRanges` field.
|
||||
* @property {string} name A unique name for the cohort. If not defined name will be auto-generated
|
||||
with values cohort_[1234...].
|
||||
* @property {string} type Type of the cohort. The only supported type as of now is
|
||||
`FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated
|
||||
as `FIRST_VISIT_DATE` type cohort.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CohortGroup
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).Cohort[]} cohorts The definition for the cohort.
|
||||
* @property {boolean} lifetimeValue Enable Life Time Value (LTV). LTV measures lifetime value for users
|
||||
acquired through different channels.
|
||||
Please see:
|
||||
[Cohort Analysis](https://support.google.com/analytics/answer/6074676) and
|
||||
[Lifetime Value](https://support.google.com/analytics/answer/6182550)
|
||||
If the value of lifetimeValue is false:
|
||||
|
||||
- The metric values are similar to the values in the web interface cohort
|
||||
report.
|
||||
- The cohort definition date ranges must be aligned to the calendar week
|
||||
and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in
|
||||
the cohort definition should be a Sunday and the `endDate` should be the
|
||||
following Saturday, and for `ga:cohortNthMonth`, the `startDate`
|
||||
should be the 1st of the month and `endDate` should be the last day
|
||||
of the month.
|
||||
|
||||
When the lifetimeValue is true:
|
||||
|
||||
- The metric values will correspond to the values in the web interface
|
||||
LifeTime value report.
|
||||
- The Lifetime Value report shows you how user value (Revenue) and
|
||||
engagement (Appviews, Goal Completions, Sessions, and Session Duration)
|
||||
grow during the 90 days after a user is acquired.
|
||||
- The metrics are calculated as a cumulative average per user per the time
|
||||
increment.
|
||||
- The cohort definition date ranges need not be aligned to the calendar
|
||||
week and month boundaries.
|
||||
- The `viewId` must be an
|
||||
[app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ColumnHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensions The dimension names in the response.
|
||||
* @property {analyticsreporting(v4).MetricHeader} metricHeader Metric headers for the metrics in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DateRange
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} endDate The end date for the query in the format `YYYY-MM-DD`.
|
||||
* @property {string} startDate The start date for the query in the format `YYYY-MM-DD`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DateRangeValues
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).PivotValueRegion[]} pivotValueRegions The values of each pivot region.
|
||||
* @property {string[]} values Each value corresponds to each Metric in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Dimension
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} histogramBuckets If non-empty, we place dimension values into buckets after string to
|
||||
int64. Dimension values that are not the string representation of an
|
||||
integral value will be converted to zero. The bucket values have to be in
|
||||
increasing order. Each bucket is closed on the lower end, and open on the
|
||||
upper end. The "first" bucket includes all values less than the first
|
||||
boundary, the "last" bucket includes all values up to infinity. Dimension
|
||||
values that fall in a bucket get transformed to a new dimension value. For
|
||||
example, if one gives a list of "0, 1, 3, 4, 7", then we return the
|
||||
following buckets:
|
||||
|
||||
- bucket #1: values < 0, dimension value "<0"
|
||||
- bucket #2: values in [0,1), dimension value "0"
|
||||
- bucket #3: values in [1,3), dimension value "1-2"
|
||||
- bucket #4: values in [3,4), dimension value "3"
|
||||
- bucket #5: values in [4,7), dimension value "4-6"
|
||||
- bucket #6: values >= 7, dimension value "7+"
|
||||
|
||||
NOTE: If you are applying histogram mutation on any dimension, and using
|
||||
that dimension in sort, you will want to use the sort type
|
||||
`HISTOGRAM_BUCKET` for that purpose. Without that the dimension values
|
||||
will be sorted according to dictionary
|
||||
(lexicographic) order. For example the ascending dictionary order is:
|
||||
|
||||
"<50", "1001+", "121-1000", "50-120"
|
||||
|
||||
And the ascending `HISTOGRAM_BUCKET` order is:
|
||||
|
||||
"<50", "50-120", "121-1000", "1001+"
|
||||
|
||||
The client has to explicitly request `"orderType": "HISTOGRAM_BUCKET"`
|
||||
for a histogram-mutated dimension.
|
||||
* @property {string} name Name of the dimension to fetch, for example `ga:browser`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DimensionFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} caseSensitive Should the match be case sensitive? Default is false.
|
||||
* @property {string} dimensionName The dimension to filter on. A DimensionFilter must contain a dimension.
|
||||
* @property {string[]} expressions Strings or regular expression to match against. Only the first value of
|
||||
the list is used for comparison unless the operator is `IN_LIST`.
|
||||
If `IN_LIST` operator, then the entire list is used to filter the
|
||||
dimensions as explained in the description of the `IN_LIST` operator.
|
||||
* @property {boolean} not Logical `NOT` operator. If this boolean is set to true, then the matching
|
||||
dimension values will be excluded in the report. The default is false.
|
||||
* @property {string} operator How to match the dimension to the expression. The default is REGEXP.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DimensionFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DimensionFilter[]} filters The repeated set of filters. They are logically combined based on the
|
||||
operator specified.
|
||||
* @property {string} operator The operator for combining multiple dimension filters. If unspecified, it
|
||||
is treated as an `OR`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DynamicSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} name The name of the dynamic segment.
|
||||
* @property {analyticsreporting(v4).SegmentDefinition} sessionSegment Session Segment to select sessions to include in the segment.
|
||||
* @property {analyticsreporting(v4).SegmentDefinition} userSegment User Segment to select users to include in the segment.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef GetReportsRequest
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).ReportRequest[]} reportRequests Requests, each request will have a separate response.
|
||||
There can be a maximum of 5 requests. All requests should have the same
|
||||
`dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef GetReportsResponse
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).Report[]} reports Responses corresponding to each of the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Metric
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} alias An alias for the metric expression is an alternate name for the
|
||||
expression. The alias can be used for filtering and sorting. This field
|
||||
is optional and is useful if the expression is not a single metric but
|
||||
a complex expression which cannot be used in filtering and sorting.
|
||||
The alias is also used in the response column header.
|
||||
* @property {string} expression A metric expression in the request. An expression is constructed from one
|
||||
or more metrics and numbers. Accepted operators include: Plus (+), Minus
|
||||
(-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,
|
||||
Positive cardinal numbers (0-9), can include decimals and is limited to
|
||||
1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the
|
||||
metric expression is just a single metric name like `ga:users`.
|
||||
Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics
|
||||
will result in unexpected results.
|
||||
* @property {string} formattingType Specifies how the metric expression should be formatted, for example
|
||||
`INTEGER`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} comparisonValue The value to compare against.
|
||||
* @property {string} metricName The metric that will be filtered on. A metricFilter must contain a metric
|
||||
name. A metric name can be an alias earlier defined as a metric or it can
|
||||
also be a metric expression.
|
||||
* @property {boolean} not Logical `NOT` operator. If this boolean is set to true, then the matching
|
||||
metric values will be excluded in the report. The default is false.
|
||||
* @property {string} operator Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the
|
||||
comparisonValue, the default is `EQUAL`. If the operator is
|
||||
`IS_MISSING`, checks if the metric is missing and would ignore the
|
||||
comparisonValue.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).MetricFilter[]} filters The repeated set of filters. They are logically combined based on the
|
||||
operator specified.
|
||||
* @property {string} operator The operator for combining multiple metric filters. If unspecified, it is
|
||||
treated as an `OR`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).MetricHeaderEntry[]} metricHeaderEntries Headers for the metrics in the response.
|
||||
* @property {analyticsreporting(v4).PivotHeader[]} pivotHeaders Headers for the pivots in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef MetricHeaderEntry
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} name The name of the header.
|
||||
* @property {string} type The type of the metric, for example `INTEGER`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OrFiltersForSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentFilterClause[]} segmentFilterClauses List of segment filters to be combined with a `OR` operator.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OrderBy
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} fieldName The field which to sort by. The default sort order is ascending. Example:
|
||||
`ga:browser`.
|
||||
Note, that you can only specify one field for sort here. For example,
|
||||
`ga:browser, ga:city` is not valid.
|
||||
* @property {string} orderType The order type. The default orderType is `VALUE`.
|
||||
* @property {string} sortOrder The sorting order for the field.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Pivot
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DimensionFilterClause[]} dimensionFilterClauses DimensionFilterClauses are logically combined with an `AND` operator: only
|
||||
data that is included by all these DimensionFilterClauses contributes to
|
||||
the values in this pivot region. Dimension filters can be used to restrict
|
||||
the columns shown in the pivot region. For example if you have
|
||||
`ga:browser` as the requested dimension in the pivot region, and you
|
||||
specify key filters to restrict `ga:browser` to only "IE" or "Firefox",
|
||||
then only those two browsers would show up as columns.
|
||||
* @property {analyticsreporting(v4).Dimension[]} dimensions A list of dimensions to show as pivot columns. A Pivot can have a maximum
|
||||
of 4 dimensions. Pivot dimensions are part of the restriction on the
|
||||
total number of dimensions allowed in the request.
|
||||
* @property {integer} maxGroupCount Specifies the maximum number of groups to return.
|
||||
The default value is 10, also the maximum value is 1,000.
|
||||
* @property {analyticsreporting(v4).Metric[]} metrics The pivot metrics. Pivot metrics are part of the
|
||||
restriction on total number of metrics allowed in the request.
|
||||
* @property {integer} startGroup If k metrics were requested, then the response will contain some
|
||||
data-dependent multiple of k columns in the report. E.g., if you pivoted
|
||||
on the dimension `ga:browser` then you'd get k columns for "Firefox", k
|
||||
columns for "IE", k columns for "Chrome", etc. The ordering of the groups
|
||||
of columns is determined by descending order of "total" for the first of
|
||||
the k values. Ties are broken by lexicographic ordering of the first
|
||||
pivot dimension, then lexicographic ordering of the second pivot
|
||||
dimension, and so on. E.g., if the totals for the first value for
|
||||
Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns
|
||||
would be Chrome, Firefox, IE.
|
||||
|
||||
The following let you choose which of the groups of k columns are
|
||||
included in the response.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotHeader
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).PivotHeaderEntry[]} pivotHeaderEntries A single pivot section header.
|
||||
* @property {integer} totalPivotGroupsCount The total number of groups for this pivot.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotHeaderEntry
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensionNames The name of the dimensions in the pivot response.
|
||||
* @property {string[]} dimensionValues The values for the dimensions in the pivot.
|
||||
* @property {analyticsreporting(v4).MetricHeaderEntry} metric The metric header for the metric in the pivot.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PivotValueRegion
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} values The values of the metrics in each of the pivot regions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Report
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).ColumnHeader} columnHeader The column headers.
|
||||
* @property {analyticsreporting(v4).ReportData} data Response data.
|
||||
* @property {string} nextPageToken Page token to retrieve the next page of results in the list.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportData
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} dataLastRefreshed The last time the data in the report was refreshed. All the hits received
|
||||
before this timestamp are included in the calculation of the report.
|
||||
* @property {boolean} isDataGolden Indicates if response to this request is golden or not. Data is
|
||||
golden when the exact same request will not produce any new results if
|
||||
asked at a later point in time.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} maximums Minimum and maximum values seen over all matching rows. These are both
|
||||
empty when `hideValueRanges` in the request is false, or when
|
||||
rowCount is zero.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} minimums Minimum and maximum values seen over all matching rows. These are both
|
||||
empty when `hideValueRanges` in the request is false, or when
|
||||
rowCount is zero.
|
||||
* @property {integer} rowCount Total number of matching rows for this query.
|
||||
* @property {analyticsreporting(v4).ReportRow[]} rows There's one ReportRow for every unique combination of dimensions.
|
||||
* @property {string[]} samplesReadCounts If the results are
|
||||
[sampled](https://support.google.com/analytics/answer/2637192),
|
||||
this returns the total number of samples read, one entry per date range.
|
||||
If the results are not sampled this field will not be defined. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {string[]} samplingSpaceSizes If the results are
|
||||
[sampled](https://support.google.com/analytics/answer/2637192),
|
||||
this returns the total number of
|
||||
samples present, one entry per date range. If the results are not sampled
|
||||
this field will not be defined. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} totals For each requested date range, for the set of all rows that match
|
||||
the query, every requested value format gets a total. The total
|
||||
for a value format is computed by first totaling the metrics
|
||||
mentioned in the value format and then evaluating the value
|
||||
format as a scalar expression. E.g., The "totals" for
|
||||
`3 / (ga:sessions + 2)` we compute
|
||||
`3 / ((sum of all relevant ga:sessions) + 2)`.
|
||||
Totals are computed before pagination.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportRequest
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).CohortGroup} cohortGroup Cohort group associated with this request. If there is a cohort group
|
||||
in the request the `ga:cohort` dimension must be present.
|
||||
Every [ReportRequest](#ReportRequest) within a `batchGet` method must
|
||||
contain the same `cohortGroup` definition.
|
||||
* @property {analyticsreporting(v4).DateRange[]} dateRanges Date ranges in the request. The request can have a maximum of 2 date
|
||||
ranges. The response will contain a set of metric values for each
|
||||
combination of the dimensions for each date range in the request. So, if
|
||||
there are two date ranges, there will be two set of metric values, one for
|
||||
the original date range and one for the second date range.
|
||||
The `reportRequest.dateRanges` field should not be specified for cohorts
|
||||
or Lifetime value requests.
|
||||
If a date range is not provided, the default date range is (startDate:
|
||||
current date - 7 days, endDate: current date - 1 day). Every
|
||||
[ReportRequest](#ReportRequest) within a `batchGet` method must
|
||||
contain the same `dateRanges` definition.
|
||||
* @property {analyticsreporting(v4).DimensionFilterClause[]} dimensionFilterClauses The dimension filter clauses for filtering Dimension Values. They are
|
||||
logically combined with the `AND` operator. Note that filtering occurs
|
||||
before any dimensions are aggregated, so that the returned metrics
|
||||
represent the total for only the relevant dimensions.
|
||||
* @property {analyticsreporting(v4).Dimension[]} dimensions The dimensions requested.
|
||||
Requests can have a total of 7 dimensions.
|
||||
* @property {string} filtersExpression Dimension or metric filters that restrict the data returned for your
|
||||
request. To use the `filtersExpression`, supply a dimension or metric on
|
||||
which to filter, followed by the filter expression. For example, the
|
||||
following expression selects `ga:browser` dimension which starts with
|
||||
Firefox; `ga:browser=~^Firefox`. For more information on dimensions
|
||||
and metric filters, see
|
||||
[Filters reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters).
|
||||
* @property {boolean} hideTotals If set to true, hides the total of all metrics for all the matching rows,
|
||||
for every date range. The default false and will return the totals.
|
||||
* @property {boolean} hideValueRanges If set to true, hides the minimum and maximum across all matching rows.
|
||||
The default is false and the value ranges are returned.
|
||||
* @property {boolean} includeEmptyRows If set to false, the response does not include rows if all the retrieved
|
||||
metrics are equal to zero. The default is false which will exclude these
|
||||
rows.
|
||||
* @property {analyticsreporting(v4).MetricFilterClause[]} metricFilterClauses The metric filter clauses. They are logically combined with the `AND`
|
||||
operator. Metric filters look at only the first date range and not the
|
||||
comparing date range. Note that filtering on metrics occurs after the
|
||||
metrics are aggregated.
|
||||
* @property {analyticsreporting(v4).Metric[]} metrics The metrics requested.
|
||||
Requests must specify at least one metric. Requests can have a
|
||||
total of 10 metrics.
|
||||
* @property {analyticsreporting(v4).OrderBy[]} orderBys Sort order on output rows. To compare two rows, the elements of the
|
||||
following are applied in order until a difference is found. All date
|
||||
ranges in the output get the same row order.
|
||||
* @property {integer} pageSize Page size is for paging and specifies the maximum number of returned rows.
|
||||
Page size should be >= 0. A query returns the default of 1,000 rows.
|
||||
The Analytics Core Reporting API returns a maximum of 10,000 rows per
|
||||
request, no matter how many you ask for. It can also return fewer rows
|
||||
than requested, if there aren't as many dimension segments as you expect.
|
||||
For instance, there are fewer than 300 possible values for `ga:country`,
|
||||
so when segmenting only by country, you can't get more than 300 rows,
|
||||
even if you set `pageSize` to a higher value.
|
||||
* @property {string} pageToken A continuation token to get the next page of the results. Adding this to
|
||||
the request will return the rows after the pageToken. The pageToken should
|
||||
be the value returned in the nextPageToken parameter in the response to
|
||||
the GetReports request.
|
||||
* @property {analyticsreporting(v4).Pivot[]} pivots The pivot definitions. Requests can have a maximum of 2 pivots.
|
||||
* @property {string} samplingLevel The desired report
|
||||
[sample](https://support.google.com/analytics/answer/2637192) size.
|
||||
If the the `samplingLevel` field is unspecified the `DEFAULT` sampling
|
||||
level is used. Every [ReportRequest](#ReportRequest) within a
|
||||
`batchGet` method must contain the same `samplingLevel` definition. See
|
||||
[developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
|
||||
for details.
|
||||
* @property {analyticsreporting(v4).Segment[]} segments Segment the data returned for the request. A segment definition helps look
|
||||
at a subset of the segment request. A request can contain up to four
|
||||
segments. Every [ReportRequest](#ReportRequest) within a
|
||||
`batchGet` method must contain the same `segments` definition. Requests
|
||||
with segments must have the `ga:segment` dimension.
|
||||
* @property {string} viewId The Analytics
|
||||
[view ID](https://support.google.com/analytics/answer/1009618)
|
||||
from which to retrieve data. Every [ReportRequest](#ReportRequest)
|
||||
within a `batchGet` method must contain the same `viewId`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ReportRow
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string[]} dimensions List of requested dimensions.
|
||||
* @property {analyticsreporting(v4).DateRangeValues[]} metrics List of metrics for each requested DateRange.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Segment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).DynamicSegment} dynamicSegment A dynamic segment definition in the request.
|
||||
* @property {string} segmentId The segment ID of a built-in or custom segment, for example `gaid::-3`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentDefinition
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentFilter[]} segmentFilters A segment is defined by a set of segment filters which are combined
|
||||
together with a logical `AND` operation.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentDimensionFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} caseSensitive Should the match be case sensitive, ignored for `IN_LIST` operator.
|
||||
* @property {string} dimensionName Name of the dimension for which the filter is being applied.
|
||||
* @property {string[]} expressions The list of expressions, only the first element is used for all operators
|
||||
* @property {string} maxComparisonValue Maximum comparison values for `BETWEEN` match type.
|
||||
* @property {string} minComparisonValue Minimum comparison values for `BETWEEN` match type.
|
||||
* @property {string} operator The operator to use to match the dimension with the expressions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} not If true, match the complement of simple or sequence segment.
|
||||
For example, to match all visits not from "New York", we can define the
|
||||
segment as follows:
|
||||
|
||||
"sessionSegment": {
|
||||
"segmentFilters": [{
|
||||
"simpleSegment" :{
|
||||
"orFiltersForSegment": [{
|
||||
"segmentFilterClauses":[{
|
||||
"dimensionFilter": {
|
||||
"dimensionName": "ga:city",
|
||||
"expressions": ["New York"]
|
||||
}
|
||||
}]
|
||||
}]
|
||||
},
|
||||
"not": "True"
|
||||
}]
|
||||
},
|
||||
* @property {analyticsreporting(v4).SequenceSegment} sequenceSegment Sequence conditions consist of one or more steps, where each step is
|
||||
defined by one or more dimension/metric conditions. Multiple steps can
|
||||
be combined with special sequence operators.
|
||||
* @property {analyticsreporting(v4).SimpleSegment} simpleSegment A Simple segment conditions consist of one or more dimension/metric
|
||||
conditions that can be combined
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentFilterClause
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).SegmentDimensionFilter} dimensionFilter Dimension Filter for the segment definition.
|
||||
* @property {analyticsreporting(v4).SegmentMetricFilter} metricFilter Metric Filter for the segment definition.
|
||||
* @property {boolean} not Matches the complement (`!`) of the filter.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentMetricFilter
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} comparisonValue The value to compare against. If the operator is `BETWEEN`, this value is
|
||||
treated as minimum comparison value.
|
||||
* @property {string} maxComparisonValue Max comparison value is only used for `BETWEEN` operator.
|
||||
* @property {string} metricName The metric that will be filtered on. A `metricFilter` must contain a
|
||||
metric name.
|
||||
* @property {string} operator Specifies is the operation to perform to compare the metric. The default
|
||||
is `EQUAL`.
|
||||
* @property {string} scope Scope for a metric defines the level at which that metric is defined. The
|
||||
specified metric scope must be equal to or greater than its primary scope
|
||||
as defined in the data model. The primary scope is defined by if the
|
||||
segment is selecting users or sessions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SegmentSequenceStep
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {string} matchType Specifies if the step immediately precedes or can be any time before the
|
||||
next step.
|
||||
* @property {analyticsreporting(v4).OrFiltersForSegment[]} orFiltersForSegment A sequence is specified with a list of Or grouped filters which are
|
||||
combined with `AND` operator.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SequenceSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {boolean} firstStepShouldMatchFirstHit If set, first step condition must match the first hit of the visitor (in
|
||||
the date range).
|
||||
* @property {analyticsreporting(v4).SegmentSequenceStep[]} segmentSequenceSteps The list of steps in the sequence.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SimpleSegment
|
||||
* @memberOf! analyticsreporting(v4)
|
||||
* @type object
|
||||
* @property {analyticsreporting(v4).OrFiltersForSegment[]} orFiltersForSegment A list of segment filters groups which are combined with logical `AND`
|
||||
operator.
|
||||
*/
|
||||
export = Analyticsreporting;
|
||||
453
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
453
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js
generated
vendored
Normal file
@@ -0,0 +1,453 @@
|
||||
"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");
|
||||
/**
|
||||
* Android Device Provisioning Partner API
|
||||
*
|
||||
* Automates reseller integration into zero-touch enrollment by assigning devices to customers and creating device reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
*/
|
||||
function Androiddeviceprovisioning(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.operations = {
|
||||
/**
|
||||
* androiddeviceprovisioning.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.operations.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.partners = {
|
||||
customers: {
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.create
|
||||
*
|
||||
* @desc Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.create
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. The parent resource ID in format `partners/[PARTNER_ID]` that identifies the reseller.
|
||||
* @param {androiddeviceprovisioning(v1).CreateCustomerRequest} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.list
|
||||
*
|
||||
* @desc Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.list
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId The ID of the partner.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claim
|
||||
*
|
||||
* @desc Claim the device identified by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDeviceRequest} 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
|
||||
*/
|
||||
claim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claimAsync
|
||||
*
|
||||
* @desc Claim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDevicesRequest} 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
|
||||
*/
|
||||
claimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
*
|
||||
* @desc Find devices by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByDeviceIdentifierRequest} 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
|
||||
*/
|
||||
findByIdentifier: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByOwner
|
||||
*
|
||||
* @desc Find devices by ownership.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByOwner
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByOwnerRequest} 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
|
||||
*/
|
||||
findByOwner: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.get
|
||||
*
|
||||
* @desc Get a device.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.metadata
|
||||
*
|
||||
* @desc Update the metadata.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.metadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.deviceId ID of the partner.
|
||||
* @param {string} params.metadataOwnerId The owner of the newly set metadata. Set this to the partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataRequest} 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
|
||||
*/
|
||||
metadata: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['metadataOwnerId', 'deviceId'],
|
||||
pathParams: ['deviceId', 'metadataOwnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaim
|
||||
*
|
||||
* @desc Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDeviceRequest} 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
|
||||
*/
|
||||
unclaim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
*
|
||||
* @desc Unclaim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDevicesRequest} 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
|
||||
*/
|
||||
unclaimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
*
|
||||
* @desc Set metadata in batch asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataInBatchRequest} 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
|
||||
*/
|
||||
updateMetadataAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androiddeviceprovisioning;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
768
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.ts
generated
vendored
Normal file
768
backend/node_modules/googleapis/apis/androiddeviceprovisioning/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,768 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Android Device Provisioning Partner API
|
||||
*
|
||||
* Automates reseller integration into zero-touch enrollment by assigning devices to customers and creating device reports.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
*/
|
||||
function Androiddeviceprovisioning(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.operations = {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.operations.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.partners = {
|
||||
customers: {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.create
|
||||
*
|
||||
* @desc Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.create
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent Required. The parent resource ID in format `partners/[PARTNER_ID]` that identifies the reseller.
|
||||
* @param {androiddeviceprovisioning(v1).CreateCustomerRequest} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.customers.list
|
||||
*
|
||||
* @desc Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.customers.list
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId The ID of the partner.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claim
|
||||
*
|
||||
* @desc Claim the device identified by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDeviceRequest} 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
|
||||
*/
|
||||
claim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.claimAsync
|
||||
*
|
||||
* @desc Claim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.claimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).ClaimDevicesRequest} 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
|
||||
*/
|
||||
claimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
*
|
||||
* @desc Find devices by device identifier.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByDeviceIdentifierRequest} 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
|
||||
*/
|
||||
findByIdentifier: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.findByOwner
|
||||
*
|
||||
* @desc Find devices by ownership.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.findByOwner
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).FindDevicesByOwnerRequest} 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
|
||||
*/
|
||||
findByOwner: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.get
|
||||
*
|
||||
* @desc Get a device.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.get
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
* @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://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.metadata
|
||||
*
|
||||
* @desc Update the metadata.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.metadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.deviceId ID of the partner.
|
||||
* @param {string} params.metadataOwnerId The owner of the newly set metadata. Set this to the partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataRequest} 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
|
||||
*/
|
||||
metadata: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['metadataOwnerId', 'deviceId'],
|
||||
pathParams: ['deviceId', 'metadataOwnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaim
|
||||
*
|
||||
* @desc Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId ID of the partner.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDeviceRequest} 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
|
||||
*/
|
||||
unclaim: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
*
|
||||
* @desc Unclaim devices asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.unclaimAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UnclaimDevicesRequest} 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
|
||||
*/
|
||||
unclaimAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
*
|
||||
* @desc Set metadata in batch asynchronously.
|
||||
*
|
||||
* @alias androiddeviceprovisioning.partners.devices.updateMetadataAsync
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.partnerId Partner ID.
|
||||
* @param {androiddeviceprovisioning(v1).UpdateDeviceMetadataInBatchRequest} 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
|
||||
*/
|
||||
updateMetadataAsync: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/partners/{partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['partnerId'],
|
||||
pathParams: ['partnerId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef ClaimDeviceRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} customerId The customer to claim for.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier of the device to claim.
|
||||
* @property {string} sectionType The section to claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ClaimDeviceResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId The device ID of the claimed device.
|
||||
* @property {string} deviceName The resource name of the device in the format
|
||||
`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ClaimDevicesRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerClaim[]} claims List of claims.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Company
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string[]} adminEmails Input only. Optional. Email address of customer's users in the admin role.
|
||||
Each email address must be associated with a Google Account.
|
||||
* @property {string} companyId Output only. The ID of the company. Assigned by the server.
|
||||
* @property {string} companyName Required. The name of the company. For example _XYZ Corp_. Characters
|
||||
allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the
|
||||
customer's employees in the zero-touch enrollment portal.
|
||||
* @property {string} name Output only. The API resource name of the company in the format
|
||||
`partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server.
|
||||
* @property {string[]} ownerEmails Input only. Email address of customer's users in the owner role. At least
|
||||
one `owner_email` is required. Each email address must be associated with a
|
||||
Google Account. Owners share the same access as admins but can also add,
|
||||
delete, and edit your organization's portal users.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CreateCustomerRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Company} customer Required. The company data to populate the new customer. Must contain a
|
||||
value for `companyName` and at least one `owner_email` that's associated
|
||||
with a Google Account. The values for `companyId` and `name` must be empty.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Device
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceClaim[]} claims Claims.
|
||||
* @property {string} configuration The resource name of the configuration.
|
||||
Only set for customers.
|
||||
* @property {string} deviceId Device ID.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata Device metadata.
|
||||
* @property {string} name Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceClaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} ownerCompanyId Owner ID.
|
||||
* @property {string} sectionType Section type of the device claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceIdentifier
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} imei IMEI number.
|
||||
* @property {string} manufacturer Manufacturer name to match `android.os.Build.MANUFACTURER` (required).
|
||||
Allowed values listed in
|
||||
[manufacturer names](/zero-touch/resources/manufacturer-names).
|
||||
* @property {string} meid MEID number.
|
||||
* @property {string} serialNumber Serial number (optional).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DeviceMetadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {object} entries Metadata entries
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DevicesLongRunningOperationMetadata
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {integer} devicesCount Number of devices parsed in your requests.
|
||||
* @property {string} processingStatus The overall processing status.
|
||||
* @property {integer} progress Processing progress from 0 to 100.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DevicesLongRunningOperationResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).OperationPerDevice[]} perDeviceStatus Processing status for each device.
|
||||
One `PerDeviceStatus` per device. The order is the same as in your requests.
|
||||
* @property {integer} successCount Number of succeesfully processed ones.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Empty
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByDeviceIdentifierRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier to search.
|
||||
* @property {string} limit Number of devices to show.
|
||||
* @property {string} pageToken Page token.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByDeviceIdentifierResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Device[]} devices Found devices.
|
||||
* @property {string} nextPageToken Page token of the next page.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByOwnerRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string[]} customerId List of customer IDs to search for.
|
||||
* @property {string} limit The number of devices to show in the result.
|
||||
* @property {string} pageToken Page token.
|
||||
* @property {string} sectionType The section type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef FindDevicesByOwnerResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Device[]} devices Devices found.
|
||||
* @property {string} nextPageToken Page token of the next page.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListCustomersResponse
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).Company[]} customers List of customers related to this partner.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Operation
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {boolean} done If the value is `false`, it means the operation is still in progress.
|
||||
If `true`, the operation is completed, and either `error` or `response` is
|
||||
available.
|
||||
* @property {androiddeviceprovisioning(v1).Status} error This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.
|
||||
* @property {object} metadata This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||
* @property {string} name The server-assigned name, which is only unique within the same service that
|
||||
originally returns it. If you use the default HTTP mapping, the
|
||||
`name` should have the format of `operations/some/unique/name`.
|
||||
* @property {object} response This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationPerDevice
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerClaim} claim Request to claim a device.
|
||||
* @property {androiddeviceprovisioning(v1).PerDeviceStatusInBatch} result Processing result for every device.
|
||||
* @property {androiddeviceprovisioning(v1).PartnerUnclaim} unclaim Request to unclaim a device.
|
||||
* @property {androiddeviceprovisioning(v1).UpdateMetadataArguments} updateMetadata Request to set metadata for a device.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PartnerClaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} customerId Customer ID to claim for.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata Metadata to set at claim.
|
||||
* @property {string} sectionType Section type to claim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PartnerUnclaim
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier of the device.
|
||||
* @property {string} sectionType Section type to unclaim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PerDeviceStatusInBatch
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device if process succeeds.
|
||||
* @property {string} errorIdentifier Error identifier.
|
||||
* @property {string} errorMessage Error message.
|
||||
* @property {string} status Process result.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Status
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {integer} code The status code, which should be an enum value of google.rpc.Code.
|
||||
* @property {object[]} details A list of messages that carry the error details. There is a common set of
|
||||
message types for APIs to use.
|
||||
* @property {string} message A developer-facing error message, which should be in English. Any
|
||||
user-facing error message should be localized and sent in the
|
||||
google.rpc.Status.details field, or localized by the client.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UnclaimDeviceRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId The device ID returned by `ClaimDevice`.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier The device identifier you used when you claimed this device.
|
||||
* @property {string} sectionType The section type to unclaim for.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UnclaimDevicesRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).PartnerUnclaim[]} unclaims List of devices to unclaim.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateDeviceMetadataInBatchRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).UpdateMetadataArguments[]} updates List of metadata updates.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateDeviceMetadataRequest
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata The metdata to set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateMetadataArguments
|
||||
* @memberOf! androiddeviceprovisioning(v1)
|
||||
* @type object
|
||||
* @property {string} deviceId Device ID of the device.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceIdentifier} deviceIdentifier Device identifier.
|
||||
* @property {androiddeviceprovisioning(v1).DeviceMetadata} deviceMetadata The metadata to update.
|
||||
*/
|
||||
export = Androiddeviceprovisioning;
|
||||
2800
backend/node_modules/googleapis/apis/androidenterprise/v1.js
generated
vendored
Normal file
2800
backend/node_modules/googleapis/apis/androidenterprise/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/androidenterprise/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidenterprise/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3731
backend/node_modules/googleapis/apis/androidenterprise/v1.ts
generated
vendored
Normal file
3731
backend/node_modules/googleapis/apis/androidenterprise/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
769
backend/node_modules/googleapis/apis/androidmanagement/v1.js
generated
vendored
Normal file
769
backend/node_modules/googleapis/apis/androidmanagement/v1.js
generated
vendored
Normal file
@@ -0,0 +1,769 @@
|
||||
"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");
|
||||
/**
|
||||
* Android Management API
|
||||
*
|
||||
* The Android Management API provides remote enterprise management of Android devices and apps.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidmanagement = google.androidmanagement('v1');
|
||||
*
|
||||
* @namespace androidmanagement
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidmanagement
|
||||
*/
|
||||
function Androidmanagement(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.enterprises = {
|
||||
/**
|
||||
* androidmanagement.enterprises.create
|
||||
*
|
||||
* @desc Creates an enterprise by completing the enterprise signup flow.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.enterpriseToken The enterprise token appended to the callback URL.
|
||||
* @param {string=} params.projectId The id of the Google Cloud Platform project which will own the enterprise.
|
||||
* @param {string=} params.signupUrlName The name of the SignupUrl used to sign up for the enterprise.
|
||||
* @param {androidmanagement(v1).Enterprise} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.get
|
||||
*
|
||||
* @desc Gets an enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.patch
|
||||
*
|
||||
* @desc Updates an enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Enterprise} 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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
applications: {
|
||||
/**
|
||||
* androidmanagement.enterprises.applications.get
|
||||
*
|
||||
* @desc Gets info about an application.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.applications.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.languageCode The preferred language for localized application info, as a BCP47 tag (e.g. "en-US", "de"). If not specified the default language of the application will be used.
|
||||
* @param {string} params.name The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
devices: {
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.delete
|
||||
*
|
||||
* @desc Deletes a device, which causes the device to be wiped.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.get
|
||||
*
|
||||
* @desc Gets a device.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.issueCommand
|
||||
*
|
||||
* @desc Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.issueCommand
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {androidmanagement(v1).Command} 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
|
||||
*/
|
||||
issueCommand: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}:issueCommand').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.list
|
||||
*
|
||||
* @desc Lists devices for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize The requested page size. The actual page size may be fixed to a min or max value.
|
||||
* @param {string=} params.pageToken A token identifying a page of results the server should return.
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/devices').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.patch
|
||||
*
|
||||
* @desc Updates a device.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Device} 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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.cancel
|
||||
*
|
||||
* @desc Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.cancel
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource to be cancelled.
|
||||
* @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
|
||||
*/
|
||||
cancel: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.delete
|
||||
*
|
||||
* @desc Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource to be deleted.
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the operation resource.
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.devices.operations.list
|
||||
*
|
||||
* @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.devices.operations.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {string} params.name The name of the operation's parent resource.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
},
|
||||
enrollmentTokens: {
|
||||
/**
|
||||
* androidmanagement.enterprises.enrollmentTokens.create
|
||||
*
|
||||
* @desc Creates an enrollment token for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.enrollmentTokens.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {androidmanagement(v1).EnrollmentToken} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.enrollmentTokens.delete
|
||||
*
|
||||
* @desc Deletes an enrollment token, which prevents future use of the token.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.enrollmentTokens.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
policies: {
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.delete
|
||||
*
|
||||
* @desc Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.delete
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.get
|
||||
*
|
||||
* @desc Gets a policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.get
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.list
|
||||
*
|
||||
* @desc Lists policies for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.list
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer=} params.pageSize The requested page size. The actual page size may be fixed to a min or max value.
|
||||
* @param {string=} params.pageToken A token identifying a page of results the server should return.
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/policies').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidmanagement.enterprises.policies.patch
|
||||
*
|
||||
* @desc Updates or creates a policy.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.policies.patch
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}
|
||||
* @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
|
||||
* @param {androidmanagement(v1).Policy} 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://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
webTokens: {
|
||||
/**
|
||||
* androidmanagement.enterprises.webTokens.create
|
||||
*
|
||||
* @desc Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
|
||||
*
|
||||
* @alias androidmanagement.enterprises.webTokens.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}
|
||||
* @param {androidmanagement(v1).WebToken} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{parent}/webTokens').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
self.signupUrls = {
|
||||
/**
|
||||
* androidmanagement.signupUrls.create
|
||||
*
|
||||
* @desc Creates an enterprise signup URL.
|
||||
*
|
||||
* @alias androidmanagement.signupUrls.create
|
||||
* @memberOf! androidmanagement(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.callbackUrl The callback URL to which the admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.
|
||||
* @param {string=} params.projectId The id of the Google Cloud Platform project which will own the enterprise.
|
||||
* @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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/signupUrls').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidmanagement;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidmanagement/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidmanagement/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1285
backend/node_modules/googleapis/apis/androidmanagement/v1.ts
generated
vendored
Normal file
1285
backend/node_modules/googleapis/apis/androidmanagement/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
148
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
148
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js
generated
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
"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");
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1.1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.inapppurchases = {
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
*
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
*
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
* @param {string} params.productId The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
* @param {string} params.token The token provided to the user's device when the inapp product was purchased.
|
||||
* @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 + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'productId', 'token'],
|
||||
pathParams: ['packageName', 'productId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.purchases = {
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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
|
||||
*/
|
||||
cancel: 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 + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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 + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidpublisher;
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v1.1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.1.js","sourceRoot":"","sources":["v1.1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,0BAA0B,OAAO;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,cAAc,GAAG;QAEpB;;;;;;;;;;;;;;;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,uFAAuF,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACtI,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC;gBACrD,UAAU,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC;gBACjD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;IAEF,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;;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,2GAA2G,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC1J,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,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,oGAAoG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACnJ,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AA2BD,iBAAS,gBAAgB,CAAC"}
|
||||
191
backend/node_modules/googleapis/apis/androidpublisher/v1.1.ts
generated
vendored
Normal file
191
backend/node_modules/googleapis/apis/androidpublisher/v1.1.ts
generated
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1.1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1.1
|
||||
* @variation v1.1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.inapppurchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
*
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
*
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
* @param {string} params.productId The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
* @param {string} params.token The token provided to the user's device when the inapp product was purchased.
|
||||
* @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 + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'productId', 'token'],
|
||||
pathParams: ['packageName', 'productId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.purchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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
|
||||
*/
|
||||
cancel: 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 + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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 + '/androidpublisher/v1.1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef InappPurchase
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
* @type object
|
||||
* @property {integer} consumptionState The consumption state of the inapp product. Possible values are:
|
||||
- Yet to be consumed
|
||||
- Consumed
|
||||
* @property {string} developerPayload A developer-specified string that contains supplemental information about an order.
|
||||
* @property {string} kind This kind represents an inappPurchase object in the androidpublisher service.
|
||||
* @property {string} orderId The order id associated with the purchase of the inapp product.
|
||||
* @property {integer} purchaseState The purchase state of the order. Possible values are:
|
||||
- Purchased
|
||||
- Cancelled
|
||||
* @property {string} purchaseTime The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SubscriptionPurchase
|
||||
* @memberOf! androidpublisher(v1.1)
|
||||
* @type object
|
||||
* @property {boolean} autoRenewing Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
* @property {string} initiationTimestampMsec Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
* @property {string} kind This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
* @property {string} validUntilTimestampMsec Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
export = Androidpublisher;
|
||||
111
backend/node_modules/googleapis/apis/androidpublisher/v1.js
generated
vendored
Normal file
111
backend/node_modules/googleapis/apis/androidpublisher/v1.js
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
"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");
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.purchases = {
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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
|
||||
*/
|
||||
cancel: 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 + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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 + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Androidpublisher;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/androidpublisher/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,0BAA0B,OAAO;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,SAAS,GAAG;QAEf;;;;;;;;;;;;;;;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,yGAAyG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACxJ,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,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,kGAAkG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACjJ,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBAC1D,UAAU,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC;gBACtD,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAWD,iBAAS,gBAAgB,CAAC"}
|
||||
132
backend/node_modules/googleapis/apis/androidpublisher/v1.ts
generated
vendored
Normal file
132
backend/node_modules/googleapis/apis/androidpublisher/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
function Androidpublisher(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.purchases = {
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
*
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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
|
||||
*/
|
||||
cancel: 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 + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
*
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
*
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! androidpublisher(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
|
||||
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
|
||||
* @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 + '/androidpublisher/v1/applications/{packageName}/subscriptions/{subscriptionId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef SubscriptionPurchase
|
||||
* @memberOf! androidpublisher(v1)
|
||||
* @type object
|
||||
* @property {boolean} autoRenewing Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
* @property {string} initiationTimestampMsec Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
* @property {string} kind This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
* @property {string} validUntilTimestampMsec Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
export = Androidpublisher;
|
||||
2104
backend/node_modules/googleapis/apis/androidpublisher/v2.js
generated
vendored
Normal file
2104
backend/node_modules/googleapis/apis/androidpublisher/v2.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/androidpublisher/v2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/androidpublisher/v2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2893
backend/node_modules/googleapis/apis/androidpublisher/v2.ts
generated
vendored
Normal file
2893
backend/node_modules/googleapis/apis/androidpublisher/v2.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1181
backend/node_modules/googleapis/apis/appengine/v1.js
generated
vendored
Normal file
1181
backend/node_modules/googleapis/apis/appengine/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/appengine/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1939
backend/node_modules/googleapis/apis/appengine/v1.ts
generated
vendored
Normal file
1939
backend/node_modules/googleapis/apis/appengine/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
576
backend/node_modules/googleapis/apis/appengine/v1alpha.js
generated
vendored
Normal file
576
backend/node_modules/googleapis/apis/appengine/v1alpha.js
generated
vendored
Normal file
@@ -0,0 +1,576 @@
|
||||
"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");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1alpha');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1alpha
|
||||
* @variation v1alpha
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
authorizedCertificates: {
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.create
|
||||
*
|
||||
* @desc Uploads the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.delete
|
||||
*
|
||||
* @desc Deletes the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.get
|
||||
*
|
||||
* @desc Gets the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the GET response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.list
|
||||
*
|
||||
* @desc Lists all SSL certificates the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the LIST response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.patch
|
||||
*
|
||||
* @desc Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
authorizedDomains: {
|
||||
/**
|
||||
* appengine.apps.authorizedDomains.list
|
||||
*
|
||||
* @desc Lists all domains the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedDomains.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
domainMappings: {
|
||||
/**
|
||||
* appengine.apps.domainMappings.create
|
||||
*
|
||||
* @desc Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
|
||||
* @param {appengine(v1alpha).DomainMapping} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.delete
|
||||
*
|
||||
* @desc Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.get
|
||||
*
|
||||
* @desc Gets the specified domain mapping.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.list
|
||||
*
|
||||
* @desc Lists the domain mappings on an application.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.domainMappings.patch
|
||||
*
|
||||
* @desc Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1alpha).DomainMapping} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1alpha.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1alpha.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1alpha.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
863
backend/node_modules/googleapis/apis/appengine/v1alpha.ts
generated
vendored
Normal file
863
backend/node_modules/googleapis/apis/appengine/v1alpha.ts
generated
vendored
Normal file
@@ -0,0 +1,863 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1alpha');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1alpha
|
||||
* @variation v1alpha
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.apps = {
|
||||
authorizedCertificates: {
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.create
|
||||
*
|
||||
* @desc Uploads the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.delete
|
||||
*
|
||||
* @desc Deletes the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.get
|
||||
*
|
||||
* @desc Gets the specified SSL certificate.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the GET response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.list
|
||||
*
|
||||
* @desc Lists all SSL certificates the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the LIST response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedCertificates.patch
|
||||
*
|
||||
* @desc Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
|
||||
*
|
||||
* @alias appengine.apps.authorizedCertificates.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.
|
||||
* @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields.
|
||||
* @param {appengine(v1alpha).AuthorizedCertificate} 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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'authorizedCertificatesId'],
|
||||
pathParams: ['appsId', 'authorizedCertificatesId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
authorizedDomains: {
|
||||
|
||||
/**
|
||||
* appengine.apps.authorizedDomains.list
|
||||
*
|
||||
* @desc Lists all domains the user is authorized to administer.
|
||||
*
|
||||
* @alias appengine.apps.authorizedDomains.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
domainMappings: {
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.create
|
||||
*
|
||||
* @desc Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.create
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated.
|
||||
* @param {appengine(v1alpha).DomainMapping} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.delete
|
||||
*
|
||||
* @desc Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.delete
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.get
|
||||
*
|
||||
* @desc Gets the specified domain mapping.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.list
|
||||
*
|
||||
* @desc Lists the domain mappings on an application.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.domainMappings.patch
|
||||
*
|
||||
* @desc Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
|
||||
*
|
||||
* @alias appengine.apps.domainMappings.patch
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.
|
||||
* @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask.
|
||||
* @param {string=} params.updateMask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1alpha).DomainMapping} 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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'domainMappingsId'],
|
||||
pathParams: ['appsId', 'domainMappingsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1alpha)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef AuthorizedCertificate
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).CertificateRawData} certificateRawData The SSL certificate serving the AuthorizedCertificate resource. This must be obtained independently from a certificate authority.
|
||||
* @property {string} displayName The user-specified display name of the certificate. This is not guaranteed to be unique. Example: My Certificate.
|
||||
* @property {integer} domainMappingsCount Aggregate count of the domain mappings with this certificate mapped. This count includes domain mappings on applications for which the user does not have VIEWER permissions.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
|
||||
* @property {string[]} domainNames Topmost applicable domains of this certificate. This certificate applies to these domains and their subdomains. Example: example.com.@OutputOnly
|
||||
* @property {string} expireTime The time when this certificate expires. To update the renewal time on this certificate, upload an SSL certificate with a different expiration time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
|
||||
* @property {string} id Relative name of the certificate. This is a unique value autogenerated on AuthorizedCertificate resource creation. Example: 12345.@OutputOnly
|
||||
* @property {appengine(v1alpha).ManagedCertificate} managedCertificate Only applicable if this certificate is managed by App Engine. Managed certificates are tied to the lifecycle of a DomainMapping and cannot be updated or deleted via the AuthorizedCertificates API. If this certificate is manually administered by the user, this field will be empty.@OutputOnly
|
||||
* @property {string} name Full path to the AuthorizedCertificate resource in the API. Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
|
||||
* @property {string[]} visibleDomainMappings The full paths to user visible Domain Mapping resources that have this certificate mapped. Example: apps/myapp/domainMappings/example.com.This may not represent the full list of mapped domain mappings if the user does not have VIEWER permissions on all of the applications that have this certificate mapped. See domain_mappings_count for a complete count.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef AuthorizedDomain
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} id Fully qualified domain name of the domain authorized for use. Example: example.com.
|
||||
* @property {string} name Full path to the AuthorizedDomain resource in the API. Example: apps/myapp/authorizedDomains/example.com.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CertificateRawData
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} privateKey Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- </pre> @InputOnly
|
||||
* @property {string} publicCertificate PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example: <pre> -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- </pre>
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef DomainMapping
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} id Relative name of the domain serving the application. Example: example.com.
|
||||
* @property {string} name Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly
|
||||
* @property {appengine(v1alpha).ResourceRecord[]} resourceRecords The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping.@OutputOnly
|
||||
* @property {appengine(v1alpha).SslSettings} sslSettings SSL configuration for this domain. If unconfigured, this domain will not serve with SSL.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Empty
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListAuthorizedCertificatesResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).AuthorizedCertificate[]} certificates The SSL certificates the user is authorized to administer.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListAuthorizedDomainsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).AuthorizedDomain[]} domains The authorized domains belonging to the user.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListDomainMappingsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).DomainMapping[]} domainMappings The domain mappings for the application.
|
||||
* @property {string} nextPageToken Continuation token for fetching the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListLocationsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {appengine(v1alpha).Location[]} locations A list of locations that matches the specified filter in the request.
|
||||
* @property {string} nextPageToken The standard List next-page token.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListOperationsResponse
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} nextPageToken The standard List next-page token.
|
||||
* @property {appengine(v1alpha).Operation[]} operations A list of operations that matches the specified filter in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Location
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {object} labels Cross-service attributes for the location. For example
|
||||
{"cloud.googleapis.com/region": "us-east1"}
|
||||
|
||||
* @property {string} locationId The canonical id for this location. For example: "us-east1".
|
||||
* @property {object} metadata Service-specific metadata. For example the available capacity at the given location.
|
||||
* @property {string} name Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef LocationMetadata
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {boolean} flexibleEnvironmentAvailable App Engine Flexible Environment is available in the given location.@OutputOnly
|
||||
* @property {boolean} standardEnvironmentAvailable App Engine Standard Environment is available in the given location.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ManagedCertificate
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} lastRenewalTime Time at which the certificate was last renewed. The renewal process is fully managed. Certificate renewal will automatically occur before the certificate expires. Renewal errors can be tracked via ManagementStatus.@OutputOnly
|
||||
* @property {string} status Status of certificate management. Refers to the most recent certificate acquisition or renewal attempt.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Operation
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {boolean} done If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
|
||||
* @property {appengine(v1alpha).Status} error The error result of the operation in case of failure or cancellation.
|
||||
* @property {object} metadata Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
||||
* @property {string} name The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.
|
||||
* @property {object} response The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadata
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Timestamp that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Timestamp that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1beta4.Version.CreateVersion.@OutputOnly
|
||||
* @property {string} operationType Type of this operation. Deprecated, use method field instead. Example: "create_version".@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/modules/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataExperimental
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/customDomains/example.com.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Alpha
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Beta
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Time that this operation completed.@OutputOnly
|
||||
* @property {string} ephemeralMessage Ephemeral message that may change every time the operation is polled. @OutputOnly
|
||||
* @property {string} insertTime Time that this operation was created.@OutputOnly
|
||||
* @property {string} method API method that initiated this operation. Example: google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
* @property {string[]} warning Durable messages that persist on every operation poll. @OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef OperationMetadataV1Beta5
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} endTime Timestamp that this operation completed.@OutputOnly
|
||||
* @property {string} insertTime Timestamp that this operation was created.@OutputOnly
|
||||
* @property {string} method API method name that initiated this operation. Example: google.appengine.v1beta5.Version.CreateVersion.@OutputOnly
|
||||
* @property {string} target Name of the resource that this operation is acting on. Example: apps/myapp/services/default.@OutputOnly
|
||||
* @property {string} user User who requested this operation.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ResourceRecord
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} name Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'.
|
||||
* @property {string} rrdata Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
|
||||
* @property {string} type Resource record type. Example: AAAA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef SslSettings
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {string} certificateId ID of the AuthorizedCertificate resource configuring SSL for the application. Clearing this field will remove SSL support.By default, a managed certificate is automatically created for every domain mapping. To omit SSL support or to configure SSL manually, specify no_managed_certificate on a CREATE or UPDATE request. You must be authorized to administer the AuthorizedCertificate resource to manually map it to a DomainMapping resource. Example: 12345.
|
||||
* @property {boolean} isManagedCertificate Whether the mapped certificate is an App Engine managed certificate. Managed certificates are created by default with a domain mapping. To opt out, specify no_managed_certificate on a CREATE or UPDATE request.@OutputOnly
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Status
|
||||
* @memberOf! appengine(v1alpha)
|
||||
* @type object
|
||||
* @property {integer} code The status code, which should be an enum value of google.rpc.Code.
|
||||
* @property {object[]} details A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
||||
* @property {string} message A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
|
||||
*/
|
||||
export = Appengine;
|
||||
1393
backend/node_modules/googleapis/apis/appengine/v1beta.js
generated
vendored
Normal file
1393
backend/node_modules/googleapis/apis/appengine/v1beta.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/appengine/v1beta.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2237
backend/node_modules/googleapis/apis/appengine/v1beta.ts
generated
vendored
Normal file
2237
backend/node_modules/googleapis/apis/appengine/v1beta.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
759
backend/node_modules/googleapis/apis/appengine/v1beta4.js
generated
vendored
Normal file
759
backend/node_modules/googleapis/apis/appengine/v1beta4.js
generated
vendored
Normal file
@@ -0,0 +1,759 @@
|
||||
"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");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1beta4');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1beta4
|
||||
* @variation v1beta4
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
/**
|
||||
* appengine.apps.create
|
||||
*
|
||||
* @desc Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).
|
||||
*
|
||||
* @alias appengine.apps.create
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {appengine(v1beta4).Application} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.get
|
||||
*
|
||||
* @desc Gets information about an application.
|
||||
*
|
||||
* @alias appengine.apps.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the application to get. Example: apps/myapp.
|
||||
* @param {boolean=} params.ensureResourcesExist Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.patch
|
||||
*
|
||||
* @desc Updates the specified Application resource. You can update the following fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.auth_domain) default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps#Application.FIELDS.default_cookie_expiration)
|
||||
*
|
||||
* @alias appengine.apps.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1beta4).Application} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
/**
|
||||
* appengine.apps.modules.delete
|
||||
*
|
||||
* @desc Deletes the specified module and all enclosed versions.
|
||||
*
|
||||
* @alias appengine.apps.modules.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.get
|
||||
*
|
||||
* @desc Gets the current configuration of the specified module.
|
||||
*
|
||||
* @alias appengine.apps.modules.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.list
|
||||
*
|
||||
* @desc Lists all the modules in the application.
|
||||
*
|
||||
* @alias appengine.apps.modules.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.patch
|
||||
*
|
||||
* @desc Updates the configuration of the specified module.
|
||||
*
|
||||
* @alias appengine.apps.modules.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules#shardby) field in the Module resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Module} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
versions: {
|
||||
/**
|
||||
* appengine.apps.modules.versions.create
|
||||
*
|
||||
* @desc Deploys code and resource files to a new version.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.create
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Version} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.delete
|
||||
*
|
||||
* @desc Deletes an existing version.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.get
|
||||
*
|
||||
* @desc Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the Get response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.list
|
||||
*
|
||||
* @desc Lists the versions of a module.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string=} params.view Controls the set of fields returned in the List response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId'],
|
||||
pathParams: ['appsId', 'modulesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.patch
|
||||
*
|
||||
* @desc Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.patch
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default/versions/1.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).Version} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
instances: {
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.debug
|
||||
*
|
||||
* @desc Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.debug
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta4).DebugInstanceRequest} 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
|
||||
*/
|
||||
debug: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.delete
|
||||
*
|
||||
* @desc Stops a running instance.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.delete
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.get
|
||||
*
|
||||
* @desc Gets instance information.
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.modules.versions.instances.list
|
||||
*
|
||||
* @desc Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
*
|
||||
* @alias appengine.apps.modules.versions.instances.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1.
|
||||
* @param {string} params.modulesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'modulesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1beta4)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta4/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1beta4.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1beta4.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta4.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1337
backend/node_modules/googleapis/apis/appengine/v1beta4.ts
generated
vendored
Normal file
1337
backend/node_modules/googleapis/apis/appengine/v1beta4.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
759
backend/node_modules/googleapis/apis/appengine/v1beta5.js
generated
vendored
Normal file
759
backend/node_modules/googleapis/apis/appengine/v1beta5.js
generated
vendored
Normal file
@@ -0,0 +1,759 @@
|
||||
"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");
|
||||
/**
|
||||
* Google App Engine Admin API
|
||||
*
|
||||
* The App Engine Admin API enables developers to provision and manage their App Engine applications.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appengine = google.appengine('v1beta5');
|
||||
*
|
||||
* @namespace appengine
|
||||
* @type {Function}
|
||||
* @version v1beta5
|
||||
* @variation v1beta5
|
||||
* @param {object=} options Options for Appengine
|
||||
*/
|
||||
function Appengine(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.apps = {
|
||||
/**
|
||||
* appengine.apps.create
|
||||
*
|
||||
* @desc Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/python/console/).
|
||||
*
|
||||
* @alias appengine.apps.create
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {appengine(v1beta5).Application} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.get
|
||||
*
|
||||
* @desc Gets information about an application.
|
||||
*
|
||||
* @alias appengine.apps.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the application to get. Example: apps/myapp.
|
||||
* @param {boolean=} params.ensureResourcesExist Certain resources associated with an application are created on-demand. Controls whether these resources should be created when performing the GET operation. If specified and any resources could not be created, the request will fail with an error code. Additionally, this parameter can cause the request to take longer to complete. Note: This parameter will be deprecated in a future version of the API.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.patch
|
||||
*
|
||||
* @desc Updates the specified Application resource. You can update the following fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.auth_domain) default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration)
|
||||
*
|
||||
* @alias appengine.apps.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {appengine(v1beta5).Application} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
locations: {
|
||||
/**
|
||||
* appengine.apps.locations.get
|
||||
*
|
||||
* @desc Get information about a location.
|
||||
*
|
||||
* @alias appengine.apps.locations.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Resource name for the location.
|
||||
* @param {string} params.locationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'locationsId'],
|
||||
pathParams: ['appsId', 'locationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.locations.list
|
||||
*
|
||||
* @desc Lists information about the supported locations for this service.
|
||||
*
|
||||
* @alias appengine.apps.locations.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
/**
|
||||
* appengine.apps.operations.get
|
||||
*
|
||||
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
||||
*
|
||||
* @alias appengine.apps.operations.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation resource.
|
||||
* @param {string} params.operationsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'operationsId'],
|
||||
pathParams: ['appsId', 'operationsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.operations.list
|
||||
*
|
||||
* @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/x/operations. To override the binding, API services can add a binding such as "/v1/{name=users/x}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
*
|
||||
* @alias appengine.apps.operations.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. The name of the operation's parent resource.
|
||||
* @param {string=} params.filter The standard list filter.
|
||||
* @param {integer=} params.pageSize The standard list page size.
|
||||
* @param {string=} params.pageToken The standard list page token.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
},
|
||||
services: {
|
||||
/**
|
||||
* appengine.apps.services.delete
|
||||
*
|
||||
* @desc Deletes the specified service and all enclosed versions.
|
||||
*
|
||||
* @alias appengine.apps.services.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.get
|
||||
*
|
||||
* @desc Gets the current configuration of the specified service.
|
||||
*
|
||||
* @alias appengine.apps.services.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.list
|
||||
*
|
||||
* @desc Lists all the services in the application.
|
||||
*
|
||||
* @alias appengine.apps.services.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId'],
|
||||
pathParams: ['appsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.patch
|
||||
*
|
||||
* @desc Updates the configuration of the specified service.
|
||||
*
|
||||
* @alias appengine.apps.services.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#automaticscaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services#shardby) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Service} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
versions: {
|
||||
/**
|
||||
* appengine.apps.services.versions.create
|
||||
*
|
||||
* @desc Deploys new code and resource files to a new version.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.create
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default".
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Version} 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
|
||||
*/
|
||||
create: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.delete
|
||||
*
|
||||
* @desc Deletes an existing version.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.get
|
||||
*
|
||||
* @desc Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the Get response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.list
|
||||
*
|
||||
* @desc Lists the versions of a service.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string=} params.view Controls the set of fields returned in the List response.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId'],
|
||||
pathParams: ['appsId', 'servicesId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.patch
|
||||
*
|
||||
* @desc Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.patch
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.
|
||||
* @param {string=} params.mask Standard field mask for the set of fields to be updated.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).Version} 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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
instances: {
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.debug
|
||||
*
|
||||
* @desc Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.debug
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @param {appengine(v1beta5).DebugInstanceRequest} 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
|
||||
*/
|
||||
debug: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.delete
|
||||
*
|
||||
* @desc Stops a running instance.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.delete
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. For example: "apps/myapp/services/default/versions/v1/instances/instance-1".
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.get
|
||||
*
|
||||
* @desc Gets instance information.
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.get
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.
|
||||
* @param {string} params.instancesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'],
|
||||
pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appengine.apps.services.versions.instances.list
|
||||
*
|
||||
* @desc Lists the instances of a version.Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
*
|
||||
* @alias appengine.apps.services.versions.instances.list
|
||||
* @memberOf! appengine(v1beta5)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.appsId Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
|
||||
* @param {integer=} params.pageSize Maximum results to return per page.
|
||||
* @param {string=} params.pageToken Continuation token for fetching the next page of results.
|
||||
* @param {string} params.servicesId Part of `name`. See documentation of `appsId`.
|
||||
* @param {string} params.versionsId Part of `name`. See documentation of `appsId`.
|
||||
* @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://appengine.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
pathParams: ['appsId', 'servicesId', 'versionsId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appengine;
|
||||
//# sourceMappingURL=v1beta5.js.map
|
||||
1
backend/node_modules/googleapis/apis/appengine/v1beta5.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appengine/v1beta5.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1338
backend/node_modules/googleapis/apis/appengine/v1beta5.ts
generated
vendored
Normal file
1338
backend/node_modules/googleapis/apis/appengine/v1beta5.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
80
backend/node_modules/googleapis/apis/appsactivity/v1.js
generated
vendored
Normal file
80
backend/node_modules/googleapis/apis/appsactivity/v1.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"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");
|
||||
/**
|
||||
* G Suite Activity API
|
||||
*
|
||||
* Provides a historical view of activity.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appsactivity = google.appsactivity('v1');
|
||||
*
|
||||
* @namespace appsactivity
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appsactivity
|
||||
*/
|
||||
function Appsactivity(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.activities = {
|
||||
/**
|
||||
* appsactivity.activities.list
|
||||
*
|
||||
* @desc Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.
|
||||
*
|
||||
* @alias appsactivity.activities.list
|
||||
* @memberOf! appsactivity(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.drive.ancestorId Identifies the Drive folder containing the items for which to return activities.
|
||||
* @param {string=} params.drive.fileId Identifies the Drive item to return activities for.
|
||||
* @param {string=} params.groupingStrategy Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
|
||||
* @param {integer=} params.pageSize The maximum number of events to return on a page. The response includes a continuation token if there are more events.
|
||||
* @param {string=} params.pageToken A token to retrieve a specific page of results.
|
||||
* @param {string=} params.source The Google service from which to return activities. Possible values of source are: - drive.google.com
|
||||
* @param {string=} params.userId Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.
|
||||
* @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 + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appsactivity;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/appsactivity/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appsactivity/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,sBAAsB,OAAO;IAC3B,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,UAAU,GAAG;QAEhB;;;;;;;;;;;;;;;;;;;WAmBG;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,6BAA6B,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC5E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAwGD,iBAAS,YAAY,CAAC"}
|
||||
190
backend/node_modules/googleapis/apis/appsactivity/v1.ts
generated
vendored
Normal file
190
backend/node_modules/googleapis/apis/appsactivity/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,190 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* G Suite Activity API
|
||||
*
|
||||
* Provides a historical view of activity.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appsactivity = google.appsactivity('v1');
|
||||
*
|
||||
* @namespace appsactivity
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appsactivity
|
||||
*/
|
||||
function Appsactivity(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.activities = {
|
||||
|
||||
/**
|
||||
* appsactivity.activities.list
|
||||
*
|
||||
* @desc Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.
|
||||
*
|
||||
* @alias appsactivity.activities.list
|
||||
* @memberOf! appsactivity(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.drive.ancestorId Identifies the Drive folder containing the items for which to return activities.
|
||||
* @param {string=} params.drive.fileId Identifies the Drive item to return activities for.
|
||||
* @param {string=} params.groupingStrategy Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
|
||||
* @param {integer=} params.pageSize The maximum number of events to return on a page. The response includes a continuation token if there are more events.
|
||||
* @param {string=} params.pageToken A token to retrieve a specific page of results.
|
||||
* @param {string=} params.source The Google service from which to return activities. Possible values of source are: - drive.google.com
|
||||
* @param {string=} params.userId Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.
|
||||
* @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 + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Activity
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Event} combinedEvent The fields common to all of the singleEvents that make up the Activity.
|
||||
* @property {appsactivity(v1).Event[]} singleEvents A list of all the Events that make up the Activity.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Event
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string[]} additionalEventTypes Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.
|
||||
* @property {string} eventTimeMillis The time at which the event occurred formatted as Unix time in milliseconds.
|
||||
* @property {boolean} fromUserDeletion Whether this event is caused by a user being deleted.
|
||||
* @property {appsactivity(v1).Move} move Extra information for move type events, such as changes in an object's parents.
|
||||
* @property {appsactivity(v1).PermissionChange[]} permissionChanges Extra information for permissionChange type events, such as the user or group the new permission applies to.
|
||||
* @property {string} primaryEventType The main type of event that occurred.
|
||||
* @property {appsactivity(v1).Rename} rename Extra information for rename type events, such as the old and new names.
|
||||
* @property {appsactivity(v1).Target} target Information specific to the Target object modified by the event.
|
||||
* @property {appsactivity(v1).User} user Represents the user responsible for the event.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListActivitiesResponse
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Activity[]} activities List of activities.
|
||||
* @property {string} nextPageToken Token for the next page of results.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Move
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Parent[]} addedParents The added parent(s).
|
||||
* @property {appsactivity(v1).Parent[]} removedParents The removed parent(s).
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Parent
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} id The parent's ID.
|
||||
* @property {boolean} isRoot Whether this is the root folder.
|
||||
* @property {string} title The parent's title.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Permission
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} name The name of the user or group the permission applies to.
|
||||
* @property {string} permissionId The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
|
||||
* @property {string} role Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
|
||||
* @property {string} type Indicates how widely permissions are granted.
|
||||
* @property {appsactivity(v1).User} user The user's information if the type is USER.
|
||||
* @property {boolean} withLink Whether the permission requires a link to the file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PermissionChange
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {appsactivity(v1).Permission[]} addedPermissions Lists all Permission objects added.
|
||||
* @property {appsactivity(v1).Permission[]} removedPermissions Lists all Permission objects removed.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Photo
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} url The URL of the photo.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Rename
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} newTitle The new title.
|
||||
* @property {string} oldTitle The old title.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Target
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {string} id The ID of the target. For example, in Google Drive, this is the file or folder ID.
|
||||
* @property {string} mimeType The MIME type of the target.
|
||||
* @property {string} name The name of the target. For example, in Google Drive, this is the title of the file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef User
|
||||
* @memberOf! appsactivity(v1)
|
||||
* @type object
|
||||
* @property {boolean} isDeleted A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.
|
||||
* @property {boolean} isMe Whether the user is the authenticated user.
|
||||
* @property {string} name The displayable name of the user.
|
||||
* @property {string} permissionId The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.
|
||||
* @property {appsactivity(v1).Photo} photo The profile photo of the user. Not present if the user has no profile photo.
|
||||
*/
|
||||
export = Appsactivity;
|
||||
209
backend/node_modules/googleapis/apis/appstate/v1.js
generated
vendored
Normal file
209
backend/node_modules/googleapis/apis/appstate/v1.js
generated
vendored
Normal file
@@ -0,0 +1,209 @@
|
||||
"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");
|
||||
/**
|
||||
* Google App State API
|
||||
*
|
||||
* The Google App State API.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appstate = google.appstate('v1');
|
||||
*
|
||||
* @namespace appstate
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appstate
|
||||
*/
|
||||
function Appstate(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.states = {
|
||||
/**
|
||||
* appstate.states.clear
|
||||
*
|
||||
* @desc Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
|
||||
*
|
||||
* @alias appstate.states.clear
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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
|
||||
*/
|
||||
clear: 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 + '/appstate/v1/states/{stateKey}/clear').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appstate.states.delete
|
||||
*
|
||||
* @desc Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
|
||||
*
|
||||
* @alias appstate.states.delete
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appstate.states.get
|
||||
*
|
||||
* @desc Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.
|
||||
*
|
||||
* @alias appstate.states.get
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appstate.states.list
|
||||
*
|
||||
* @desc Lists all the states keys, and optionally the state data.
|
||||
*
|
||||
* @alias appstate.states.list
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {boolean=} params.includeData Whether to include the full data in addition to the version number
|
||||
* @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 + '/appstate/v1/states').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* appstate.states.update
|
||||
*
|
||||
* @desc Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.
|
||||
*
|
||||
* @alias appstate.states.update
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.currentStateVersion The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @param {appstate(v1).UpdateRequest} 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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Appstate;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/appstate/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/appstate/v1.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v1.js","sourceRoot":"","sources":["v1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,0BAA0B;AAE1B,qDAAoD;AAEpD;;;;;;;;;;;;;;GAcG;AACH,kBAAkB,OAAO;IACvB,MAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,MAAM,GAAG;QAEZ;;;;;;;;;;;;;;WAcG;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,sCAAsC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACrF,MAAM,EAAE,MAAM;iBACf,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,UAAU,CAAC;gBAC5B,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;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,gCAAgC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/E,MAAM,EAAE,QAAQ;iBACjB,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,UAAU,CAAC;gBAC5B,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;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,gCAAgC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,UAAU,CAAC;gBAC5B,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;WAaG;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,qBAAqB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBACpE,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED;;;;;;;;;;;;;;;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,gCAAgC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/E,MAAM,EAAE,KAAK;iBACd,EAAE,OAAO,CAAC;gBACX,MAAM,EAAE,MAAM;gBACd,cAAc,EAAE,CAAC,UAAU,CAAC;gBAC5B,UAAU,EAAE,CAAC,UAAU,CAAC;gBACxB,OAAO,EAAE,IAAI;aACd,CAAC;YAEF,MAAM,CAAC,oBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAChD,CAAC;KAEF,CAAC;AACJ,CAAC;AAqCD,iBAAS,QAAQ,CAAC"}
|
||||
268
backend/node_modules/googleapis/apis/appstate/v1.ts
generated
vendored
Normal file
268
backend/node_modules/googleapis/apis/appstate/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,268 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Google App State API
|
||||
*
|
||||
* The Google App State API.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const appstate = google.appstate('v1');
|
||||
*
|
||||
* @namespace appstate
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Appstate
|
||||
*/
|
||||
function Appstate(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.states = {
|
||||
|
||||
/**
|
||||
* appstate.states.clear
|
||||
*
|
||||
* @desc Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
|
||||
*
|
||||
* @alias appstate.states.clear
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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
|
||||
*/
|
||||
clear: 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 + '/appstate/v1/states/{stateKey}/clear').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appstate.states.delete
|
||||
*
|
||||
* @desc Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
|
||||
*
|
||||
* @alias appstate.states.delete
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appstate.states.get
|
||||
*
|
||||
* @desc Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.
|
||||
*
|
||||
* @alias appstate.states.get
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appstate.states.list
|
||||
*
|
||||
* @desc Lists all the states keys, and optionally the state data.
|
||||
*
|
||||
* @alias appstate.states.list
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {boolean=} params.includeData Whether to include the full data in addition to the version number
|
||||
* @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 + '/appstate/v1/states').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* appstate.states.update
|
||||
*
|
||||
* @desc Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.
|
||||
*
|
||||
* @alias appstate.states.update
|
||||
* @memberOf! appstate(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.currentStateVersion The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
|
||||
* @param {integer} params.stateKey The key for the data to be retrieved.
|
||||
* @param {appstate(v1).UpdateRequest} 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 + '/appstate/v1/states/{stateKey}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PUT'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['stateKey'],
|
||||
pathParams: ['stateKey'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef GetResponse
|
||||
* @memberOf! appstate(v1)
|
||||
* @type object
|
||||
* @property {string} currentStateVersion The current app state version.
|
||||
* @property {string} data The requested data.
|
||||
* @property {string} kind Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.
|
||||
* @property {integer} stateKey The key for the data.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef ListResponse
|
||||
* @memberOf! appstate(v1)
|
||||
* @type object
|
||||
* @property {appstate(v1).GetResponse[]} items The app state data.
|
||||
* @property {string} kind Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.
|
||||
* @property {integer} maximumKeyCount The maximum number of keys allowed for this user.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef UpdateRequest
|
||||
* @memberOf! appstate(v1)
|
||||
* @type object
|
||||
* @property {string} data The new app state data that your application is trying to update with.
|
||||
* @property {string} kind Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef WriteResult
|
||||
* @memberOf! appstate(v1)
|
||||
* @type object
|
||||
* @property {string} currentStateVersion The version of the data for this key on the server.
|
||||
* @property {string} kind Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.
|
||||
* @property {integer} stateKey The written key.
|
||||
*/
|
||||
export = Appstate;
|
||||
2081
backend/node_modules/googleapis/apis/bigquery/v2.js
generated
vendored
Normal file
2081
backend/node_modules/googleapis/apis/bigquery/v2.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/bigquery/v2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/bigquery/v2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2790
backend/node_modules/googleapis/apis/bigquery/v2.ts
generated
vendored
Normal file
2790
backend/node_modules/googleapis/apis/bigquery/v2.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1024
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.js
generated
vendored
Normal file
1024
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1411
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.ts
generated
vendored
Normal file
1411
backend/node_modules/googleapis/apis/bigquerydatatransfer/v1.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
362
backend/node_modules/googleapis/apis/blogger/v2.js
generated
vendored
Normal file
362
backend/node_modules/googleapis/apis/blogger/v2.js
generated
vendored
Normal file
@@ -0,0 +1,362 @@
|
||||
"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");
|
||||
/**
|
||||
* Blogger API
|
||||
*
|
||||
* API for access to the data within Blogger.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const blogger = google.blogger('v2');
|
||||
*
|
||||
* @namespace blogger
|
||||
* @type {Function}
|
||||
* @version v2
|
||||
* @variation v2
|
||||
* @param {object=} options Options for Blogger
|
||||
*/
|
||||
function Blogger(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
self.blogs = {
|
||||
/**
|
||||
* blogger.blogs.get
|
||||
*
|
||||
* @desc Gets one blog by id.
|
||||
*
|
||||
* @alias blogger.blogs.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId The ID of the blog to get.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.comments = {
|
||||
/**
|
||||
* blogger.comments.get
|
||||
*
|
||||
* @desc Gets one comment by id.
|
||||
*
|
||||
* @alias blogger.comments.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to containing the comment.
|
||||
* @param {string} params.commentId The ID of the comment to get.
|
||||
* @param {string} params.postId ID of the post to fetch posts 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
|
||||
*/
|
||||
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 + '/blogger/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId', 'commentId'],
|
||||
pathParams: ['blogId', 'commentId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* blogger.comments.list
|
||||
*
|
||||
* @desc Retrieves the comments for a blog, possibly filtered.
|
||||
*
|
||||
* @alias blogger.comments.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch comments from.
|
||||
* @param {boolean=} params.fetchBodies Whether the body content of the comments is included.
|
||||
* @param {integer=} params.maxResults Maximum number of comments to include in the result.
|
||||
* @param {string=} params.pageToken Continuation token if request is paged.
|
||||
* @param {string} params.postId ID of the post to fetch posts from.
|
||||
* @param {string=} params.startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId'],
|
||||
pathParams: ['blogId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.pages = {
|
||||
/**
|
||||
* blogger.pages.get
|
||||
*
|
||||
* @desc Gets one blog page by id.
|
||||
*
|
||||
* @alias blogger.pages.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog containing the page.
|
||||
* @param {string} params.pageId The ID of the page to get.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'pageId'],
|
||||
pathParams: ['blogId', 'pageId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* blogger.pages.list
|
||||
*
|
||||
* @desc Retrieves pages for a blog, possibly filtered.
|
||||
*
|
||||
* @alias blogger.pages.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch pages from.
|
||||
* @param {boolean=} params.fetchBodies Whether to retrieve the Page bodies.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.posts = {
|
||||
/**
|
||||
* blogger.posts.get
|
||||
*
|
||||
* @desc Get a post by id.
|
||||
*
|
||||
* @alias blogger.posts.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch the post from.
|
||||
* @param {string} params.postId The ID of the post
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId'],
|
||||
pathParams: ['blogId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
/**
|
||||
* blogger.posts.list
|
||||
*
|
||||
* @desc Retrieves a list of posts, possibly filtered.
|
||||
*
|
||||
* @alias blogger.posts.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch posts from.
|
||||
* @param {boolean=} params.fetchBodies Whether the body content of posts is included.
|
||||
* @param {integer=} params.maxResults Maximum number of posts to fetch.
|
||||
* @param {string=} params.pageToken Continuation token if the request is paged.
|
||||
* @param {string=} params.startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
};
|
||||
self.users = {
|
||||
/**
|
||||
* blogger.users.get
|
||||
*
|
||||
* @desc Gets one user by id.
|
||||
*
|
||||
* @alias blogger.users.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.userId The ID of the user to get.
|
||||
* @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 + '/blogger/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userId'],
|
||||
pathParams: ['userId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
blogs: {
|
||||
/**
|
||||
* blogger.users.blogs.list
|
||||
*
|
||||
* @desc Retrieves a list of blogs, possibly filtered.
|
||||
*
|
||||
* @alias blogger.users.blogs.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
|
||||
* @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 + '/blogger/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userId'],
|
||||
pathParams: ['userId'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Blogger;
|
||||
//# sourceMappingURL=v2.js.map
|
||||
1
backend/node_modules/googleapis/apis/blogger/v2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/blogger/v2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
526
backend/node_modules/googleapis/apis/blogger/v2.ts
generated
vendored
Normal file
526
backend/node_modules/googleapis/apis/blogger/v2.ts
generated
vendored
Normal file
@@ -0,0 +1,526 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Blogger API
|
||||
*
|
||||
* API for access to the data within Blogger.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const blogger = google.blogger('v2');
|
||||
*
|
||||
* @namespace blogger
|
||||
* @type {Function}
|
||||
* @version v2
|
||||
* @variation v2
|
||||
* @param {object=} options Options for Blogger
|
||||
*/
|
||||
function Blogger(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
self.blogs = {
|
||||
|
||||
/**
|
||||
* blogger.blogs.get
|
||||
*
|
||||
* @desc Gets one blog by id.
|
||||
*
|
||||
* @alias blogger.blogs.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId The ID of the blog to get.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.comments = {
|
||||
|
||||
/**
|
||||
* blogger.comments.get
|
||||
*
|
||||
* @desc Gets one comment by id.
|
||||
*
|
||||
* @alias blogger.comments.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to containing the comment.
|
||||
* @param {string} params.commentId The ID of the comment to get.
|
||||
* @param {string} params.postId ID of the post to fetch posts 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
|
||||
*/
|
||||
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 + '/blogger/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId', 'commentId'],
|
||||
pathParams: ['blogId', 'commentId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* blogger.comments.list
|
||||
*
|
||||
* @desc Retrieves the comments for a blog, possibly filtered.
|
||||
*
|
||||
* @alias blogger.comments.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch comments from.
|
||||
* @param {boolean=} params.fetchBodies Whether the body content of the comments is included.
|
||||
* @param {integer=} params.maxResults Maximum number of comments to include in the result.
|
||||
* @param {string=} params.pageToken Continuation token if request is paged.
|
||||
* @param {string} params.postId ID of the post to fetch posts from.
|
||||
* @param {string=} params.startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId'],
|
||||
pathParams: ['blogId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.pages = {
|
||||
|
||||
/**
|
||||
* blogger.pages.get
|
||||
*
|
||||
* @desc Gets one blog page by id.
|
||||
*
|
||||
* @alias blogger.pages.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog containing the page.
|
||||
* @param {string} params.pageId The ID of the page to get.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'pageId'],
|
||||
pathParams: ['blogId', 'pageId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* blogger.pages.list
|
||||
*
|
||||
* @desc Retrieves pages for a blog, possibly filtered.
|
||||
*
|
||||
* @alias blogger.pages.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch pages from.
|
||||
* @param {boolean=} params.fetchBodies Whether to retrieve the Page bodies.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.posts = {
|
||||
|
||||
/**
|
||||
* blogger.posts.get
|
||||
*
|
||||
* @desc Get a post by id.
|
||||
*
|
||||
* @alias blogger.posts.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch the post from.
|
||||
* @param {string} params.postId The ID of the post
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId', 'postId'],
|
||||
pathParams: ['blogId', 'postId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* blogger.posts.list
|
||||
*
|
||||
* @desc Retrieves a list of posts, possibly filtered.
|
||||
*
|
||||
* @alias blogger.posts.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.blogId ID of the blog to fetch posts from.
|
||||
* @param {boolean=} params.fetchBodies Whether the body content of posts is included.
|
||||
* @param {integer=} params.maxResults Maximum number of posts to fetch.
|
||||
* @param {string=} params.pageToken Continuation token if the request is paged.
|
||||
* @param {string=} params.startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
|
||||
* @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 + '/blogger/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['blogId'],
|
||||
pathParams: ['blogId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
self.users = {
|
||||
|
||||
/**
|
||||
* blogger.users.get
|
||||
*
|
||||
* @desc Gets one user by id.
|
||||
*
|
||||
* @alias blogger.users.get
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.userId The ID of the user to get.
|
||||
* @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 + '/blogger/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userId'],
|
||||
pathParams: ['userId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
blogs: {
|
||||
|
||||
/**
|
||||
* blogger.users.blogs.list
|
||||
*
|
||||
* @desc Retrieves a list of blogs, possibly filtered.
|
||||
*
|
||||
* @alias blogger.users.blogs.list
|
||||
* @memberOf! blogger(v2)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
|
||||
* @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 + '/blogger/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['userId'],
|
||||
pathParams: ['userId'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Blog
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {string} description The description of this blog. This is displayed underneath the title.
|
||||
* @property {string} id The identifier for this resource.
|
||||
* @property {string} kind The kind of this entry. Always blogger#blog
|
||||
* @property {object} locale The locale this Blog is set to.
|
||||
* @property {string} name The name of this blog. This is displayed as the title.
|
||||
* @property {object} pages The container of pages in this blog.
|
||||
* @property {object} posts The container of posts in this blog.
|
||||
* @property {string} published RFC 3339 date-time when this blog was published.
|
||||
* @property {string} selfLink The API REST URL to fetch this resource from.
|
||||
* @property {string} updated RFC 3339 date-time when this blog was last updated.
|
||||
* @property {string} url The URL where this blog is published.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef BlogList
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {blogger(v2).Blog[]} items The list of Blogs this user has Authorship or Admin rights over.
|
||||
* @property {string} kind The kind of this entity. Always blogger#blogList
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Comment
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {object} author The author of this Comment.
|
||||
* @property {object} blog Data about the blog containing this comment.
|
||||
* @property {string} content The actual content of the comment. May include HTML markup.
|
||||
* @property {string} id The identifier for this resource.
|
||||
* @property {object} inReplyTo Data about the comment this is in reply to.
|
||||
* @property {string} kind The kind of this entry. Always blogger#comment
|
||||
* @property {object} post Data about the post containing this comment.
|
||||
* @property {string} published RFC 3339 date-time when this comment was published.
|
||||
* @property {string} selfLink The API REST URL to fetch this resource from.
|
||||
* @property {string} updated RFC 3339 date-time when this comment was last updated.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef CommentList
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {blogger(v2).Comment[]} items The List of Comments for a Post.
|
||||
* @property {string} kind The kind of this entry. Always blogger#commentList
|
||||
* @property {string} nextPageToken Pagination token to fetch the next page, if one exists.
|
||||
* @property {string} prevPageToken Pagination token to fetch the previous page, if one exists.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Page
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {object} author The author of this Page.
|
||||
* @property {object} blog Data about the blog containing this Page.
|
||||
* @property {string} content The body content of this Page, in HTML.
|
||||
* @property {string} id The identifier for this resource.
|
||||
* @property {string} kind The kind of this entity. Always blogger#page
|
||||
* @property {string} published RFC 3339 date-time when this Page was published.
|
||||
* @property {string} selfLink The API REST URL to fetch this resource from.
|
||||
* @property {string} title The title of this entity. This is the name displayed in the Admin user interface.
|
||||
* @property {string} updated RFC 3339 date-time when this Page was last updated.
|
||||
* @property {string} url The URL that this Page is displayed at.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PageList
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {blogger(v2).Page[]} items The list of Pages for a Blog.
|
||||
* @property {string} kind The kind of this entity. Always blogger#pageList
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Post
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {object} author The author of this Post.
|
||||
* @property {object} blog Data about the blog containing this Post.
|
||||
* @property {string} content The content of the Post. May contain HTML markup.
|
||||
* @property {string} id The identifier of this Post.
|
||||
* @property {string} kind The kind of this entity. Always blogger#post
|
||||
* @property {string[]} labels The list of labels this Post was tagged with.
|
||||
* @property {string} published RFC 3339 date-time when this Post was published.
|
||||
* @property {object} replies The container of comments on this Post.
|
||||
* @property {string} selfLink The API REST URL to fetch this resource from.
|
||||
* @property {string} title The title of the Post.
|
||||
* @property {string} updated RFC 3339 date-time when this Post was last updated.
|
||||
* @property {string} url The URL where this Post is displayed.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef PostList
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {blogger(v2).Post[]} items The list of Posts for this Blog.
|
||||
* @property {string} kind The kind of this entity. Always blogger#postList
|
||||
* @property {string} nextPageToken Pagination token to fetch the next page, if one exists.
|
||||
* @property {string} prevPageToken Pagination token to fetch the previous page, if one exists.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef User
|
||||
* @memberOf! blogger(v2)
|
||||
* @type object
|
||||
* @property {string} about Profile summary information.
|
||||
* @property {object} blogs The container of blogs for this user.
|
||||
* @property {string} created The timestamp of when this profile was created, in seconds since epoch.
|
||||
* @property {string} displayName The display name.
|
||||
* @property {string} id The identifier for this User.
|
||||
* @property {string} kind The kind of this entity. Always blogger#user
|
||||
* @property {object} locale This user's locale
|
||||
* @property {string} selfLink The API REST URL to fetch this resource from.
|
||||
* @property {string} url The user's profile page.
|
||||
*/
|
||||
export = Blogger;
|
||||
1255
backend/node_modules/googleapis/apis/blogger/v3.js
generated
vendored
Normal file
1255
backend/node_modules/googleapis/apis/blogger/v3.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user