Skip to content

Commit 6817c39

Browse files
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
1 parent 8256d69 commit 6817c39

419 files changed

Lines changed: 60242 additions & 158083 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"license": "Apache-2.0",
1010
"dependencies": {
11-
"google-auth-library": "^3.0.0",
12-
"googleapis-common": "^0.7.0"
11+
"google-auth-library": "^4.0.0",
12+
"googleapis-common": "^2.0.0"
1313
},
1414
"files": [
1515
"build/src",
@@ -53,50 +53,50 @@
5353
"node": ">=8.10.0"
5454
},
5555
"devDependencies": {
56-
"@compodoc/compodoc": "^1.1.7",
56+
"@compodoc/compodoc": "^1.1.9",
5757
"@types/chai": "^4.1.7",
5858
"@types/execa": "^0.9.0",
5959
"@types/minimist": "^1.2.0",
6060
"@types/mkdirp": "^0.5.2",
61-
"@types/mocha": "^5.2.0",
61+
"@types/mocha": "^5.2.6",
6262
"@types/mv": "^2.1.0",
6363
"@types/ncp": "^2.0.1",
64-
"@types/nock": "^10.0.0",
65-
"@types/node": "^10.0.8",
66-
"@types/nunjucks": "^3.0.0",
67-
"@types/qs": "^6.5.1",
64+
"@types/nock": "^10.0.2",
65+
"@types/node": "^12.0.1",
66+
"@types/nunjucks": "^3.1.1",
67+
"@types/qs": "^6.5.3",
6868
"@types/rimraf": "^2.0.2",
6969
"@types/source-map-support": "^0.5.0",
7070
"@types/tmp": "^0.1.0",
7171
"@types/url-template": "^2.0.28",
7272
"assert-rejects": "^1.0.0",
7373
"chai": "^4.2.0",
74-
"codecov": "^3.0.2",
75-
"eslint": "^5.6.0",
76-
"eslint-config-prettier": "^4.0.0",
77-
"eslint-plugin-node": "^9.0.0",
78-
"eslint-plugin-prettier": "^3.0.0",
74+
"codecov": "^3.4.0",
75+
"eslint": "^5.16.0",
76+
"eslint-config-prettier": "^4.2.0",
77+
"eslint-plugin-node": "^9.0.1",
78+
"eslint-plugin-prettier": "^3.1.0",
7979
"execa": "^1.0.0",
8080
"gts": "^1.0.0",
81-
"hard-rejection": "^2.0.0",
81+
"hard-rejection": "^2.1.0",
8282
"intelli-espower-loader": "^1.0.1",
8383
"js-green-licenses": "^0.5.0",
8484
"minimist": "^1.2.0",
8585
"mkdirp": "^0.5.1",
86-
"mocha": "^6.0.0",
86+
"mocha": "^6.1.4",
8787
"mv": "^2.1.1",
8888
"ncp": "^2.0.0",
89-
"nock": "^10.0.0",
90-
"nunjucks": "^3.1.2",
91-
"nyc": "^14.0.0",
92-
"opn": "^5.3.0",
89+
"nock": "^10.0.6",
90+
"nunjucks": "^3.2.0",
91+
"nyc": "^14.1.1",
92+
"open": "^6.3.0",
9393
"p-queue": "^5.0.0",
94-
"prettier": "^1.14.2",
95-
"rimraf": "^2.6.2",
94+
"prettier": "^1.17.1",
95+
"rimraf": "^2.6.3",
9696
"server-destroy": "^1.0.1",
97-
"source-map-support": "^0.5.5",
97+
"source-map-support": "^0.5.12",
9898
"tmp": "^0.1.0",
99-
"typescript": "~3.4.0",
100-
"linkinator": "^1.1.2"
99+
"typescript": "~3.4.5",
100+
"linkinator": "^1.4.2"
101101
}
102102
}

samples/drive/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// [START main_body]
1717
const {google} = require('googleapis');
1818
const express = require('express');
19-
const opn = require('opn');
19+
const opn = require('open');
2020
const path = require('path');
2121
const fs = require('fs');
2222

samples/oauth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const fs = require('fs');
1717
const path = require('path');
1818
const http = require('http');
1919
const url = require('url');
20-
const opn = require('opn');
20+
const opn = require('open');
2121
const destroyer = require('server-destroy');
2222

2323
const {google} = require('googleapis');

samples/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"test": "mocha ../build/test/samples"
1111
},
1212
"dependencies": {
13-
"axios": "^0.18.0",
14-
"express": "^4.16.3",
13+
"express": "^4.16.4",
1514
"googleapis": "^39.2.0",
1615
"nconf": "^0.10.0",
17-
"opn": "^5.3.0",
16+
"open": "^6.3.0",
1817
"server-destroy": "^1.0.1",
19-
"uuid": "^3.2.1"
18+
"uuid": "^3.3.2"
2019
},
2120
"devDependencies": {
22-
"mocha": "^6.0.0"
21+
"mocha": "^6.1.4"
2322
}
2423
}

samples/sampleclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const {google} = require('googleapis');
2121
const http = require('http');
2222
const url = require('url');
23-
const opn = require('opn');
23+
const opn = require('open');
2424
const destroyer = require('server-destroy');
2525
const fs = require('fs');
2626
const path = require('path');

samples/sheets/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// [START main_body]
1717
const {google} = require('googleapis');
1818
const express = require('express');
19-
const opn = require('opn');
19+
const opn = require('open');
2020
const path = require('path');
2121
const fs = require('fs');
2222

src/apis/abusiveexperiencereport/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
1919
},
2020
"engines": {
21-
"node": ">=6.0.0"
21+
"node": ">=8.0.0"
2222
},
2323
"scripts": {
2424
"fix": "gts fix",
@@ -29,15 +29,15 @@
2929
"webpack": "webpack"
3030
},
3131
"dependencies": {
32-
"googleapis-common": "^0.7.0"
32+
"googleapis-common": "^2.0.0"
3333
},
3434
"devDependencies": {
3535
"gts": "^1.0.0",
3636
"null-loader": "^1.0.0",
3737
"ts-loader": "^6.0.0",
38-
"typedoc": "^0.14.0",
39-
"typescript": "~3.4.0",
40-
"webpack": "^4.28.4",
41-
"webpack-cli": "^3.2.1"
38+
"typedoc": "^0.14.2",
39+
"typescript": "~3.4.5",
40+
"webpack": "^4.31.0",
41+
"webpack-cli": "^3.3.2"
4242
}
4343
}

src/apis/abusiveexperiencereport/v1.ts

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {GaxiosPromise} from 'gaxios';
1817
import {
19-
Compute,
20-
JWT,
2118
OAuth2Client,
19+
JWT,
20+
Compute,
2221
UserRefreshClient,
2322
} from 'google-auth-library';
2423
import {
25-
APIRequestContext,
26-
BodyResponseCallback,
27-
createAPIRequest,
28-
GlobalOptions,
2924
GoogleConfigurable,
25+
createAPIRequest,
3026
MethodOptions,
27+
GlobalOptions,
28+
BodyResponseCallback,
29+
APIRequestContext,
3130
} from 'googleapis-common';
31+
import {GaxiosPromise} from 'gaxios';
3232

3333
// tslint:disable: no-any
3434
// tslint:disable: class-name
@@ -63,9 +63,7 @@ export namespace abusiveexperiencereport_v1 {
6363
*/
6464
fields?: string;
6565
/**
66-
* API key. Your API key identifies your project and provides you with API
67-
* access, quota, and reports. Required unless you provide an OAuth 2.0
68-
* token.
66+
* 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.
6967
*/
7068
key?: string;
7169
/**
@@ -77,9 +75,7 @@ export namespace abusiveexperiencereport_v1 {
7775
*/
7876
prettyPrint?: boolean;
7977
/**
80-
* Available to use for quota purposes for server-side applications. Can be
81-
* any arbitrary string assigned to a user, but should not exceed 40
82-
* characters.
78+
* 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.
8379
*/
8480
quotaUser?: string;
8581
/**
@@ -95,8 +91,7 @@ export namespace abusiveexperiencereport_v1 {
9591
/**
9692
* Abusive Experience Report API
9793
*
98-
* Views Abusive Experience Report data, and gets a list of sites that have a
99-
* significant number of abusive experiences.
94+
* Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.
10095
*
10196
* @example
10297
* const {google} = require('googleapis');
@@ -114,7 +109,10 @@ export namespace abusiveexperiencereport_v1 {
114109
violatingSites: Resource$Violatingsites;
115110

116111
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
117-
this.context = {_options: options || {}, google};
112+
this.context = {
113+
_options: options || {},
114+
google,
115+
};
118116

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

251249
/**
252-
* The required site name. This is the site property whose abusive
253-
* experiences have been reviewed, and it must be URL-encoded. For example,
254-
* sites/https%3A%2F%2Fwww.google.com. The server will return an error of
255-
* BAD_REQUEST if this field is not filled in. Note that if the site
256-
* property is not yet verified in Search Console, the reportUrl field
257-
* returned by the API will lead to the verification page, prompting the
258-
* user to go through that process before they can gain access to the
259-
* Abusive Experience Report.
250+
* 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.
260251
*/
261252
name?: string;
262253
}

src/apis/acceleratedmobilepageurl/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
1919
},
2020
"engines": {
21-
"node": ">=6.0.0"
21+
"node": ">=8.0.0"
2222
},
2323
"scripts": {
2424
"fix": "gts fix",
@@ -29,7 +29,7 @@
2929
"webpack": "webpack"
3030
},
3131
"dependencies": {
32-
"googleapis-common": "^0.7.0"
32+
"googleapis-common": "^2.0.0"
3333
},
3434
"devDependencies": {
3535
"gts": "^1.0.0",

src/apis/acceleratedmobilepageurl/v1.ts

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {GaxiosPromise} from 'gaxios';
1817
import {
19-
Compute,
20-
JWT,
2118
OAuth2Client,
19+
JWT,
20+
Compute,
2221
UserRefreshClient,
2322
} from 'google-auth-library';
2423
import {
25-
APIRequestContext,
26-
BodyResponseCallback,
27-
createAPIRequest,
28-
GlobalOptions,
2924
GoogleConfigurable,
25+
createAPIRequest,
3026
MethodOptions,
27+
GlobalOptions,
28+
BodyResponseCallback,
29+
APIRequestContext,
3130
} from 'googleapis-common';
31+
import {GaxiosPromise} from 'gaxios';
3232

3333
// tslint:disable: no-any
3434
// tslint:disable: class-name
@@ -63,9 +63,7 @@ export namespace acceleratedmobilepageurl_v1 {
6363
*/
6464
fields?: string;
6565
/**
66-
* API key. Your API key identifies your project and provides you with API
67-
* access, quota, and reports. Required unless you provide an OAuth 2.0
68-
* token.
66+
* 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.
6967
*/
7068
key?: string;
7169
/**
@@ -77,9 +75,7 @@ export namespace acceleratedmobilepageurl_v1 {
7775
*/
7876
prettyPrint?: boolean;
7977
/**
80-
* Available to use for quota purposes for server-side applications. Can be
81-
* any arbitrary string assigned to a user, but should not exceed 40
82-
* characters.
78+
* 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.
8379
*/
8480
quotaUser?: string;
8581
/**
@@ -95,8 +91,7 @@ export namespace acceleratedmobilepageurl_v1 {
9591
/**
9692
* Accelerated Mobile Pages (AMP) URL API
9793
*
98-
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given
99-
* list of public URL(s).
94+
* Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
10095
*
10196
* @example
10297
* const {google} = require('googleapis');
@@ -113,7 +108,10 @@ export namespace acceleratedmobilepageurl_v1 {
113108
ampUrls: Resource$Ampurls;
114109

115110
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
116-
this.context = {_options: options || {}, google};
111+
this.context = {
112+
_options: options || {},
113+
google,
114+
};
117115

118116
this.ampUrls = new Resource$Ampurls(this.context);
119117
}
@@ -128,8 +126,7 @@ export namespace acceleratedmobilepageurl_v1 {
128126
*/
129127
ampUrl?: string;
130128
/**
131-
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
132-
* the cached document in the Google AMP Cache.
129+
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.
133130
*/
134131
cdnAmpUrl?: string;
135132
/**
@@ -163,9 +160,7 @@ export namespace acceleratedmobilepageurl_v1 {
163160
*/
164161
lookupStrategy?: string;
165162
/**
166-
* List of URLs to look up for the paired AMP URLs. The URLs are
167-
* case-sensitive. Up to 50 URLs per lookup (see [Usage
168-
* Limits](/amp/cache/reference/limits)).
163+
* 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)).
169164
*/
170165
urls?: string[];
171166
}
@@ -174,10 +169,7 @@ export namespace acceleratedmobilepageurl_v1 {
174169
*/
175170
export interface Schema$BatchGetAmpUrlsResponse {
176171
/**
177-
* For each URL in BatchAmpUrlsRequest, the URL response. The response might
178-
* not be in the same order as URLs in the batch request. If
179-
* BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only
180-
* once.
172+
* 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.
181173
*/
182174
ampUrls?: Schema$AmpUrl[];
183175
/**
@@ -194,8 +186,7 @@ export namespace acceleratedmobilepageurl_v1 {
194186

195187
/**
196188
* acceleratedmobilepageurl.ampUrls.batchGet
197-
* @desc Returns AMP URL(s) and equivalent [AMP Cache
198-
* URL(s)](/amp/cache/overview#amp-cache-url-format).
189+
* @desc Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
199190
* @alias acceleratedmobilepageurl.ampUrls.batchGet
200191
* @memberOf! ()
201192
*

0 commit comments

Comments
 (0)