Updating NPM dependencies
This commit is contained in:
3
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function abusiveexperiencereport(version: 'v1'): abusiveexperienc
|
||||
export declare function abusiveexperiencereport(options: abusiveexperiencereport_v1.Options): abusiveexperiencereport_v1.Abusiveexperiencereport;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { abusiveexperiencereport_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/abusiveexperiencereport/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.abusiveexperiencereport_v1 = exports.auth = exports.abusiveexperiencereport = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "abusiveexperiencereport_v1", { enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function abusiveexperiencereport(versionOrOptions) {
|
||||
exports.abusiveexperiencereport = abusiveexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
172
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
172
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace abusiveexperiencereport_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
@@ -72,14 +61,10 @@ export declare namespace abusiveexperiencereport_v1 {
|
||||
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* @namespace abusiveexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Abusiveexperiencereport
|
||||
* ```
|
||||
*/
|
||||
export class Abusiveexperiencereport {
|
||||
context: APIRequestContext;
|
||||
@@ -92,23 +77,23 @@ export declare namespace abusiveexperiencereport_v1 {
|
||||
*/
|
||||
export interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* The site's Abusive Experience Report status.
|
||||
* The site's Abusive Experience Report status.
|
||||
*/
|
||||
abusiveStatus?: string | null;
|
||||
/**
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7538608) against the site began or will begin. Not set when the filter_status is OFF.
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7538608) against the site began or will begin. Not set when the filter_status is OFF.
|
||||
*/
|
||||
enforcementTime?: string | null;
|
||||
/**
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7538608).
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7538608).
|
||||
*/
|
||||
filterStatus?: string | null;
|
||||
/**
|
||||
* The time at which the site's status last changed.
|
||||
* The time at which the site's status last changed.
|
||||
*/
|
||||
lastChangeTime?: string | null;
|
||||
/**
|
||||
* A link to the full Abusive Experience Report for the site. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
* A link to the full Abusive Experience Report for the site. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
*/
|
||||
reportUrl?: string | null;
|
||||
/**
|
||||
@@ -133,29 +118,71 @@ export declare namespace abusiveexperiencereport_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* abusiveexperiencereport.sites.get
|
||||
* @desc Gets a site's Abusive Experience Report summary.
|
||||
* @alias abusiveexperiencereport.sites.get
|
||||
* @memberOf! ()
|
||||
* Gets a site's Abusive Experience Report summary.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/abusiveexperiencereport.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await abusiveexperiencereport.sites.get({
|
||||
* // Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
* name: 'sites/my-site',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "abusiveStatus": "my_abusiveStatus",
|
||||
* // "enforcementTime": "my_enforcementTime",
|
||||
* // "filterStatus": "my_filterStatus",
|
||||
* // "lastChangeTime": "my_lastChangeTime",
|
||||
* // "reportUrl": "my_reportUrl",
|
||||
* // "reviewedSite": "my_reviewedSite",
|
||||
* // "underReview": false
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Sites$Get, options: MethodOptions | BodyResponseCallback<Schema$SiteSummaryResponse>, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(params: Params$Resource$Sites$Get, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
@@ -163,26 +190,61 @@ export declare namespace abusiveexperiencereport_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* abusiveexperiencereport.violatingSites.list
|
||||
* @desc Lists sites that are failing in the Abusive Experience Report.
|
||||
* @alias abusiveexperiencereport.violatingSites.list
|
||||
* @memberOf! ()
|
||||
* Lists sites that are failing in the Abusive Experience Report.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/abusiveexperiencereport.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await abusiveexperiencereport.violatingSites.list({});
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "violatingSites": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, options: MethodOptions | BodyResponseCallback<Schema$ViolatingSitesResponse>, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
47
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/abusiveexperiencereport/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.abusiveexperiencereport_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var abusiveexperiencereport_v1;
|
||||
(function (abusiveexperiencereport_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var abusiveexperiencereport_v1;
|
||||
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
|
||||
*
|
||||
* @namespace abusiveexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Abusiveexperiencereport
|
||||
* ```
|
||||
*/
|
||||
class Abusiveexperiencereport {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function acceleratedmobilepageurl(version: 'v1'): acceleratedmobi
|
||||
export declare function acceleratedmobilepageurl(options: acceleratedmobilepageurl_v1.Options): acceleratedmobilepageurl_v1.Acceleratedmobilepageurl;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { acceleratedmobilepageurl_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.acceleratedmobilepageurl_v1 = exports.auth = exports.acceleratedmobilepageurl = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "acceleratedmobilepageurl_v1", { enumerable: true, get: function () { return v1_1.acceleratedmobilepageurl_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function acceleratedmobilepageurl(versionOrOptions) {
|
||||
exports.acceleratedmobilepageurl = acceleratedmobilepageurl;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
107
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
107
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace acceleratedmobilepageurl_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
@@ -72,14 +61,10 @@ export declare namespace acceleratedmobilepageurl_v1 {
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
* ```
|
||||
*/
|
||||
export class Acceleratedmobilepageurl {
|
||||
context: APIRequestContext;
|
||||
@@ -91,7 +76,7 @@ export declare namespace acceleratedmobilepageurl_v1 {
|
||||
*/
|
||||
export interface Schema$AmpUrl {
|
||||
/**
|
||||
* The AMP URL pointing to the publisher's web server.
|
||||
* The AMP URL pointing to the publisher's web server.
|
||||
*/
|
||||
ampUrl?: string | null;
|
||||
/**
|
||||
@@ -104,7 +89,7 @@ export declare namespace acceleratedmobilepageurl_v1 {
|
||||
originalUrl?: string | null;
|
||||
}
|
||||
/**
|
||||
* AMP URL Error resource for a requested URL that couldn't be found.
|
||||
* AMP URL Error resource for a requested URL that couldn't be found.
|
||||
*/
|
||||
export interface Schema$AmpUrlError {
|
||||
/**
|
||||
@@ -150,27 +135,70 @@ export declare namespace acceleratedmobilepageurl_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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! ()
|
||||
* Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/acceleratedmobilepageurl.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await acceleratedmobilepageurl.ampUrls.batchGet({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "lookupStrategy": "my_lookupStrategy",
|
||||
* // "urls": []
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "ampUrls": [],
|
||||
* // "urlErrors": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
batchGet(params?: Params$Resource$Ampurls$Batchget, options?: MethodOptions): GaxiosPromise<Schema$BatchGetAmpUrlsResponse>;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, options: MethodOptions | BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>, callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
batchGet(params: Params$Resource$Ampurls$Batchget, callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
batchGet(callback: BodyResponseCallback<Schema$BatchGetAmpUrlsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Ampurls$Batchget extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
@@ -178,3 +206,4 @@ export declare namespace acceleratedmobilepageurl_v1 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
47
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/acceleratedmobilepageurl/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.acceleratedmobilepageurl_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var acceleratedmobilepageurl_v1;
|
||||
(function (acceleratedmobilepageurl_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var acceleratedmobilepageurl_v1;
|
||||
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1');
|
||||
*
|
||||
* @namespace acceleratedmobilepageurl
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Acceleratedmobilepageurl
|
||||
* ```
|
||||
*/
|
||||
class Acceleratedmobilepageurl {
|
||||
constructor(options, google) {
|
||||
|
||||
8
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
8
node_modules/googleapis/build/src/apis/accessapproval/index.d.ts
generated
vendored
@@ -1,10 +1,18 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { accessapproval_v1 } from './v1';
|
||||
import { accessapproval_v1beta1 } from './v1beta1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof accessapproval_v1.Accessapproval;
|
||||
v1beta1: typeof accessapproval_v1beta1.Accessapproval;
|
||||
};
|
||||
export declare function accessapproval(version: 'v1'): accessapproval_v1.Accessapproval;
|
||||
export declare function accessapproval(options: accessapproval_v1.Options): accessapproval_v1.Accessapproval;
|
||||
export declare function accessapproval(version: 'v1beta1'): accessapproval_v1beta1.Accessapproval;
|
||||
export declare function accessapproval(options: accessapproval_v1beta1.Options): accessapproval_v1beta1.Accessapproval;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { accessapproval_v1 };
|
||||
export { accessapproval_v1beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
9
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
9
node_modules/googleapis/build/src/apis/accessapproval/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,10 +12,15 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accessapproval_v1beta1 = exports.accessapproval_v1 = exports.auth = exports.accessapproval = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "accessapproval_v1", { enumerable: true, get: function () { return v1_1.accessapproval_v1; } });
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.accessapproval_v1.Accessapproval,
|
||||
v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval,
|
||||
};
|
||||
function accessapproval(versionOrOptions) {
|
||||
@@ -24,4 +29,6 @@ function accessapproval(versionOrOptions) {
|
||||
exports.accessapproval = accessapproval;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1842
node_modules/googleapis/build/src/apis/accessapproval/v1.d.ts
generated
vendored
Normal file
1842
node_modules/googleapis/build/src/apis/accessapproval/v1.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
739
node_modules/googleapis/build/src/apis/accessapproval/v1.js
generated
vendored
Normal file
739
node_modules/googleapis/build/src/apis/accessapproval/v1.js
generated
vendored
Normal file
@@ -0,0 +1,739 @@
|
||||
"use strict";
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accessapproval_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var accessapproval_v1;
|
||||
(function (accessapproval_v1) {
|
||||
/**
|
||||
* Access Approval API
|
||||
*
|
||||
* An API for controlling access to data by Google personnel.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accessapproval = google.accessapproval('v1');
|
||||
* ```
|
||||
*/
|
||||
class Accessapproval {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.folders = new Resource$Folders(this.context);
|
||||
this.organizations = new Resource$Organizations(this.context);
|
||||
this.projects = new Resource$Projects(this.context);
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Accessapproval = Accessapproval;
|
||||
class Resource$Folders {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Folders$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Folders = Resource$Folders;
|
||||
class Resource$Folders$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests;
|
||||
class Resource$Organizations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Organizations = Resource$Organizations;
|
||||
class Resource$Organizations$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests;
|
||||
class Resource$Projects {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.approvalRequests = new Resource$Projects$Approvalrequests(this.context);
|
||||
}
|
||||
deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Projects = Resource$Projects;
|
||||
class Resource$Projects$Approvalrequests {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
approve(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
dismiss(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests;
|
||||
})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1262
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
1262
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
39
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
39
node_modules/googleapis/build/src/apis/accessapproval/v1beta1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accessapproval_v1beta1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accessapproval_v1beta1;
|
||||
(function (accessapproval_v1beta1) {
|
||||
/**
|
||||
|
||||
4
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
4
node_modules/googleapis/build/src/apis/accesscontextmanager/index.d.ts
generated
vendored
@@ -12,3 +12,7 @@ export declare function accesscontextmanager(version: 'v1beta'): accesscontextma
|
||||
export declare function accesscontextmanager(options: accesscontextmanager_v1beta.Options): accesscontextmanager_v1beta.Accesscontextmanager;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { accesscontextmanager_v1 };
|
||||
export { accesscontextmanager_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
7
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
7
node_modules/googleapis/build/src/apis/accesscontextmanager/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,10 +12,13 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accesscontextmanager_v1beta = exports.accesscontextmanager_v1 = exports.auth = exports.accesscontextmanager = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "accesscontextmanager_v1", { enumerable: true, get: function () { return v1_1.accesscontextmanager_v1; } });
|
||||
const v1beta_1 = require("./v1beta");
|
||||
Object.defineProperty(exports, "accesscontextmanager_v1beta", { enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.accesscontextmanager_v1.Accesscontextmanager,
|
||||
v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager,
|
||||
@@ -26,4 +29,6 @@ function accesscontextmanager(versionOrOptions) {
|
||||
exports.accesscontextmanager = accesscontextmanager;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
2274
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
2274
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
309
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
309
node_modules/googleapis/build/src/apis/accesscontextmanager/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accesscontextmanager_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accesscontextmanager_v1;
|
||||
(function (accesscontextmanager_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var accesscontextmanager_v1;
|
||||
* An API for setting attribute based access control to requests to GCP services.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1');
|
||||
*
|
||||
* @namespace accesscontextmanager
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Accesscontextmanager
|
||||
* ```
|
||||
*/
|
||||
class Accesscontextmanager {
|
||||
constructor(options, google) {
|
||||
@@ -46,6 +41,7 @@ var accesscontextmanager_v1;
|
||||
};
|
||||
this.accessPolicies = new Resource$Accesspolicies(this.context);
|
||||
this.operations = new Resource$Operations(this.context);
|
||||
this.organizations = new Resource$Organizations(this.context);
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager;
|
||||
@@ -371,12 +367,74 @@ var accesscontextmanager_v1;
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
replaceAll(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/accessLevels:replaceAll').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels;
|
||||
class Resource$Accesspolicies$Serviceperimeters {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
commit(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
@@ -532,6 +590,37 @@ var accesscontextmanager_v1;
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
replaceAll(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters;
|
||||
class Resource$Operations {
|
||||
@@ -662,5 +751,173 @@ var accesscontextmanager_v1;
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Operations = Resource$Operations;
|
||||
class Resource$Organizations {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.gcpUserAccessBindings = new Resource$Organizations$Gcpuseraccessbindings(this.context);
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Organizations = Resource$Organizations;
|
||||
class Resource$Organizations$Gcpuseraccessbindings {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
delete(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'DELETE',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
patch(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'PATCH',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
accesscontextmanager_v1.Resource$Organizations$Gcpuseraccessbindings = Resource$Organizations$Gcpuseraccessbindings;
|
||||
})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1329
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
1329
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
47
node_modules/googleapis/build/src/apis/accesscontextmanager/v1beta.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.accesscontextmanager_v1beta = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var accesscontextmanager_v1beta;
|
||||
(function (accesscontextmanager_v1beta) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var accesscontextmanager_v1beta;
|
||||
* An API for setting attribute based access control to requests to GCP services.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const accesscontextmanager = google.accesscontextmanager('v1beta');
|
||||
*
|
||||
* @namespace accesscontextmanager
|
||||
* @type {Function}
|
||||
* @version v1beta
|
||||
* @variation v1beta
|
||||
* @param {object=} options Options for Accesscontextmanager
|
||||
* ```
|
||||
*/
|
||||
class Accesscontextmanager {
|
||||
constructor(options, google) {
|
||||
|
||||
5
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
5
node_modules/googleapis/build/src/apis/adexchangebuyer/index.d.ts
generated
vendored
@@ -16,3 +16,8 @@ export declare function adexchangebuyer(version: 'v1.4'): adexchangebuyer_v1_4.A
|
||||
export declare function adexchangebuyer(options: adexchangebuyer_v1_4.Options): adexchangebuyer_v1_4.Adexchangebuyer;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adexchangebuyer_v1_2 };
|
||||
export { adexchangebuyer_v1_3 };
|
||||
export { adexchangebuyer_v1_4 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
8
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
8
node_modules/googleapis/build/src/apis/adexchangebuyer/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,11 +12,15 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_2 = exports.auth = exports.adexchangebuyer = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_2_1 = require("./v1.2");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_2", { enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } });
|
||||
const v1_3_1 = require("./v1.3");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } });
|
||||
const v1_4_1 = require("./v1.4");
|
||||
Object.defineProperty(exports, "adexchangebuyer_v1_4", { enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } });
|
||||
exports.VERSIONS = {
|
||||
'v1.2': v1_2_1.adexchangebuyer_v1_2.Adexchangebuyer,
|
||||
'v1.3': v1_3_1.adexchangebuyer_v1_3.Adexchangebuyer,
|
||||
@@ -28,4 +32,6 @@ function adexchangebuyer(versionOrOptions) {
|
||||
exports.adexchangebuyer = adexchangebuyer;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
602
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
602
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace adexchangebuyer_v1_2 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1.2';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
@@ -56,14 +45,10 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
export class Adexchangebuyer {
|
||||
context: APIRequestContext;
|
||||
@@ -247,7 +232,7 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
* Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
@@ -255,92 +240,288 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexchangebuyer.accounts.get
|
||||
* @desc Gets one account by ID.
|
||||
* @alias adexchangebuyer.accounts.get
|
||||
* @memberOf! ()
|
||||
* Gets one account by ID.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.get({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.list
|
||||
* @desc Retrieves the authenticated user's list of accounts.
|
||||
* @alias adexchangebuyer.accounts.list
|
||||
* @memberOf! ()
|
||||
* Retrieves the authenticated user's list of accounts.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.list({});
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "items": [],
|
||||
* // "kind": "my_kind"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$AccountsList>;
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$AccountsList>, callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
list(callback: BodyResponseCallback<Schema$AccountsList>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.patch
|
||||
* @desc Updates an existing account. This method supports patch semantics.
|
||||
* @alias adexchangebuyer.accounts.patch
|
||||
* @memberOf! ()
|
||||
* Updates an existing account. This method supports patch semantics.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.patch({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
patch(params: Params$Resource$Accounts$Patch, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
patch(params: Params$Resource$Accounts$Patch, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
patch(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
/**
|
||||
* adexchangebuyer.accounts.update
|
||||
* @desc Updates an existing account.
|
||||
* @alias adexchangebuyer.accounts.update
|
||||
* @memberOf! ()
|
||||
* Updates an existing account.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {integer} params.id The account id
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.accounts.update({
|
||||
* // The account id
|
||||
* id: 'placeholder-value',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "bidderLocation": [],
|
||||
* // "cookieMatchingNid": "my_cookieMatchingNid",
|
||||
* // "cookieMatchingUrl": "my_cookieMatchingUrl",
|
||||
* // "id": 0,
|
||||
* // "kind": "my_kind",
|
||||
* // "maximumActiveCreatives": 0,
|
||||
* // "maximumTotalQps": 0,
|
||||
* // "numberActiveCreatives": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
update(params: Params$Resource$Accounts$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): GaxiosPromise<Schema$Account>;
|
||||
update(params: Params$Resource$Accounts$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
update(params: Params$Resource$Accounts$Update, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
update(params: Params$Resource$Accounts$Update, callback: BodyResponseCallback<Schema$Account>): void;
|
||||
update(callback: BodyResponseCallback<Schema$Account>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
id?: number;
|
||||
}
|
||||
export interface Params$Resource$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Patch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
@@ -351,10 +532,6 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
requestBody?: Schema$Account;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Update extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
@@ -368,62 +545,254 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* 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! ()
|
||||
* Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.get({
|
||||
* // The id for the account that will serve this creative.
|
||||
* accountId: 'placeholder-value',
|
||||
* // The buyer-specific id for this creative.
|
||||
* buyerCreativeId: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Creatives$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Creatives$Get, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
get(params: Params$Resource$Creatives$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Creatives$Get, options: MethodOptions | BodyResponseCallback<Schema$Creative>, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
get(params: Params$Resource$Creatives$Get, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
/**
|
||||
* adexchangebuyer.creatives.insert
|
||||
* @desc Submit a new creative.
|
||||
* @alias adexchangebuyer.creatives.insert
|
||||
* @memberOf! ()
|
||||
* Submit a new creative.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.insert({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "HTMLSnippet": "my_HTMLSnippet",
|
||||
* // "accountId": 0,
|
||||
* // "advertiserId": [],
|
||||
* // "advertiserName": "my_advertiserName",
|
||||
* // "agencyId": "my_agencyId",
|
||||
* // "apiUploadTimestamp": "my_apiUploadTimestamp",
|
||||
* // "attribute": [],
|
||||
* // "buyerCreativeId": "my_buyerCreativeId",
|
||||
* // "clickThroughUrl": [],
|
||||
* // "corrections": [],
|
||||
* // "disapprovalReasons": [],
|
||||
* // "filteringReasons": {},
|
||||
* // "height": 0,
|
||||
* // "impressionTrackingUrl": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "productCategories": [],
|
||||
* // "restrictedCategories": [],
|
||||
* // "sensitiveCategories": [],
|
||||
* // "status": "my_status",
|
||||
* // "vendorType": [],
|
||||
* // "version": 0,
|
||||
* // "videoURL": "my_videoURL",
|
||||
* // "width": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
insert(params: Params$Resource$Creatives$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): GaxiosPromise<Schema$Creative>;
|
||||
insert(params: Params$Resource$Creatives$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
insert(params: Params$Resource$Creatives$Insert, options: MethodOptions | BodyResponseCallback<Schema$Creative>, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
insert(params: Params$Resource$Creatives$Insert, callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
insert(callback: BodyResponseCallback<Schema$Creative>): void;
|
||||
/**
|
||||
* 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! ()
|
||||
* Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexchangebuyer.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.2');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/adexchange.buyer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexchangebuyer.creatives.list({
|
||||
* // Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // 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.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // When specified, only creatives having the given status are returned.
|
||||
* statusFilter: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "items": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Creatives$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Creatives$List, options?: MethodOptions): GaxiosPromise<Schema$CreativesList>;
|
||||
list(params: Params$Resource$Creatives$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Creatives$List, options: MethodOptions | BodyResponseCallback<Schema$CreativesList>, callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
list(params: Params$Resource$Creatives$List, callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
list(callback: BodyResponseCallback<Schema$CreativesList>): void;
|
||||
}
|
||||
export interface Params$Resource$Creatives$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The id for the account that will serve this creative.
|
||||
*/
|
||||
@@ -434,20 +803,12 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
buyerCreativeId?: string;
|
||||
}
|
||||
export interface Params$Resource$Creatives$Insert extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$Creative;
|
||||
}
|
||||
export interface Params$Resource$Creatives$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
|
||||
*/
|
||||
@@ -463,3 +824,4 @@ export declare namespace adexchangebuyer_v1_2 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.2.d.ts.map
|
||||
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.2.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer_v1_2 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer_v1_2;
|
||||
(function (adexchangebuyer_v1_2) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adexchangebuyer_v1_2;
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
constructor(options, google) {
|
||||
|
||||
1762
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.d.ts
generated
vendored
1762
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.3.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer_v1_3 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer_v1_3;
|
||||
(function (adexchangebuyer_v1_3) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adexchangebuyer_v1_3;
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
constructor(options, google) {
|
||||
|
||||
3145
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.d.ts
generated
vendored
3145
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adexchangebuyer/v1.4.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer_v1_4 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer_v1_4;
|
||||
(function (adexchangebuyer_v1_4) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adexchangebuyer_v1_4;
|
||||
* Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer = google.adexchangebuyer('v1.4');
|
||||
*
|
||||
* @namespace adexchangebuyer
|
||||
* @type {Function}
|
||||
* @version v1.4
|
||||
* @variation v1.4
|
||||
* @param {object=} options Options for Adexchangebuyer
|
||||
* ```
|
||||
*/
|
||||
class Adexchangebuyer {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function adexchangebuyer2(version: 'v2beta1'): adexchangebuyer2_v
|
||||
export declare function adexchangebuyer2(options: adexchangebuyer2_v2beta1.Options): adexchangebuyer2_v2beta1.Adexchangebuyer2;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adexchangebuyer2_v2beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/adexchangebuyer2/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer2_v2beta1 = exports.auth = exports.adexchangebuyer2 = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v2beta1_1 = require("./v2beta1");
|
||||
Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function adexchangebuyer2(versionOrOptions) {
|
||||
exports.adexchangebuyer2 = adexchangebuyer2;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
5085
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
5085
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adexchangebuyer2/v2beta1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexchangebuyer2_v2beta1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexchangebuyer2_v2beta1;
|
||||
(function (adexchangebuyer2_v2beta1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adexchangebuyer2_v2beta1;
|
||||
* Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexchangebuyer2 = google.adexchangebuyer2('v2beta1');
|
||||
*
|
||||
* @namespace adexchangebuyer2
|
||||
* @type {Function}
|
||||
* @version v2beta1
|
||||
* @variation v2beta1
|
||||
* @param {object=} options Options for Adexchangebuyer2
|
||||
* ```
|
||||
*/
|
||||
class Adexchangebuyer2 {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/adexperiencereport/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function adexperiencereport(version: 'v1'): adexperiencereport_v1
|
||||
export declare function adexperiencereport(options: adexperiencereport_v1.Options): adexperiencereport_v1.Adexperiencereport;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adexperiencereport_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/adexperiencereport/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexperiencereport_v1 = exports.auth = exports.adexperiencereport = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_1.adexperiencereport_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.adexperiencereport_v1.Adexperiencereport,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function adexperiencereport(versionOrOptions) {
|
||||
exports.adexperiencereport = adexperiencereport;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
176
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
176
node_modules/googleapis/build/src/apis/adexperiencereport/v1.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace adexperiencereport_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
@@ -72,14 +61,10 @@ export declare namespace adexperiencereport_v1 {
|
||||
* Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
* ```
|
||||
*/
|
||||
export class Adexperiencereport {
|
||||
context: APIRequestContext;
|
||||
@@ -88,31 +73,31 @@ export declare namespace adexperiencereport_v1 {
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* A site's Ad Experience Report summary on a single platform.
|
||||
* A site's Ad Experience Report summary on a single platform.
|
||||
*/
|
||||
export interface Schema$PlatformSummary {
|
||||
/**
|
||||
* The site's Ad Experience Report status on this platform.
|
||||
* The site's Ad Experience Report status on this platform.
|
||||
*/
|
||||
betterAdsStatus?: string | null;
|
||||
/**
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
|
||||
* The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
|
||||
*/
|
||||
enforcementTime?: string | null;
|
||||
/**
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform.
|
||||
* The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform.
|
||||
*/
|
||||
filterStatus?: string | null;
|
||||
/**
|
||||
* The time at which the site's status last changed on this platform.
|
||||
* The time at which the site's status last changed on this platform.
|
||||
*/
|
||||
lastChangeTime?: string | null;
|
||||
/**
|
||||
* The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
|
||||
* The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
|
||||
*/
|
||||
region?: string[] | null;
|
||||
/**
|
||||
* A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
* A link to the full Ad Experience Report for the site on this platform.. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
|
||||
*/
|
||||
reportUrl?: string | null;
|
||||
/**
|
||||
@@ -125,11 +110,11 @@ export declare namespace adexperiencereport_v1 {
|
||||
*/
|
||||
export interface Schema$SiteSummaryResponse {
|
||||
/**
|
||||
* The site's Ad Experience Report summary on desktop.
|
||||
* The site's Ad Experience Report summary on desktop.
|
||||
*/
|
||||
desktopSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
* The site's Ad Experience Report summary on mobile.
|
||||
* The site's Ad Experience Report summary on mobile.
|
||||
*/
|
||||
mobileSummary?: Schema$PlatformSummary;
|
||||
/**
|
||||
@@ -150,29 +135,67 @@ export declare namespace adexperiencereport_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexperiencereport.sites.get
|
||||
* @desc Gets a site's Ad Experience Report summary.
|
||||
* @alias adexperiencereport.sites.get
|
||||
* @memberOf! ()
|
||||
* Gets a site's Ad Experience Report summary.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexperiencereport.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexperiencereport.sites.get({
|
||||
* // Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
* name: 'sites/my-site',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "desktopSummary": {},
|
||||
* // "mobileSummary": {},
|
||||
* // "reviewedSite": "my_reviewedSite"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Sites$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteSummaryResponse>;
|
||||
get(params: Params$Resource$Sites$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Sites$Get, options: MethodOptions | BodyResponseCallback<Schema$SiteSummaryResponse>, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(params: Params$Resource$Sites$Get, callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SiteSummaryResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Sites$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
|
||||
* Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site\}`
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
@@ -180,26 +203,61 @@ export declare namespace adexperiencereport_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* adexperiencereport.violatingSites.list
|
||||
* @desc Lists sites that are failing in the Ad Experience Report on at least one platform.
|
||||
* @alias adexperiencereport.violatingSites.list
|
||||
* @memberOf! ()
|
||||
* Lists sites that are failing in the Ad Experience Report on at least one platform.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/adexperiencereport.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await adexperiencereport.violatingSites.list({});
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "violatingSites": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): GaxiosPromise<Schema$ViolatingSitesResponse>;
|
||||
list(params: Params$Resource$Violatingsites$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, options: MethodOptions | BodyResponseCallback<Schema$ViolatingSitesResponse>, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(params: Params$Resource$Violatingsites$List, callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ViolatingSitesResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Violatingsites$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
47
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adexperiencereport/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adexperiencereport_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adexperiencereport_v1;
|
||||
(function (adexperiencereport_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adexperiencereport_v1;
|
||||
* Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adexperiencereport = google.adexperiencereport('v1');
|
||||
*
|
||||
* @namespace adexperiencereport
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Adexperiencereport
|
||||
* ```
|
||||
*/
|
||||
class Adexperiencereport {
|
||||
constructor(options, google) {
|
||||
|
||||
465
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
465
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.d.ts
generated
vendored
@@ -1,30 +1,31 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admin_datatransfer_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'datatransfer_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
@@ -42,28 +43,28 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
userIp?: string;
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
* Admin SDK
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
export class Admin {
|
||||
context: APIRequestContext;
|
||||
@@ -72,7 +73,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* The JSON template for an Application resource.
|
||||
* The JSON template for an Application resource. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
|
||||
*/
|
||||
export interface Schema$Application {
|
||||
/**
|
||||
@@ -80,7 +81,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* The application's ID.
|
||||
* The application's ID.
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
@@ -88,7 +89,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* The application's name.
|
||||
* The application's name.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
@@ -101,7 +102,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
export interface Schema$ApplicationDataTransfer {
|
||||
/**
|
||||
* The application's ID.
|
||||
* The application's ID.
|
||||
*/
|
||||
applicationId?: string | null;
|
||||
/**
|
||||
@@ -114,7 +115,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
applicationTransferStatus?: string | null;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of Applications.
|
||||
* Template for a collection of Applications. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
|
||||
*/
|
||||
export interface Schema$ApplicationsListResponse {
|
||||
/**
|
||||
@@ -139,16 +140,16 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
export interface Schema$ApplicationTransferParam {
|
||||
/**
|
||||
* The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||
* The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||
*/
|
||||
key?: string | null;
|
||||
/**
|
||||
* The value of the corresponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||
* The value of the corresponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||
*/
|
||||
value?: string[] | null;
|
||||
}
|
||||
/**
|
||||
* The JSON template for a DataTransfer resource.
|
||||
* The JSON template for a DataTransfer resource. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
|
||||
*/
|
||||
export interface Schema$DataTransfer {
|
||||
/**
|
||||
@@ -160,7 +161,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
*/
|
||||
etag?: string | null;
|
||||
/**
|
||||
* The transfer's ID (Read-only).
|
||||
* The transfer's ID (Read-only).
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
@@ -185,7 +186,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
requestTime?: string | null;
|
||||
}
|
||||
/**
|
||||
* Template for a collection of DataTransfer resources.
|
||||
* Template for a collection of DataTransfer resources. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)
|
||||
*/
|
||||
export interface Schema$DataTransfersListResponse {
|
||||
/**
|
||||
@@ -209,45 +210,136 @@ export declare namespace admin_datatransfer_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* datatransfer.applications.get
|
||||
* @desc Retrieves information about an application for the given application ID.
|
||||
* @alias datatransfer.applications.get
|
||||
* @memberOf! ()
|
||||
* Retrieves information about an application for the given application ID.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer',
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await datatransfer.applications.get({
|
||||
* // ID of the application resource to be retrieved.
|
||||
* applicationId: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "etag": "my_etag",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "name": "my_name",
|
||||
* // "transferParams": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Applications$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Applications$Get, options?: MethodOptions): GaxiosPromise<Schema$Application>;
|
||||
get(params: Params$Resource$Applications$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Applications$Get, options: MethodOptions | BodyResponseCallback<Schema$Application>, callback: BodyResponseCallback<Schema$Application>): void;
|
||||
get(params: Params$Resource$Applications$Get, callback: BodyResponseCallback<Schema$Application>): void;
|
||||
get(callback: BodyResponseCallback<Schema$Application>): void;
|
||||
/**
|
||||
* datatransfer.applications.list
|
||||
* @desc Lists the applications available for data transfer for a customer.
|
||||
* @alias datatransfer.applications.list
|
||||
* @memberOf! ()
|
||||
* Lists the applications available for data transfer for a customer.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the G Suite 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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer',
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await datatransfer.applications.list({
|
||||
* // Immutable ID of the Google Apps account.
|
||||
* customerId: 'placeholder-value',
|
||||
* // Maximum number of results to return. Default is 100.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // Token to specify next page in the list.
|
||||
* pageToken: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "applications": [],
|
||||
* // "etag": "my_etag",
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Applications$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Applications$List, options?: MethodOptions): GaxiosPromise<Schema$ApplicationsListResponse>;
|
||||
list(params: Params$Resource$Applications$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Applications$List, options: MethodOptions | BodyResponseCallback<Schema$ApplicationsListResponse>, callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
list(params: Params$Resource$Applications$List, callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ApplicationsListResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Applications$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* ID of the application resource to be retrieved.
|
||||
*/
|
||||
@@ -255,11 +347,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
}
|
||||
export interface Params$Resource$Applications$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Immutable ID of the G Suite account.
|
||||
* Immutable ID of the Google Apps account.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
@@ -275,74 +363,226 @@ export declare namespace admin_datatransfer_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* datatransfer.transfers.get
|
||||
* @desc Retrieves a data transfer request by its resource ID.
|
||||
* @alias datatransfer.transfers.get
|
||||
* @memberOf! ()
|
||||
* Retrieves a data transfer request by its resource ID.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer',
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await datatransfer.transfers.get({
|
||||
* // ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
* dataTransferId: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "applicationDataTransfers": [],
|
||||
* // "etag": "my_etag",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "newOwnerUserId": "my_newOwnerUserId",
|
||||
* // "oldOwnerUserId": "my_oldOwnerUserId",
|
||||
* // "overallTransferStatusCode": "my_overallTransferStatusCode",
|
||||
* // "requestTime": "my_requestTime"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Transfers$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Transfers$Get, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
get(params: Params$Resource$Transfers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Transfers$Get, options: MethodOptions | BodyResponseCallback<Schema$DataTransfer>, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
get(params: Params$Resource$Transfers$Get, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
get(callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
/**
|
||||
* datatransfer.transfers.insert
|
||||
* @desc Inserts a data transfer request.
|
||||
* @alias datatransfer.transfers.insert
|
||||
* @memberOf! ()
|
||||
* Inserts a data transfer request.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.datatransfer'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await datatransfer.transfers.insert({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "applicationDataTransfers": [],
|
||||
* // "etag": "my_etag",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "newOwnerUserId": "my_newOwnerUserId",
|
||||
* // "oldOwnerUserId": "my_oldOwnerUserId",
|
||||
* // "overallTransferStatusCode": "my_overallTransferStatusCode",
|
||||
* // "requestTime": "my_requestTime"
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "applicationDataTransfers": [],
|
||||
* // "etag": "my_etag",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "newOwnerUserId": "my_newOwnerUserId",
|
||||
* // "oldOwnerUserId": "my_oldOwnerUserId",
|
||||
* // "overallTransferStatusCode": "my_overallTransferStatusCode",
|
||||
* // "requestTime": "my_requestTime"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
insert(params: Params$Resource$Transfers$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
insert(params?: Params$Resource$Transfers$Insert, options?: MethodOptions): GaxiosPromise<Schema$DataTransfer>;
|
||||
insert(params: Params$Resource$Transfers$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
insert(params: Params$Resource$Transfers$Insert, options: MethodOptions | BodyResponseCallback<Schema$DataTransfer>, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
insert(params: Params$Resource$Transfers$Insert, callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
insert(callback: BodyResponseCallback<Schema$DataTransfer>): void;
|
||||
/**
|
||||
* datatransfer.transfers.list
|
||||
* @desc Lists the transfers for a customer by source user, destination user, or status.
|
||||
* @alias datatransfer.transfers.list
|
||||
* @memberOf! ()
|
||||
* Lists the transfers for a customer by source user, destination user, or status.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.customerId Immutable ID of the G Suite 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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('datatransfer_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer',
|
||||
* 'https://www.googleapis.com/auth/admin.datatransfer.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await datatransfer.transfers.list({
|
||||
* // Immutable ID of the Google Apps account.
|
||||
* customerId: 'placeholder-value',
|
||||
* // Maximum number of results to return. Default is 100.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // Destination user's profile ID.
|
||||
* newOwnerUserId: 'placeholder-value',
|
||||
* // Source user's profile ID.
|
||||
* oldOwnerUserId: 'placeholder-value',
|
||||
* // Token to specify the next page in the list.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // Status of the transfer.
|
||||
* status: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "dataTransfers": [],
|
||||
* // "etag": "my_etag",
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Transfers$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Transfers$List, options?: MethodOptions): GaxiosPromise<Schema$DataTransfersListResponse>;
|
||||
list(params: Params$Resource$Transfers$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Transfers$List, options: MethodOptions | BodyResponseCallback<Schema$DataTransfersListResponse>, callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
list(params: Params$Resource$Transfers$List, callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$DataTransfersListResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Transfers$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* ID of the resource to be retrieved. This is returned in the response from the insert method.
|
||||
*/
|
||||
dataTransferId?: string;
|
||||
}
|
||||
export interface Params$Resource$Transfers$Insert extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
@@ -350,11 +590,7 @@ export declare namespace admin_datatransfer_v1 {
|
||||
}
|
||||
export interface Params$Resource$Transfers$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Immutable ID of the G Suite account.
|
||||
* Immutable ID of the Google Apps account.
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
@@ -380,3 +616,4 @@ export declare namespace admin_datatransfer_v1 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=datatransfer_v1.d.ts.map
|
||||
61
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
61
node_modules/googleapis/build/src/apis/admin/datatransfer_v1.js
generated
vendored
@@ -1,42 +1,37 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.admin_datatransfer_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var admin_datatransfer_v1;
|
||||
(function (admin_datatransfer_v1) {
|
||||
/**
|
||||
* Admin Data Transfer API
|
||||
* Admin SDK
|
||||
*
|
||||
* Transfers user data from one user to another.
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
class Admin {
|
||||
constructor(options, google) {
|
||||
@@ -65,7 +60,7 @@ var admin_datatransfer_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -96,7 +91,7 @@ var admin_datatransfer_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -132,7 +127,7 @@ var admin_datatransfer_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -162,7 +157,7 @@ var admin_datatransfer_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -192,7 +187,7 @@ var admin_datatransfer_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'),
|
||||
|
||||
9743
node_modules/googleapis/build/src/apis/admin/directory_v1.d.ts
generated
vendored
9743
node_modules/googleapis/build/src/apis/admin/directory_v1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
669
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
669
node_modules/googleapis/build/src/apis/admin/directory_v1.js
generated
vendored
File diff suppressed because it is too large
Load Diff
5
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
5
node_modules/googleapis/build/src/apis/admin/index.d.ts
generated
vendored
@@ -16,3 +16,8 @@ export declare function admin(version: 'reports_v1'): admin_reports_v1.Admin;
|
||||
export declare function admin(options: admin_reports_v1.Options): admin_reports_v1.Admin;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { admin_datatransfer_v1 };
|
||||
export { admin_directory_v1 };
|
||||
export { admin_reports_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
8
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
8
node_modules/googleapis/build/src/apis/admin/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,11 +12,15 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.admin_reports_v1 = exports.admin_directory_v1 = exports.admin_datatransfer_v1 = exports.auth = exports.admin = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const datatransfer_v1_1 = require("./datatransfer_v1");
|
||||
Object.defineProperty(exports, "admin_datatransfer_v1", { enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } });
|
||||
const directory_v1_1 = require("./directory_v1");
|
||||
Object.defineProperty(exports, "admin_directory_v1", { enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } });
|
||||
const reports_v1_1 = require("./reports_v1");
|
||||
Object.defineProperty(exports, "admin_reports_v1", { enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } });
|
||||
exports.VERSIONS = {
|
||||
datatransfer_v1: datatransfer_v1_1.admin_datatransfer_v1.Admin,
|
||||
directory_v1: directory_v1_1.admin_directory_v1.Admin,
|
||||
@@ -28,4 +32,6 @@ function admin(versionOrOptions) {
|
||||
exports.admin = admin;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
662
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
662
node_modules/googleapis/build/src/apis/admin/reports_v1.d.ts
generated
vendored
@@ -1,30 +1,31 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admin_reports_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'reports_v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
@@ -42,28 +43,28 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
userIp?: string;
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* Admin Reports API
|
||||
* Admin SDK
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
export class Admin {
|
||||
context: APIRequestContext;
|
||||
@@ -75,7 +76,7 @@ export declare namespace admin_reports_v1 {
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* JSON template for a collection of activites.
|
||||
* JSON template for a collection of activities.
|
||||
*/
|
||||
export interface Schema$Activities {
|
||||
/**
|
||||
@@ -91,7 +92,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token for retrieving the follow-on next page of the report. The nextPageToken value is used in the request's pageToken query string.
|
||||
* Token for retrieving the follow-on next page of the report. The nextPageToken value is used in the request's pageToken query string.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
@@ -143,7 +144,7 @@ export declare namespace admin_reports_v1 {
|
||||
uniqueQualifier?: string;
|
||||
} | null;
|
||||
/**
|
||||
* IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into G Suite which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
|
||||
* IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into G Suite which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
|
||||
*/
|
||||
ipAddress?: string | null;
|
||||
/**
|
||||
@@ -151,12 +152,12 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner.
|
||||
* This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner.
|
||||
*/
|
||||
ownerDomain?: string | null;
|
||||
}
|
||||
/**
|
||||
* An notification channel used to watch for resource changes.
|
||||
* A notification channel used to watch for resource changes.
|
||||
*/
|
||||
export interface Schema$Channel {
|
||||
/**
|
||||
@@ -172,7 +173,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
id?: string | null;
|
||||
/**
|
||||
* Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
|
||||
* Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
@@ -240,11 +241,11 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
export interface Schema$UsageReport {
|
||||
/**
|
||||
* The date of the report request.
|
||||
* Output only. The date of the report request.
|
||||
*/
|
||||
date?: string | null;
|
||||
/**
|
||||
* Information about the type of the item.
|
||||
* Output only. Information about the type of the item.
|
||||
*/
|
||||
entity?: {
|
||||
customerId?: string;
|
||||
@@ -262,7 +263,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Parameter value pairs for various applications. For the Customers usage report parameters and values, see the customer usage parameters reference.
|
||||
* Output only. Parameter value pairs for various applications. For the Customers usage report parameters and values, see the customer usage parameters reference.
|
||||
*/
|
||||
parameters?: Array<{
|
||||
boolValue?: boolean;
|
||||
@@ -285,7 +286,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Token to specify next page. A report with multiple pages has a nextPageToken property in the response. For your follow-on requests getting all of the report's pages, enter the nextPageToken value in the pageToken query string.
|
||||
* Token to specify next page. A report with multiple pages has a nextPageToken property in the response. For your follow-on requests getting all of the report's pages, enter the nextPageToken value in the pageToken query string.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
/**
|
||||
@@ -308,64 +309,198 @@ export declare namespace admin_reports_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.activities.list
|
||||
* @desc Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
|
||||
* @alias reports.activities.list
|
||||
* @memberOf! ()
|
||||
* Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId The unique ID of the customer to retrieve data for.
|
||||
* @param {string=} params.endTime Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - Date of the API's request for a report: When the API created and retrieved the report. - Report's start time: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - Report's end time: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* @param {string=} params.eventName The name of the event being queried by the API. Each eventName is related to a specific G Suite service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings type structure has all of the Calendar eventName activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings type and eventName parameters. For more information about eventName query strings and parameters, see the list of event names for various applications above in applicationName.
|
||||
* @param {string=} params.filters The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form [parameter1 name][relational operator][parameter1 value],[parameter2 name][relational operator][parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* @param {integer=} params.maxResults Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
* @param {string=} params.orgUnitID ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* @param {string=} params.pageToken The token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* @param {string=} params.startTime Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from startTime until endTime. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error.
|
||||
* @param {string} params.userKey Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.audit.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await reports.activities.list({
|
||||
* // The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
* actorIpAddress: 'placeholder-value',
|
||||
* // Application name for which the events are to be retrieved.
|
||||
* applicationName:
|
||||
* '(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)|(user_accounts)|(access_transparency)|(groups_enterprise)|(gcp)|(context_aware_access)|(data_studio)|(chrome)',
|
||||
* // The unique ID of the customer to retrieve data for.
|
||||
* customerId: 'C.+',
|
||||
* // Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* endTime: '(dddd)-(dd)-(dd)T(dd):(dd):(dd)(?:.(d+))?(?:(Z)|([-+])(dd):(dd))',
|
||||
* // The name of the event being queried by the API. Each eventName is related to a specific G Suite service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings type structure has all of the Calendar eventName activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings type and eventName parameters. For more information about eventName query strings and parameters, see the list of event names for various applications above in applicationName.
|
||||
* eventName: 'placeholder-value',
|
||||
* // The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form parameter1 name[parameter1 value],parameter2 name[parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<\>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* filters:
|
||||
* '(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)',
|
||||
* // Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
* groupIdFilter: '(id:[a-z0-9]+(,id:[a-z0-9]+)*)',
|
||||
* // Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* orgUnitID: '(id:[a-z0-9]+)',
|
||||
* // The token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from startTime until endTime. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error.
|
||||
* startTime:
|
||||
* '(dddd)-(dd)-(dd)T(dd):(dd):(dd)(?:.(d+))?(?:(Z)|([-+])(dd):(dd))',
|
||||
* // Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* userKey: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "etag": "my_etag",
|
||||
* // "items": [],
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Activities$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Activities$List, options?: MethodOptions): GaxiosPromise<Schema$Activities>;
|
||||
list(params: Params$Resource$Activities$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Activities$List, options: MethodOptions | BodyResponseCallback<Schema$Activities>, callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
list(params: Params$Resource$Activities$List, callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
list(callback: BodyResponseCallback<Schema$Activities>): void;
|
||||
/**
|
||||
* reports.activities.watch
|
||||
* @desc Start receiving notifications for account activities. For more information, see Receiving Push Notifications.
|
||||
* @alias reports.activities.watch
|
||||
* @memberOf! ()
|
||||
* Start receiving notifications for account activities. For more information, see Receiving Push Notifications.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.actorIpAddress The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
* @param {string} params.applicationName Application name for which the events are to be retrieved.
|
||||
* @param {string=} params.customerId The unique ID of the customer to retrieve data for.
|
||||
* @param {string=} params.endTime Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - Date of the API's request for a report: When the API created and retrieved the report. - Report's start time: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - Report's end time: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* @param {string=} params.eventName The name of the event being queried by the API. Each eventName is related to a specific G Suite service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings type structure has all of the Calendar eventName activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings type and eventName parameters. For more information about eventName query strings and parameters, see the list of event names for various applications above in applicationName.
|
||||
* @param {string=} params.filters The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form [parameter1 name][relational operator][parameter1 value],[parameter2 name][relational operator][parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* @param {integer=} params.maxResults Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
* @param {string=} params.orgUnitID ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* @param {string=} params.pageToken The token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* @param {string=} params.startTime Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from startTime until endTime. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error.
|
||||
* @param {string} params.userKey Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.audit.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await reports.activities.watch({
|
||||
* // The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
* actorIpAddress: 'placeholder-value',
|
||||
* // Application name for which the events are to be retrieved.
|
||||
* applicationName:
|
||||
* '(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)|(user_accounts)|(access_transparency)|(groups_enterprise)|(gcp)|(context_aware_access)|(data_studio)|(chrome)',
|
||||
* // The unique ID of the customer to retrieve data for.
|
||||
* customerId: 'C.+',
|
||||
* // Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* endTime: '(dddd)-(dd)-(dd)T(dd):(dd):(dd)(?:.(d+))?(?:(Z)|([-+])(dd):(dd))',
|
||||
* // The name of the event being queried by the API. Each eventName is related to a specific G Suite service or feature which the API organizes into types of events. An example is the Google Calendar events in the Admin console application's reports. The Calendar Settings type structure has all of the Calendar eventName activities reported by the API. When an administrator changes a Calendar setting, the API reports this activity in the Calendar Settings type and eventName parameters. For more information about eventName query strings and parameters, see the list of event names for various applications above in applicationName.
|
||||
* eventName: 'placeholder-value',
|
||||
* // The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form parameter1 name[parameter1 value],parameter2 name[parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<\>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* filters:
|
||||
* '(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)',
|
||||
* // Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
* groupIdFilter: '(id:[a-z0-9]+(,id:[a-z0-9]+)*)',
|
||||
* // Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* orgUnitID: '(id:[a-z0-9]+)',
|
||||
* // The token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from startTime until endTime. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error.
|
||||
* startTime:
|
||||
* '(dddd)-(dd)-(dd)T(dd):(dd):(dd)(?:.(d+))?(?:(Z)|([-+])(dd):(dd))',
|
||||
* // Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* userKey: 'placeholder-value',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "address": "my_address",
|
||||
* // "expiration": "my_expiration",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "params": {},
|
||||
* // "payload": false,
|
||||
* // "resourceId": "my_resourceId",
|
||||
* // "resourceUri": "my_resourceUri",
|
||||
* // "token": "my_token",
|
||||
* // "type": "my_type"
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "address": "my_address",
|
||||
* // "expiration": "my_expiration",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "params": {},
|
||||
* // "payload": false,
|
||||
* // "resourceId": "my_resourceId",
|
||||
* // "resourceUri": "my_resourceUri",
|
||||
* // "token": "my_token",
|
||||
* // "type": "my_type"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
watch(params: Params$Resource$Activities$Watch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
watch(params?: Params$Resource$Activities$Watch, options?: MethodOptions): GaxiosPromise<Schema$Channel>;
|
||||
watch(params: Params$Resource$Activities$Watch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
watch(params: Params$Resource$Activities$Watch, options: MethodOptions | BodyResponseCallback<Schema$Channel>, callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
watch(params: Params$Resource$Activities$Watch, callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
watch(callback: BodyResponseCallback<Schema$Channel>): void;
|
||||
}
|
||||
export interface Params$Resource$Activities$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
*/
|
||||
@@ -379,7 +514,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - Date of the API's request for a report: When the API created and retrieved the report. - Report's start time: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - Report's end time: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
@@ -387,9 +522,13 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form [parameter1 name][relational operator][parameter1 value],[parameter2 name][relational operator][parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form parameter1 name[parameter1 value],parameter2 name[parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<\>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
*/
|
||||
@@ -412,10 +551,6 @@ export declare namespace admin_reports_v1 {
|
||||
userKey?: string;
|
||||
}
|
||||
export interface Params$Resource$Activities$Watch extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This IP address may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. This parameter supports both IPv4 and IPv6 address versions.
|
||||
*/
|
||||
@@ -429,7 +564,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
customerId?: string;
|
||||
/**
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - Date of the API's request for a report: When the API created and retrieved the report. - Report's start time: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - Report's end time: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
* Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API report has three basic time concepts: - *Date of the API's request for a report*: When the API created and retrieved the report. - *Report's start time*: The beginning of the timespan shown in the report. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. - *Report's end time*: The end of the timespan shown in the report. For example, the timespan of events summarized in a report can start in April and end in May. The report itself can be requested in August. If the endTime is not specified, the report returns all activities from the startTime until the current time or the most recent 180 days if the startTime is more than 180 days in the past.
|
||||
*/
|
||||
endTime?: string;
|
||||
/**
|
||||
@@ -437,9 +572,13 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
eventName?: string;
|
||||
/**
|
||||
* The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form [parameter1 name][relational operator][parameter1 value],[parameter2 name][relational operator][parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
* The filters query string is a comma-separated list. The list is composed of event parameters that are manipulated by relational operators. Event parameters are in the form parameter1 name[parameter1 value],parameter2 name[parameter2 value],... These event parameters are associated with a specific eventName. An empty report is returned if the filtered request's parameter does not belong to the eventName. For more information about eventName parameters, see the list of event names for various applications above in applicationName. In the following Admin Activity example, the <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=CHANGE_CALENDAR_SETTING &filters=NEW_VALUE%3C%3EREAD_ONLY_ACCESS In the following Drive example, the list can be a view or edit event's doc_id parameter with a value that is manipulated by an 'equal to' (==) or 'not equal to' (<\>) relational operator. In the first example, the report returns each edited document's doc_id. In the second example, the report returns each viewed document's doc_id that equals the value 12345 and does not return any viewed document's which have a doc_id value of 98765. The <\> operator is URL-encoded in the request's query string (%3C%3E): GET...&eventName=edit&filters=doc_id GET...&eventName=view&filters=doc_id==12345,doc_id%3C%3E98765 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional in the request. The default value is 1000.
|
||||
*/
|
||||
@@ -469,27 +608,72 @@ export declare namespace admin_reports_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* admin.channels.stop
|
||||
* @desc Stop watching resources through this channel
|
||||
* @alias admin.channels.stop
|
||||
* @memberOf! ()
|
||||
* Stop watching resources through this channel.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.audit.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await admin.channels.stop({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "address": "my_address",
|
||||
* // "expiration": "my_expiration",
|
||||
* // "id": "my_id",
|
||||
* // "kind": "my_kind",
|
||||
* // "params": {},
|
||||
* // "payload": false,
|
||||
* // "resourceId": "my_resourceId",
|
||||
* // "resourceUri": "my_resourceUri",
|
||||
* // "token": "my_token",
|
||||
* // "type": "my_type"
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
stop(params: Params$Resource$Channels$Stop, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): GaxiosPromise<void>;
|
||||
stop(params: Params$Resource$Channels$Stop, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
stop(params: Params$Resource$Channels$Stop, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
stop(params: Params$Resource$Channels$Stop, callback: BodyResponseCallback<void>): void;
|
||||
stop(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Channels$Stop extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
@@ -499,30 +683,74 @@ export declare namespace admin_reports_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.customerUsageReports.get
|
||||
* @desc Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides.
|
||||
* @alias reports.customerUsageReports.get
|
||||
* @memberOf! ()
|
||||
* Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report guide. For more information about the customer report's parameters, see the Customers Usage parameters reference guides.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId The unique ID of the customer to retrieve data for.
|
||||
* @param {string} params.date Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* @param {string=} params.pageToken Token to specify next page. A report with multiple pages has a nextPageToken property in the response. For your follow-on requests getting all of the report's pages, enter the nextPageToken value in the pageToken query string.
|
||||
* @param {string=} params.parameters The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters 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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.usage.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await reports.customerUsageReports.get({
|
||||
* // The unique ID of the customer to retrieve data for.
|
||||
* customerId: 'C.+',
|
||||
* // Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* date: '(d){4}-(d){2}-(d){2}',
|
||||
* // Token to specify next page. A report with multiple pages has a nextPageToken property in the response. For your follow-on requests getting all of the report's pages, enter the nextPageToken value in the pageToken query string.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* parameters:
|
||||
* '(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "etag": "my_etag",
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken",
|
||||
* // "usageReports": [],
|
||||
* // "warnings": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Customerusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Customerusagereports$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Customerusagereports$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
export interface Params$Resource$Customerusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
@@ -536,7 +764,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
@@ -544,34 +772,82 @@ export declare namespace admin_reports_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.entityUsageReports.get
|
||||
* @desc Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides.
|
||||
* @alias reports.entityUsageReports.get
|
||||
* @memberOf! ()
|
||||
* Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report's parameters, see the Entities Usage parameters reference guides.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId The unique ID of the customer to retrieve data for.
|
||||
* @param {string} params.date Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* @param {string} params.entityKey Represents the key of the object to filter the data with.
|
||||
* @param {string} params.entityType Represents the type of entity for the report.
|
||||
* @param {string=} params.filters The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include accounts, docs, and gmail. Filters are in the form [application name]:[parameter name][relational operator][parameter value],.... In this example, the <> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members>0 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
|
||||
* @param {integer=} params.maxResults Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page.
|
||||
* @param {string=} params.pageToken Token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* @param {string=} params.parameters The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only gplus. A parameter query string is in the CSV form of [app_name1:param_name1], [app_name2:param_name2].... Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters 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
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.usage.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await reports.entityUsageReports.get({
|
||||
* // The unique ID of the customer to retrieve data for.
|
||||
* customerId: 'C.+',
|
||||
* // Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* date: '(d){4}-(d){2}-(d){2}',
|
||||
* // Represents the key of the object to filter the data with.
|
||||
* entityKey: 'placeholder-value',
|
||||
* // Represents the type of entity for the report.
|
||||
* entityType: '(gplus_communities)',
|
||||
* // The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include accounts, docs, and gmail. Filters are in the form [application name]:parameter name[parameter value],.... In this example, the <\> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members\>0 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
|
||||
* filters:
|
||||
* '(((gplus)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((gplus)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)',
|
||||
* // Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // Token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only gplus. A parameter query string is in the CSV form of [app_name1:param_name1], [app_name2:param_name2].... *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* parameters: '(((gplus)):[^,]+,)*(((gplus)):[^,]+)',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "etag": "my_etag",
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken",
|
||||
* // "usageReports": [],
|
||||
* // "warnings": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Entityusagereports$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Entityusagereports$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Entityusagereports$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
export interface Params$Resource$Entityusagereports$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
@@ -589,7 +865,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
entityType?: string;
|
||||
/**
|
||||
* The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include accounts, docs, and gmail. Filters are in the form [application name]:[parameter name][relational operator][parameter value],.... In this example, the <> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members>0 The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
|
||||
* The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Entities usage report include accounts, docs, and gmail. Filters are in the form [application name]:parameter name[parameter value],.... In this example, the <\> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members &filters=gplus:num_total_members\>0 The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
@@ -601,7 +877,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only gplus. A parameter query string is in the CSV form of [app_name1:param_name1], [app_name2:param_name2].... Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Entities usage report are only gplus. A parameter query string is in the CSV form of [app_name1:param_name1], [app_name2:param_name2].... *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
}
|
||||
@@ -609,34 +885,85 @@ export declare namespace admin_reports_v1 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* reports.userUsageReport.get
|
||||
* @desc Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides.
|
||||
* @alias reports.userUsageReport.get
|
||||
* @memberOf! ()
|
||||
* Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report's parameters, see the Users Usage parameters reference guides.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admin.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string=} params.customerId The unique ID of the customer to retrieve data for.
|
||||
* @param {string} params.date Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* @param {string=} params.filters The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include accounts, docs, and gmail. Filters are in the form [application name]:[parameter name][relational operator][parameter value],.... In this example, the <> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time>2010-10-28T10:26:35.000Z The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=).
|
||||
* @param {integer=} params.maxResults Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional.
|
||||
* @param {string=} params.orgUnitID ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* @param {string=} params.pageToken Token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* @param {string=} params.parameters The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* @param {string} params.userKey Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
* const {google} = require('googleapis');
|
||||
* const admin = google.admin('reports_v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admin.reports.usage.readonly'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await reports.userUsageReport.get({
|
||||
* // The unique ID of the customer to retrieve data for.
|
||||
* customerId: 'C.+',
|
||||
* // Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. We recommend you use your account's time zone for this.
|
||||
* date: '(d){4}-(d){2}-(d){2}',
|
||||
* // The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include accounts, docs, and gmail. Filters are in the form [application name]:parameter name[parameter value],.... In this example, the <\> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time\>2010-10-28T10:26:35.000Z The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=).
|
||||
* filters:
|
||||
* '(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)',
|
||||
* // Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
* groupIdFilter: '(id:[a-z0-9]+(,id:[a-z0-9]+)*)',
|
||||
* // Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional.
|
||||
* maxResults: 'placeholder-value',
|
||||
* // ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.
|
||||
* orgUnitID: '(id:[a-z0-9]+)',
|
||||
* // Token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string.
|
||||
* pageToken: 'placeholder-value',
|
||||
* // The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* parameters:
|
||||
* '(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)',
|
||||
* // Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address.
|
||||
* userKey: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "etag": "my_etag",
|
||||
* // "kind": "my_kind",
|
||||
* // "nextPageToken": "my_nextPageToken",
|
||||
* // "usageReports": [],
|
||||
* // "warnings": []
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Userusagereport$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Userusagereport$Get, options?: MethodOptions): GaxiosPromise<Schema$UsageReports>;
|
||||
get(params: Params$Resource$Userusagereport$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Userusagereport$Get, options: MethodOptions | BodyResponseCallback<Schema$UsageReports>, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(params: Params$Resource$Userusagereport$Get, callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
get(callback: BodyResponseCallback<Schema$UsageReports>): void;
|
||||
}
|
||||
export interface Params$Resource$Userusagereport$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The unique ID of the customer to retrieve data for.
|
||||
*/
|
||||
@@ -646,9 +973,13 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
* The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include accounts, docs, and gmail. Filters are in the form [application name]:[parameter name][relational operator][parameter value],.... In this example, the <> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time>2010-10-28T10:26:35.000Z The relational operators include: - == - 'equal to'. - <> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - > - 'greater than'. It is URL-encoded (%3E). - >= - 'greater than or equal to'. It is URL-encoded (%3E=).
|
||||
* The filters query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The filters query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include accounts, docs, and gmail. Filters are in the form [application name]:parameter name[parameter value],.... In this example, the <\> 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time &filters=accounts:last_login_time\>2010-10-28T10:26:35.000Z The relational operators include: - == - 'equal to'. - <\> - 'not equal to'. It is URL-encoded (%3C%3E). - < - 'less than'. It is URL-encoded (%3C). - <= - 'less than or equal to'. It is URL-encoded (%3C=). - \> - 'greater than'. It is URL-encoded (%3E). - \>= - 'greater than or equal to'. It is URL-encoded (%3E=).
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Comma separated group ids (obfuscated) on which user activities are filtered, i.e, the response will contain activities for only those users that are a part of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
|
||||
*/
|
||||
groupIdFilter?: string;
|
||||
/**
|
||||
* Determines how many activity records are shown on each response page. For example, if the request sets maxResults=1 and the report has two activities, the report has two pages. The response's nextPageToken property has the token to the second page. The maxResults query string is optional.
|
||||
*/
|
||||
@@ -662,7 +993,7 @@ export declare namespace admin_reports_v1 {
|
||||
*/
|
||||
pageToken?: string;
|
||||
/**
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. Note: The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
* The parameters query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include accounts, app_maker, apps_scripts, calendar, classroom, cros, docs, gmail, gplus, device_management, meet, and sites. A parameters query string is in the CSV form of app_name1:param_name1, app_name2:param_name2. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned.
|
||||
*/
|
||||
parameters?: string;
|
||||
/**
|
||||
@@ -672,3 +1003,4 @@ export declare namespace admin_reports_v1 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=reports_v1.d.ts.map
|
||||
65
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
65
node_modules/googleapis/build/src/apis/admin/reports_v1.js
generated
vendored
@@ -1,42 +1,37 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.admin_reports_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var admin_reports_v1;
|
||||
(function (admin_reports_v1) {
|
||||
/**
|
||||
* Admin Reports API
|
||||
* Admin SDK
|
||||
*
|
||||
* Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.
|
||||
* Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
class Admin {
|
||||
constructor(options, google) {
|
||||
@@ -68,7 +63,7 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -99,7 +94,7 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -136,10 +131,10 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
url: (rootUrl + '/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
@@ -173,7 +168,7 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -210,7 +205,7 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -248,7 +243,7 @@ var admin_reports_v1;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://admin.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
|
||||
13
node_modules/googleapis/build/src/apis/admob/index.d.ts
generated
vendored
Normal file
13
node_modules/googleapis/build/src/apis/admob/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { admob_v1 } from './v1';
|
||||
export declare const VERSIONS: {
|
||||
v1: typeof admob_v1.Admob;
|
||||
};
|
||||
export declare function admob(version: 'v1'): admob_v1.Admob;
|
||||
export declare function admob(options: admob_v1.Options): admob_v1.Admob;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { admob_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,16 +12,20 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.admob_v1 = exports.auth = exports.admob = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_1.admob_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.mirror_v1.Mirror,
|
||||
v1: v1_1.admob_v1.Admob,
|
||||
};
|
||||
function mirror(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('mirror', versionOrOptions, exports.VERSIONS, this);
|
||||
function admob(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('admob', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.mirror = mirror;
|
||||
exports.admob = admob;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
738
node_modules/googleapis/build/src/apis/admob/v1.d.ts
generated
vendored
Normal file
738
node_modules/googleapis/build/src/apis/admob/v1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,738 @@
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace admob_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
'$.xgafv'?: string;
|
||||
/**
|
||||
* OAuth access token.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* Data format for response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* JSONP
|
||||
*/
|
||||
callback?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Legacy upload protocol for media (e.g. "media", "multipart").
|
||||
*/
|
||||
uploadType?: string;
|
||||
/**
|
||||
* Upload protocol for media (e.g. "raw", "multipart").
|
||||
*/
|
||||
upload_protocol?: string;
|
||||
}
|
||||
/**
|
||||
* AdMob API
|
||||
*
|
||||
* The AdMob API allows publishers to programmatically get information about their AdMob account.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
* ```
|
||||
*/
|
||||
export class Admob {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Accounts;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
|
||||
*/
|
||||
export interface Schema$Date {
|
||||
/**
|
||||
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
||||
*/
|
||||
day?: number | null;
|
||||
/**
|
||||
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
||||
*/
|
||||
month?: number | null;
|
||||
/**
|
||||
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
||||
*/
|
||||
year?: number | null;
|
||||
}
|
||||
/**
|
||||
* Specification of a single date range. Both dates are inclusive.
|
||||
*/
|
||||
export interface Schema$DateRange {
|
||||
/**
|
||||
* End date of the date range, inclusive. Must be greater than or equal to the start date.
|
||||
*/
|
||||
endDate?: Schema$Date;
|
||||
/**
|
||||
* Start date of the date range, inclusive. Must be less than or equal to the end date.
|
||||
*/
|
||||
startDate?: Schema$Date;
|
||||
}
|
||||
/**
|
||||
* Request to generate an AdMob Mediation report.
|
||||
*/
|
||||
export interface Schema$GenerateMediationReportRequest {
|
||||
/**
|
||||
* Network report specification.
|
||||
*/
|
||||
reportSpec?: Schema$MediationReportSpec;
|
||||
}
|
||||
/**
|
||||
* The streaming response for the AdMob Mediation report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ "header": { "date_range": { "start_date": {"year": 2018, "month": 9, "day": 1\}, "end_date": {"year": 2018, "month": 9, "day": 1\} \}, "localization_settings": { "currency_code": "USD", "language_code": "en-US" \} \} \}, { "row": { "dimension_values": { "DATE": {"value": "20180918"\}, "APP": { "value": "ca-app-pub-8123415297019784~1001342552", "display_label": "My app name!" \} \}, "metric_values": { "ESTIMATED_EARNINGS": {"decimal_value": "1324746"\} \} \} \}, { "footer": {"matching_row_count": 1\} \}]
|
||||
*/
|
||||
export interface Schema$GenerateMediationReportResponse {
|
||||
/**
|
||||
* Additional information about the generated report, such as warnings about the data.
|
||||
*/
|
||||
footer?: Schema$ReportFooter;
|
||||
/**
|
||||
* Report generation settings that describes the report contents, such as the report date range and localization settings.
|
||||
*/
|
||||
header?: Schema$ReportHeader;
|
||||
/**
|
||||
* Actual report data.
|
||||
*/
|
||||
row?: Schema$ReportRow;
|
||||
}
|
||||
/**
|
||||
* Request to generate an AdMob Network report.
|
||||
*/
|
||||
export interface Schema$GenerateNetworkReportRequest {
|
||||
/**
|
||||
* Network report specification.
|
||||
*/
|
||||
reportSpec?: Schema$NetworkReportSpec;
|
||||
}
|
||||
/**
|
||||
* The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: [{ "header": { "dateRange": { "startDate": {"year": 2018, "month": 9, "day": 1\}, "endDate": {"year": 2018, "month": 9, "day": 1\} \}, "localizationSettings": { "currencyCode": "USD", "languageCode": "en-US" \} \} \}, { "row": { "dimensionValues": { "DATE": {"value": "20180918"\}, "APP": { "value": "ca-app-pub-8123415297019784~1001342552", displayLabel: "My app name!" \} \}, "metricValues": { "ESTIMATED_EARNINGS": {"microsValue": 6500000\} \} \} \}, { "footer": {"matchingRowCount": 1\} \}]
|
||||
*/
|
||||
export interface Schema$GenerateNetworkReportResponse {
|
||||
/**
|
||||
* Additional information about the generated report, such as warnings about the data.
|
||||
*/
|
||||
footer?: Schema$ReportFooter;
|
||||
/**
|
||||
* Report generation settings that describes the report contents, such as the report date range and localization settings.
|
||||
*/
|
||||
header?: Schema$ReportHeader;
|
||||
/**
|
||||
* Actual report data.
|
||||
*/
|
||||
row?: Schema$ReportRow;
|
||||
}
|
||||
/**
|
||||
* Response for the publisher account list request.
|
||||
*/
|
||||
export interface Schema$ListPublisherAccountsResponse {
|
||||
/**
|
||||
* Publisher that the client credentials can access.
|
||||
*/
|
||||
account?: Schema$PublisherAccount[];
|
||||
/**
|
||||
* If not empty, indicates that there might be more accounts for the request; you must pass this value in a new `ListPublisherAccountsRequest`.
|
||||
*/
|
||||
nextPageToken?: string | null;
|
||||
}
|
||||
/**
|
||||
* Localization settings for reports, such as currency and language. It affects how metrics are calculated.
|
||||
*/
|
||||
export interface Schema$LocalizationSettings {
|
||||
/**
|
||||
* Currency code of the earning related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion. Defaults to the account currency code if unspecified.
|
||||
*/
|
||||
currencyCode?: string | null;
|
||||
/**
|
||||
* Language used for any localized text, such as some dimension value display labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if unspecified.
|
||||
*/
|
||||
languageCode?: string | null;
|
||||
}
|
||||
/**
|
||||
* The specification for generating an AdMob Mediation report. For example, the specification to get observed ECPM sliced by ad source and app for the 'US' and 'CN' countries can look like the following example: { "date_range": { "start_date": {"year": 2018, "month": 9, "day": 1\}, "end_date": {"year": 2018, "month": 9, "day": 30\} \}, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "metrics": ["OBSERVED_ECPM"], "dimension_filters": [ { "dimension": "COUNTRY", "matches_any": {"values": [{"value": "US", "value": "CN"\}]\} \} ], "sort_conditions": [ {"dimension":"APP", order: "ASCENDING"\} ], "localization_settings": { "currency_code": "USD", "language_code": "en-US" \} \} For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM MEDIATION_REPORT WHERE DATE \>= '2018-09-01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
|
||||
*/
|
||||
export interface Schema$MediationReportSpec {
|
||||
/**
|
||||
* The date range for which the report is generated.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
dimensionFilters?: Schema$MediationReportSpecDimensionFilter[];
|
||||
/**
|
||||
* List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.
|
||||
*/
|
||||
dimensions?: string[] | null;
|
||||
/**
|
||||
* Localization settings of the report.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.
|
||||
*/
|
||||
maxReportRows?: number | null;
|
||||
/**
|
||||
* List of metrics of the report. A report must specify at least one metric.
|
||||
*/
|
||||
metrics?: string[] | null;
|
||||
/**
|
||||
* Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.
|
||||
*/
|
||||
sortConditions?: Schema$MediationReportSpecSortCondition[];
|
||||
/**
|
||||
* A report time zone. Accepts an IANA TZ name values, such as "America/Los_Angeles." If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The "America/Los_Angeles" is the only supported value at the moment.
|
||||
*/
|
||||
timeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
export interface Schema$MediationReportSpecDimensionFilter {
|
||||
/**
|
||||
* Applies the filter criterion to the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Matches a row if its value for the specified dimension is in one of the values specified in this condition.
|
||||
*/
|
||||
matchesAny?: Schema$StringList;
|
||||
}
|
||||
/**
|
||||
* Sorting direction to be applied on a dimension or a metric.
|
||||
*/
|
||||
export interface Schema$MediationReportSpecSortCondition {
|
||||
/**
|
||||
* Sort by the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Sort by the specified metric.
|
||||
*/
|
||||
metric?: string | null;
|
||||
/**
|
||||
* Sorting order of the dimension or metric.
|
||||
*/
|
||||
order?: string | null;
|
||||
}
|
||||
/**
|
||||
* The specification for generating an AdMob Network report. For example, the specification to get clicks and estimated earnings for only the 'US' and 'CN' countries can look like the following example: { 'date_range': { 'start_date': {'year': 2018, 'month': 9, 'day': 1\}, 'end_date': {'year': 2018, 'month': 9, 'day': 30\} \}, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'], 'dimension_filters': [ { 'dimension': 'COUNTRY', 'matches_any': {'values': [{'value': 'US', 'value': 'CN'\}]\} \} ], 'sort_conditions': [ {'dimension':'APP', order: 'ASCENDING'\}, {'metric':'CLICKS', order: 'DESCENDING'\} ], 'localization_settings': { 'currency_code': 'USD', 'language_code': 'en-US' \} \} For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE \>= '2018-09-01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP, COUNTRY ORDER BY APP ASC, CLICKS DESC;
|
||||
*/
|
||||
export interface Schema$NetworkReportSpec {
|
||||
/**
|
||||
* The date range for which the report is generated.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
dimensionFilters?: Schema$NetworkReportSpecDimensionFilter[];
|
||||
/**
|
||||
* List of dimensions of the report. The value combination of these dimensions determines the row of the report. If no dimensions are specified, the report returns a single row of requested metrics for the entire account.
|
||||
*/
|
||||
dimensions?: string[] | null;
|
||||
/**
|
||||
* Localization settings of the report.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* Maximum number of report data rows to return. If the value is not set, the API returns as many rows as possible, up to 100000. Acceptable values are 1-100000, inclusive. Values larger than 100000 return an error.
|
||||
*/
|
||||
maxReportRows?: number | null;
|
||||
/**
|
||||
* List of metrics of the report. A report must specify at least one metric.
|
||||
*/
|
||||
metrics?: string[] | null;
|
||||
/**
|
||||
* Describes the sorting of report rows. The order of the condition in the list defines its precedence; the earlier the condition, the higher its precedence. If no sort conditions are specified, the row ordering is undefined.
|
||||
*/
|
||||
sortConditions?: Schema$NetworkReportSpecSortCondition[];
|
||||
/**
|
||||
* A report time zone. Accepts an IANA TZ name values, such as "America/Los_Angeles." If no time zone is defined, the account default takes effect. Check default value by the get account action. **Warning:** The "America/Los_Angeles" is the only supported value at the moment.
|
||||
*/
|
||||
timeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Describes which report rows to match based on their dimension values.
|
||||
*/
|
||||
export interface Schema$NetworkReportSpecDimensionFilter {
|
||||
/**
|
||||
* Applies the filter criterion to the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Matches a row if its value for the specified dimension is in one of the values specified in this condition.
|
||||
*/
|
||||
matchesAny?: Schema$StringList;
|
||||
}
|
||||
/**
|
||||
* Sorting direction to be applied on a dimension or a metric.
|
||||
*/
|
||||
export interface Schema$NetworkReportSpecSortCondition {
|
||||
/**
|
||||
* Sort by the specified dimension.
|
||||
*/
|
||||
dimension?: string | null;
|
||||
/**
|
||||
* Sort by the specified metric.
|
||||
*/
|
||||
metric?: string | null;
|
||||
/**
|
||||
* Sorting order of the dimension or metric.
|
||||
*/
|
||||
order?: string | null;
|
||||
}
|
||||
/**
|
||||
* A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.
|
||||
*/
|
||||
export interface Schema$PublisherAccount {
|
||||
/**
|
||||
* Currency code of the earning-related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion.
|
||||
*/
|
||||
currencyCode?: string | null;
|
||||
/**
|
||||
* Resource name of this account. Format is accounts/{publisher_id\}.
|
||||
*/
|
||||
name?: string | null;
|
||||
/**
|
||||
* The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890).
|
||||
*/
|
||||
publisherId?: string | null;
|
||||
/**
|
||||
* The time zone that is used in reports that are generated for this account. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles".
|
||||
*/
|
||||
reportingTimeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* Groups data available after report generation, for example, warnings and row counts. Always sent as the last message in the stream response.
|
||||
*/
|
||||
export interface Schema$ReportFooter {
|
||||
/**
|
||||
* Total number of rows that matched the request. Warning: This count does NOT always match the number of rows in the response. Do not make that assumption when processing the response.
|
||||
*/
|
||||
matchingRowCount?: string | null;
|
||||
/**
|
||||
* Warnings associated with generation of the report.
|
||||
*/
|
||||
warnings?: Schema$ReportWarning[];
|
||||
}
|
||||
/**
|
||||
* Groups data helps to treat the generated report. Always sent as a first message in the stream response.
|
||||
*/
|
||||
export interface Schema$ReportHeader {
|
||||
/**
|
||||
* The date range for which the report is generated. This is identical to the range specified in the report request.
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Localization settings of the report. This is identical to the settings in the report request.
|
||||
*/
|
||||
localizationSettings?: Schema$LocalizationSettings;
|
||||
/**
|
||||
* The report time zone. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles".
|
||||
*/
|
||||
reportingTimeZone?: string | null;
|
||||
}
|
||||
/**
|
||||
* A row of the returning report.
|
||||
*/
|
||||
export interface Schema$ReportRow {
|
||||
/**
|
||||
* Map of dimension values in a row, with keys as enum name of the dimensions.
|
||||
*/
|
||||
dimensionValues?: {
|
||||
[key: string]: Schema$ReportRowDimensionValue;
|
||||
} | null;
|
||||
/**
|
||||
* Map of metric values in a row, with keys as enum name of the metrics. If a metric being requested has no value returned, the map will not include it.
|
||||
*/
|
||||
metricValues?: {
|
||||
[key: string]: Schema$ReportRowMetricValue;
|
||||
} | null;
|
||||
}
|
||||
/**
|
||||
* Representation of a dimension value.
|
||||
*/
|
||||
export interface Schema$ReportRowDimensionValue {
|
||||
/**
|
||||
* The localized string representation of the value. If unspecified, the display label should be derived from the value.
|
||||
*/
|
||||
displayLabel?: string | null;
|
||||
/**
|
||||
* Dimension value in the format specified in the report's spec Dimension enum.
|
||||
*/
|
||||
value?: string | null;
|
||||
}
|
||||
/**
|
||||
* Representation of a metric value.
|
||||
*/
|
||||
export interface Schema$ReportRowMetricValue {
|
||||
/**
|
||||
* Double precision (approximate) decimal values. Rates are from 0 to 1.
|
||||
*/
|
||||
doubleValue?: number | null;
|
||||
/**
|
||||
* Metric integer value.
|
||||
*/
|
||||
integerValue?: string | null;
|
||||
/**
|
||||
* Amount in micros. One million is equivalent to one unit. Currency value is in the unit (USD, EUR or other) specified by the request. For example, $6.50 whould be represented as 6500000 micros.
|
||||
*/
|
||||
microsValue?: string | null;
|
||||
}
|
||||
/**
|
||||
* Warnings associated with generation of the report.
|
||||
*/
|
||||
export interface Schema$ReportWarning {
|
||||
/**
|
||||
* Describes the details of the warning message, in English.
|
||||
*/
|
||||
description?: string | null;
|
||||
/**
|
||||
* Type of the warning.
|
||||
*/
|
||||
type?: string | null;
|
||||
}
|
||||
/**
|
||||
* List of string values.
|
||||
*/
|
||||
export interface Schema$StringList {
|
||||
/**
|
||||
* The string values.
|
||||
*/
|
||||
values?: string[] | null;
|
||||
}
|
||||
export class Resource$Accounts {
|
||||
context: APIRequestContext;
|
||||
mediationReport: Resource$Accounts$Mediationreport;
|
||||
networkReport: Resource$Accounts$Networkreport;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Gets information about the specified AdMob publisher account.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admob.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admob.report'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await admob.accounts.get({
|
||||
* // Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654
|
||||
* name: 'accounts/my-account',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "currencyCode": "my_currencyCode",
|
||||
* // "name": "my_name",
|
||||
* // "publisherId": "my_publisherId",
|
||||
* // "reportingTimeZone": "my_reportingTimeZone"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$PublisherAccount>;
|
||||
get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$PublisherAccount>, callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
get(callback: BodyResponseCallback<Schema$PublisherAccount>): void;
|
||||
/**
|
||||
* Lists the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admob.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admob.report'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await admob.accounts.list({
|
||||
* // Maximum number of accounts to return.
|
||||
* pageSize: 'placeholder-value',
|
||||
* // The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `ListPublisherAccounts` call, and that the system should return the next page of data.
|
||||
* pageToken: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "account": [],
|
||||
* // "nextPageToken": "my_nextPageToken"
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$ListPublisherAccountsResponse>;
|
||||
list(params: Params$Resource$Accounts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$ListPublisherAccountsResponse>, callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
list(callback: BodyResponseCallback<Schema$ListPublisherAccountsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
export interface Params$Resource$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Maximum number of accounts to return.
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* The value returned by the last `ListPublisherAccountsResponse`; indicates that this is a continuation of a prior `ListPublisherAccounts` call, and that the system should return the next page of data.
|
||||
*/
|
||||
pageToken?: string;
|
||||
}
|
||||
export class Resource$Accounts$Mediationreport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Generates an AdMob Mediation report based on the provided report specification.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admob.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admob.report'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await admob.accounts.mediationReport.generate({
|
||||
* // Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
* parent: 'accounts/my-account',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "reportSpec": {}
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "footer": {},
|
||||
* // "header": {},
|
||||
* // "row": {}
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
generate(params?: Params$Resource$Accounts$Mediationreport$Generate, options?: MethodOptions): GaxiosPromise<Schema$GenerateMediationReportResponse>;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, options: MethodOptions | BodyResponseCallback<Schema$GenerateMediationReportResponse>, callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
generate(params: Params$Resource$Accounts$Mediationreport$Generate, callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
generate(callback: BodyResponseCallback<Schema$GenerateMediationReportResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Mediationreport$Generate extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$GenerateMediationReportRequest;
|
||||
}
|
||||
export class Resource$Accounts$Networkreport {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* Generates an AdMob Network report based on the provided report specification.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/admob.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/admob.report'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await admob.accounts.networkReport.generate({
|
||||
* // Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
* parent: 'accounts/my-account',
|
||||
*
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "reportSpec": {}
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "footer": {},
|
||||
* // "header": {},
|
||||
* // "row": {}
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
generate(params?: Params$Resource$Accounts$Networkreport$Generate, options?: MethodOptions): GaxiosPromise<Schema$GenerateNetworkReportResponse>;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, options: MethodOptions | BodyResponseCallback<Schema$GenerateNetworkReportResponse>, callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
generate(params: Params$Resource$Accounts$Networkreport$Generate, callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
generate(callback: BodyResponseCallback<Schema$GenerateNetworkReportResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Accounts$Networkreport$Generate extends StandardParameters {
|
||||
/**
|
||||
* Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
requestBody?: Schema$GenerateNetworkReportRequest;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
189
node_modules/googleapis/build/src/apis/admob/v1.js
generated
vendored
Normal file
189
node_modules/googleapis/build/src/apis/admob/v1.js
generated
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
"use strict";
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.admob_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var admob_v1;
|
||||
(function (admob_v1) {
|
||||
/**
|
||||
* AdMob API
|
||||
*
|
||||
* The AdMob API allows publishers to programmatically get information about their AdMob account.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const admob = google.admob('v1');
|
||||
* ```
|
||||
*/
|
||||
class Admob {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.accounts = new Resource$Accounts(this.context);
|
||||
}
|
||||
}
|
||||
admob_v1.Admob = Admob;
|
||||
class Resource$Accounts {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.mediationReport = new Resource$Accounts$Mediationreport(this.context);
|
||||
this.networkReport = new Resource$Accounts$Networkreport(this.context);
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts = Resource$Accounts;
|
||||
class Resource$Accounts$Mediationreport {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
generate(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport;
|
||||
class Resource$Accounts$Networkreport {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
generate(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://admob.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['parent'],
|
||||
pathParams: ['parent'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport;
|
||||
})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
3
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/adsense/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function adsense(version: 'v1.4'): adsense_v1_4.Adsense;
|
||||
export declare function adsense(options: adsense_v1_4.Options): adsense_v1_4.Adsense;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adsense_v1_4 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/adsense/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adsense_v1_4 = exports.auth = exports.adsense = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_4_1 = require("./v1.4");
|
||||
Object.defineProperty(exports, "adsense_v1_4", { enumerable: true, get: function () { return v1_4_1.adsense_v1_4; } });
|
||||
exports.VERSIONS = {
|
||||
'v1.4': v1_4_1.adsense_v1_4.Adsense,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function adsense(versionOrOptions) {
|
||||
exports.adsense = adsense;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
2976
node_modules/googleapis/build/src/apis/adsense/v1.4.d.ts
generated
vendored
2976
node_modules/googleapis/build/src/apis/adsense/v1.4.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adsense/v1.4.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adsense_v1_4 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adsense_v1_4;
|
||||
(function (adsense_v1_4) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adsense_v1_4;
|
||||
* Accesses AdSense publishers' inventory and generates performance reports.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const adsense = google.adsense('v1.4');
|
||||
*
|
||||
* @namespace adsense
|
||||
* @type {Function}
|
||||
* @version v1.4
|
||||
* @variation v1.4
|
||||
* @param {object=} options Options for Adsense
|
||||
* ```
|
||||
*/
|
||||
class Adsense {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/adsensehost/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function adsensehost(version: 'v4.1'): adsensehost_v4_1.Adsenseho
|
||||
export declare function adsensehost(options: adsensehost_v4_1.Options): adsensehost_v4_1.Adsensehost;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { adsensehost_v4_1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/adsensehost/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adsensehost_v4_1 = exports.auth = exports.adsensehost = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v4_1_1 = require("./v4.1");
|
||||
Object.defineProperty(exports, "adsensehost_v4_1", { enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } });
|
||||
exports.VERSIONS = {
|
||||
'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function adsensehost(versionOrOptions) {
|
||||
exports.adsensehost = adsensehost;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
2022
node_modules/googleapis/build/src/apis/adsensehost/v4.1.d.ts
generated
vendored
2022
node_modules/googleapis/build/src/apis/adsensehost/v4.1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/adsensehost/v4.1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.adsensehost_v4_1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var adsensehost_v4_1;
|
||||
(function (adsensehost_v4_1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var adsensehost_v4_1;
|
||||
* Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* 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
|
||||
* ```
|
||||
*/
|
||||
class Adsensehost {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/alertcenter/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function alertcenter(version: 'v1beta1'): alertcenter_v1beta1.Ale
|
||||
export declare function alertcenter(options: alertcenter_v1beta1.Options): alertcenter_v1beta1.Alertcenter;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { alertcenter_v1beta1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/alertcenter/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.alertcenter_v1beta1 = exports.auth = exports.alertcenter = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1beta1_1 = require("./v1beta1");
|
||||
Object.defineProperty(exports, "alertcenter_v1beta1", { enumerable: true, get: function () { return v1beta1_1.alertcenter_v1beta1; } });
|
||||
exports.VERSIONS = {
|
||||
v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function alertcenter(versionOrOptions) {
|
||||
exports.alertcenter = alertcenter;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1006
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
1006
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/alertcenter/v1beta1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.alertcenter_v1beta1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var alertcenter_v1beta1;
|
||||
(function (alertcenter_v1beta1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var alertcenter_v1beta1;
|
||||
* Manages alerts on issues affecting your domain.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const alertcenter = google.alertcenter('v1beta1');
|
||||
*
|
||||
* @namespace alertcenter
|
||||
* @type {Function}
|
||||
* @version v1beta1
|
||||
* @variation v1beta1
|
||||
* @param {object=} options Options for Alertcenter
|
||||
* ```
|
||||
*/
|
||||
class Alertcenter {
|
||||
constructor(options, google) {
|
||||
|
||||
7
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
7
node_modules/googleapis/build/src/apis/analytics/index.d.ts
generated
vendored
@@ -1,14 +1,13 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analytics_v2_4 } from './v2.4';
|
||||
import { analytics_v3 } from './v3';
|
||||
export declare const VERSIONS: {
|
||||
'v2.4': typeof analytics_v2_4.Analytics;
|
||||
v3: typeof analytics_v3.Analytics;
|
||||
};
|
||||
export declare function analytics(version: 'v2.4'): analytics_v2_4.Analytics;
|
||||
export declare function analytics(options: analytics_v2_4.Options): analytics_v2_4.Analytics;
|
||||
export declare function analytics(version: 'v3'): analytics_v3.Analytics;
|
||||
export declare function analytics(options: analytics_v3.Options): analytics_v3.Analytics;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analytics_v3 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
8
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
8
node_modules/googleapis/build/src/apis/analytics/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,12 +12,12 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analytics_v3 = exports.auth = exports.analytics = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v2_4_1 = require("./v2.4");
|
||||
const v3_1 = require("./v3");
|
||||
Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } });
|
||||
exports.VERSIONS = {
|
||||
'v2.4': v2_4_1.analytics_v2_4.Analytics,
|
||||
v3: v3_1.analytics_v3.Analytics,
|
||||
};
|
||||
function analytics(versionOrOptions) {
|
||||
@@ -26,4 +26,6 @@ function analytics(versionOrOptions) {
|
||||
exports.analytics = analytics;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
364
node_modules/googleapis/build/src/apis/analytics/v2.4.d.ts
generated
vendored
364
node_modules/googleapis/build/src/apis/analytics/v2.4.d.ts
generated
vendored
@@ -1,364 +0,0 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
export declare namespace analytics_v2_4 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v2.4';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
export class Analytics {
|
||||
context: APIRequestContext;
|
||||
data: Resource$Data;
|
||||
management: Resource$Management;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
export class Resource$Data {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.data.get
|
||||
* @desc Returns Analytics report data for a view (profile).
|
||||
* @alias analytics.data.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Data$Get, options?: MethodOptions): GaxiosPromise<void>;
|
||||
get(params: Params$Resource$Data$Get, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
get(params: Params$Resource$Data$Get, callback: BodyResponseCallback<void>): void;
|
||||
get(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Data$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
|
||||
*/
|
||||
dimensions?: string;
|
||||
/**
|
||||
* End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
|
||||
*/
|
||||
'end-date'?: string;
|
||||
/**
|
||||
* A comma-separated list of dimension or metric filters to be applied to the report data.
|
||||
*/
|
||||
filters?: string;
|
||||
/**
|
||||
* Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
|
||||
*/
|
||||
ids?: string;
|
||||
/**
|
||||
* The maximum number of entries to include in this feed.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
metrics?: string;
|
||||
/**
|
||||
* An Analytics advanced segment to be applied to the report data.
|
||||
*/
|
||||
segment?: string;
|
||||
/**
|
||||
* A comma-separated list of dimensions or metrics that determine the sort order for the report data.
|
||||
*/
|
||||
sort?: string;
|
||||
/**
|
||||
* Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
|
||||
*/
|
||||
'start-date'?: string;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
export class Resource$Management {
|
||||
context: APIRequestContext;
|
||||
accounts: Resource$Management$Accounts;
|
||||
goals: Resource$Management$Goals;
|
||||
profiles: Resource$Management$Profiles;
|
||||
segments: Resource$Management$Segments;
|
||||
webproperties: Resource$Management$Webproperties;
|
||||
constructor(context: APIRequestContext);
|
||||
}
|
||||
export class Resource$Management$Accounts {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.accounts.list
|
||||
* @desc Lists all accounts to which the user has access.
|
||||
* @alias analytics.management.accounts.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Accounts$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Accounts$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Accounts$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Management$Accounts$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The maximum number of accounts to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
export class Resource$Management$Goals {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.goals.list
|
||||
* @desc Lists goals to which the user has access.
|
||||
* @alias analytics.management.goals.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Goals$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Goals$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Goals$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Management$Goals$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of goals to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
profileId?: string;
|
||||
/**
|
||||
* An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
webPropertyId?: string;
|
||||
}
|
||||
export class Resource$Management$Profiles {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.profiles.list
|
||||
* @desc Lists views (profiles) to which the user has access.
|
||||
* @alias analytics.management.profiles.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Profiles$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Profiles$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Profiles$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Management$Profiles$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of views (profiles) to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
webPropertyId?: string;
|
||||
}
|
||||
export class Resource$Management$Segments {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.segments.list
|
||||
* @desc Lists advanced segments to which the user has access.
|
||||
* @alias analytics.management.segments.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Segments$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Segments$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Segments$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Management$Segments$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The maximum number of advanced segments to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
export class Resource$Management$Webproperties {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analytics.management.webproperties.list
|
||||
* @desc Lists web properties to which the user has access.
|
||||
* @alias analytics.management.webproperties.list
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Management$Webproperties$List, options?: MethodOptions): GaxiosPromise<void>;
|
||||
list(params: Params$Resource$Management$Webproperties$List, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
list(params: Params$Resource$Management$Webproperties$List, callback: BodyResponseCallback<void>): void;
|
||||
list(callback: BodyResponseCallback<void>): void;
|
||||
}
|
||||
export interface Params$Resource$Management$Webproperties$List extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* The maximum number of web properties to include in this response.
|
||||
*/
|
||||
'max-results'?: number;
|
||||
/**
|
||||
* An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
|
||||
*/
|
||||
'start-index'?: number;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
8083
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
8083
node_modules/googleapis/build/src/apis/analytics/v3.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
47
node_modules/googleapis/build/src/apis/analytics/v3.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analytics_v3 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var analytics_v3;
|
||||
(function (analytics_v3) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var analytics_v3;
|
||||
* Views and manages your Google Analytics data.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const analytics = google.analytics('v3');
|
||||
*
|
||||
* @namespace analytics
|
||||
* @type {Function}
|
||||
* @version v3
|
||||
* @variation v3
|
||||
* @param {object=} options Options for Analytics
|
||||
* ```
|
||||
*/
|
||||
class Analytics {
|
||||
constructor(options, google) {
|
||||
|
||||
13
node_modules/googleapis/build/src/apis/analyticsadmin/index.d.ts
generated
vendored
Normal file
13
node_modules/googleapis/build/src/apis/analyticsadmin/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analyticsadmin_v1alpha } from './v1alpha';
|
||||
export declare const VERSIONS: {
|
||||
v1alpha: typeof analyticsadmin_v1alpha.Analyticsadmin;
|
||||
};
|
||||
export declare function analyticsadmin(version: 'v1alpha'): analyticsadmin_v1alpha.Analyticsadmin;
|
||||
export declare function analyticsadmin(options: analyticsadmin_v1alpha.Options): analyticsadmin_v1alpha.Analyticsadmin;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analyticsadmin_v1alpha };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
31
node_modules/googleapis/build/src/apis/analyticsadmin/index.js
generated
vendored
Normal file
31
node_modules/googleapis/build/src/apis/analyticsadmin/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyticsadmin_v1alpha = exports.auth = exports.analyticsadmin = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1alpha_1 = require("./v1alpha");
|
||||
Object.defineProperty(exports, "analyticsadmin_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } });
|
||||
exports.VERSIONS = {
|
||||
v1alpha: v1alpha_1.analyticsadmin_v1alpha.Analyticsadmin,
|
||||
};
|
||||
function analyticsadmin(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('analyticsadmin', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analyticsadmin = analyticsadmin;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
5131
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.d.ts
generated
vendored
Normal file
5131
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1907
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.js
generated
vendored
Normal file
1907
node_modules/googleapis/build/src/apis/analyticsadmin/v1alpha.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
node_modules/googleapis/build/src/apis/analyticsdata/index.d.ts
generated
vendored
Normal file
13
node_modules/googleapis/build/src/apis/analyticsdata/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { analyticsdata_v1alpha } from './v1alpha';
|
||||
export declare const VERSIONS: {
|
||||
v1alpha: typeof analyticsdata_v1alpha.Analyticsdata;
|
||||
};
|
||||
export declare function analyticsdata(version: 'v1alpha'): analyticsdata_v1alpha.Analyticsdata;
|
||||
export declare function analyticsdata(options: analyticsdata_v1alpha.Options): analyticsdata_v1alpha.Analyticsdata;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analyticsdata_v1alpha };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
31
node_modules/googleapis/build/src/apis/analyticsdata/index.js
generated
vendored
Normal file
31
node_modules/googleapis/build/src/apis/analyticsdata/index.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyticsdata_v1alpha = exports.auth = exports.analyticsdata = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1alpha_1 = require("./v1alpha");
|
||||
Object.defineProperty(exports, "analyticsdata_v1alpha", { enumerable: true, get: function () { return v1alpha_1.analyticsdata_v1alpha; } });
|
||||
exports.VERSIONS = {
|
||||
v1alpha: v1alpha_1.analyticsdata_v1alpha.Analyticsdata,
|
||||
};
|
||||
function analyticsdata(versionOrOptions) {
|
||||
return googleapis_common_1.getAPI('analyticsdata', versionOrOptions, exports.VERSIONS, this);
|
||||
}
|
||||
exports.analyticsdata = analyticsdata;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1498
node_modules/googleapis/build/src/apis/analyticsdata/v1alpha.d.ts
generated
vendored
Normal file
1498
node_modules/googleapis/build/src/apis/analyticsdata/v1alpha.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
277
node_modules/googleapis/build/src/apis/analyticsdata/v1alpha.js
generated
vendored
Normal file
277
node_modules/googleapis/build/src/apis/analyticsdata/v1alpha.js
generated
vendored
Normal file
@@ -0,0 +1,277 @@
|
||||
"use strict";
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyticsdata_v1alpha = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
var analyticsdata_v1alpha;
|
||||
(function (analyticsdata_v1alpha) {
|
||||
/**
|
||||
* Google Analytics Data API
|
||||
*
|
||||
* Accesses report data in Google Analytics.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const analyticsdata = google.analyticsdata('v1alpha');
|
||||
* ```
|
||||
*/
|
||||
class Analyticsdata {
|
||||
constructor(options, google) {
|
||||
this.context = {
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.properties = new Resource$Properties(this.context);
|
||||
this.v1alpha = new Resource$V1alpha(this.context);
|
||||
}
|
||||
}
|
||||
analyticsdata_v1alpha.Analyticsdata = Analyticsdata;
|
||||
class Resource$Properties {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
getMetadata(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['name'],
|
||||
pathParams: ['name'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
runRealtimeReport(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/{+property}:runRealtimeReport').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['property'],
|
||||
pathParams: ['property'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analyticsdata_v1alpha.Resource$Properties = Resource$Properties;
|
||||
class Resource$V1alpha {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
batchRunPivotReports(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha:batchRunPivotReports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
batchRunReports(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha:batchRunReports').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
getUniversalMetadata(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha/universalMetadata').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
runPivotReport(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha:runPivotReport').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
runReport(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/v1alpha:runReport').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
analyticsdata_v1alpha.Resource$V1alpha = Resource$V1alpha;
|
||||
})(analyticsdata_v1alpha = exports.analyticsdata_v1alpha || (exports.analyticsdata_v1alpha = {}));
|
||||
//# sourceMappingURL=v1alpha.js.map
|
||||
3
node_modules/googleapis/build/src/apis/analyticsreporting/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/analyticsreporting/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function analyticsreporting(version: 'v4'): analyticsreporting_v4
|
||||
export declare function analyticsreporting(options: analyticsreporting_v4.Options): analyticsreporting_v4.Analyticsreporting;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { analyticsreporting_v4 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/analyticsreporting/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/analyticsreporting/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyticsreporting_v4 = exports.auth = exports.analyticsreporting = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v4_1 = require("./v4");
|
||||
Object.defineProperty(exports, "analyticsreporting_v4", { enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } });
|
||||
exports.VERSIONS = {
|
||||
v4: v4_1.analyticsreporting_v4.Analyticsreporting,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function analyticsreporting(versionOrOptions) {
|
||||
exports.analyticsreporting = analyticsreporting;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
235
node_modules/googleapis/build/src/apis/analyticsreporting/v4.d.ts
generated
vendored
235
node_modules/googleapis/build/src/apis/analyticsreporting/v4.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace analyticsreporting_v4 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v4';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* V1 error format.
|
||||
*/
|
||||
@@ -72,14 +61,10 @@ export declare namespace analyticsreporting_v4 {
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
* ```
|
||||
*/
|
||||
export class Analyticsreporting {
|
||||
context: APIRequestContext;
|
||||
@@ -88,7 +73,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* An Activity represents data for an activity of a user. Note that an Activity is different from a hit. A hit might result in multiple Activity's. For example, if a hit includes a transaction and a goal completion, there will be two Activity protos for this hit, one for ECOMMERCE and one for GOAL. Conversely, multiple hits can also construct one Activity. In classic e-commerce, data for one transaction might be sent through multiple hits. These hits will be merged into one ECOMMERCE Activity.
|
||||
* An Activity represents data for an activity of a user. Note that an Activity is different from a hit. A hit might result in multiple Activity's. For example, if a hit includes a transaction and a goal completion, there will be two Activity protos for this hit, one for ECOMMERCE and one for GOAL. Conversely, multiple hits can also construct one Activity. In classic e-commerce, data for one transaction might be sent through multiple hits. These hits will be merged into one ECOMMERCE Activity.
|
||||
*/
|
||||
export interface Schema$Activity {
|
||||
/**
|
||||
@@ -108,7 +93,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
campaign?: string | null;
|
||||
/**
|
||||
* The Channel Group associated with an end user's session for this View (defined by the View's Channel Groupings).
|
||||
* The Channel Group associated with an end user's session for this View (defined by the View's Channel Groupings).
|
||||
*/
|
||||
channelGrouping?: string | null;
|
||||
/**
|
||||
@@ -136,7 +121,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
keyword?: string | null;
|
||||
/**
|
||||
* The first page in users' sessions, or the landing page.
|
||||
* The first page in users' sessions, or the landing page.
|
||||
*/
|
||||
landingPagePath?: string | null;
|
||||
/**
|
||||
@@ -170,7 +155,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
type?: string | null;
|
||||
}
|
||||
/**
|
||||
* Defines a cohort group. For example: "cohortGroup": { "cohorts": [{ "name": "cohort 1", "type": "FIRST_VISIT_DATE", "dateRange": { "startDate": "2015-08-01", "endDate": "2015-08-01" } },{ "name": "cohort 2" "type": "FIRST_VISIT_DATE" "dateRange": { "startDate": "2015-07-01", "endDate": "2015-07-01" } }] }
|
||||
* Defines a cohort group. For example: "cohortGroup": { "cohorts": [{ "name": "cohort 1", "type": "FIRST_VISIT_DATE", "dateRange": { "startDate": "2015-08-01", "endDate": "2015-08-01" \} \},{ "name": "cohort 2" "type": "FIRST_VISIT_DATE" "dateRange": { "startDate": "2015-07-01", "endDate": "2015-07-01" \} \}] \}
|
||||
*/
|
||||
export interface Schema$CohortGroup {
|
||||
/**
|
||||
@@ -178,7 +163,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
cohorts?: Schema$Cohort[];
|
||||
/**
|
||||
* 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)
|
||||
* 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)
|
||||
*/
|
||||
lifetimeValue?: boolean | null;
|
||||
}
|
||||
@@ -235,11 +220,11 @@ export declare namespace analyticsreporting_v4 {
|
||||
values?: string[] | null;
|
||||
}
|
||||
/**
|
||||
* [Dimensions](https://support.google.com/analytics/answer/1033861) are attributes of your data. For example, the dimension `ga:city` indicates the city, for example, "Paris" or "New York", from which a session originates.
|
||||
* [Dimensions](https://support.google.com/analytics/answer/1033861) are attributes of your data. For example, the dimension `ga:city` indicates the city, for example, "Paris" or "New York", from which a session originates.
|
||||
*/
|
||||
export interface Schema$Dimension {
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
histogramBuckets?: string[] | null;
|
||||
/**
|
||||
@@ -328,11 +313,11 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
export interface Schema$EventData {
|
||||
/**
|
||||
* Type of interaction with the object. Eg: 'play'.
|
||||
* Type of interaction with the object. Eg: 'play'.
|
||||
*/
|
||||
eventAction?: string | null;
|
||||
/**
|
||||
* The object on the page that was interacted with. Eg: 'Video'.
|
||||
* The object on the page that was interacted with. Eg: 'Video'.
|
||||
*/
|
||||
eventCategory?: string | null;
|
||||
/**
|
||||
@@ -545,7 +530,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
export interface Schema$Pivot {
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
dimensionFilterClauses?: Schema$DimensionFilterClause[];
|
||||
/**
|
||||
@@ -561,7 +546,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
metrics?: Schema$Metric[];
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
startGroup?: number | null;
|
||||
}
|
||||
@@ -667,7 +652,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
rowCount?: number | null;
|
||||
/**
|
||||
* There's one ReportRow for every unique combination of dimensions.
|
||||
* There's one ReportRow for every unique combination of dimensions.
|
||||
*/
|
||||
rows?: Schema$ReportRow[];
|
||||
/**
|
||||
@@ -679,7 +664,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
samplingSpaceSizes?: string[] | null;
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
totals?: Schema$DateRangeValues[];
|
||||
}
|
||||
@@ -720,7 +705,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
includeEmptyRows?: boolean | null;
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
metricFilterClauses?: Schema$MetricFilterClause[];
|
||||
/**
|
||||
@@ -728,11 +713,11 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
metrics?: Schema$Metric[];
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
orderBys?: Schema$OrderBy[];
|
||||
/**
|
||||
* 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 100,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.
|
||||
* 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 100,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.
|
||||
*/
|
||||
pageSize?: number | null;
|
||||
/**
|
||||
@@ -744,7 +729,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
pivots?: Schema$Pivot[];
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
samplingLevel?: string | null;
|
||||
/**
|
||||
@@ -788,11 +773,11 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
appName?: string | null;
|
||||
/**
|
||||
* Mobile manufacturer or branded name. Eg: "Google", "Apple" etc.
|
||||
* Mobile manufacturer or branded name. Eg: "Google", "Apple" etc.
|
||||
*/
|
||||
mobileDeviceBranding?: string | null;
|
||||
/**
|
||||
* Mobile device model. Eg: "Pixel", "iPhone" etc.
|
||||
* Mobile device model. Eg: "Pixel", "iPhone" etc.
|
||||
*/
|
||||
mobileDeviceModel?: string | null;
|
||||
/**
|
||||
@@ -813,7 +798,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
dateRange?: Schema$DateRange;
|
||||
/**
|
||||
* Page size is for paging and specifies the maximum number of returned rows. Page size should be > 0. If the value is 0 or if the field isn't specified, the request returns the default of 1000 rows per page.
|
||||
* Page size is for paging and specifies the maximum number of returned rows. Page size should be \> 0. If the value is 0 or if the field isn't specified, the request returns the default of 1000 rows per page.
|
||||
*/
|
||||
pageSize?: number | null;
|
||||
/**
|
||||
@@ -906,7 +891,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
export interface Schema$SegmentFilter {
|
||||
/**
|
||||
* 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" }] },
|
||||
* 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" \}] \},
|
||||
*/
|
||||
not?: boolean | null;
|
||||
/**
|
||||
@@ -956,7 +941,7 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
operator?: string | null;
|
||||
/**
|
||||
* 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.
|
||||
* 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.
|
||||
*/
|
||||
scope?: string | null;
|
||||
}
|
||||
@@ -1038,15 +1023,15 @@ export declare namespace analyticsreporting_v4 {
|
||||
*/
|
||||
activities?: Schema$Activity[];
|
||||
/**
|
||||
* The data source of a hit. By default, hits sent from analytics.js are reported as "web" and hits sent from the mobile SDKs are reported as "app". These values can be overridden in the Measurement Protocol.
|
||||
* The data source of a hit. By default, hits sent from analytics.js are reported as "web" and hits sent from the mobile SDKs are reported as "app". These values can be overridden in the Measurement Protocol.
|
||||
*/
|
||||
dataSource?: string | null;
|
||||
/**
|
||||
* The type of device used: "mobile", "tablet" etc.
|
||||
* The type of device used: "mobile", "tablet" etc.
|
||||
*/
|
||||
deviceCategory?: string | null;
|
||||
/**
|
||||
* Platform on which the activity happened: "android", "ios" etc.
|
||||
* Platform on which the activity happened: "android", "ios" etc.
|
||||
*/
|
||||
platform?: string | null;
|
||||
/**
|
||||
@@ -1062,27 +1047,74 @@ export declare namespace analyticsreporting_v4 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analyticsreporting.reports.batchGet
|
||||
* @desc Returns the Analytics data.
|
||||
* @alias analyticsreporting.reports.batchGet
|
||||
* @memberOf! ()
|
||||
* Returns the Analytics data.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/analyticsreporting.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().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
|
||||
* const {google} = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/analytics',
|
||||
* 'https://www.googleapis.com/auth/analytics.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await analyticsreporting.reports.batchGet({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "reportRequests": [],
|
||||
* // "useResourceQuotas": false
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "queryCost": 0,
|
||||
* // "reports": [],
|
||||
* // "resourceQuotasRemaining": {}
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
batchGet(params: Params$Resource$Reports$Batchget, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
batchGet(params?: Params$Resource$Reports$Batchget, options?: MethodOptions): GaxiosPromise<Schema$GetReportsResponse>;
|
||||
batchGet(params: Params$Resource$Reports$Batchget, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
batchGet(params: Params$Resource$Reports$Batchget, options: MethodOptions | BodyResponseCallback<Schema$GetReportsResponse>, callback: BodyResponseCallback<Schema$GetReportsResponse>): void;
|
||||
batchGet(params: Params$Resource$Reports$Batchget, callback: BodyResponseCallback<Schema$GetReportsResponse>): void;
|
||||
batchGet(callback: BodyResponseCallback<Schema$GetReportsResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Reports$Batchget extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
@@ -1092,27 +1124,79 @@ export declare namespace analyticsreporting_v4 {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* analyticsreporting.userActivity.search
|
||||
* @desc Returns User Activity data.
|
||||
* @alias analyticsreporting.userActivity.search
|
||||
* @memberOf! ()
|
||||
* Returns User Activity data.
|
||||
* @example
|
||||
* ```js
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/analyticsreporting.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {().SearchUserActivityRequest} 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
|
||||
* const {google} = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: [
|
||||
* 'https://www.googleapis.com/auth/analytics',
|
||||
* 'https://www.googleapis.com/auth/analytics.readonly',
|
||||
* ],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await analyticsreporting.userActivity.search({
|
||||
* // Request body metadata
|
||||
* requestBody: {
|
||||
* // request body parameters
|
||||
* // {
|
||||
* // "activityTypes": [],
|
||||
* // "dateRange": {},
|
||||
* // "pageSize": 0,
|
||||
* // "pageToken": "my_pageToken",
|
||||
* // "user": {},
|
||||
* // "viewId": "my_viewId"
|
||||
* // }
|
||||
* },
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "nextPageToken": "my_nextPageToken",
|
||||
* // "sampleRate": {},
|
||||
* // "sessions": [],
|
||||
* // "totalRows": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* @param params - Parameters for request
|
||||
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param callback - Optional callback that handles the response.
|
||||
* @returns A promise if used with async/await, or void if used with a callback.
|
||||
*/
|
||||
search(params: Params$Resource$Useractivity$Search, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
search(params?: Params$Resource$Useractivity$Search, options?: MethodOptions): GaxiosPromise<Schema$SearchUserActivityResponse>;
|
||||
search(params: Params$Resource$Useractivity$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
search(params: Params$Resource$Useractivity$Search, options: MethodOptions | BodyResponseCallback<Schema$SearchUserActivityResponse>, callback: BodyResponseCallback<Schema$SearchUserActivityResponse>): void;
|
||||
search(params: Params$Resource$Useractivity$Search, callback: BodyResponseCallback<Schema$SearchUserActivityResponse>): void;
|
||||
search(callback: BodyResponseCallback<Schema$SearchUserActivityResponse>): void;
|
||||
}
|
||||
export interface Params$Resource$Useractivity$Search extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* Request body metadata
|
||||
*/
|
||||
@@ -1120,3 +1204,4 @@ export declare namespace analyticsreporting_v4 {
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v4.d.ts.map
|
||||
47
node_modules/googleapis/build/src/apis/analyticsreporting/v4.js
generated
vendored
47
node_modules/googleapis/build/src/apis/analyticsreporting/v4.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyticsreporting_v4 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var analyticsreporting_v4;
|
||||
(function (analyticsreporting_v4) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var analyticsreporting_v4;
|
||||
* Accesses Analytics report data.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const analyticsreporting = google.analyticsreporting('v4');
|
||||
*
|
||||
* @namespace analyticsreporting
|
||||
* @type {Function}
|
||||
* @version v4
|
||||
* @variation v4
|
||||
* @param {object=} options Options for Analyticsreporting
|
||||
* ```
|
||||
*/
|
||||
class Analyticsreporting {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function androiddeviceprovisioning(version: 'v1'): androiddevicep
|
||||
export declare function androiddeviceprovisioning(options: androiddeviceprovisioning_v1.Options): androiddeviceprovisioning_v1.Androiddeviceprovisioning;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { androiddeviceprovisioning_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androiddeviceprovisioning_v1 = exports.auth = exports.androiddeviceprovisioning = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "androiddeviceprovisioning_v1", { enumerable: true, get: function () { return v1_1.androiddeviceprovisioning_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androiddeviceprovisioning_v1.Androiddeviceprovisioning,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function androiddeviceprovisioning(versionOrOptions) {
|
||||
exports.androiddeviceprovisioning = androiddeviceprovisioning;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
2007
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.d.ts
generated
vendored
2007
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/androiddeviceprovisioning/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androiddeviceprovisioning_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androiddeviceprovisioning_v1;
|
||||
(function (androiddeviceprovisioning_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var androiddeviceprovisioning_v1;
|
||||
* Automates Android zero-touch enrollment for device resellers, customers, and EMMs.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const androiddeviceprovisioning = google.androiddeviceprovisioning('v1');
|
||||
*
|
||||
* @namespace androiddeviceprovisioning
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androiddeviceprovisioning
|
||||
* ```
|
||||
*/
|
||||
class Androiddeviceprovisioning {
|
||||
constructor(options, google) {
|
||||
|
||||
3
node_modules/googleapis/build/src/apis/androidenterprise/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/androidenterprise/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function androidenterprise(version: 'v1'): androidenterprise_v1.A
|
||||
export declare function androidenterprise(options: androidenterprise_v1.Options): androidenterprise_v1.Androidenterprise;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { androidenterprise_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/androidenterprise/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/androidenterprise/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidenterprise_v1 = exports.auth = exports.androidenterprise = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "androidenterprise_v1", { enumerable: true, get: function () { return v1_1.androidenterprise_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androidenterprise_v1.Androidenterprise,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function androidenterprise(versionOrOptions) {
|
||||
exports.androidenterprise = androidenterprise;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
6108
node_modules/googleapis/build/src/apis/androidenterprise/v1.d.ts
generated
vendored
6108
node_modules/googleapis/build/src/apis/androidenterprise/v1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
561
node_modules/googleapis/build/src/apis/androidenterprise/v1.js
generated
vendored
561
node_modules/googleapis/build/src/apis/androidenterprise/v1.js
generated
vendored
File diff suppressed because it is too large
Load Diff
3
node_modules/googleapis/build/src/apis/androidmanagement/index.d.ts
generated
vendored
3
node_modules/googleapis/build/src/apis/androidmanagement/index.d.ts
generated
vendored
@@ -8,3 +8,6 @@ export declare function androidmanagement(version: 'v1'): androidmanagement_v1.A
|
||||
export declare function androidmanagement(options: androidmanagement_v1.Options): androidmanagement_v1.Androidmanagement;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { androidmanagement_v1 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
6
node_modules/googleapis/build/src/apis/androidmanagement/index.js
generated
vendored
6
node_modules/googleapis/build/src/apis/androidmanagement/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,9 +12,11 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidmanagement_v1 = exports.auth = exports.androidmanagement = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_1.androidmanagement_v1; } });
|
||||
exports.VERSIONS = {
|
||||
v1: v1_1.androidmanagement_v1.Androidmanagement,
|
||||
};
|
||||
@@ -24,4 +26,6 @@ function androidmanagement(versionOrOptions) {
|
||||
exports.androidmanagement = androidmanagement;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
2570
node_modules/googleapis/build/src/apis/androidmanagement/v1.d.ts
generated
vendored
2570
node_modules/googleapis/build/src/apis/androidmanagement/v1.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
47
node_modules/googleapis/build/src/apis/androidmanagement/v1.js
generated
vendored
47
node_modules/googleapis/build/src/apis/androidmanagement/v1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidmanagement_v1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidmanagement_v1;
|
||||
(function (androidmanagement_v1) {
|
||||
/**
|
||||
@@ -29,14 +28,10 @@ var androidmanagement_v1;
|
||||
* The Android Management API provides remote enterprise management of Android devices and apps.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const androidmanagement = google.androidmanagement('v1');
|
||||
*
|
||||
* @namespace androidmanagement
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidmanagement
|
||||
* ```
|
||||
*/
|
||||
class Androidmanagement {
|
||||
constructor(options, google) {
|
||||
|
||||
6
node_modules/googleapis/build/src/apis/androidpublisher/index.d.ts
generated
vendored
6
node_modules/googleapis/build/src/apis/androidpublisher/index.d.ts
generated
vendored
@@ -20,3 +20,9 @@ export declare function androidpublisher(version: 'v3'): androidpublisher_v3.And
|
||||
export declare function androidpublisher(options: androidpublisher_v3.Options): androidpublisher_v3.Androidpublisher;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { androidpublisher_v1_1 };
|
||||
export { androidpublisher_v1 };
|
||||
export { androidpublisher_v2 };
|
||||
export { androidpublisher_v3 };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
9
node_modules/googleapis/build/src/apis/androidpublisher/index.js
generated
vendored
9
node_modules/googleapis/build/src/apis/androidpublisher/index.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright 2019 Google LLC
|
||||
// Copyright 2020 Google LLC
|
||||
// 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
|
||||
@@ -12,12 +12,17 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidpublisher_v3 = exports.androidpublisher_v2 = exports.androidpublisher_v1 = exports.androidpublisher_v1_1 = exports.auth = exports.androidpublisher = exports.VERSIONS = void 0;
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
const v1_1_1 = require("./v1.1");
|
||||
Object.defineProperty(exports, "androidpublisher_v1_1", { enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } });
|
||||
const v1_1 = require("./v1");
|
||||
Object.defineProperty(exports, "androidpublisher_v1", { enumerable: true, get: function () { return v1_1.androidpublisher_v1; } });
|
||||
const v2_1 = require("./v2");
|
||||
Object.defineProperty(exports, "androidpublisher_v2", { enumerable: true, get: function () { return v2_1.androidpublisher_v2; } });
|
||||
const v3_1 = require("./v3");
|
||||
Object.defineProperty(exports, "androidpublisher_v3", { enumerable: true, get: function () { return v3_1.androidpublisher_v3; } });
|
||||
exports.VERSIONS = {
|
||||
'v1.1': v1_1_1.androidpublisher_v1_1.Androidpublisher,
|
||||
v1: v1_1.androidpublisher_v1.Androidpublisher,
|
||||
@@ -30,4 +35,6 @@ function androidpublisher(versionOrOptions) {
|
||||
exports.androidpublisher = androidpublisher;
|
||||
const auth = new googleapis_common_1.AuthPlus();
|
||||
exports.auth = auth;
|
||||
var googleapis_common_2 = require("googleapis-common");
|
||||
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
180
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.d.ts
generated
vendored
180
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.d.ts
generated
vendored
@@ -1,26 +1,15 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
/// <reference types="node" />
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { Readable } from 'stream';
|
||||
export declare namespace androidpublisher_v1_1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
version: 'v1.1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | GoogleAuth;
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
@@ -68,7 +57,6 @@ export declare namespace androidpublisher_v1_1 {
|
||||
export class Androidpublisher {
|
||||
context: APIRequestContext;
|
||||
inapppurchases: Resource$Inapppurchases;
|
||||
purchases: Resource$Purchases;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
@@ -104,33 +92,62 @@ export declare namespace androidpublisher_v1_1 {
|
||||
*/
|
||||
purchaseType?: number | null;
|
||||
}
|
||||
/**
|
||||
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
|
||||
*/
|
||||
export interface Schema$SubscriptionPurchase {
|
||||
/**
|
||||
* Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
*/
|
||||
autoRenewing?: boolean | null;
|
||||
/**
|
||||
* Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
*/
|
||||
initiationTimestampMsec?: string | null;
|
||||
/**
|
||||
* This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
validUntilTimestampMsec?: string | null;
|
||||
}
|
||||
export class Resource$Inapppurchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.inapppurchases.get
|
||||
* @desc Checks the purchase and consumption status of an inapp item.
|
||||
* @example
|
||||
* // Before running the sample:
|
||||
* // - Enable the API at:
|
||||
* // https://console.developers.google.com/apis/api/androidpublisher.googleapis.com
|
||||
* // - Login into gcloud by running:
|
||||
* // `$ gcloud auth application-default login`
|
||||
* // - Install the npm module by running:
|
||||
* // `$ npm install googleapis`
|
||||
*
|
||||
* const {google} = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v1.1');
|
||||
*
|
||||
* async function main() {
|
||||
* const auth = new google.auth.GoogleAuth({
|
||||
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
||||
* scopes: ['https://www.googleapis.com/auth/androidpublisher'],
|
||||
* });
|
||||
*
|
||||
* // Acquire an auth client, and bind it to all future calls
|
||||
* const authClient = await auth.getClient();
|
||||
* google.options({auth: authClient});
|
||||
*
|
||||
* // Do the magic
|
||||
* const res = await androidpublisher.inapppurchases.get({
|
||||
* // The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
* packageName: 'placeholder-value',
|
||||
* // The inapp product SKU (for example, 'com.some.thing.inapp1').
|
||||
* productId: 'placeholder-value',
|
||||
* // The token provided to the user's device when the inapp product was purchased.
|
||||
* token: 'placeholder-value',
|
||||
* });
|
||||
* console.log(res.data);
|
||||
*
|
||||
* // Example response
|
||||
* // {
|
||||
* // "consumptionState": 0,
|
||||
* // "developerPayload": "my_developerPayload",
|
||||
* // "kind": "my_kind",
|
||||
* // "orderId": "my_orderId",
|
||||
* // "purchaseState": 0,
|
||||
* // "purchaseTime": "my_purchaseTime",
|
||||
* // "purchaseType": 0
|
||||
* // }
|
||||
* }
|
||||
*
|
||||
* main().catch(e => {
|
||||
* console.error(e);
|
||||
* throw e;
|
||||
* });
|
||||
*
|
||||
* @alias androidpublisher.inapppurchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
@@ -142,16 +159,14 @@ export declare namespace androidpublisher_v1_1 {
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get(params: Params$Resource$Inapppurchases$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
||||
get(params?: Params$Resource$Inapppurchases$Get, options?: MethodOptions): GaxiosPromise<Schema$InappPurchase>;
|
||||
get(params: Params$Resource$Inapppurchases$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
||||
get(params: Params$Resource$Inapppurchases$Get, options: MethodOptions | BodyResponseCallback<Schema$InappPurchase>, callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
get(params: Params$Resource$Inapppurchases$Get, callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$InappPurchase>): void;
|
||||
}
|
||||
export interface Params$Resource$Inapppurchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application the inapp product was sold in (for example, 'com.some.thing').
|
||||
*/
|
||||
@@ -165,81 +180,6 @@ export declare namespace androidpublisher_v1_1 {
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
export class Resource$Purchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): GaxiosPromise<void>;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, callback: BodyResponseCallback<void>): void;
|
||||
cancel(callback: BodyResponseCallback<void>): void;
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Get, options?: MethodOptions): GaxiosPromise<Schema$SubscriptionPurchase>;
|
||||
get(params: Params$Resource$Purchases$Get, options: MethodOptions | BodyResponseCallback<Schema$SubscriptionPurchase>, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(params: Params$Resource$Purchases$Get, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
}
|
||||
export interface Params$Resource$Purchases$Cancel extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
export interface Params$Resource$Purchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.1.d.ts.map
|
||||
108
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.js
generated
vendored
108
node_modules/googleapis/build/src/apis/androidpublisher/v1.1.js
generated
vendored
@@ -1,26 +1,25 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidpublisher_v1_1 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidpublisher_v1_1;
|
||||
(function (androidpublisher_v1_1) {
|
||||
/**
|
||||
@@ -45,7 +44,6 @@ var androidpublisher_v1_1;
|
||||
google,
|
||||
};
|
||||
this.inapppurchases = new Resource$Inapppurchases(this.context);
|
||||
this.purchases = new Resource$Purchases(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Androidpublisher = Androidpublisher;
|
||||
@@ -87,73 +85,5 @@ var androidpublisher_v1_1;
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases;
|
||||
class Resource$Purchases {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v1_1.Resource$Purchases = Resource$Purchases;
|
||||
})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {}));
|
||||
//# sourceMappingURL=v1.1.js.map
|
||||
153
node_modules/googleapis/build/src/apis/androidpublisher/v1.d.ts
generated
vendored
153
node_modules/googleapis/build/src/apis/androidpublisher/v1.d.ts
generated
vendored
@@ -1,55 +1,8 @@
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
|
||||
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
||||
import { GaxiosPromise } from 'gaxios';
|
||||
import { GoogleConfigurable, GlobalOptions, APIRequestContext } from 'googleapis-common';
|
||||
export declare namespace androidpublisher_v1 {
|
||||
export interface Options extends GlobalOptions {
|
||||
interface Options extends GlobalOptions {
|
||||
version: 'v1';
|
||||
}
|
||||
interface StandardParameters {
|
||||
/**
|
||||
* Data format for the response.
|
||||
*/
|
||||
alt?: string;
|
||||
/**
|
||||
* Selector specifying which fields to include in a partial response.
|
||||
*/
|
||||
fields?: string;
|
||||
/**
|
||||
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
* OAuth 2.0 token for the current user.
|
||||
*/
|
||||
oauth_token?: string;
|
||||
/**
|
||||
* Returns response with indentations and line breaks.
|
||||
*/
|
||||
prettyPrint?: boolean;
|
||||
/**
|
||||
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
|
||||
*/
|
||||
quotaUser?: string;
|
||||
/**
|
||||
* Deprecated. Please use quotaUser instead.
|
||||
*/
|
||||
userIp?: string;
|
||||
}
|
||||
/**
|
||||
* Google Play Developer API
|
||||
*
|
||||
@@ -65,107 +18,9 @@ export declare namespace androidpublisher_v1 {
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
*/
|
||||
export class Androidpublisher {
|
||||
class Androidpublisher {
|
||||
context: APIRequestContext;
|
||||
purchases: Resource$Purchases;
|
||||
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
||||
}
|
||||
/**
|
||||
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
|
||||
*/
|
||||
export interface Schema$SubscriptionPurchase {
|
||||
/**
|
||||
* Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
||||
*/
|
||||
autoRenewing?: boolean | null;
|
||||
/**
|
||||
* Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
*/
|
||||
initiationTimestampMsec?: string | null;
|
||||
/**
|
||||
* This kind represents a subscriptionPurchase object in the androidpublisher service.
|
||||
*/
|
||||
kind?: string | null;
|
||||
/**
|
||||
* Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
*/
|
||||
validUntilTimestampMsec?: string | null;
|
||||
}
|
||||
export class Resource$Purchases {
|
||||
context: APIRequestContext;
|
||||
constructor(context: APIRequestContext);
|
||||
/**
|
||||
* androidpublisher.purchases.cancel
|
||||
* @desc Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
|
||||
* @alias androidpublisher.purchases.cancel
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): GaxiosPromise<void>;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
||||
cancel(params: Params$Resource$Purchases$Cancel, callback: BodyResponseCallback<void>): void;
|
||||
cancel(callback: BodyResponseCallback<void>): void;
|
||||
/**
|
||||
* androidpublisher.purchases.get
|
||||
* @desc Checks whether a user's subscription purchase is valid and returns its expiry time.
|
||||
* @alias androidpublisher.purchases.get
|
||||
* @memberOf! ()
|
||||
*
|
||||
* @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(params?: Params$Resource$Purchases$Get, options?: MethodOptions): GaxiosPromise<Schema$SubscriptionPurchase>;
|
||||
get(params: Params$Resource$Purchases$Get, options: MethodOptions | BodyResponseCallback<Schema$SubscriptionPurchase>, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(params: Params$Resource$Purchases$Get, callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
get(callback: BodyResponseCallback<Schema$SubscriptionPurchase>): void;
|
||||
}
|
||||
export interface Params$Resource$Purchases$Cancel extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
export interface Params$Resource$Purchases$Get extends StandardParameters {
|
||||
/**
|
||||
* Auth client or API Key for the request
|
||||
*/
|
||||
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
|
||||
/**
|
||||
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
|
||||
*/
|
||||
packageName?: string;
|
||||
/**
|
||||
* The purchased subscription ID (for example, 'monthly001').
|
||||
*/
|
||||
subscriptionId?: string;
|
||||
/**
|
||||
* The token provided to the user's device when the subscription was purchased.
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
//# sourceMappingURL=v1.d.ts.map
|
||||
103
node_modules/googleapis/build/src/apis/androidpublisher/v1.js
generated
vendored
103
node_modules/googleapis/build/src/apis/androidpublisher/v1.js
generated
vendored
@@ -1,26 +1,18 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
exports.androidpublisher_v1 = void 0;
|
||||
var androidpublisher_v1;
|
||||
(function (androidpublisher_v1) {
|
||||
/**
|
||||
@@ -44,77 +36,8 @@ var androidpublisher_v1;
|
||||
_options: options || {},
|
||||
google,
|
||||
};
|
||||
this.purchases = new Resource$Purchases(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v1.Androidpublisher = Androidpublisher;
|
||||
class Resource$Purchases {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback || {});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
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,
|
||||
requiredParams: ['packageName', 'subscriptionId', 'token'],
|
||||
pathParams: ['packageName', 'subscriptionId', 'token'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v1.Resource$Purchases = Resource$Purchases;
|
||||
})(androidpublisher_v1 = exports.androidpublisher_v1 || (exports.androidpublisher_v1 = {}));
|
||||
//# sourceMappingURL=v1.js.map
|
||||
3085
node_modules/googleapis/build/src/apis/androidpublisher/v2.d.ts
generated
vendored
3085
node_modules/googleapis/build/src/apis/androidpublisher/v2.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
1996
node_modules/googleapis/build/src/apis/androidpublisher/v2.js
generated
vendored
1996
node_modules/googleapis/build/src/apis/androidpublisher/v2.js
generated
vendored
File diff suppressed because it is too large
Load Diff
5325
node_modules/googleapis/build/src/apis/androidpublisher/v3.d.ts
generated
vendored
5325
node_modules/googleapis/build/src/apis/androidpublisher/v3.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
305
node_modules/googleapis/build/src/apis/androidpublisher/v3.js
generated
vendored
305
node_modules/googleapis/build/src/apis/androidpublisher/v3.js
generated
vendored
@@ -1,42 +1,37 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
// Copyright 2020 Google LLC
|
||||
// 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.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.androidpublisher_v3 = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/class-name-casing */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
const googleapis_common_1 = require("googleapis-common");
|
||||
// tslint:disable: no-any
|
||||
// tslint:disable: class-name
|
||||
// tslint:disable: variable-name
|
||||
// tslint:disable: jsdoc-format
|
||||
// tslint:disable: no-namespace
|
||||
var androidpublisher_v3;
|
||||
(function (androidpublisher_v3) {
|
||||
/**
|
||||
* Google Play Developer API
|
||||
* Google Play Android Developer API
|
||||
*
|
||||
* Accesses Android application developers' Google Play accounts.
|
||||
* Lets Android application developers access their Google Play accounts.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* const {google} = require('googleapis');
|
||||
* const androidpublisher = google.androidpublisher('v3');
|
||||
*
|
||||
* @namespace androidpublisher
|
||||
* @type {Function}
|
||||
* @version v3
|
||||
* @variation v3
|
||||
* @param {object=} options Options for Androidpublisher
|
||||
* ```
|
||||
*/
|
||||
class Androidpublisher {
|
||||
constructor(options, google) {
|
||||
@@ -50,6 +45,7 @@ var androidpublisher_v3;
|
||||
this.orders = new Resource$Orders(this.context);
|
||||
this.purchases = new Resource$Purchases(this.context);
|
||||
this.reviews = new Resource$Reviews(this.context);
|
||||
this.systemapks = new Resource$Systemapks(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v3.Androidpublisher = Androidpublisher;
|
||||
@@ -78,7 +74,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -109,7 +105,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -140,7 +136,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -171,7 +167,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/androidpublisher/v3/applications/{packageName}/edits').replace(/([^:]\/)\/+/g, '$1'),
|
||||
@@ -201,7 +197,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -239,7 +235,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -270,7 +266,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -302,7 +298,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -342,7 +338,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -374,7 +370,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -414,7 +410,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -464,7 +460,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -496,7 +492,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -528,7 +524,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -566,7 +562,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -608,7 +604,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -650,7 +646,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -692,7 +688,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -742,7 +738,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -786,7 +782,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -818,7 +814,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -850,7 +846,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -890,7 +886,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -922,7 +918,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -954,7 +950,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -986,7 +982,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1018,7 +1014,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1050,7 +1046,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1088,7 +1084,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1120,7 +1116,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1152,7 +1148,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1189,7 +1185,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1221,7 +1217,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1253,7 +1249,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1285,7 +1281,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1323,7 +1319,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1355,7 +1351,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1387,7 +1383,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1419,7 +1415,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1451,7 +1447,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1483,7 +1479,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1521,7 +1517,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1555,7 +1551,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1594,7 +1590,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1641,7 +1637,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1673,7 +1669,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1711,7 +1707,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1743,7 +1739,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1775,7 +1771,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1807,7 +1803,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1839,7 +1835,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1871,7 +1867,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1909,7 +1905,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1946,7 +1942,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -1977,7 +1973,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -2008,7 +2004,7 @@ var androidpublisher_v3;
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
@@ -2029,5 +2025,146 @@ var androidpublisher_v3;
|
||||
}
|
||||
}
|
||||
androidpublisher_v3.Resource$Reviews = Resource$Reviews;
|
||||
class Resource$Systemapks {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
this.variants = new Resource$Systemapks$Variants(this.context);
|
||||
}
|
||||
}
|
||||
androidpublisher_v3.Resource$Systemapks = Resource$Systemapks;
|
||||
class Resource$Systemapks$Variants {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
}
|
||||
create(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
'/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['packageName', 'versionCode'],
|
||||
pathParams: ['packageName', 'versionCode'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
download(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
'/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['packageName', 'versionCode', 'variantId'],
|
||||
pathParams: ['packageName', 'variantId', 'versionCode'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
get(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
'/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['packageName', 'versionCode', 'variantId'],
|
||||
pathParams: ['packageName', 'variantId', 'versionCode'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
list(paramsOrCallback, optionsOrCallback, callback) {
|
||||
let params = (paramsOrCallback ||
|
||||
{});
|
||||
let options = (optionsOrCallback || {});
|
||||
if (typeof paramsOrCallback === 'function') {
|
||||
callback = paramsOrCallback;
|
||||
params = {};
|
||||
options = {};
|
||||
}
|
||||
if (typeof optionsOrCallback === 'function') {
|
||||
callback = optionsOrCallback;
|
||||
options = {};
|
||||
}
|
||||
const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl +
|
||||
'/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET',
|
||||
}, options),
|
||||
params,
|
||||
requiredParams: ['packageName', 'versionCode'],
|
||||
pathParams: ['packageName', 'versionCode'],
|
||||
context: this.context,
|
||||
};
|
||||
if (callback) {
|
||||
googleapis_common_1.createAPIRequest(parameters, callback);
|
||||
}
|
||||
else {
|
||||
return googleapis_common_1.createAPIRequest(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
androidpublisher_v3.Resource$Systemapks$Variants = Resource$Systemapks$Variants;
|
||||
})(androidpublisher_v3 = exports.androidpublisher_v3 || (exports.androidpublisher_v3 = {}));
|
||||
//# sourceMappingURL=v3.js.map
|
||||
13
node_modules/googleapis/build/src/apis/apigateway/index.d.ts
generated
vendored
Normal file
13
node_modules/googleapis/build/src/apis/apigateway/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*! THIS FILE IS AUTO-GENERATED */
|
||||
import { AuthPlus } from 'googleapis-common';
|
||||
import { apigateway_v1beta } from './v1beta';
|
||||
export declare const VERSIONS: {
|
||||
v1beta: typeof apigateway_v1beta.Apigateway;
|
||||
};
|
||||
export declare function apigateway(version: 'v1beta'): apigateway_v1beta.Apigateway;
|
||||
export declare function apigateway(options: apigateway_v1beta.Options): apigateway_v1beta.Apigateway;
|
||||
declare const auth: AuthPlus;
|
||||
export { auth };
|
||||
export { apigateway_v1beta };
|
||||
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user