Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat!: run the generator (#1709)
BREAKING CHANGE: This release has a few breaking changes.
- Node.js 8.x is now the minimum required version
- The healthcare/v1alpha API has been removed
- Uses google-auth-library 4.0
  • Loading branch information
JustinBeckwith committed May 13, 2019
1 parent 8256d69 commit 6817c39
Show file tree
Hide file tree
Showing 419 changed files with 60,242 additions and 158,083 deletions.
48 changes: 24 additions & 24 deletions package.json
Expand Up @@ -8,8 +8,8 @@
},
"license": "Apache-2.0",
"dependencies": {
"google-auth-library": "^3.0.0",
"googleapis-common": "^0.7.0"
"google-auth-library": "^4.0.0",
"googleapis-common": "^2.0.0"
},
"files": [
"build/src",
Expand Down Expand Up @@ -53,50 +53,50 @@
"node": ">=8.10.0"
},
"devDependencies": {
"@compodoc/compodoc": "^1.1.7",
"@compodoc/compodoc": "^1.1.9",
"@types/chai": "^4.1.7",
"@types/execa": "^0.9.0",
"@types/minimist": "^1.2.0",
"@types/mkdirp": "^0.5.2",
"@types/mocha": "^5.2.0",
"@types/mocha": "^5.2.6",
"@types/mv": "^2.1.0",
"@types/ncp": "^2.0.1",
"@types/nock": "^10.0.0",
"@types/node": "^10.0.8",
"@types/nunjucks": "^3.0.0",
"@types/qs": "^6.5.1",
"@types/nock": "^10.0.2",
"@types/node": "^12.0.1",
"@types/nunjucks": "^3.1.1",
"@types/qs": "^6.5.3",
"@types/rimraf": "^2.0.2",
"@types/source-map-support": "^0.5.0",
"@types/tmp": "^0.1.0",
"@types/url-template": "^2.0.28",
"assert-rejects": "^1.0.0",
"chai": "^4.2.0",
"codecov": "^3.0.2",
"eslint": "^5.6.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-prettier": "^3.0.0",
"codecov": "^3.4.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prettier": "^3.1.0",
"execa": "^1.0.0",
"gts": "^1.0.0",
"hard-rejection": "^2.0.0",
"hard-rejection": "^2.1.0",
"intelli-espower-loader": "^1.0.1",
"js-green-licenses": "^0.5.0",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"mocha": "^6.0.0",
"mocha": "^6.1.4",
"mv": "^2.1.1",
"ncp": "^2.0.0",
"nock": "^10.0.0",
"nunjucks": "^3.1.2",
"nyc": "^14.0.0",
"opn": "^5.3.0",
"nock": "^10.0.6",
"nunjucks": "^3.2.0",
"nyc": "^14.1.1",
"open": "^6.3.0",
"p-queue": "^5.0.0",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"prettier": "^1.17.1",
"rimraf": "^2.6.3",
"server-destroy": "^1.0.1",
"source-map-support": "^0.5.5",
"source-map-support": "^0.5.12",
"tmp": "^0.1.0",
"typescript": "~3.4.0",
"linkinator": "^1.1.2"
"typescript": "~3.4.5",
"linkinator": "^1.4.2"
}
}
2 changes: 1 addition & 1 deletion samples/drive/quickstart.js
Expand Up @@ -16,7 +16,7 @@
// [START main_body]
const {google} = require('googleapis');
const express = require('express');
const opn = require('opn');
const opn = require('open');
const path = require('path');
const fs = require('fs');

Expand Down
2 changes: 1 addition & 1 deletion samples/oauth2.js
Expand Up @@ -17,7 +17,7 @@ const fs = require('fs');
const path = require('path');
const http = require('http');
const url = require('url');
const opn = require('opn');
const opn = require('open');
const destroyer = require('server-destroy');

const {google} = require('googleapis');
Expand Down
9 changes: 4 additions & 5 deletions samples/package.json
Expand Up @@ -10,15 +10,14 @@
"test": "mocha ../build/test/samples"
},
"dependencies": {
"axios": "^0.18.0",
"express": "^4.16.3",
"express": "^4.16.4",
"googleapis": "^39.2.0",
"nconf": "^0.10.0",
"opn": "^5.3.0",
"open": "^6.3.0",
"server-destroy": "^1.0.1",
"uuid": "^3.2.1"
"uuid": "^3.3.2"
},
"devDependencies": {
"mocha": "^6.0.0"
"mocha": "^6.1.4"
}
}
2 changes: 1 addition & 1 deletion samples/sampleclient.js
Expand Up @@ -20,7 +20,7 @@
const {google} = require('googleapis');
const http = require('http');
const url = require('url');
const opn = require('opn');
const opn = require('open');
const destroyer = require('server-destroy');
const fs = require('fs');
const path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion samples/sheets/quickstart.js
Expand Up @@ -16,7 +16,7 @@
// [START main_body]
const {google} = require('googleapis');
const express = require('express');
const opn = require('opn');
const opn = require('open');
const path = require('path');
const fs = require('fs');

Expand Down
12 changes: 6 additions & 6 deletions src/apis/abusiveexperiencereport/package.json
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
},
"engines": {
"node": ">=6.0.0"
"node": ">=8.0.0"
},
"scripts": {
"fix": "gts fix",
Expand All @@ -29,15 +29,15 @@
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^0.7.0"
"googleapis-common": "^2.0.0"
},
"devDependencies": {
"gts": "^1.0.0",
"null-loader": "^1.0.0",
"ts-loader": "^6.0.0",
"typedoc": "^0.14.0",
"typescript": "~3.4.0",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
"typedoc": "^0.14.2",
"typescript": "~3.4.5",
"webpack": "^4.31.0",
"webpack-cli": "^3.3.2"
}
}
39 changes: 15 additions & 24 deletions src/apis/abusiveexperiencereport/v1.ts
Expand Up @@ -14,21 +14,21 @@
* limitations under the License.
*/

import {GaxiosPromise} from 'gaxios';
import {
Compute,
JWT,
OAuth2Client,
JWT,
Compute,
UserRefreshClient,
} from 'google-auth-library';
import {
APIRequestContext,
BodyResponseCallback,
createAPIRequest,
GlobalOptions,
GoogleConfigurable,
createAPIRequest,
MethodOptions,
GlobalOptions,
BodyResponseCallback,
APIRequestContext,
} from 'googleapis-common';
import {GaxiosPromise} from 'gaxios';

// tslint:disable: no-any
// tslint:disable: class-name
Expand Down Expand Up @@ -63,9 +63,7 @@ export namespace abusiveexperiencereport_v1 {
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API
* access, quota, and reports. Required unless you provide an OAuth 2.0
* token.
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
Expand All @@ -77,9 +75,7 @@ export namespace abusiveexperiencereport_v1 {
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be
* any arbitrary string assigned to a user, but should not exceed 40
* characters.
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
Expand All @@ -95,8 +91,7 @@ export namespace abusiveexperiencereport_v1 {
/**
* Abusive Experience Report API
*
* Views Abusive Experience Report data, and gets a list of sites that have a
* significant number of abusive experiences.
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
*
* @example
* const {google} = require('googleapis');
Expand All @@ -114,7 +109,10 @@ export namespace abusiveexperiencereport_v1 {
violatingSites: Resource$Violatingsites;

constructor(options: GlobalOptions, google?: GoogleConfigurable) {
this.context = {_options: options || {}, google};
this.context = {
_options: options || {},
google,
};

this.sites = new Resource$Sites(this.context);
this.violatingSites = new Resource$Violatingsites(this.context);
Expand Down Expand Up @@ -249,14 +247,7 @@ export namespace abusiveexperiencereport_v1 {
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;

/**
* The required site name. This is the site property whose abusive
* experiences have been reviewed, and it must be URL-encoded. For example,
* sites/https%3A%2F%2Fwww.google.com. The server will return an error of
* BAD_REQUEST if this field is not filled in. Note that if the site
* property is not yet verified in Search Console, the reportUrl field
* returned by the API will lead to the verification page, prompting the
* user to go through that process before they can gain access to the
* Abusive Experience Report.
* The required site name. This is the site property whose abusive experiences have been reviewed, and it must be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Abusive Experience Report.
*/
name?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions src/apis/acceleratedmobilepageurl/package.json
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
},
"engines": {
"node": ">=6.0.0"
"node": ">=8.0.0"
},
"scripts": {
"fix": "gts fix",
Expand All @@ -29,7 +29,7 @@
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^0.7.0"
"googleapis-common": "^2.0.0"
},
"devDependencies": {
"gts": "^1.0.0",
Expand Down
45 changes: 18 additions & 27 deletions src/apis/acceleratedmobilepageurl/v1.ts
Expand Up @@ -14,21 +14,21 @@
* limitations under the License.
*/

import {GaxiosPromise} from 'gaxios';
import {
Compute,
JWT,
OAuth2Client,
JWT,
Compute,
UserRefreshClient,
} from 'google-auth-library';
import {
APIRequestContext,
BodyResponseCallback,
createAPIRequest,
GlobalOptions,
GoogleConfigurable,
createAPIRequest,
MethodOptions,
GlobalOptions,
BodyResponseCallback,
APIRequestContext,
} from 'googleapis-common';
import {GaxiosPromise} from 'gaxios';

// tslint:disable: no-any
// tslint:disable: class-name
Expand Down Expand Up @@ -63,9 +63,7 @@ export namespace acceleratedmobilepageurl_v1 {
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API
* access, quota, and reports. Required unless you provide an OAuth 2.0
* token.
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
Expand All @@ -77,9 +75,7 @@ export namespace acceleratedmobilepageurl_v1 {
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be
* any arbitrary string assigned to a user, but should not exceed 40
* characters.
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
Expand All @@ -95,8 +91,7 @@ export namespace acceleratedmobilepageurl_v1 {
/**
* Accelerated Mobile Pages (AMP) URL API
*
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given
* list of public URL(s).
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
*
* @example
* const {google} = require('googleapis');
Expand All @@ -113,7 +108,10 @@ export namespace acceleratedmobilepageurl_v1 {
ampUrls: Resource$Ampurls;

constructor(options: GlobalOptions, google?: GoogleConfigurable) {
this.context = {_options: options || {}, google};
this.context = {
_options: options || {},
google,
};

this.ampUrls = new Resource$Ampurls(this.context);
}
Expand All @@ -128,8 +126,7 @@ export namespace acceleratedmobilepageurl_v1 {
*/
ampUrl?: string;
/**
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
* the cached document in the Google AMP Cache.
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.
*/
cdnAmpUrl?: string;
/**
Expand Down Expand Up @@ -163,9 +160,7 @@ export namespace acceleratedmobilepageurl_v1 {
*/
lookupStrategy?: string;
/**
* List of URLs to look up for the paired AMP URLs. The URLs are
* case-sensitive. Up to 50 URLs per lookup (see [Usage
* Limits](/amp/cache/reference/limits)).
* List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see [Usage Limits](/amp/cache/reference/limits)).
*/
urls?: string[];
}
Expand All @@ -174,10 +169,7 @@ export namespace acceleratedmobilepageurl_v1 {
*/
export interface Schema$BatchGetAmpUrlsResponse {
/**
* For each URL in BatchAmpUrlsRequest, the URL response. The response might
* not be in the same order as URLs in the batch request. If
* BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only
* once.
* For each URL in BatchAmpUrlsRequest, the URL response. The response might not be in the same order as URLs in the batch request. If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only once.
*/
ampUrls?: Schema$AmpUrl[];
/**
Expand All @@ -194,8 +186,7 @@ export namespace acceleratedmobilepageurl_v1 {

/**
* acceleratedmobilepageurl.ampUrls.batchGet
* @desc Returns AMP URL(s) and equivalent [AMP Cache
* URL(s)](/amp/cache/overview#amp-cache-url-format).
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
* @alias acceleratedmobilepageurl.ampUrls.batchGet
* @memberOf! ()
*
Expand Down

0 comments on commit 6817c39

Please sign in to comment.