Skip to content

Commit

Permalink
refactor(generator): clean up imports in the generator (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed May 15, 2018
1 parent 2fef1ae commit 2d8c8a5
Show file tree
Hide file tree
Showing 202 changed files with 1,541 additions and 1,894 deletions.
13 changes: 4 additions & 9 deletions src/apis/abusiveexperiencereport/v1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/acceleratedmobilepageurl/v1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangebuyer/v1.2.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangebuyer/v1.3.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -54,7 +49,7 @@ export namespace adexchangebuyer_v1_3 {
*/
export class Adexchangebuyer {
_options: GlobalOptions;
google: GoogleApis;
google: GoogleConfigurable;
root = this;

accounts: Resource$Accounts;
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangebuyer/v1.4.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -54,7 +49,7 @@ export namespace adexchangebuyer_v1_4 {
*/
export class Adexchangebuyer {
_options: GlobalOptions;
google: GoogleApis;
google: GoogleConfigurable;
root = this;

accounts: Resource$Accounts;
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangebuyer2/v2beta1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangeseller/v1.1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -52,7 +47,7 @@ export namespace adexchangeseller_v1_1 {
*/
export class Adexchangeseller {
_options: GlobalOptions;
google: GoogleApis;
google: GoogleConfigurable;
root = this;

accounts: Resource$Accounts;
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangeseller/v1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -52,7 +47,7 @@ export namespace adexchangeseller_v1 {
*/
export class Adexchangeseller {
_options: GlobalOptions;
google: GoogleApis;
google: GoogleConfigurable;
root = this;

adclients: Resource$Adclients;
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexchangeseller/v2.0.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down
13 changes: 4 additions & 9 deletions src/apis/adexperiencereport/v1.ts
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 2d8c8a5

Please sign in to comment.