diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts index 4ba0b6470f2..2a59bbd0693 100644 --- a/src/apis/abusiveexperiencereport/v1.ts +++ b/src/apis/abusiveexperiencereport/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace abusiveexperiencereport_v1 { * significant number of abusive experiences. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const abusiveexperiencereport = google.abusiveexperiencereport('v1'); * * @namespace abusiveexperiencereport @@ -53,13 +48,13 @@ export namespace abusiveexperiencereport_v1 { */ export class Abusiveexperiencereport { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; sites: Resource$Sites; violatingSites: Resource$Violatingsites; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/acceleratedmobilepageurl/v1.ts b/src/apis/acceleratedmobilepageurl/v1.ts index 7c59e99ff5e..fcf19a63c11 100644 --- a/src/apis/acceleratedmobilepageurl/v1.ts +++ b/src/apis/acceleratedmobilepageurl/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace acceleratedmobilepageurl_v1 { * list of public URL(s). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1'); * * @namespace acceleratedmobilepageurl @@ -53,12 +48,12 @@ export namespace acceleratedmobilepageurl_v1 { */ export class Acceleratedmobilepageurl { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; ampUrls: Resource$Ampurls; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index 8cfe501018d..82cef36eab2 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace adexchangebuyer_v1_2 { * reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangebuyer = google.adexchangebuyer('v1.2'); * * @namespace adexchangebuyer @@ -54,13 +49,13 @@ export namespace adexchangebuyer_v1_2 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; creatives: Resource$Creatives; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index 9ca0cc8bbf3..85d9e048161 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace adexchangebuyer_v1_3 { * reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangebuyer = google.adexchangebuyer('v1.3'); * * @namespace adexchangebuyer @@ -54,7 +49,7 @@ export namespace adexchangebuyer_v1_3 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -65,7 +60,7 @@ export namespace adexchangebuyer_v1_3 { performanceReport: Resource$Performancereport; pretargetingConfig: Resource$Pretargetingconfig; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index b6a7e722a44..6500d20cdfb 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace adexchangebuyer_v1_4 { * reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangebuyer = google.adexchangebuyer('v1.4'); * * @namespace adexchangebuyer @@ -54,7 +49,7 @@ export namespace adexchangebuyer_v1_4 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -70,7 +65,7 @@ export namespace adexchangebuyer_v1_4 { proposals: Resource$Proposals; pubprofiles: Resource$Pubprofiles; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index 48161f5ab23..116190534cd 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace adexchangebuyer2_v2beta1 { * deals. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); * * @namespace adexchangebuyer2 @@ -54,13 +49,13 @@ export namespace adexchangebuyer2_v2beta1 { */ export class Adexchangebuyer2 { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; bidders: Resource$Bidders; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/v1.1.ts b/src/apis/adexchangeseller/v1.1.ts index 8b3c6dc9a1d..fe5565ff378 100644 --- a/src/apis/adexchangeseller/v1.1.ts +++ b/src/apis/adexchangeseller/v1.1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace adexchangeseller_v1_1 { * Accesses the inventory of Ad Exchange seller users and generates reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangeseller = google.adexchangeseller('v1.1'); * * @namespace adexchangeseller @@ -52,7 +47,7 @@ export namespace adexchangeseller_v1_1 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -65,7 +60,7 @@ export namespace adexchangeseller_v1_1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/v1.ts b/src/apis/adexchangeseller/v1.ts index 23b8ad696b5..ecc17caa776 100644 --- a/src/apis/adexchangeseller/v1.ts +++ b/src/apis/adexchangeseller/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace adexchangeseller_v1 { * Accesses the inventory of Ad Exchange seller users and generates reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangeseller = google.adexchangeseller('v1'); * * @namespace adexchangeseller @@ -52,7 +47,7 @@ export namespace adexchangeseller_v1 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; adclients: Resource$Adclients; @@ -61,7 +56,7 @@ export namespace adexchangeseller_v1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/v2.0.ts b/src/apis/adexchangeseller/v2.0.ts index ed3bb817386..31e2d7d6133 100644 --- a/src/apis/adexchangeseller/v2.0.ts +++ b/src/apis/adexchangeseller/v2.0.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace adexchangeseller_v2_0 { * Accesses the inventory of Ad Exchange seller users and generates reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexchangeseller = google.adexchangeseller('v2.0'); * * @namespace adexchangeseller @@ -52,12 +47,12 @@ export namespace adexchangeseller_v2_0 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts index 47565995c1a..fdffa01702a 100644 --- a/src/apis/adexperiencereport/v1.ts +++ b/src/apis/adexperiencereport/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace adexperiencereport_v1 { * significant number of annoying ads. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adexperiencereport = google.adexperiencereport('v1'); * * @namespace adexperiencereport @@ -53,13 +48,13 @@ export namespace adexperiencereport_v1 { */ export class Adexperiencereport { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; sites: Resource$Sites; violatingSites: Resource$Violatingsites; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/datatransfer_v1.ts b/src/apis/admin/datatransfer_v1.ts index 801c741cd2d..41f413f45c4 100644 --- a/src/apis/admin/datatransfer_v1.ts +++ b/src/apis/admin/datatransfer_v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace admin_datatransfer_v1 { * Transfers user data from one user to another. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const admin = google.admin('datatransfer_v1'); * * @namespace admin @@ -52,13 +47,13 @@ export namespace admin_datatransfer_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; applications: Resource$Applications; transfers: Resource$Transfers; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index f22cd37d430..f18f2669631 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace admin_directory_v1 { * notifications, security features, and more. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const admin = google.admin('directory_v1'); * * @namespace admin @@ -53,7 +48,7 @@ export namespace admin_directory_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; asps: Resource$Asps; @@ -77,7 +72,7 @@ export namespace admin_directory_v1 { users: Resource$Users; verificationCodes: Resource$Verificationcodes; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/reports_v1.ts b/src/apis/admin/reports_v1.ts index b3c8417960d..b1792c50f25 100644 --- a/src/apis/admin/reports_v1.ts +++ b/src/apis/admin/reports_v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace admin_reports_v1 { * usage, collaboration, security, and risk for their users. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const admin = google.admin('reports_v1'); * * @namespace admin @@ -53,7 +48,7 @@ export namespace admin_reports_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -62,7 +57,7 @@ export namespace admin_reports_v1 { entityUsageReports: Resource$Entityusagereports; userUsageReport: Resource$Userusagereport; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adsense/v1.4.ts b/src/apis/adsense/v1.4.ts index d6ec77f6759..83c26cfb6c3 100644 --- a/src/apis/adsense/v1.4.ts +++ b/src/apis/adsense/v1.4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace adsense_v1_4 { * reports. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adsense = google.adsense('v1.4'); * * @namespace adsense @@ -53,7 +48,7 @@ export namespace adsense_v1_4 { */ export class Adsense { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -67,7 +62,7 @@ export namespace adsense_v1_4 { savedadstyles: Resource$Savedadstyles; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index 362c4341001..ef30ecd06b1 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace adsensehost_v4_1 { * management capabilities for AdSense Hosts. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const adsensehost = google.adsensehost('v4.1'); * * @namespace adsensehost @@ -53,7 +48,7 @@ export namespace adsensehost_v4_1 { */ export class Adsensehost { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -63,7 +58,7 @@ export namespace adsensehost_v4_1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analytics/v2.4.ts b/src/apis/analytics/v2.4.ts index ac337989165..78e854125eb 100644 --- a/src/apis/analytics/v2.4.ts +++ b/src/apis/analytics/v2.4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace analytics_v2_4 { * Views and manages your Google Analytics data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const analytics = google.analytics('v2.4'); * * @namespace analytics @@ -52,13 +47,13 @@ export namespace analytics_v2_4 { */ export class Analytics { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; data: Resource$Data; management: Resource$Management; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index 2a54bae10d4..50843d0ad6b 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace analytics_v3 { * Views and manages your Google Analytics data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const analytics = google.analytics('v3'); * * @namespace analytics @@ -52,7 +47,7 @@ export namespace analytics_v3 { */ export class Analytics { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; data: Resource$Data; @@ -60,7 +55,7 @@ export namespace analytics_v3 { metadata: Resource$Metadata; provisioning: Resource$Provisioning; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index c345671e19d..3f2426019d6 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace analyticsreporting_v4 { * Accesses Analytics report data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const analyticsreporting = google.analyticsreporting('v4'); * * @namespace analyticsreporting @@ -52,12 +47,12 @@ export namespace analyticsreporting_v4 { */ export class Analyticsreporting { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index c00ec3bd206..969b3dc83e9 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace androiddeviceprovisioning_v1 { * and EMMs. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androiddeviceprovisioning = google.androiddeviceprovisioning('v1'); * * @namespace androiddeviceprovisioning @@ -53,14 +48,14 @@ export namespace androiddeviceprovisioning_v1 { */ export class Androiddeviceprovisioning { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; customers: Resource$Customers; operations: Resource$Operations; partners: Resource$Partners; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); @@ -148,6 +143,11 @@ export namespace androiddeviceprovisioning_v1 { * but can also add, delete, and edit your organization's portal users. */ ownerEmails?: string[]; + /** + * Output only. Whether any user from the company has accepted the latest + * Terms of Service (ToS). See TermsStatus. + */ + termsStatus?: string; } /** * A configuration collects the provisioning options for Android devices. Each diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index d47393fe696..ae262f48a58 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace androidenterprise_v1 { * Manages the deployment of apps to Android for Work users. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidenterprise = google.androidenterprise('v1'); * * @namespace androidenterprise @@ -52,7 +47,7 @@ export namespace androidenterprise_v1 { */ export class Androidenterprise { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; devices: Resource$Devices; @@ -71,7 +66,7 @@ export namespace androidenterprise_v1 { storelayoutpages: Resource$Storelayoutpages; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index bdf1a861acf..2add7ceaea2 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace androidmanagement_v1 { * devices and apps. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidmanagement = google.androidmanagement('v1'); * * @namespace androidmanagement @@ -53,13 +48,13 @@ export namespace androidmanagement_v1 { */ export class Androidmanagement { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; enterprises: Resource$Enterprises; signupUrls: Resource$Signupurls; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index 38f149f4ff5..42dba5a3ee8 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace androidpublisher_v1_1 { * Lets Android application developers access their Google Play accounts. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidpublisher = google.androidpublisher('v1.1'); * * @namespace androidpublisher @@ -52,13 +47,13 @@ export namespace androidpublisher_v1_1 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; inapppurchases: Resource$Inapppurchases; purchases: Resource$Purchases; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v1.ts b/src/apis/androidpublisher/v1.ts index 6aeeb510913..07aacc3296b 100644 --- a/src/apis/androidpublisher/v1.ts +++ b/src/apis/androidpublisher/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace androidpublisher_v1 { * Lets Android application developers access their Google Play accounts. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidpublisher = google.androidpublisher('v1'); * * @namespace androidpublisher @@ -52,12 +47,12 @@ export namespace androidpublisher_v1 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; purchases: Resource$Purchases; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index 8b6c3eac2d0..4df00bb5877 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace androidpublisher_v2 { * Lets Android application developers access their Google Play accounts. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidpublisher = google.androidpublisher('v2'); * * @namespace androidpublisher @@ -52,7 +47,7 @@ export namespace androidpublisher_v2 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; edits: Resource$Edits; @@ -60,7 +55,7 @@ export namespace androidpublisher_v2 { purchases: Resource$Purchases; reviews: Resource$Reviews; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 7c09834023a..486b48bcff6 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace androidpublisher_v3 { * Lets Android application developers access their Google Play accounts. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const androidpublisher = google.androidpublisher('v3'); * * @namespace androidpublisher @@ -52,7 +47,7 @@ export namespace androidpublisher_v3 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; edits: Resource$Edits; @@ -60,7 +55,7 @@ export namespace androidpublisher_v3 { purchases: Resource$Purchases; reviews: Resource$Reviews; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index 18aef6c0c3d..b78e6c87a67 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace appengine_v1 { * App Engine applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appengine = google.appengine('v1'); * * @namespace appengine @@ -53,12 +48,12 @@ export namespace appengine_v1 { */ export class Appengine { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1alpha.ts b/src/apis/appengine/v1alpha.ts index 86409b5feca..07b8ad76427 100644 --- a/src/apis/appengine/v1alpha.ts +++ b/src/apis/appengine/v1alpha.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace appengine_v1alpha { * App Engine applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appengine = google.appengine('v1alpha'); * * @namespace appengine @@ -53,12 +48,12 @@ export namespace appengine_v1alpha { */ export class Appengine { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index 90be55f6880..fc394781821 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace appengine_v1beta { * App Engine applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appengine = google.appengine('v1beta'); * * @namespace appengine @@ -53,12 +48,12 @@ export namespace appengine_v1beta { */ export class Appengine { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta4.ts b/src/apis/appengine/v1beta4.ts index e4830221e28..8c87888f2c0 100644 --- a/src/apis/appengine/v1beta4.ts +++ b/src/apis/appengine/v1beta4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace appengine_v1beta4 { * App Engine applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appengine = google.appengine('v1beta4'); * * @namespace appengine @@ -53,12 +48,12 @@ export namespace appengine_v1beta4 { */ export class Appengine { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta5.ts b/src/apis/appengine/v1beta5.ts index 9795524543a..da8b12a071d 100644 --- a/src/apis/appengine/v1beta5.ts +++ b/src/apis/appengine/v1beta5.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace appengine_v1beta5 { * App Engine applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appengine = google.appengine('v1beta5'); * * @namespace appengine @@ -53,12 +48,12 @@ export namespace appengine_v1beta5 { */ export class Appengine { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appsactivity/v1.ts b/src/apis/appsactivity/v1.ts index 86f96b1738e..b34f0034e7a 100644 --- a/src/apis/appsactivity/v1.ts +++ b/src/apis/appsactivity/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace appsactivity_v1 { * Provides a historical view of activity. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appsactivity = google.appsactivity('v1'); * * @namespace appsactivity @@ -52,12 +47,12 @@ export namespace appsactivity_v1 { */ export class Appsactivity { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; activities: Resource$Activities; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appstate/v1.ts b/src/apis/appstate/v1.ts index d1b5c65d17e..6bb29060731 100644 --- a/src/apis/appstate/v1.ts +++ b/src/apis/appstate/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace appstate_v1 { * The Google App State API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const appstate = google.appstate('v1'); * * @namespace appstate @@ -52,12 +47,12 @@ export namespace appstate_v1 { */ export class Appstate { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; states: Resource$States; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 38dee73446f..f78ca9a11e0 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace bigquery_v2 { * A data platform for customers to create, manage, share and query data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const bigquery = google.bigquery('v2'); * * @namespace bigquery @@ -52,7 +47,7 @@ export namespace bigquery_v2 { */ export class Bigquery { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; datasets: Resource$Datasets; @@ -61,7 +56,7 @@ export namespace bigquery_v2 { tabledata: Resource$Tabledata; tables: Resource$Tables; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index 7e94dad3660..ce062fe693c 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace bigquerydatatransfer_v1 { * scheduled, managed basis. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const bigquerydatatransfer = google.bigquerydatatransfer('v1'); * * @namespace bigquerydatatransfer @@ -53,12 +48,12 @@ export namespace bigquerydatatransfer_v1 { */ export class Bigquerydatatransfer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/blogger/v2.ts b/src/apis/blogger/v2.ts index 26eda626bbb..07f9c8498c7 100644 --- a/src/apis/blogger/v2.ts +++ b/src/apis/blogger/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace blogger_v2 { * API for access to the data within Blogger. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const blogger = google.blogger('v2'); * * @namespace blogger @@ -52,7 +47,7 @@ export namespace blogger_v2 { */ export class Blogger { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; blogs: Resource$Blogs; @@ -61,7 +56,7 @@ export namespace blogger_v2 { posts: Resource$Posts; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/blogger/v3.ts b/src/apis/blogger/v3.ts index c999fe6d7a4..3e60c2d6f92 100644 --- a/src/apis/blogger/v3.ts +++ b/src/apis/blogger/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace blogger_v3 { * API for access to the data within Blogger. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const blogger = google.blogger('v3'); * * @namespace blogger @@ -52,7 +47,7 @@ export namespace blogger_v3 { */ export class Blogger { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; blogs: Resource$Blogs; @@ -64,7 +59,7 @@ export namespace blogger_v3 { postUserInfos: Resource$Postuserinfos; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/books/v1.ts b/src/apis/books/v1.ts index 52bfe2600d2..13f134d60ef 100644 --- a/src/apis/books/v1.ts +++ b/src/apis/books/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace books_v1 { * Searches for books and manages your Google Books library. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const books = google.books('v1'); * * @namespace books @@ -52,7 +47,7 @@ export namespace books_v1 { */ export class Books { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; bookshelves: Resource$Bookshelves; @@ -69,7 +64,7 @@ export namespace books_v1 { series: Resource$Series; volumes: Resource$Volumes; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index e4cdd3c4e8e..3eab7653561 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace calendar_v3 { * Manipulates events and other calendar data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const calendar = google.calendar('v3'); * * @namespace calendar @@ -52,7 +47,7 @@ export namespace calendar_v3 { */ export class Calendar { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; acl: Resource$Acl; @@ -64,7 +59,7 @@ export namespace calendar_v3 { freebusy: Resource$Freebusy; settings: Resource$Settings; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index e17be8b1dea..4ab2ddb861a 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace chat_v1 { * Chat. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const chat = google.chat('v1'); * * @namespace chat @@ -53,12 +48,12 @@ export namespace chat_v1 { */ export class Chat { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; spaces: Resource$Spaces; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/civicinfo/v2.ts b/src/apis/civicinfo/v2.ts index 034dbe57eb2..eefa4f216d8 100644 --- a/src/apis/civicinfo/v2.ts +++ b/src/apis/civicinfo/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace civicinfo_v2 { * officials, and government representatives for U.S. residential addresses. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const civicinfo = google.civicinfo('v2'); * * @namespace civicinfo @@ -53,14 +48,14 @@ export namespace civicinfo_v2 { */ export class Civicinfo { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; divisions: Resource$Divisions; elections: Resource$Elections; representatives: Resource$Representatives; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 0a107d7c141..116b99a2f9f 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace classroom_v1 { * Manages classes, rosters, and invitations in Google Classroom. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const classroom = google.classroom('v1'); * * @namespace classroom @@ -52,7 +47,7 @@ export namespace classroom_v1 { */ export class Classroom { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; courses: Resource$Courses; @@ -60,7 +55,7 @@ export namespace classroom_v1 { registrations: Resource$Registrations; userProfiles: Resource$Userprofiles; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index 5253b55608d..74e6adca50b 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudbilling_v1 { * projects programmatically. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudbilling = google.cloudbilling('v1'); * * @namespace cloudbilling @@ -53,14 +48,14 @@ export namespace cloudbilling_v1 { */ export class Cloudbilling { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; billingAccounts: Resource$Billingaccounts; projects: Resource$Projects; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index 9b4d7963a90..e3f5e4bb323 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace cloudbuild_v1 { * Builds container images in the cloud. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudbuild = google.cloudbuild('v1'); * * @namespace cloudbuild @@ -52,13 +47,13 @@ export namespace cloudbuild_v1 { */ export class Cloudbuild { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index 87b0ce94d75..39a036f45d1 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace clouddebugger_v2 { * stopping or slowing it down. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const clouddebugger = google.clouddebugger('v2'); * * @namespace clouddebugger @@ -53,13 +48,13 @@ export namespace clouddebugger_v2 { */ export class Clouddebugger { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; controller: Resource$Controller; debugger: Resource$Debugger; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index 89aa8348620..306352bead5 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace clouderrorreporting_v1beta1 { * associated errors. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const clouderrorreporting = google.clouderrorreporting('v1beta1'); * * @namespace clouderrorreporting @@ -54,12 +49,12 @@ export namespace clouderrorreporting_v1beta1 { */ export class Clouderrorreporting { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index d34acbe7102..d9d689f6a9d 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace cloudfunctions_v1 { * Manages lightweight user-provided functions executed in response to events. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudfunctions = google.cloudfunctions('v1'); * * @namespace cloudfunctions @@ -52,13 +47,13 @@ export namespace cloudfunctions_v1 { */ export class Cloudfunctions { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index b9c3642bb49..5d98014e4b3 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace cloudfunctions_v1beta2 { * Manages lightweight user-provided functions executed in response to events. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudfunctions = google.cloudfunctions('v1beta2'); * * @namespace cloudfunctions @@ -52,13 +47,13 @@ export namespace cloudfunctions_v1beta2 { */ export class Cloudfunctions { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index 80decd5b43f..a72038d8ae7 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudiot_v1 { * Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudiot = google.cloudiot('v1'); * * @namespace cloudiot @@ -53,12 +48,12 @@ export namespace cloudiot_v1 { */ export class Cloudiot { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index 78ae693e7fe..46135f2ec18 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudkms_v1 { * You can generate, use, rotate, and destroy AES256 encryption keys. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudkms = google.cloudkms('v1'); * * @namespace cloudkms @@ -53,12 +48,12 @@ export namespace cloudkms_v1 { */ export class Cloudkms { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index b460e17aa06..f8079ea844c 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudresourcemanager_v1 { * reading, and updating project metadata. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudresourcemanager = google.cloudresourcemanager('v1'); * * @namespace cloudresourcemanager @@ -53,7 +48,7 @@ export namespace cloudresourcemanager_v1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; folders: Resource$Folders; @@ -62,7 +57,7 @@ export namespace cloudresourcemanager_v1 { organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index ef2b009d1b2..512b0290320 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudresourcemanager_v1beta1 { * reading, and updating project metadata. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); * * @namespace cloudresourcemanager @@ -53,13 +48,13 @@ export namespace cloudresourcemanager_v1beta1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 8ea941f24fc..2045ea459e6 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudresourcemanager_v2 { * reading, and updating project metadata. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudresourcemanager = google.cloudresourcemanager('v2'); * * @namespace cloudresourcemanager @@ -53,12 +48,12 @@ export namespace cloudresourcemanager_v2 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; folders: Resource$Folders; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index d536a940b2c..88c7be733b7 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudresourcemanager_v2beta1 { * reading, and updating project metadata. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudresourcemanager = google.cloudresourcemanager('v2beta1'); * * @namespace cloudresourcemanager @@ -53,12 +48,12 @@ export namespace cloudresourcemanager_v2beta1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; folders: Resource$Folders; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index 58e385b4284..90d87dff149 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudshell_v1 { * running in the cloud. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudshell = google.cloudshell('v1'); * * @namespace cloudshell @@ -53,12 +48,12 @@ export namespace cloudshell_v1 { */ export class Cloudshell { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index 42cb805caa1..fd4a2ee8a79 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudshell_v1alpha1 { * running in the cloud. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudshell = google.cloudshell('v1alpha1'); * * @namespace cloudshell @@ -53,12 +48,12 @@ export namespace cloudshell_v1alpha1 { */ export class Cloudshell { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 9542b66b72f..678f35d6e92 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace cloudtasks_v2beta2 { * is in Alpha. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudtasks = google.cloudtasks('v2beta2'); * * @namespace cloudtasks @@ -53,12 +48,12 @@ export namespace cloudtasks_v2beta2 { */ export class Cloudtasks { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index 53b6287917a..ff6b89a9fe6 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace cloudtrace_v1 { * other applications can be provided using this API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudtrace = google.cloudtrace('v1'); * * @namespace cloudtrace @@ -54,12 +49,12 @@ export namespace cloudtrace_v1 { */ export class Cloudtrace { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index 8faf98ae8f1..e669dca3b8b 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace cloudtrace_v2 { * other applications can be provided using this API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const cloudtrace = google.cloudtrace('v2'); * * @namespace cloudtrace @@ -54,12 +49,12 @@ export namespace cloudtrace_v2 { */ export class Cloudtrace { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/composer/v1beta1.ts b/src/apis/composer/v1beta1.ts index 28faf022e51..1409a14e954 100644 --- a/src/apis/composer/v1beta1.ts +++ b/src/apis/composer/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace composer_v1beta1 { * Manages Apache Airflow environments on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const composer = google.composer('v1beta1'); * * @namespace composer @@ -52,12 +47,12 @@ export namespace composer_v1beta1 { */ export class Composer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); @@ -101,7 +96,7 @@ export namespace composer_v1beta1 { labels?: any; /** * The resource name of the environment, in the form: - * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */ name?: string; /** @@ -142,16 +137,16 @@ export namespace composer_v1beta1 { */ gkeCluster?: string; /** - * The configuration used for the Container Engine cluster. + * The configuration used for the Kubernetes Engine cluster. */ nodeConfig?: Schema$NodeConfig; /** - * The number of nodes in the Container Engine cluster that will be used to + * The number of nodes in the Kubernetes Engine cluster that will be used to * run this environment. */ nodeCount?: number; /** - * The config settings for software inside the environment. + * The configuration settings for software inside the environment. */ softwareConfig?: Schema$SoftwareConfig; } @@ -182,65 +177,62 @@ export namespace composer_v1beta1 { operations?: Schema$Operation[]; } /** - * The configuration information for the Container Engine nodes running the + * The configuration information for the Kubernetes Engine nodes running the * Apache Airflow software. */ export interface Schema$NodeConfig { /** - * Optional. The disk size in GB used for node VMs. Minimum is 10GB. If + * Optional. The disk size in GB used for node VMs. Minimum size is 10GB. If * unspecified, defaults to 100GB. Cannot be updated. */ diskSizeGb?: number; /** * Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which * to deploy the VMs used to run the Apache Airflow software, specified as a - * relative resource - * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name). - * For example: `projects/{projectId}/zones/{zoneId}`. This `location` must + * [relative resource + * name](/apis/design/resource_names#relative_resource_name). For example: + * "projects/{projectId}/zones/{zoneId}". This `location` must * belong to the enclosing environment's project and location. If both * this field and `nodeConfig.machineType` are specified, * `nodeConfig.machineType` must belong to this `location`; if both are * unspecified, the service will pick a zone in the Compute Engine region - * corresponding to the Cloud Composer location and propagate that choice to - * both fields. If exactly one of this field and `nodeConfig.machineType` is - * specified, the location information from the specified field will be - * propagated to the unspecified field. + * corresponding to the Cloud Composer location, and propagate that choice + * to both fields. If only one field (`location` or + * `nodeConfig.machineType`) is specified, the location information from the + * specified field will be propagated to the unspecified field. */ location?: string; /** - * Optional. The Google Compute Engine [machine type]( - * /compute/docs/machine-types) used for cluster instances, specified as a - * [relative resource name]( - * https://cloud.google.com/apis/design/resource_names#relative_resource_name). - * For example: - * `projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}`. The - * `machineType` must belong to the enclosing environment's project and - * location. If both this field and `nodeConfig.location` are specified, + * Optional. The Compute Engine [machine type](/compute/docs/machine-types) + * used for cluster instances, specified as a [relative resource + * name](/apis/design/resource_names#relative_resource_name). For example: + * "projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}". + * The `machineType` must belong to the enclosing environment's project + * and location. If both this field and `nodeConfig.location` are specified, * this `machineType` must belong to the `nodeConfig.location`; if both are * unspecified, the service will pick a zone in the Compute Engine region - * corresponding to the Cloud Composer location and propagate that choice to - * both fields. If exactly one of this field and `nodeConfig.location` is + * corresponding to the Cloud Composer location, and propagate that choice + * to both fields. If exactly one of this field and `nodeConfig.location` is * specified, the location information from the specified field will be - * propagated to the unspecified field. Furthermore, if this field is - * unspecified, the `machineTypeId` defaults to `n1-standard-1`. + * propagated to the unspecified field. If this field is unspecified, the + * `machineTypeId` defaults to "n1-standard-1". */ machineType?: string; /** * Optional. The Compute Engine network to be used for machine - * communications, specified as a [relative resource name]( - * https://cloud.google.com/apis/design/resource_names#relative_resource_name). - * For example: `projects/{projectId}/global/networks/{networkId}`. [Shared + * communications, specified as a [relative resource + * name](/apis/design/resource_names#relative_resource_name). For example: + * "projects/{projectId}/global/networks/{networkId}". [Shared * VPC](/vpc/docs/shared-vpc) is not currently supported. The network must * belong to the environment's project. If unspecified, the * "default" network ID in the environment's project is used. - * If a "Custom Subnet Network" (see [Using - * Subnetworks](/compute/docs/subnetworks) for more information) is + * If a [Custom Subnet Network]((/vpc/docs/vpc#vpc_networks_and_subnets) is * provided, `nodeConfig.subnetwork` must also be provided. */ network?: string; /** - * Optional. The set of Google API scopes to be made available on all of the - * node VMs. If `oauth_scopes` is empty, defaults to + * Optional. The set of Google API scopes to be made available on all node + * VMs. If `oauth_scopes` is empty, defaults to * ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be * updated. */ @@ -253,13 +245,12 @@ export namespace composer_v1beta1 { serviceAccount?: string; /** * Optional. The Compute Engine subnetwork to be used for machine - * communications, specified as a [relative resource name]( - * https://cloud.google.com/apis/design/resource_names#relative_resource_name). - * For example: - * `projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}` If - * a subnetwork is provided, `nodeConfig.network` must also be provided, and - * the subnetwork must belong to the enclosing environment's project and - * location. + * communications, specified as a [relative resource + * name](/apis/design/resource_names#relative_resource_name). For example: + * "projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}" + * If a subnetwork is provided, `nodeConfig.network` must also be provided, + * and the subnetwork must belong to the enclosing environment's project + * and location. */ subnetwork?: string; /** @@ -341,34 +332,34 @@ export namespace composer_v1beta1 { state?: string; } /** - * Specifies the selection and config of software inside the environment. + * Specifies the selection and configuration of software inside the + * environment. */ export interface Schema$SoftwareConfig { /** * Optional. Apache Airflow configuration properties to override. Property - * keys contain the section and property name, separated by a hyphen, for - * example `core-dags_are_paused_at_creation`. Sections must not contain - * hyphens ("-"), opening square brackets ("["), or - * closing square brackets ("]"). The name must be non-empty and - * must not contain an equals sign ("=") or semicolon - * (";"). The section as well as the name must not contain a - * period ("."). Apache Airflow configuration property names must - * be written in - * [snake_case](https://www.google.com/url?sa=D&q=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSnake_case). - * Property values can contain any character and be written in any - * lower/upper case format. Certain Apache Airflow configuration property - * values are - * [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists) + * keys contain the section and property names, separated by a hyphen, for + * example "core-dags_are_paused_at_creation". Section names must + * not contain hyphens ("-"), opening square brackets + * ("["), or closing square brackets ("]"). The + * property name must not be empty and must not contain an equals sign + * ("=") or semicolon (";"). Section and property names + * must not contain a period ("."). Apache Airflow configuration + * property names must be written in + * [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values + * can contain any character, and can be written in any lower/upper case + * format. Certain Apache Airflow configuration property values are + * [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists), * and cannot be overridden. */ airflowConfigOverrides?: any; /** * Optional. Additional environment variables to provide to the Apache * Airflow scheduler, worker, and webserver processes. Environment variable - * names must match the regular expression `a-zA-Z_*`. Furthermore, they - * cannot specify Apache Airflow software configuration overrides (i.e., - * match the regular expression `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`); nor can - * they take any of the following reserved values: * `AIRFLOW_HOME` * + * names must match the regular expression `a-zA-Z_*`. They cannot specify + * Apache Airflow software configuration overrides (they cannot match the + * regular expression `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot + * match any of the following reserved names: * `AIRFLOW_HOME` * * `C_FORCE_ROOT` * `CONTAINER_NAME` * `DAGS_FOLDER` * `GCP_PROJECT` * * `GCS_BUCKET` * `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * * `SQL_PASSWORD` * `SQL_PROJECT` * `SQL_REGION` * `SQL_USER` @@ -389,10 +380,10 @@ export namespace composer_v1beta1 { /** * Optional. Custom Python Package Index (PyPI) packages to be installed in * the environment. Keys refer to the lowercase package name such as - * `numpy` and values are the lowercase extras and version specifier such as - * `==1.12.0`, `[devel,gcp_api]`, or `[devel]>=1.8.2, <1.9.2`. To - * specify a package without pinning it to a version specifier, use the - * empty string as the value. + * "numpy" and values are the lowercase extras and version + * specifier such as "==1.12.0", "[devel,gcp_api]", or + * "[devel]>=1.8.2, <1.9.2". To specify a package without + * pinning it to a version specifier, use the empty string as the value. */ pypiPackages?: any; } @@ -502,7 +493,7 @@ export namespace composer_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent must be of the form `projects/{projectId}/locations/{locationId}`. + * @param {string} params.parent The parent must be of the form "projects/{projectId}/locations/{locationId}". * @param {().Environment} 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. @@ -571,7 +562,7 @@ export namespace composer_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The environment to delete, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {string} params.name The environment to delete, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -638,7 +629,7 @@ export namespace composer_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The resource name of the environment to get, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {string} params.name The resource name of the environment to get, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -702,7 +693,7 @@ export namespace composer_v1beta1 { * @param {object} params Parameters for request * @param {integer=} params.pageSize The maximum number of environments to return. * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any. - * @param {string} params.parent List environments in the given project and location, in the form: `projects/{projectId}/locations/{locationId}` + * @param {string} params.parent List environments in the given project and location, in the form: "projects/{projectId}/locations/{locationId}" * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -770,7 +761,7 @@ export namespace composer_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The relative resource name of the environment to update, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {string} params.name The relative resource name of the environment to update, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {string=} params.updateMask Required. A comma-separated list of paths, relative to `Environment`, of fields to update. For example, to set the version of scikit-learn to install in the environment to 0.19.0 and to remove an existing installation of argparse, the `updateMask` parameter would include the following two `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and "config.softwareConfig.pypiPackages.argparse". The included patch environment would specify the scikit-learn version as follows: { "config":{ "softwareConfig":{ "pypiPackages":{ "scikit-learn":"==0.19.0" } } } } Note that in the above example, any existing PyPI packages other than scikit-learn and argparse will be unaffected. Only one update type may be included in a single request's `updateMask`. For example, one cannot update both the PyPI packages and labels in the same request. However, it is possible to update multiple members of a map field simultaneously in the same request. For example, to set the labels "label1" and "label2" while clearing "label3" (assuming it already exists), one can provide the paths "labels.label1", "labels.label2", and "labels.label3" and populate the patch environment as follows: { "labels":{ "label1":"new-label1-value" "label2":"new-label2-value" } } Note that in the above example, any existing labels that are not included in the `updateMask` will be unaffected. It is also possible to replace an entire map field by providing the map field's path in the `updateMask`. The new value of the field will be that which is provided in the patch environment. For example, to delete all pre-existing user-specified PyPI packages and install botocore at version 1.7.14, the `updateMask` would contain the path "config.softwareConfig.pypiPackages", and the patch environment would be the following: { "config":{ "softwareConfig":{ "pypiPackages":{ "botocore":"==1.7.14" } } } } Note: Only the following fields can be updated:
Mask Purpose
config.softwareConfig.pypiPackages Replace all custom custom PyPI packages. If a replacement package map is not included in `environment`, all custom PyPI packages are cleared. It is an error to provide both this mask and a mask specifying an individual package.
config.softwareConfig.pypiPackages.packagename Update the custom PyPI package packagename, preserving other packages. To delete the package, include it in `updateMask`, and omit the mapping for it in `environment.config.softwareConfig.pypiPackages`. It is an error to provide both a mask of this form and the "config.softwareConfig.pypiPackages" mask.
labels Replace all environment labels. If a replacement labels map is not included in `environment`, all labels are cleared. It is an error to provide both this mask and a mask specifying one or more individual labels.
labels.labelName Set the label named labelName, while preserving other labels. To delete the label, include it in `updateMask` and omit its mapping in `environment.labels`. It is an error to provide both a mask of this form and the "labels" mask.
config.nodeCount Horizontally scale the number of nodes in the environment. An integer greater than or equal to 3 must be provided in the `config.nodeCount` field.
config.softwareConfig.airflowConfigOverrides Replace all Apache Airflow config overrides. If a replacement config overrides map is not included in `environment`, all config overrides are cleared. It is an error to provide both this mask and a mask specifying one or more individual config overrides.
config.softwareConfig.properties.section-name Override the Apache Airflow property name in the section named section, preserving other properties. To delete the property override, include it in `updateMask` and omit its mapping in `environment.config.softwareConfig.properties`. It is an error to provide both a mask of this form and the "config.softwareConfig.properties" mask.
config.softwareConfig.envVariables Replace all environment variables. If a replacement environment variable map is not included in `environment`, all custom environment variables are cleared. It is an error to provide both this mask and a mask specifying one or more individual environment variables.
* @param {().Environment} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -840,7 +831,7 @@ export namespace composer_v1beta1 { /** * The parent must be of the form - * `projects/{projectId}/locations/{locationId}`. + * "projects/{projectId}/locations/{locationId}". */ parent?: string; @@ -857,7 +848,7 @@ export namespace composer_v1beta1 { /** * The environment to delete, in the form: - * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */ name?: string; } @@ -869,7 +860,7 @@ export namespace composer_v1beta1 { /** * The resource name of the environment to get, in the form: - * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */ name?: string; } @@ -889,7 +880,7 @@ export namespace composer_v1beta1 { pageToken?: string; /** * List environments in the given project and location, in the form: - * `projects/{projectId}/locations/{locationId}` + * "projects/{projectId}/locations/{locationId}" */ parent?: string; } @@ -901,7 +892,7 @@ export namespace composer_v1beta1 { /** * The relative resource name of the environment to update, in the form: - * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */ name?: string; /** diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index ed7443a69fa..882cd8cf43e 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace compute_alpha { * Creates and runs virtual machines on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const compute = google.compute('alpha'); * * @namespace compute @@ -52,7 +47,7 @@ export namespace compute_alpha { */ export class Compute { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -122,7 +117,7 @@ export namespace compute_alpha { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index dd2a2f1d624..9436e6f47e8 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace compute_beta { * Creates and runs virtual machines on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const compute = google.compute('beta'); * * @namespace compute @@ -52,7 +47,7 @@ export namespace compute_beta { */ export class Compute { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -111,7 +106,7 @@ export namespace compute_beta { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 88e7cf84ffb..e21e0f9e2dc 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace compute_v1 { * Creates and runs virtual machines on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const compute = google.compute('v1'); * * @namespace compute @@ -52,7 +47,7 @@ export namespace compute_v1 { */ export class Compute { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -110,7 +105,7 @@ export namespace compute_v1 { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index 20c2b0df55c..814ceffefe8 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace container_v1 { * technology. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const container = google.container('v1'); * * @namespace container @@ -54,12 +49,12 @@ export namespace container_v1 { */ export class Container { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 47e450c92e6..df70f4a25f8 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace container_v1beta1 { * technology. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const container = google.container('v1beta1'); * * @namespace container @@ -54,12 +49,12 @@ export namespace container_v1beta1 { */ export class Container { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 71b670f4ec6..090d5a7bac7 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace content_v2 { * Shopping. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const content = google.content('v2'); * * @namespace content @@ -53,7 +48,7 @@ export namespace content_v2 { */ export class Content { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -69,7 +64,7 @@ export namespace content_v2 { productstatuses: Resource$Productstatuses; shippingsettings: Resource$Shippingsettings; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/content/v2sandbox.ts b/src/apis/content/v2sandbox.ts index 48523b172f0..ce03b48ec7a 100644 --- a/src/apis/content/v2sandbox.ts +++ b/src/apis/content/v2sandbox.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace content_v2sandbox { * Shopping. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const content = google.content('v2sandbox'); * * @namespace content @@ -53,12 +48,12 @@ export namespace content_v2sandbox { */ export class Content { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; orders: Resource$Orders; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/customsearch/v1.ts b/src/apis/customsearch/v1.ts index 540d09953ab..7191ae3dba2 100644 --- a/src/apis/customsearch/v1.ts +++ b/src/apis/customsearch/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace customsearch_v1 { * Searches over a website or collection of websites * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const customsearch = google.customsearch('v1'); * * @namespace customsearch @@ -52,12 +47,12 @@ export namespace customsearch_v1 { */ export class Customsearch { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; cse: Resource$Cse; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index 91b959bfc69..e905c601649 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace dataflow_v1b3 { * Manages Google Cloud Dataflow projects on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const dataflow = google.dataflow('v1b3'); * * @namespace dataflow @@ -52,12 +47,12 @@ export namespace dataflow_v1b3 { */ export class Dataflow { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 081d7a8a618..1859e183865 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace dataproc_v1 { * Manages Hadoop-based clusters and jobs on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const dataproc = google.dataproc('v1'); * * @namespace dataproc @@ -52,12 +47,12 @@ export namespace dataproc_v1 { */ export class Dataproc { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index f9e18b2e142..d328a5ca08d 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace dataproc_v1beta2 { * Manages Hadoop-based clusters and jobs on Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const dataproc = google.dataproc('v1beta2'); * * @namespace dataproc @@ -52,12 +47,12 @@ export namespace dataproc_v1beta2 { */ export class Dataproc { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 61422392eba..69a7513e6b3 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace datastore_v1 { * scalable storage for your application. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const datastore = google.datastore('v1'); * * @namespace datastore @@ -53,12 +48,12 @@ export namespace datastore_v1 { */ export class Datastore { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/datastore/v1beta1.ts b/src/apis/datastore/v1beta1.ts index d6955848131..58d250b0414 100644 --- a/src/apis/datastore/v1beta1.ts +++ b/src/apis/datastore/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace datastore_v1beta1 { * scalable storage for your application. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const datastore = google.datastore('v1beta1'); * * @namespace datastore @@ -53,12 +48,12 @@ export namespace datastore_v1beta1 { */ export class Datastore { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); @@ -655,12 +650,12 @@ import(paramsOrCallback?: Params$Resource$Projects$Import|BodyResponseCallbackaccount_id. - To get information about a contact, specify the resource name that identifies the contact as returned by [`people.connections.list`](/people/api/rest/v1/people.connections/list). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2151,7 +2146,7 @@ export namespace people_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.personFields **Required.** A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * skills * taglines * urls + * @param {string=} params.personFields **Required.** A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * skills * taglines * urls * userDefined * @param {string=} params.requestMask.includeField **Required.** Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`. * @param {string=} params.resourceNames The resource names of the people to provide information about. - To get information about the authenticated user, specify `people/me`. - To get information about a google account, specify `people/`account_id. - To get information about a contact, specify the resource name that identifies the contact as returned by [`people.connections.list`](/people/api/rest/v1/people.connections/list). You can include up to 50 resource names in one request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2229,7 +2224,7 @@ export namespace people_v1 { * * @param {object} params Parameters for request * @param {string} params.resourceName The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/`person_id. - * @param {string=} params.updatePersonFields **Required.** A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * emailAddresses * events * genders * imClients * interests * locales * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * urls + * @param {string=} params.updatePersonFields **Required.** A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * emailAddresses * events * genders * imClients * interests * locales * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * urls * userDefined * @param {().Person} 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. @@ -2330,7 +2325,7 @@ export namespace people_v1 { * genders * imClients * interests * locales * memberships * metadata * * names * nicknames * occupations * organizations * phoneNumbers * photos * * relations * relationshipInterests * relationshipStatuses * residences * - * skills * taglines * urls + * skills * taglines * urls * userDefined */ personFields?: string; /** @@ -2363,7 +2358,7 @@ export namespace people_v1 { * genders * imClients * interests * locales * memberships * metadata * * names * nicknames * occupations * organizations * phoneNumbers * photos * * relations * relationshipInterests * relationshipStatuses * residences * - * skills * taglines * urls + * skills * taglines * urls * userDefined */ personFields?: string; /** @@ -2401,7 +2396,7 @@ export namespace people_v1 { * All updated fields will be replaced. Valid values are: * addresses * * biographies * birthdays * emailAddresses * events * genders * imClients * * interests * locales * names * nicknames * occupations * organizations * - * phoneNumbers * relations * residences * urls + * phoneNumbers * relations * residences * urls * userDefined */ updatePersonFields?: string; @@ -2434,7 +2429,7 @@ export namespace people_v1 { * @param {object} params Parameters for request * @param {integer=} params.pageSize The number of connections to include in the response. Valid values are between 1 and 2000, inclusive. Defaults to 100. * @param {string=} params.pageToken The token of the page to be returned. - * @param {string=} params.personFields **Required.** A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * skills * taglines * urls + * @param {string=} params.personFields **Required.** A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * braggingRights * coverPhotos * emailAddresses * events * genders * imClients * interests * locales * memberships * metadata * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * relationshipInterests * relationshipStatuses * residences * skills * taglines * urls * userDefined * @param {string=} params.requestMask.includeField **Required.** Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`. * @param {boolean=} params.requestSyncToken Whether the response should include a sync token, which can be used to get all changes since the last request. For subsequent sync requests use the `sync_token` param instead. Initial sync requests that specify `request_sync_token` have an additional rate limit. * @param {string} params.resourceName The resource name to return connections for. Only `people/me` is valid. @@ -2523,7 +2518,7 @@ export namespace people_v1 { * genders * imClients * interests * locales * memberships * metadata * * names * nicknames * occupations * organizations * phoneNumbers * photos * * relations * relationshipInterests * relationshipStatuses * residences * - * skills * taglines * urls + * skills * taglines * urls * userDefined */ personFields?: string; /** diff --git a/src/apis/photoslibrary/v1.ts b/src/apis/photoslibrary/v1.ts index 0e2365ea2e2..8630bbb7db4 100644 --- a/src/apis/photoslibrary/v1.ts +++ b/src/apis/photoslibrary/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace photoslibrary_v1 { * Manage photos, videos, and albums in Google Photos * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const photoslibrary = google.photoslibrary('v1'); * * @namespace photoslibrary @@ -52,14 +47,14 @@ export namespace photoslibrary_v1 { */ export class Photoslibrary { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; albums: Resource$Albums; mediaItems: Resource$Mediaitems; sharedAlbums: Resource$Sharedalbums; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/playcustomapp/v1.ts b/src/apis/playcustomapp/v1.ts index 1de47fa0223..62b62a86a16 100644 --- a/src/apis/playcustomapp/v1.ts +++ b/src/apis/playcustomapp/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace playcustomapp_v1 { * An API to publish custom Android apps. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const playcustomapp = google.playcustomapp('v1'); * * @namespace playcustomapp @@ -52,12 +47,12 @@ export namespace playcustomapp_v1 { */ export class Playcustomapp { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/plus/v1.ts b/src/apis/plus/v1.ts index 55cd847f592..3b6b421c2a7 100644 --- a/src/apis/plus/v1.ts +++ b/src/apis/plus/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace plus_v1 { * Builds on top of the Google+ platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const plus = google.plus('v1'); * * @namespace plus @@ -52,14 +47,14 @@ export namespace plus_v1 { */ export class Plus { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; activities: Resource$Activities; comments: Resource$Comments; people: Resource$People; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/plusDomains/v1.ts b/src/apis/plusDomains/v1.ts index 58fe79e5bd4..5325507293c 100644 --- a/src/apis/plusDomains/v1.ts +++ b/src/apis/plusDomains/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace plusDomains_v1 { * Builds on top of the Google+ platform for Google Apps Domains. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const plusDomains = google.plusDomains('v1'); * * @namespace plusDomains @@ -52,7 +47,7 @@ export namespace plusDomains_v1 { */ export class Plusdomains { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -62,7 +57,7 @@ export namespace plusDomains_v1 { media: Resource$Media; people: Resource$People; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/poly/v1.ts b/src/apis/poly/v1.ts index 335f22b188e..ff87d0fddf0 100644 --- a/src/apis/poly/v1.ts +++ b/src/apis/poly/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace poly_v1 { * href="https://poly.google.com">poly.google.com</a>. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const poly = google.poly('v1'); * * @namespace poly @@ -53,13 +48,13 @@ export namespace poly_v1 { */ export class Poly { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; assets: Resource$Assets; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/proximitybeacon/v1beta1.ts b/src/apis/proximitybeacon/v1beta1.ts index 7cc75e83316..7971b1c5a05 100644 --- a/src/apis/proximitybeacon/v1beta1.ts +++ b/src/apis/proximitybeacon/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace proximitybeacon_v1beta1 { * Registers, manages, indexes, and searches beacons. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const proximitybeacon = google.proximitybeacon('v1beta1'); * * @namespace proximitybeacon @@ -52,7 +47,7 @@ export namespace proximitybeacon_v1beta1 { */ export class Proximitybeacon { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; beaconinfo: Resource$Beaconinfo; @@ -60,7 +55,7 @@ export namespace proximitybeacon_v1beta1 { namespaces: Resource$Namespaces; v1beta1: Resource$V1beta1; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index cdb080f422e..653c7c2b4e1 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace pubsub_v1 { * applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const pubsub = google.pubsub('v1'); * * @namespace pubsub @@ -53,12 +48,12 @@ export namespace pubsub_v1 { */ export class Pubsub { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/v1beta1a.ts b/src/apis/pubsub/v1beta1a.ts index ceaf24ebb52..ce45a8c0563 100644 --- a/src/apis/pubsub/v1beta1a.ts +++ b/src/apis/pubsub/v1beta1a.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace pubsub_v1beta1a { * applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const pubsub = google.pubsub('v1beta1a'); * * @namespace pubsub @@ -53,13 +48,13 @@ export namespace pubsub_v1beta1a { */ export class Pubsub { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; subscriptions: Resource$Subscriptions; topics: Resource$Topics; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index f9ac8b8e62e..ad4d8b4c65e 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace pubsub_v1beta2 { * applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const pubsub = google.pubsub('v1beta2'); * * @namespace pubsub @@ -53,12 +48,12 @@ export namespace pubsub_v1beta2 { */ export class Pubsub { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index 53e2e27597c..099563d640b 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace redis_v1beta1 { * managing Redis instances on the Google Cloud Platform. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const redis = google.redis('v1beta1'); * * @namespace redis @@ -53,12 +48,12 @@ export namespace redis_v1beta1 { */ export class Redis { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapool/v1beta1.ts b/src/apis/replicapool/v1beta1.ts index 46be9fe4a3e..aae95ae860c 100644 --- a/src/apis/replicapool/v1beta1.ts +++ b/src/apis/replicapool/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace replicapool_v1beta1 { * groups of Google Compute Engine instances based on a common template. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const replicapool = google.replicapool('v1beta1'); * * @namespace replicapool @@ -53,13 +48,13 @@ export namespace replicapool_v1beta1 { */ export class Replicapool { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; pools: Resource$Pools; replicas: Resource$Replicas; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapool/v1beta2.ts b/src/apis/replicapool/v1beta2.ts index d9c01b08c57..ad2683a0763 100644 --- a/src/apis/replicapool/v1beta2.ts +++ b/src/apis/replicapool/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace replicapool_v1beta2 { * groups of homogenous Compute Engine instances. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const replicapool = google.replicapool('v1beta2'); * * @namespace replicapool @@ -53,13 +48,13 @@ export namespace replicapool_v1beta2 { */ export class Replicapool { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; instanceGroupManagers: Resource$Instancegroupmanagers; zoneOperations: Resource$Zoneoperations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapoolupdater/v1beta1.ts b/src/apis/replicapoolupdater/v1beta1.ts index 9a49a41905d..81e1970a35c 100644 --- a/src/apis/replicapoolupdater/v1beta1.ts +++ b/src/apis/replicapoolupdater/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace replicapoolupdater_v1beta1 { * groups of Compute Engine instances. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const replicapoolupdater = google.replicapoolupdater('v1beta1'); * * @namespace replicapoolupdater @@ -54,13 +49,13 @@ export namespace replicapoolupdater_v1beta1 { */ export class Replicapoolupdater { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; rollingUpdates: Resource$Rollingupdates; zoneOperations: Resource$Zoneoperations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/reseller/v1.ts b/src/apis/reseller/v1.ts index 88695fe484a..939f90d4c33 100644 --- a/src/apis/reseller/v1.ts +++ b/src/apis/reseller/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace reseller_v1 { * Creates and manages your customers and their subscriptions. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const reseller = google.reseller('v1'); * * @namespace reseller @@ -52,14 +47,14 @@ export namespace reseller_v1 { */ export class Reseller { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; customers: Resource$Customers; resellernotify: Resource$Resellernotify; subscriptions: Resource$Subscriptions; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/resourceviews/v1beta1.ts b/src/apis/resourceviews/v1beta1.ts index 3052fb3db5a..9f33beec5d0 100644 --- a/src/apis/resourceviews/v1beta1.ts +++ b/src/apis/resourceviews/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace resourceviews_v1beta1 { * Google Compute Engine instances. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const resourceviews = google.resourceviews('v1beta1'); * * @namespace resourceviews @@ -53,13 +48,13 @@ export namespace resourceviews_v1beta1 { */ export class Resourceviews { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; regionViews: Resource$Regionviews; zoneViews: Resource$Zoneviews; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/resourceviews/v1beta2.ts b/src/apis/resourceviews/v1beta2.ts index 8cd173db535..e8947573a39 100644 --- a/src/apis/resourceviews/v1beta2.ts +++ b/src/apis/resourceviews/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace resourceviews_v1beta2 { * Google Compute Engine instances. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const resourceviews = google.resourceviews('v1beta2'); * * @namespace resourceviews @@ -53,13 +48,13 @@ export namespace resourceviews_v1beta2 { */ export class Resourceviews { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; zoneOperations: Resource$Zoneoperations; zoneViews: Resource$Zoneviews; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/runtimeconfig/v1.ts b/src/apis/runtimeconfig/v1.ts index c5608e3b48d..7321e4a2aa2 100644 --- a/src/apis/runtimeconfig/v1.ts +++ b/src/apis/runtimeconfig/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -44,7 +39,7 @@ export namespace runtimeconfig_v1 { * based on certain conditions. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const runtimeconfig = google.runtimeconfig('v1'); * * @namespace runtimeconfig @@ -55,12 +50,12 @@ export namespace runtimeconfig_v1 { */ export class Runtimeconfig { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index 263d9facd14..ab0e52e15ea 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -44,7 +39,7 @@ export namespace runtimeconfig_v1beta1 { * based on certain conditions. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const runtimeconfig = google.runtimeconfig('v1beta1'); * * @namespace runtimeconfig @@ -55,12 +50,12 @@ export namespace runtimeconfig_v1beta1 { */ export class Runtimeconfig { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/safebrowsing/v4.ts b/src/apis/safebrowsing/v4.ts index 68b50714a49..6d34dddb891 100644 --- a/src/apis/safebrowsing/v4.ts +++ b/src/apis/safebrowsing/v4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace safebrowsing_v4 { * against Google-generated lists of unsafe web resources. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const safebrowsing = google.safebrowsing('v4'); * * @namespace safebrowsing @@ -53,7 +48,7 @@ export namespace safebrowsing_v4 { */ export class Safebrowsing { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; encodedFullHashes: Resource$Encodedfullhashes; @@ -64,7 +59,7 @@ export namespace safebrowsing_v4 { threatListUpdates: Resource$Threatlistupdates; threatMatches: Resource$Threatmatches; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/script/v1.ts b/src/apis/script/v1.ts index ab1159c4dbe..3c07a36c32e 100644 --- a/src/apis/script/v1.ts +++ b/src/apis/script/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -48,7 +43,7 @@ export namespace script_v1 { * grant them access</a>.</aside> * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const script = google.script('v1'); * * @namespace script @@ -59,14 +54,14 @@ export namespace script_v1 { */ export class Script { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; processes: Resource$Processes; projects: Resource$Projects; scripts: Resource$Scripts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/searchconsole/v1.ts b/src/apis/searchconsole/v1.ts index f54f677322a..d22a16e995f 100644 --- a/src/apis/searchconsole/v1.ts +++ b/src/apis/searchconsole/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace searchconsole_v1 { * Provides tools for running validation tests against single URLs * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const searchconsole = google.searchconsole('v1'); * * @namespace searchconsole @@ -52,12 +47,12 @@ export namespace searchconsole_v1 { */ export class Searchconsole { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; urlTestingTools: Resource$Urltestingtools; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts index 8be1ba6a55e..28bb25ed093 100644 --- a/src/apis/servicebroker/v1.ts +++ b/src/apis/servicebroker/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace servicebroker_v1 { * (https://www.openservicebrokerapi.org/). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const servicebroker = google.servicebroker('v1'); * * @namespace servicebroker @@ -54,12 +49,12 @@ export namespace servicebroker_v1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; v1: Resource$V1; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts index 5e42c41996d..ee2bc61d5f9 100644 --- a/src/apis/servicebroker/v1alpha1.ts +++ b/src/apis/servicebroker/v1alpha1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace servicebroker_v1alpha1 { * (https://www.openservicebrokerapi.org/). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const servicebroker = google.servicebroker('v1alpha1'); * * @namespace servicebroker @@ -54,13 +49,13 @@ export namespace servicebroker_v1alpha1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; v1alpha1: Resource$V1alpha1; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts index 749e90bd0f0..694e35709c8 100644 --- a/src/apis/servicebroker/v1beta1.ts +++ b/src/apis/servicebroker/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace servicebroker_v1beta1 { * (https://www.openservicebrokerapi.org/). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const servicebroker = google.servicebroker('v1beta1'); * * @namespace servicebroker @@ -54,13 +49,13 @@ export namespace servicebroker_v1beta1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; v1beta1: Resource$V1beta1; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index 226ba7cf42b..52503ddccc8 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace serviceconsumermanagement_v1 { * Google Cloud. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const serviceconsumermanagement = google.serviceconsumermanagement('v1'); * * @namespace serviceconsumermanagement @@ -53,13 +48,13 @@ export namespace serviceconsumermanagement_v1 { */ export class Serviceconsumermanagement { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index f658553b11b..5c03b16f2c8 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace servicecontrol_v1 { * services, such as logging, monitoring, and status checks. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const servicecontrol = google.servicecontrol('v1'); * * @namespace servicecontrol @@ -53,12 +48,12 @@ export namespace servicecontrol_v1 { */ export class Servicecontrol { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index 09f615bd246..7dbda6b6096 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace servicemanagement_v1 { * by service consumers. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const servicemanagement = google.servicemanagement('v1'); * * @namespace servicemanagement @@ -54,13 +49,13 @@ export namespace servicemanagement_v1 { */ export class Servicemanagement { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index 95953701029..badcb7e25b2 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace serviceusage_v1beta1 { * that service consumers no longer use. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const serviceusage = google.serviceusage('v1beta1'); * * @namespace serviceusage @@ -54,13 +49,13 @@ export namespace serviceusage_v1beta1 { */ export class Serviceusage { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceuser/v1.ts b/src/apis/serviceuser/v1.ts index 3887afffd10..c8fbed580ef 100644 --- a/src/apis/serviceuser/v1.ts +++ b/src/apis/serviceuser/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace serviceuser_v1 { * that service consumers no longer use. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const serviceuser = google.serviceuser('v1'); * * @namespace serviceuser @@ -54,13 +49,13 @@ export namespace serviceuser_v1 { */ export class Serviceuser { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index b279f33297f..6d81a48aea1 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace sheets_v4 { * Reads and writes Google Sheets. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const sheets = google.sheets('v4'); * * @namespace sheets @@ -52,12 +47,12 @@ export namespace sheets_v4 { */ export class Sheets { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; spreadsheets: Resource$Spreadsheets; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/siteVerification/v1.ts b/src/apis/siteVerification/v1.ts index 7f60a8b8f9a..c0d654905a3 100644 --- a/src/apis/siteVerification/v1.ts +++ b/src/apis/siteVerification/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace siteVerification_v1 { * Verifies ownership of websites or domains with Google. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const siteVerification = google.siteVerification('v1'); * * @namespace siteVerification @@ -52,12 +47,12 @@ export namespace siteVerification_v1 { */ export class Siteverification { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; webResource: Resource$Webresource; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index 9c1bf7c7595..e5c90ff2aef 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace slides_v1 { * An API for creating and editing Google Slides presentations. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const slides = google.slides('v1'); * * @namespace slides @@ -52,12 +47,12 @@ export namespace slides_v1 { */ export class Slides { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; presentations: Resource$Presentations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sourcerepo/v1.ts b/src/apis/sourcerepo/v1.ts index f2490fa0e17..b4b1a51c74b 100644 --- a/src/apis/sourcerepo/v1.ts +++ b/src/apis/sourcerepo/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace sourcerepo_v1 { * Access source code repositories hosted by Google. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const sourcerepo = google.sourcerepo('v1'); * * @namespace sourcerepo @@ -52,12 +47,12 @@ export namespace sourcerepo_v1 { */ export class Sourcerepo { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); @@ -95,7 +90,7 @@ export namespace sourcerepo_v1 { */ export interface Schema$AuditConfig { /** - * The configuration for logging of each type of permission. Next ID: 4 + * The configuration for logging of each type of permission. */ auditLogConfigs?: Schema$AuditLogConfig[]; /** @@ -136,13 +131,12 @@ export namespace sourcerepo_v1 { * without a Google account. * `allAuthenticatedUsers`: A special * identifier that represents anyone who is authenticated with a Google * account or a service account. * `user:{emailid}`: An email address that - * represents a specific Google account. For example, `alice@gmail.com` - * or `joe@example.com`. * `serviceAccount:{emailid}`: An email address - * that represents a service account. For example, - * `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An - * email address that represents a Google group. For example, - * `admins@example.com`. * `domain:{domain}`: A Google Apps domain name - * that represents all the users of that domain. For example, + * represents a specific Google account. For example, `alice@gmail.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `group:{emailid}`: An email address that represents a Google group. For + * example, `admins@example.com`. * `domain:{domain}`: A Google Apps + * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ members?: string[]; @@ -201,18 +195,22 @@ export namespace sourcerepo_v1 { /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists of a list of `bindings`. A `binding` binds a list of `members` to * a `role`, where the members can be user accounts, Google groups, Google * domains, and service accounts. A `role` is a named list of permissions - * defined by IAM. **Example** { "bindings": [ { + * defined by IAM. **JSON Example** { "bindings": [ { * "role": "roles/owner", "members": [ * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, - * { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** @@ -241,6 +239,48 @@ export namespace sourcerepo_v1 { */ version?: number; } + /** + * Cloud Source Repositories configuration of a project. + */ + export interface Schema$ProjectConfig { + /** + * Reject a Git push that contains a private key. + */ + enablePrivateKeyCheck?: boolean; + /** + * The name of the project. Values are of the form + * `projects/<project>`. + */ + name?: string; + /** + * How this project publishes a change in the repositories through Cloud + * Pub/Sub. Keyed by the topic names. + */ + pubsubConfigs?: any; + } + /** + * Configuration to publish a Cloud Pub/Sub message. + */ + export interface Schema$PubsubConfig { + /** + * The format of the Cloud Pub/Sub messages. + */ + messageFormat?: string; + /** + * Email address of the service account used for publishing Cloud Pub/Sub + * messages. This service account needs to be in the same project as the + * PubsubConfig. When added, the caller needs to have + * iam.serviceAccounts.actAs permission on this service account. If + * unspecified, it defaults to the compute engine default service account. + */ + serviceAccountEmail?: string; + /** + * A topic of Cloud Pub/Sub. Values are of the form + * `projects/<project>/topics/<topic>`. The project needs to be + * the same project as this config is in. + */ + topic?: string; + } /** * A repository (or repo) is a Git repository storing versioned source * content. @@ -257,6 +297,11 @@ export namespace sourcerepo_v1 { * slashes. eg, `projects/myproject/repos/name/with/slash` */ name?: string; + /** + * How this repository publishes a change in the repository through Cloud + * Pub/Sub. Keyed by the topic names. + */ + pubsubConfigs?: any; /** * The disk usage of the repo, in bytes. Read-only field. Size is only * returned by GetRepo. @@ -309,6 +354,36 @@ export namespace sourcerepo_v1 { */ permissions?: string[]; } + /** + * Request for UpdateProjectConfig. + */ + export interface Schema$UpdateProjectConfigRequest { + /** + * The new configuration for the project. + */ + projectConfig?: Schema$ProjectConfig; + /** + * A FieldMask specifying which fields of the project_config to modify. Only + * the fields in the mask will be modified. If no mask is provided, this + * request is no-op. + */ + updateMask?: string; + } + /** + * Request for UpdateRepo. + */ + export interface Schema$UpdateRepoRequest { + /** + * The new configuration for the repository. + */ + repo?: Schema$Repo; + /** + * A FieldMask specifying which fields of the repo to modify. Only the + * fields in the mask will be modified. If no mask is provided, this request + * is no-op. + */ + updateMask?: string; + } export class Resource$Projects { @@ -323,8 +398,172 @@ export namespace sourcerepo_v1 { getRoot() { return this.root; } + + + /** + * sourcerepo.projects.getConfig + * @desc Returns the Cloud Source Repositories configuration of the project. + * @alias sourcerepo.projects.getConfig + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the requested project. Values are of the form `projects/`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getConfig( + params?: Params$Resource$Projects$Getconfig, + options?: MethodOptions): AxiosPromise; + getConfig( + params: Params$Resource$Projects$Getconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getConfig( + params: Params$Resource$Projects$Getconfig, + callback: BodyResponseCallback): void; + getConfig(callback: BodyResponseCallback): void; + getConfig( + paramsOrCallback?: Params$Resource$Projects$Getconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getconfig; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/config') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * sourcerepo.projects.updateConfig + * @desc Updates the Cloud Source Repositories configuration of the project. + * @alias sourcerepo.projects.updateConfig + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the requested project. Values are of the form `projects/`. + * @param {().UpdateProjectConfigRequest} 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 + */ + updateConfig( + params?: Params$Resource$Projects$Updateconfig, + options?: MethodOptions): AxiosPromise; + updateConfig( + params: Params$Resource$Projects$Updateconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateConfig( + params: Params$Resource$Projects$Updateconfig, + callback: BodyResponseCallback): void; + updateConfig(callback: BodyResponseCallback): void; + updateConfig( + paramsOrCallback?: Params$Resource$Projects$Updateconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Updateconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Updateconfig; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/config') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Getconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the requested project. Values are of the form + * `projects/`. + */ + name?: string; } + export interface Params$Resource$Projects$Updateconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the requested project. Values are of the form + * `projects/`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UpdateProjectConfigRequest; + } export class Resource$Projects$Repos { root: Sourcerepo; @@ -668,6 +907,72 @@ export namespace sourcerepo_v1 { } + /** + * sourcerepo.projects.repos.patch + * @desc Updates information about a repo. + * @alias sourcerepo.projects.repos.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the requested repository. Values are of the form `projects//repos/`. + * @param {().UpdateRepoRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Projects$Repos$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Repos$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Repos$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Repos$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Repos$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * sourcerepo.projects.repos.setIamPolicy * @desc Sets the access control policy on the specified resource. Replaces @@ -889,6 +1194,23 @@ export namespace sourcerepo_v1 { */ pageToken?: string; } + export interface Params$Resource$Projects$Repos$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the requested repository. Values are of the form + * `projects//repos/`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$UpdateRepoRequest; + } export interface Params$Resource$Projects$Repos$Setiampolicy { /** * Auth client or API Key for the request diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index 6ecee834233..6a3e4a9baca 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace spanner_v1 { * scalable relational database service. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const spanner = google.spanner('v1'); * * @namespace spanner @@ -53,12 +48,12 @@ export namespace spanner_v1 { */ export class Spanner { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/spectrum/v1explorer.ts b/src/apis/spectrum/v1explorer.ts index 1692feb40f5..4033592e714 100644 --- a/src/apis/spectrum/v1explorer.ts +++ b/src/apis/spectrum/v1explorer.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace spectrum_v1explorer { * API for spectrum-management functions. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const spectrum = google.spectrum('v1explorer'); * * @namespace spectrum @@ -52,12 +47,12 @@ export namespace spectrum_v1explorer { */ export class Spectrum { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; paws: Resource$Paws; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index 71d36856136..e6f8e3305b7 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace speech_v1 { * Converts audio to text by applying powerful neural network models. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const speech = google.speech('v1'); * * @namespace speech @@ -52,13 +47,13 @@ export namespace speech_v1 { */ export class Speech { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; speech: Resource$Speech; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/speech/v1beta1.ts b/src/apis/speech/v1beta1.ts index ba3c05cc2fc..c075042db7c 100644 --- a/src/apis/speech/v1beta1.ts +++ b/src/apis/speech/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace speech_v1beta1 { * Converts audio to text by applying powerful neural network models. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const speech = google.speech('v1beta1'); * * @namespace speech @@ -52,13 +47,13 @@ export namespace speech_v1beta1 { */ export class Speech { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; speech: Resource$Speech; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sqladmin/v1beta3.ts b/src/apis/sqladmin/v1beta3.ts index d6e59e4e81a..026215654dd 100644 --- a/src/apis/sqladmin/v1beta3.ts +++ b/src/apis/sqladmin/v1beta3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace sqladmin_v1beta3 { * MySQL databases. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const sqladmin = google.sqladmin('v1beta3'); * * @namespace sqladmin @@ -53,7 +48,7 @@ export namespace sqladmin_v1beta3 { */ export class Sqladmin { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; backupRuns: Resource$Backupruns; @@ -63,7 +58,7 @@ export namespace sqladmin_v1beta3 { sslCerts: Resource$Sslcerts; tiers: Resource$Tiers; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts index 7cc071ab83d..323e01d7b2a 100644 --- a/src/apis/sqladmin/v1beta4.ts +++ b/src/apis/sqladmin/v1beta4.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace sqladmin_v1beta4 { * MySQL databases. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const sqladmin = google.sqladmin('v1beta4'); * * @namespace sqladmin @@ -53,7 +48,7 @@ export namespace sqladmin_v1beta4 { */ export class Sqladmin { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; backupRuns: Resource$Backupruns; @@ -65,7 +60,7 @@ export namespace sqladmin_v1beta4 { tiers: Resource$Tiers; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); @@ -745,6 +740,20 @@ export namespace sqladmin_v1beta4 { */ nextPageToken?: string; } + /** + * Instances ListServerCas response. + */ + export interface Schema$InstancesListServerCasResponse { + activeVersion?: string; + /** + * List of server CA certificates for the instance. + */ + certs?: Schema$SslCert[]; + /** + * This is always sql#instancesListServerCas. + */ + kind?: string; + } /** * Database instance restore backup request. */ @@ -754,6 +763,15 @@ export namespace sqladmin_v1beta4 { */ restoreBackupContext?: Schema$RestoreBackupContext; } + /** + * Rotate Server CA request. + */ + export interface Schema$InstancesRotateServerCaRequest { + /** + * Contains details about the rotate server CA operation. + */ + rotateServerCaContext?: Schema$RotateServerCaContext; + } /** * Instance truncate log request. */ @@ -1084,6 +1102,21 @@ export namespace sqladmin_v1beta4 { */ kind?: string; } + /** + * Instance rotate server CA context. + */ + export interface Schema$RotateServerCaContext { + /** + * This is always sql#rotateServerCaContext. + */ + kind?: string; + /** + * The fingerprint of the next version to be rotated to. If left + * unspecified, will be rotated to the most recently added server CA + * version. + */ + nextVersion?: string; + } /** * Database instance settings. */ @@ -2465,6 +2498,80 @@ export namespace sqladmin_v1beta4 { } + /** + * sql.instances.addServerCa + * @desc Add a new trusted Certificate Authority (CA) version for the + * specified instance. Required to prepare for a certificate rotation. If a + * CA version was previously added but never used in a certificate rotation, + * this operation replaces that version. There can not be more than one CA + * version waiting to be rotated in. + * @alias sql.instances.addServerCa + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. + * @param {string} params.project Project ID of the project that contains the instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + addServerCa( + params?: Params$Resource$Instances$Addserverca, + options?: MethodOptions): AxiosPromise; + addServerCa( + params: Params$Resource$Instances$Addserverca, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addServerCa( + params: Params$Resource$Instances$Addserverca, + callback: BodyResponseCallback): void; + addServerCa(callback: BodyResponseCallback): void; + addServerCa( + paramsOrCallback?: Params$Resource$Instances$Addserverca| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Addserverca; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Addserverca; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * sql.instances.clone * @desc Creates a Cloud SQL instance as a clone of the source instance. The @@ -3053,6 +3160,88 @@ import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback< } + /** + * sql.instances.listServerCas + * @desc Lists all of the trusted Certificate Authorities (CAs) for the + * specified instance. There can be up to three CAs listed: the CA that was + * used to sign the certificate that is currently in use, a CA that has been + * added but not yet used to sign a certificate, and a CA used to sign a + * certificate that has previously rotated out. + * @alias sql.instances.listServerCas + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. + * @param {string} params.project Project ID of the project that contains the instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + listServerCas( + params?: Params$Resource$Instances$Listservercas, + options?: MethodOptions): + AxiosPromise; + listServerCas( + params: Params$Resource$Instances$Listservercas, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + listServerCas( + params: Params$Resource$Instances$Listservercas, + callback: BodyResponseCallback): + void; + listServerCas( + callback: BodyResponseCallback): + void; + listServerCas( + paramsOrCallback?: Params$Resource$Instances$Listservercas| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Listservercas; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Listservercas; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + /** * sql.instances.patch * @desc Updates settings of a Cloud SQL instance. Caution: This is not a @@ -3409,6 +3598,78 @@ import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback< } + /** + * sql.instances.rotateServerCa + * @desc Rotates the server certificate to one signed by the Certificate + * Authority (CA) version previously added with the addServerCA method. + * @alias sql.instances.rotateServerCa + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. + * @param {string} params.project Project ID of the project that contains the instance. + * @param {().InstancesRotateServerCaRequest} 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 + */ + rotateServerCa( + params?: Params$Resource$Instances$Rotateserverca, + options?: MethodOptions): AxiosPromise; + rotateServerCa( + params: Params$Resource$Instances$Rotateserverca, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rotateServerCa( + params: Params$Resource$Instances$Rotateserverca, + callback: BodyResponseCallback): void; + rotateServerCa(callback: BodyResponseCallback): void; + rotateServerCa( + paramsOrCallback?: Params$Resource$Instances$Rotateserverca| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Rotateserverca; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Rotateserverca; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * sql.instances.startReplica * @desc Starts the replication in the read replica instance. @@ -3690,6 +3951,21 @@ import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback< } } + export interface Params$Resource$Instances$Addserverca { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } export interface Params$Resource$Instances$Clone { /** * Auth client or API Key for the request @@ -3863,6 +4139,21 @@ import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback< */ project?: string; } + export interface Params$Resource$Instances$Listservercas { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } export interface Params$Resource$Instances$Patch { /** * Auth client or API Key for the request @@ -3948,6 +4239,26 @@ import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback< */ requestBody?: Schema$InstancesRestoreBackupRequest; } + export interface Params$Resource$Instances$Rotateserverca { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$InstancesRotateServerCaRequest; + } export interface Params$Resource$Instances$Startreplica { /** * Auth client or API Key for the request diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index b03f3101644..df22ae19fe7 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace storage_v1 { * Stores and retrieves potentially large, immutable data objects. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const storage = google.storage('v1'); * * @namespace storage @@ -52,7 +47,7 @@ export namespace storage_v1 { */ export class Storage { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -64,7 +59,7 @@ export namespace storage_v1 { objects: Resource$Objects; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storage/v1beta1.ts b/src/apis/storage/v1beta1.ts index cf1bd2ad4d3..24e426b0a13 100644 --- a/src/apis/storage/v1beta1.ts +++ b/src/apis/storage/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace storage_v1beta1 { * Lets you store and retrieve potentially-large, immutable data objects. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const storage = google.storage('v1beta1'); * * @namespace storage @@ -52,7 +47,7 @@ export namespace storage_v1beta1 { */ export class Storage { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -60,7 +55,7 @@ export namespace storage_v1beta1 { objectAccessControls: Resource$Objectaccesscontrols; objects: Resource$Objects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storage/v1beta2.ts b/src/apis/storage/v1beta2.ts index 9a678cc4862..758ca68ba6d 100644 --- a/src/apis/storage/v1beta2.ts +++ b/src/apis/storage/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace storage_v1beta2 { * Lets you store and retrieve potentially-large, immutable data objects. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const storage = google.storage('v1beta2'); * * @namespace storage @@ -52,7 +47,7 @@ export namespace storage_v1beta2 { */ export class Storage { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -62,7 +57,7 @@ export namespace storage_v1beta2 { objectAccessControls: Resource$Objectaccesscontrols; objects: Resource$Objects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index b116e715ae9..f158fcbc5ba 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace storagetransfer_v1 { * or between Google Cloud Storage buckets. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const storagetransfer = google.storagetransfer('v1'); * * @namespace storagetransfer @@ -53,14 +48,14 @@ export namespace storagetransfer_v1 { */ export class Storagetransfer { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; googleServiceAccounts: Resource$Googleserviceaccounts; transferJobs: Resource$Transferjobs; transferOperations: Resource$Transferoperations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 8f2d2e68f41..9ff0f057d4f 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace streetviewpublish_v1 { * connecting, and uploading user-generated Street View images. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const streetviewpublish = google.streetviewpublish('v1'); * * @namespace streetviewpublish @@ -54,13 +49,13 @@ export namespace streetviewpublish_v1 { */ export class Streetviewpublish { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; photo: Resource$Photo; photos: Resource$Photos; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/surveys/v2.ts b/src/apis/surveys/v2.ts index a351ad25778..d21a09f25dc 100644 --- a/src/apis/surveys/v2.ts +++ b/src/apis/surveys/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace surveys_v2 { * owns, and retrieves survey results and information about specified surveys. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const surveys = google.surveys('v2'); * * @namespace surveys @@ -53,13 +48,13 @@ export namespace surveys_v2 { */ export class Surveys { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; results: Resource$Results; surveys: Resource$Surveys; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tagmanager/v1.ts b/src/apis/tagmanager/v1.ts index 726c570e3b4..23ef29ecb12 100644 --- a/src/apis/tagmanager/v1.ts +++ b/src/apis/tagmanager/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace tagmanager_v1 { * Accesses Tag Manager accounts and containers. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const tagmanager = google.tagmanager('v1'); * * @namespace tagmanager @@ -52,12 +47,12 @@ export namespace tagmanager_v1 { */ export class Tagmanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index 45f6a2521bb..04d270ab0f1 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace tagmanager_v2 { * Accesses Tag Manager accounts and containers. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const tagmanager = google.tagmanager('v2'); * * @namespace tagmanager @@ -52,12 +47,12 @@ export namespace tagmanager_v2 { */ export class Tagmanager { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index 09042bbd314..956644e1064 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace tasks_v1 { * Lets you manage your tasks and task lists. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const tasks = google.tasks('v1'); * * @namespace tasks @@ -52,13 +47,13 @@ export namespace tasks_v1 { */ export class Tasks { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; tasklists: Resource$Tasklists; tasks: Resource$Tasks; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 6eb131ce16d..401c2d3987c 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace testing_v1 { * Google infrastructure. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const testing = google.testing('v1'); * * @namespace testing @@ -53,14 +48,14 @@ export namespace testing_v1 { */ export class Testing { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; applicationDetailService: Resource$Applicationdetailservice; projects: Resource$Projects; testEnvironmentCatalog: Resource$Testenvironmentcatalog; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/texttospeech/v1beta1.ts b/src/apis/texttospeech/v1beta1.ts index 1a29f885f7b..41e686e3dab 100644 --- a/src/apis/texttospeech/v1beta1.ts +++ b/src/apis/texttospeech/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace texttospeech_v1beta1 { * models. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const texttospeech = google.texttospeech('v1beta1'); * * @namespace texttospeech @@ -53,13 +48,13 @@ export namespace texttospeech_v1beta1 { */ export class Texttospeech { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; text: Resource$Text; voices: Resource$Voices; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index 01d0282b796..620dd5c0a54 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace toolresults_v1beta3 { * Reads and publishes results from Firebase Test Lab. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const toolresults = google.toolresults('v1beta3'); * * @namespace toolresults @@ -52,12 +47,12 @@ export namespace toolresults_v1beta3 { */ export class Toolresults { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 5b6153f1a77..6022ada98d3 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace tpu_v1alpha1 { * TPU API provides customers with access to Google TPU technology. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const tpu = google.tpu('v1alpha1'); * * @namespace tpu @@ -52,12 +47,12 @@ export namespace tpu_v1alpha1 { */ export class Tpu { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/translate/v2.ts b/src/apis/translate/v2.ts index c82116fd6ab..7e1be444e46 100644 --- a/src/apis/translate/v2.ts +++ b/src/apis/translate/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace translate_v2 { * Google Translate programmatically. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const translate = google.translate('v2'); * * @namespace translate @@ -53,14 +48,14 @@ export namespace translate_v2 { */ export class Translate { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; detections: Resource$Detections; languages: Resource$Languages; translations: Resource$Translations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/urlshortener/v1.ts b/src/apis/urlshortener/v1.ts index d16b1229ac5..2b7a25074e1 100644 --- a/src/apis/urlshortener/v1.ts +++ b/src/apis/urlshortener/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace urlshortener_v1 { * Lets you create, inspect, and manage goo.gl short URLs * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const urlshortener = google.urlshortener('v1'); * * @namespace urlshortener @@ -52,12 +47,12 @@ export namespace urlshortener_v1 { */ export class Urlshortener { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; url: Resource$Url; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index c3e94798900..9d3f2cad330 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace vault_v1 { * Archiving and eDiscovery for G Suite. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const vault = google.vault('v1'); * * @namespace vault @@ -52,12 +47,12 @@ export namespace vault_v1 { */ export class Vault { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; matters: Resource$Matters; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/v1.ts b/src/apis/videointelligence/v1.ts index ea86e531736..247e5ed42db 100644 --- a/src/apis/videointelligence/v1.ts +++ b/src/apis/videointelligence/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace videointelligence_v1 { * Cloud Video Intelligence API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const videointelligence = google.videointelligence('v1'); * * @namespace videointelligence @@ -52,13 +47,13 @@ export namespace videointelligence_v1 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; operations: Resource$Operations; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/v1beta1.ts b/src/apis/videointelligence/v1beta1.ts index 56bec5f5a08..8afe9849089 100644 --- a/src/apis/videointelligence/v1beta1.ts +++ b/src/apis/videointelligence/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace videointelligence_v1beta1 { * Cloud Video Intelligence API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const videointelligence = google.videointelligence('v1beta1'); * * @namespace videointelligence @@ -52,12 +47,12 @@ export namespace videointelligence_v1beta1 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/v1beta2.ts b/src/apis/videointelligence/v1beta2.ts index 93de7eb8fe0..12593f00e8c 100644 --- a/src/apis/videointelligence/v1beta2.ts +++ b/src/apis/videointelligence/v1beta2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace videointelligence_v1beta2 { * Cloud Video Intelligence API. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const videointelligence = google.videointelligence('v1beta2'); * * @namespace videointelligence @@ -52,12 +47,12 @@ export namespace videointelligence_v1beta2 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index 0604fd8d858..6ade473ee1d 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace vision_v1 { * of explicit content, into applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const vision = google.vision('v1'); * * @namespace vision @@ -54,14 +49,14 @@ export namespace vision_v1 { */ export class Vision { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; images: Resource$Images; locations: Resource$Locations; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index fd8c049f105..aef9e66fa64 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace vision_v1p1beta1 { * of explicit content, into applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const vision = google.vision('v1p1beta1'); * * @namespace vision @@ -54,12 +49,12 @@ export namespace vision_v1p1beta1 { */ export class Vision { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; images: Resource$Images; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index 04a24ba5aff..b947b01c661 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace vision_v1p2beta1 { * of explicit content, into applications. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const vision = google.vision('v1p2beta1'); * * @namespace vision @@ -54,13 +49,13 @@ export namespace vision_v1p2beta1 { */ export class Vision { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; files: Resource$Files; images: Resource$Images; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/webfonts/v1.ts b/src/apis/webfonts/v1.ts index 2272bc02ca3..0bb762f7dc5 100644 --- a/src/apis/webfonts/v1.ts +++ b/src/apis/webfonts/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -43,7 +38,7 @@ export namespace webfonts_v1 { * of supported script subsets). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const webfonts = google.webfonts('v1'); * * @namespace webfonts @@ -54,12 +49,12 @@ export namespace webfonts_v1 { */ export class Webfonts { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; webfonts: Resource$Webfonts; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/webmasters/v3.ts b/src/apis/webmasters/v3.ts index 8b6af4433db..7176e21fbdf 100644 --- a/src/apis/webmasters/v3.ts +++ b/src/apis/webmasters/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace webmasters_v3 { * View Google Search Console data for your verified sites. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const webmasters = google.webmasters('v3'); * * @namespace webmasters @@ -52,7 +47,7 @@ export namespace webmasters_v3 { */ export class Webmasters { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; searchanalytics: Resource$Searchanalytics; @@ -61,7 +56,7 @@ export namespace webmasters_v3 { urlcrawlerrorscounts: Resource$Urlcrawlerrorscounts; urlcrawlerrorssamples: Resource$Urlcrawlerrorssamples; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/websecurityscanner/v1alpha.ts b/src/apis/websecurityscanner/v1alpha.ts index c859d595786..f6074ced971 100644 --- a/src/apis/websecurityscanner/v1alpha.ts +++ b/src/apis/websecurityscanner/v1alpha.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace websecurityscanner_v1alpha { * Web Security Scanner API (under development). * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const websecurityscanner = google.websecurityscanner('v1alpha'); * * @namespace websecurityscanner @@ -52,12 +47,12 @@ export namespace websecurityscanner_v1alpha { */ export class Websecurityscanner { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index 261442cb75d..eece05c5421 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace youtube_v3 { * managing playlists, searching for content, and much more. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const youtube = google.youtube('v3'); * * @namespace youtube @@ -53,7 +48,7 @@ export namespace youtube_v3 { */ export class Youtube { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -83,7 +78,7 @@ export namespace youtube_v3 { videos: Resource$Videos; watermarks: Resource$Watermarks; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/v1.ts b/src/apis/youtubeAnalytics/v1.ts index 6ec6a91735a..00e00f6cf84 100644 --- a/src/apis/youtubeAnalytics/v1.ts +++ b/src/apis/youtubeAnalytics/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace youtubeAnalytics_v1 { * Retrieves your YouTube Analytics data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const youtubeAnalytics = google.youtubeAnalytics('v1'); * * @namespace youtubeAnalytics @@ -52,14 +47,14 @@ export namespace youtubeAnalytics_v1 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/v1beta1.ts b/src/apis/youtubeAnalytics/v1beta1.ts index 521ae907843..192fddfcd16 100644 --- a/src/apis/youtubeAnalytics/v1beta1.ts +++ b/src/apis/youtubeAnalytics/v1beta1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace youtubeAnalytics_v1beta1 { * Retrieves your YouTube Analytics data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const youtubeAnalytics = google.youtubeAnalytics('v1beta1'); * * @namespace youtubeAnalytics @@ -52,14 +47,14 @@ export namespace youtubeAnalytics_v1beta1 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/v2.ts b/src/apis/youtubeAnalytics/v2.ts index 46639caa2be..63fd21b304b 100644 --- a/src/apis/youtubeAnalytics/v2.ts +++ b/src/apis/youtubeAnalytics/v2.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -41,7 +36,7 @@ export namespace youtubeAnalytics_v2 { * Retrieves your YouTube Analytics data. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const youtubeAnalytics = google.youtubeAnalytics('v2'); * * @namespace youtubeAnalytics @@ -52,14 +47,14 @@ export namespace youtubeAnalytics_v2 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index 6b5039a3e4e..9b730bbf6ec 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -17,12 +17,7 @@ import {AxiosPromise} from 'axios'; import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; -import {GoogleApis} from '../..'; -import {BodyResponseCallback, createAPIRequest, GlobalOptions, MethodOptions} from '../../shared/src'; - - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; // tslint:disable: no-any // tslint:disable: class-name @@ -42,7 +37,7 @@ export namespace youtubereporting_v1 { * downloads the resulting bulk data reports in the form of CSV files. * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const youtubereporting = google.youtubereporting('v1'); * * @namespace youtubereporting @@ -53,14 +48,14 @@ export namespace youtubereporting_v1 { */ export class Youtubereporting { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; jobs: Resource$Jobs; media: Resource$Media; reportTypes: Resource$Reporttypes; - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/generator/templates/api-endpoint.njk b/src/generator/templates/api-endpoint.njk index c2d1b8cc10c..3a9229481f9 100644 --- a/src/generator/templates/api-endpoint.njk +++ b/src/generator/templates/api-endpoint.njk @@ -18,14 +18,10 @@ * limitations under the License. */ -import { GoogleApis } from '../..'; import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library'; -import { createAPIRequest, MethodOptions, GlobalOptions, BodyResponseCallback } from '../../src/shared'; +import { GoogleConfigurable, createAPIRequest, MethodOptions, GlobalOptions, BodyResponseCallback } from '../../shared/src'; import { AxiosPromise } from 'axios'; -// TODO: We will eventually get the `any` in here cleared out, but in the interim we -// want to turn on no-implicit-any. - // tslint:disable: no-any // tslint:disable: class-name // tslint:disable: variable-name @@ -50,7 +46,7 @@ export interface Options extends GlobalOptions { * {{ api.description | oneLine }} * * @example - * const google = require('googleapis'); + * const {google} = require('googleapis'); * const {{ api.name }} = google.{{ api.name }}('{{ api.version }}'); * * @namespace {{ api.name }} @@ -62,7 +58,7 @@ export interface Options extends GlobalOptions { export class {{ Name }} { _options: GlobalOptions; - google: GoogleApis; + google: GoogleConfigurable; root = this; {% if api.resources %} @@ -71,7 +67,7 @@ export class {{ Name }} { {% endfor %} {% endif %} - constructor(options: GlobalOptions, google: GoogleApis) { + constructor(options: GlobalOptions, google: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/test/test.path.ts b/test/test.path.ts index 88e67079bfd..14b1bd9cc7c 100644 --- a/test/test.path.ts +++ b/test/test.path.ts @@ -14,7 +14,6 @@ import assert from 'assert'; import {AxiosResponse} from 'axios'; import nock from 'nock'; -import * as url from 'url'; import {GoogleApis} from '../src'; import {APIEndpoint} from '../src/shared/src/api'; diff --git a/test/test.query.ts b/test/test.query.ts index 57370df9f18..f7088629e5d 100644 --- a/test/test.query.ts +++ b/test/test.query.ts @@ -13,7 +13,6 @@ import assert from 'assert'; import nock from 'nock'; -import * as url from 'url'; import {google, GoogleApis} from '../src'; import {APIEndpoint} from '../src/shared/src/api'; diff --git a/test/test.urlshortener.v1.ts b/test/test.urlshortener.v1.ts index fc83ec9ac8c..cb2c7dae33c 100644 --- a/test/test.urlshortener.v1.ts +++ b/test/test.urlshortener.v1.ts @@ -17,7 +17,6 @@ import * as path from 'path'; import * as url from 'url'; import {GoogleApis, urlshortener_v1} from '../src'; -import {APIEndpoint} from '../src/shared/src/api'; import {Utils} from './utils';