@googleapis/siteverification 2.0.5 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/siteverification-v4.0.0...siteverification-v4.0.1) (2025-07-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **siteVerification:** update the API ([5db7e0a](https://github.com/googleapis/google-api-nodejs-client/commit/5db7e0a2cb2d5f039e925f323cd0d2d0b525106b))
9
+ * **siteVerification:** update the API ([6a6a70f](https://github.com/googleapis/google-api-nodejs-client/commit/6a6a70fb4263d907502f8edb14bc3f71f2f5f866))
10
+
11
+ ## [4.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/siteverification-v3.0.1...siteverification-v4.0.0) (2025-06-30)
12
+
13
+
14
+ ### ⚠ BREAKING CHANGES
15
+
16
+ * upgrade to node 18
17
+
18
+ ### Features
19
+
20
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
26
+ * **siteVerification:** update the API ([6a6a70f](https://github.com/googleapis/google-api-nodejs-client/commit/6a6a70fb4263d907502f8edb14bc3f71f2f5f866))
27
+
28
+ ## [3.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/siteverification-v3.0.0...siteverification-v3.0.1) (2025-06-04)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
34
+
35
+ ## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/siteverification-v2.0.5...siteverification-v3.0.0) (2025-05-29)
36
+
37
+
38
+ ### ⚠ BREAKING CHANGES
39
+
40
+ * upgrade to node 18
41
+
42
+ ### Features
43
+
44
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
45
+
3
46
  ## [2.0.5](https://github.com/googleapis/google-api-nodejs-client/compare/siteverification-v2.0.4...siteverification-v2.0.5) (2024-05-02)
4
47
 
5
48
 
package/build/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export declare function siteVerification(options: siteVerification_v1.Options):
9
9
  declare const auth: AuthPlus;
10
10
  export { auth };
11
11
  export { siteVerification_v1 };
12
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
12
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAyC;AAqBjC,oGArBA,wBAAmB,OAqBA;AAnBd,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,wBAAmB,CAAC,gBAAgB;CACzC,CAAC;AAQF,SAAgB,gBAAgB,CAE9B,gBAAoD;IAEpD,OAAO,IAAA,0BAAM,EAAI,kBAAkB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC;AALD,4CAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAyC;AAqBjC,oGArBA,wBAAmB,OAqBA;AAnBd,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,wBAAmB,CAAC,gBAAgB;CACzC,CAAC;AAQF,SAAgB,gBAAgB,CAE9B,gBAAoD;IAEpD,OAAO,IAAA,0BAAM,EAAI,kBAAkB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC;AALD,4CAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace siteVerification_v1 {
5
5
  export interface Options extends GlobalOptions {
@@ -106,98 +106,463 @@ export declare namespace siteVerification_v1 {
106
106
  constructor(context: APIRequestContext);
107
107
  /**
108
108
  * Relinquish ownership of a website or domain.
109
+ * @example
110
+ * ```js
111
+ * // Before running the sample:
112
+ * // - Enable the API at:
113
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
114
+ * // - Login into gcloud by running:
115
+ * // ```sh
116
+ * // $ gcloud auth application-default login
117
+ * // ```
118
+ * // - Install the npm module by running:
119
+ * // ```sh
120
+ * // $ npm install googleapis
121
+ * // ```
122
+ *
123
+ * const {google} = require('googleapis');
124
+ * const siteVerification = google.siteVerification('v1');
125
+ *
126
+ * async function main() {
127
+ * const auth = new google.auth.GoogleAuth({
128
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
129
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
130
+ * });
131
+ *
132
+ * // Acquire an auth client, and bind it to all future calls
133
+ * const authClient = await auth.getClient();
134
+ * google.options({auth: authClient});
135
+ *
136
+ * // Do the magic
137
+ * const res = await siteVerification.webResource.delete({
138
+ * // The id of a verified site or domain.
139
+ * id: 'placeholder-value',
140
+ * });
141
+ * console.log(res.data);
142
+ * }
143
+ *
144
+ * main().catch(e => {
145
+ * console.error(e);
146
+ * throw e;
147
+ * });
148
+ *
149
+ * ```
109
150
  *
110
151
  * @param params - Parameters for request
111
152
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
112
153
  * @param callback - Optional callback that handles the response.
113
154
  * @returns A promise if used with async/await, or void if used with a callback.
114
155
  */
115
- delete(params: Params$Resource$Webresource$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
116
- delete(params?: Params$Resource$Webresource$Delete, options?: MethodOptions): GaxiosPromise<void>;
156
+ delete(params: Params$Resource$Webresource$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
157
+ delete(params?: Params$Resource$Webresource$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<void>>;
117
158
  delete(params: Params$Resource$Webresource$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
118
159
  delete(params: Params$Resource$Webresource$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
119
160
  delete(params: Params$Resource$Webresource$Delete, callback: BodyResponseCallback<void>): void;
120
161
  delete(callback: BodyResponseCallback<void>): void;
121
162
  /**
122
163
  * Get the most current data for a website or domain.
164
+ * @example
165
+ * ```js
166
+ * // Before running the sample:
167
+ * // - Enable the API at:
168
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
169
+ * // - Login into gcloud by running:
170
+ * // ```sh
171
+ * // $ gcloud auth application-default login
172
+ * // ```
173
+ * // - Install the npm module by running:
174
+ * // ```sh
175
+ * // $ npm install googleapis
176
+ * // ```
177
+ *
178
+ * const {google} = require('googleapis');
179
+ * const siteVerification = google.siteVerification('v1');
180
+ *
181
+ * async function main() {
182
+ * const auth = new google.auth.GoogleAuth({
183
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
184
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
185
+ * });
186
+ *
187
+ * // Acquire an auth client, and bind it to all future calls
188
+ * const authClient = await auth.getClient();
189
+ * google.options({auth: authClient});
190
+ *
191
+ * // Do the magic
192
+ * const res = await siteVerification.webResource.get({
193
+ * // The id of a verified site or domain.
194
+ * id: 'placeholder-value',
195
+ * });
196
+ * console.log(res.data);
197
+ *
198
+ * // Example response
199
+ * // {
200
+ * // "id": "my_id",
201
+ * // "owners": [],
202
+ * // "site": {}
203
+ * // }
204
+ * }
205
+ *
206
+ * main().catch(e => {
207
+ * console.error(e);
208
+ * throw e;
209
+ * });
210
+ *
211
+ * ```
123
212
  *
124
213
  * @param params - Parameters for request
125
214
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
126
215
  * @param callback - Optional callback that handles the response.
127
216
  * @returns A promise if used with async/await, or void if used with a callback.
128
217
  */
129
- get(params: Params$Resource$Webresource$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
130
- get(params?: Params$Resource$Webresource$Get, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
218
+ get(params: Params$Resource$Webresource$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
219
+ get(params?: Params$Resource$Webresource$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>>;
131
220
  get(params: Params$Resource$Webresource$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
132
221
  get(params: Params$Resource$Webresource$Get, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceResource>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
133
222
  get(params: Params$Resource$Webresource$Get, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
134
223
  get(callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
135
224
  /**
136
225
  * Get a verification token for placing on a website or domain.
226
+ * @example
227
+ * ```js
228
+ * // Before running the sample:
229
+ * // - Enable the API at:
230
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
231
+ * // - Login into gcloud by running:
232
+ * // ```sh
233
+ * // $ gcloud auth application-default login
234
+ * // ```
235
+ * // - Install the npm module by running:
236
+ * // ```sh
237
+ * // $ npm install googleapis
238
+ * // ```
239
+ *
240
+ * const {google} = require('googleapis');
241
+ * const siteVerification = google.siteVerification('v1');
242
+ *
243
+ * async function main() {
244
+ * const auth = new google.auth.GoogleAuth({
245
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
246
+ * scopes: [
247
+ * 'https://www.googleapis.com/auth/siteverification',
248
+ * 'https://www.googleapis.com/auth/siteverification.verify_only',
249
+ * ],
250
+ * });
251
+ *
252
+ * // Acquire an auth client, and bind it to all future calls
253
+ * const authClient = await auth.getClient();
254
+ * google.options({auth: authClient});
255
+ *
256
+ * // Do the magic
257
+ * const res = await siteVerification.webResource.getToken({
258
+ * // Request body metadata
259
+ * requestBody: {
260
+ * // request body parameters
261
+ * // {
262
+ * // "site": {},
263
+ * // "verificationMethod": "my_verificationMethod"
264
+ * // }
265
+ * },
266
+ * });
267
+ * console.log(res.data);
268
+ *
269
+ * // Example response
270
+ * // {
271
+ * // "method": "my_method",
272
+ * // "token": "my_token"
273
+ * // }
274
+ * }
275
+ *
276
+ * main().catch(e => {
277
+ * console.error(e);
278
+ * throw e;
279
+ * });
280
+ *
281
+ * ```
137
282
  *
138
283
  * @param params - Parameters for request
139
284
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
140
285
  * @param callback - Optional callback that handles the response.
141
286
  * @returns A promise if used with async/await, or void if used with a callback.
142
287
  */
143
- getToken(params: Params$Resource$Webresource$Gettoken, options: StreamMethodOptions): GaxiosPromise<Readable>;
144
- getToken(params?: Params$Resource$Webresource$Gettoken, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceGettokenResponse>;
288
+ getToken(params: Params$Resource$Webresource$Gettoken, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
289
+ getToken(params?: Params$Resource$Webresource$Gettoken, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceGettokenResponse>>;
145
290
  getToken(params: Params$Resource$Webresource$Gettoken, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
146
291
  getToken(params: Params$Resource$Webresource$Gettoken, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceGettokenResponse>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceGettokenResponse>): void;
147
292
  getToken(params: Params$Resource$Webresource$Gettoken, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceGettokenResponse>): void;
148
293
  getToken(callback: BodyResponseCallback<Schema$SiteVerificationWebResourceGettokenResponse>): void;
149
294
  /**
150
295
  * Attempt verification of a website or domain.
296
+ * @example
297
+ * ```js
298
+ * // Before running the sample:
299
+ * // - Enable the API at:
300
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
301
+ * // - Login into gcloud by running:
302
+ * // ```sh
303
+ * // $ gcloud auth application-default login
304
+ * // ```
305
+ * // - Install the npm module by running:
306
+ * // ```sh
307
+ * // $ npm install googleapis
308
+ * // ```
309
+ *
310
+ * const {google} = require('googleapis');
311
+ * const siteVerification = google.siteVerification('v1');
312
+ *
313
+ * async function main() {
314
+ * const auth = new google.auth.GoogleAuth({
315
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
316
+ * scopes: [
317
+ * 'https://www.googleapis.com/auth/siteverification',
318
+ * 'https://www.googleapis.com/auth/siteverification.verify_only',
319
+ * ],
320
+ * });
321
+ *
322
+ * // Acquire an auth client, and bind it to all future calls
323
+ * const authClient = await auth.getClient();
324
+ * google.options({auth: authClient});
325
+ *
326
+ * // Do the magic
327
+ * const res = await siteVerification.webResource.insert({
328
+ * // The method to use for verifying a site or domain.
329
+ * verificationMethod: 'placeholder-value',
330
+ *
331
+ * // Request body metadata
332
+ * requestBody: {
333
+ * // request body parameters
334
+ * // {
335
+ * // "id": "my_id",
336
+ * // "owners": [],
337
+ * // "site": {}
338
+ * // }
339
+ * },
340
+ * });
341
+ * console.log(res.data);
342
+ *
343
+ * // Example response
344
+ * // {
345
+ * // "id": "my_id",
346
+ * // "owners": [],
347
+ * // "site": {}
348
+ * // }
349
+ * }
350
+ *
351
+ * main().catch(e => {
352
+ * console.error(e);
353
+ * throw e;
354
+ * });
355
+ *
356
+ * ```
151
357
  *
152
358
  * @param params - Parameters for request
153
359
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
154
360
  * @param callback - Optional callback that handles the response.
155
361
  * @returns A promise if used with async/await, or void if used with a callback.
156
362
  */
157
- insert(params: Params$Resource$Webresource$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
158
- insert(params?: Params$Resource$Webresource$Insert, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
363
+ insert(params: Params$Resource$Webresource$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
364
+ insert(params?: Params$Resource$Webresource$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>>;
159
365
  insert(params: Params$Resource$Webresource$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
160
366
  insert(params: Params$Resource$Webresource$Insert, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceResource>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
161
367
  insert(params: Params$Resource$Webresource$Insert, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
162
368
  insert(callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
163
369
  /**
164
370
  * Get the list of your verified websites and domains.
371
+ * @example
372
+ * ```js
373
+ * // Before running the sample:
374
+ * // - Enable the API at:
375
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
376
+ * // - Login into gcloud by running:
377
+ * // ```sh
378
+ * // $ gcloud auth application-default login
379
+ * // ```
380
+ * // - Install the npm module by running:
381
+ * // ```sh
382
+ * // $ npm install googleapis
383
+ * // ```
384
+ *
385
+ * const {google} = require('googleapis');
386
+ * const siteVerification = google.siteVerification('v1');
387
+ *
388
+ * async function main() {
389
+ * const auth = new google.auth.GoogleAuth({
390
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
391
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
392
+ * });
393
+ *
394
+ * // Acquire an auth client, and bind it to all future calls
395
+ * const authClient = await auth.getClient();
396
+ * google.options({auth: authClient});
397
+ *
398
+ * // Do the magic
399
+ * const res = await siteVerification.webResource.list({});
400
+ * console.log(res.data);
401
+ *
402
+ * // Example response
403
+ * // {
404
+ * // "items": []
405
+ * // }
406
+ * }
407
+ *
408
+ * main().catch(e => {
409
+ * console.error(e);
410
+ * throw e;
411
+ * });
412
+ *
413
+ * ```
165
414
  *
166
415
  * @param params - Parameters for request
167
416
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
168
417
  * @param callback - Optional callback that handles the response.
169
418
  * @returns A promise if used with async/await, or void if used with a callback.
170
419
  */
171
- list(params: Params$Resource$Webresource$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
172
- list(params?: Params$Resource$Webresource$List, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceListResponse>;
420
+ list(params: Params$Resource$Webresource$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
421
+ list(params?: Params$Resource$Webresource$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceListResponse>>;
173
422
  list(params: Params$Resource$Webresource$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
174
423
  list(params: Params$Resource$Webresource$List, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceListResponse>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceListResponse>): void;
175
424
  list(params: Params$Resource$Webresource$List, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceListResponse>): void;
176
425
  list(callback: BodyResponseCallback<Schema$SiteVerificationWebResourceListResponse>): void;
177
426
  /**
178
427
  * Modify the list of owners for your website or domain. This method supports patch semantics.
428
+ * @example
429
+ * ```js
430
+ * // Before running the sample:
431
+ * // - Enable the API at:
432
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
433
+ * // - Login into gcloud by running:
434
+ * // ```sh
435
+ * // $ gcloud auth application-default login
436
+ * // ```
437
+ * // - Install the npm module by running:
438
+ * // ```sh
439
+ * // $ npm install googleapis
440
+ * // ```
441
+ *
442
+ * const {google} = require('googleapis');
443
+ * const siteVerification = google.siteVerification('v1');
444
+ *
445
+ * async function main() {
446
+ * const auth = new google.auth.GoogleAuth({
447
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
448
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
449
+ * });
450
+ *
451
+ * // Acquire an auth client, and bind it to all future calls
452
+ * const authClient = await auth.getClient();
453
+ * google.options({auth: authClient});
454
+ *
455
+ * // Do the magic
456
+ * const res = await siteVerification.webResource.patch({
457
+ * // The id of a verified site or domain.
458
+ * id: 'placeholder-value',
459
+ *
460
+ * // Request body metadata
461
+ * requestBody: {
462
+ * // request body parameters
463
+ * // {
464
+ * // "id": "my_id",
465
+ * // "owners": [],
466
+ * // "site": {}
467
+ * // }
468
+ * },
469
+ * });
470
+ * console.log(res.data);
471
+ *
472
+ * // Example response
473
+ * // {
474
+ * // "id": "my_id",
475
+ * // "owners": [],
476
+ * // "site": {}
477
+ * // }
478
+ * }
479
+ *
480
+ * main().catch(e => {
481
+ * console.error(e);
482
+ * throw e;
483
+ * });
484
+ *
485
+ * ```
179
486
  *
180
487
  * @param params - Parameters for request
181
488
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
182
489
  * @param callback - Optional callback that handles the response.
183
490
  * @returns A promise if used with async/await, or void if used with a callback.
184
491
  */
185
- patch(params: Params$Resource$Webresource$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
186
- patch(params?: Params$Resource$Webresource$Patch, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
492
+ patch(params: Params$Resource$Webresource$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
493
+ patch(params?: Params$Resource$Webresource$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>>;
187
494
  patch(params: Params$Resource$Webresource$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
188
495
  patch(params: Params$Resource$Webresource$Patch, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceResource>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
189
496
  patch(params: Params$Resource$Webresource$Patch, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
190
497
  patch(callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
191
498
  /**
192
499
  * Modify the list of owners for your website or domain.
500
+ * @example
501
+ * ```js
502
+ * // Before running the sample:
503
+ * // - Enable the API at:
504
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
505
+ * // - Login into gcloud by running:
506
+ * // ```sh
507
+ * // $ gcloud auth application-default login
508
+ * // ```
509
+ * // - Install the npm module by running:
510
+ * // ```sh
511
+ * // $ npm install googleapis
512
+ * // ```
513
+ *
514
+ * const {google} = require('googleapis');
515
+ * const siteVerification = google.siteVerification('v1');
516
+ *
517
+ * async function main() {
518
+ * const auth = new google.auth.GoogleAuth({
519
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
520
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
521
+ * });
522
+ *
523
+ * // Acquire an auth client, and bind it to all future calls
524
+ * const authClient = await auth.getClient();
525
+ * google.options({auth: authClient});
526
+ *
527
+ * // Do the magic
528
+ * const res = await siteVerification.webResource.update({
529
+ * // The id of a verified site or domain.
530
+ * id: 'placeholder-value',
531
+ *
532
+ * // Request body metadata
533
+ * requestBody: {
534
+ * // request body parameters
535
+ * // {
536
+ * // "id": "my_id",
537
+ * // "owners": [],
538
+ * // "site": {}
539
+ * // }
540
+ * },
541
+ * });
542
+ * console.log(res.data);
543
+ *
544
+ * // Example response
545
+ * // {
546
+ * // "id": "my_id",
547
+ * // "owners": [],
548
+ * // "site": {}
549
+ * // }
550
+ * }
551
+ *
552
+ * main().catch(e => {
553
+ * console.error(e);
554
+ * throw e;
555
+ * });
556
+ *
557
+ * ```
193
558
  *
194
559
  * @param params - Parameters for request
195
560
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
196
561
  * @param callback - Optional callback that handles the response.
197
562
  * @returns A promise if used with async/await, or void if used with a callback.
198
563
  */
199
- update(params: Params$Resource$Webresource$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
200
- update(params?: Params$Resource$Webresource$Update, options?: MethodOptions): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
564
+ update(params: Params$Resource$Webresource$Update, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
565
+ update(params?: Params$Resource$Webresource$Update, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>>;
201
566
  update(params: Params$Resource$Webresource$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
202
567
  update(params: Params$Resource$Webresource$Update, options: MethodOptions | BodyResponseCallback<Schema$SiteVerificationWebResourceResource>, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
203
568
  update(params: Params$Resource$Webresource$Update, callback: BodyResponseCallback<Schema$SiteVerificationWebResourceResource>): void;
package/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,mBAAmB,CA60BnC;AA70BD,WAAiB,mBAAmB;IAgDlC;;;;;;;;;;OAUG;IACH,MAAa,gBAAgB;QAI3B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;KACF;IAZY,oCAAgB,mBAY5B,CAAA;IA2CD,MAAa,oBAAoB;QAE/B,YA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YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,6BAA6B,CAAC;YACjE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,uCAAuC,CAAC,CAAC,OAAO,CAC9D,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,IAAI,CAAC;gBACtB,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAviCY,wCAAoB,uBAuiChC,CAAA;AA4DH,CAAC,EArtCgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAqtCnC"}
package/index.ts CHANGED
@@ -42,7 +42,6 @@ export {
42
42
  APIRequestContext,
43
43
  GoogleConfigurable,
44
44
  StreamMethodOptions,
45
- GaxiosPromise,
46
45
  MethodOptions,
47
46
  BodyResponseCallback,
48
47
  } from 'googleapis-common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/siteverification",
3
- "version": "2.0.5",
3
+ "version": "4.0.1",
4
4
  "description": "siteVerification",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^7.0.0"
31
+ "googleapis-common": "^8.0.2-rc.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -157,6 +157,47 @@ export namespace siteVerification_v1 {
157
157
 
158
158
  /**
159
159
  * Relinquish ownership of a website or domain.
160
+ * @example
161
+ * ```js
162
+ * // Before running the sample:
163
+ * // - Enable the API at:
164
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
165
+ * // - Login into gcloud by running:
166
+ * // ```sh
167
+ * // $ gcloud auth application-default login
168
+ * // ```
169
+ * // - Install the npm module by running:
170
+ * // ```sh
171
+ * // $ npm install googleapis
172
+ * // ```
173
+ *
174
+ * const {google} = require('googleapis');
175
+ * const siteVerification = google.siteVerification('v1');
176
+ *
177
+ * async function main() {
178
+ * const auth = new google.auth.GoogleAuth({
179
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
180
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
181
+ * });
182
+ *
183
+ * // Acquire an auth client, and bind it to all future calls
184
+ * const authClient = await auth.getClient();
185
+ * google.options({auth: authClient});
186
+ *
187
+ * // Do the magic
188
+ * const res = await siteVerification.webResource.delete({
189
+ * // The id of a verified site or domain.
190
+ * id: 'placeholder-value',
191
+ * });
192
+ * console.log(res.data);
193
+ * }
194
+ *
195
+ * main().catch(e => {
196
+ * console.error(e);
197
+ * throw e;
198
+ * });
199
+ *
200
+ * ```
160
201
  *
161
202
  * @param params - Parameters for request
162
203
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -166,11 +207,11 @@ export namespace siteVerification_v1 {
166
207
  delete(
167
208
  params: Params$Resource$Webresource$Delete,
168
209
  options: StreamMethodOptions
169
- ): GaxiosPromise<Readable>;
210
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
170
211
  delete(
171
212
  params?: Params$Resource$Webresource$Delete,
172
213
  options?: MethodOptions
173
- ): GaxiosPromise<void>;
214
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
174
215
  delete(
175
216
  params: Params$Resource$Webresource$Delete,
176
217
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -197,7 +238,10 @@ export namespace siteVerification_v1 {
197
238
  | BodyResponseCallback<void>
198
239
  | BodyResponseCallback<Readable>,
199
240
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
200
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
241
+ ):
242
+ | void
243
+ | Promise<GaxiosResponseWithHTTP2<void>>
244
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
201
245
  let params = (paramsOrCallback ||
202
246
  {}) as Params$Resource$Webresource$Delete;
203
247
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -243,6 +287,54 @@ export namespace siteVerification_v1 {
243
287
 
244
288
  /**
245
289
  * Get the most current data for a website or domain.
290
+ * @example
291
+ * ```js
292
+ * // Before running the sample:
293
+ * // - Enable the API at:
294
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
295
+ * // - Login into gcloud by running:
296
+ * // ```sh
297
+ * // $ gcloud auth application-default login
298
+ * // ```
299
+ * // - Install the npm module by running:
300
+ * // ```sh
301
+ * // $ npm install googleapis
302
+ * // ```
303
+ *
304
+ * const {google} = require('googleapis');
305
+ * const siteVerification = google.siteVerification('v1');
306
+ *
307
+ * async function main() {
308
+ * const auth = new google.auth.GoogleAuth({
309
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
310
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
311
+ * });
312
+ *
313
+ * // Acquire an auth client, and bind it to all future calls
314
+ * const authClient = await auth.getClient();
315
+ * google.options({auth: authClient});
316
+ *
317
+ * // Do the magic
318
+ * const res = await siteVerification.webResource.get({
319
+ * // The id of a verified site or domain.
320
+ * id: 'placeholder-value',
321
+ * });
322
+ * console.log(res.data);
323
+ *
324
+ * // Example response
325
+ * // {
326
+ * // "id": "my_id",
327
+ * // "owners": [],
328
+ * // "site": {}
329
+ * // }
330
+ * }
331
+ *
332
+ * main().catch(e => {
333
+ * console.error(e);
334
+ * throw e;
335
+ * });
336
+ *
337
+ * ```
246
338
  *
247
339
  * @param params - Parameters for request
248
340
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -252,11 +344,13 @@ export namespace siteVerification_v1 {
252
344
  get(
253
345
  params: Params$Resource$Webresource$Get,
254
346
  options: StreamMethodOptions
255
- ): GaxiosPromise<Readable>;
347
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
256
348
  get(
257
349
  params?: Params$Resource$Webresource$Get,
258
350
  options?: MethodOptions
259
- ): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
351
+ ): Promise<
352
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
353
+ >;
260
354
  get(
261
355
  params: Params$Resource$Webresource$Get,
262
356
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -291,8 +385,10 @@ export namespace siteVerification_v1 {
291
385
  | BodyResponseCallback<Readable>
292
386
  ):
293
387
  | void
294
- | GaxiosPromise<Schema$SiteVerificationWebResourceResource>
295
- | GaxiosPromise<Readable> {
388
+ | Promise<
389
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
390
+ >
391
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
296
392
  let params = (paramsOrCallback || {}) as Params$Resource$Webresource$Get;
297
393
  let options = (optionsOrCallback || {}) as MethodOptions;
298
394
 
@@ -339,6 +435,62 @@ export namespace siteVerification_v1 {
339
435
 
340
436
  /**
341
437
  * Get a verification token for placing on a website or domain.
438
+ * @example
439
+ * ```js
440
+ * // Before running the sample:
441
+ * // - Enable the API at:
442
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
443
+ * // - Login into gcloud by running:
444
+ * // ```sh
445
+ * // $ gcloud auth application-default login
446
+ * // ```
447
+ * // - Install the npm module by running:
448
+ * // ```sh
449
+ * // $ npm install googleapis
450
+ * // ```
451
+ *
452
+ * const {google} = require('googleapis');
453
+ * const siteVerification = google.siteVerification('v1');
454
+ *
455
+ * async function main() {
456
+ * const auth = new google.auth.GoogleAuth({
457
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
458
+ * scopes: [
459
+ * 'https://www.googleapis.com/auth/siteverification',
460
+ * 'https://www.googleapis.com/auth/siteverification.verify_only',
461
+ * ],
462
+ * });
463
+ *
464
+ * // Acquire an auth client, and bind it to all future calls
465
+ * const authClient = await auth.getClient();
466
+ * google.options({auth: authClient});
467
+ *
468
+ * // Do the magic
469
+ * const res = await siteVerification.webResource.getToken({
470
+ * // Request body metadata
471
+ * requestBody: {
472
+ * // request body parameters
473
+ * // {
474
+ * // "site": {},
475
+ * // "verificationMethod": "my_verificationMethod"
476
+ * // }
477
+ * },
478
+ * });
479
+ * console.log(res.data);
480
+ *
481
+ * // Example response
482
+ * // {
483
+ * // "method": "my_method",
484
+ * // "token": "my_token"
485
+ * // }
486
+ * }
487
+ *
488
+ * main().catch(e => {
489
+ * console.error(e);
490
+ * throw e;
491
+ * });
492
+ *
493
+ * ```
342
494
  *
343
495
  * @param params - Parameters for request
344
496
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -348,11 +500,13 @@ export namespace siteVerification_v1 {
348
500
  getToken(
349
501
  params: Params$Resource$Webresource$Gettoken,
350
502
  options: StreamMethodOptions
351
- ): GaxiosPromise<Readable>;
503
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
352
504
  getToken(
353
505
  params?: Params$Resource$Webresource$Gettoken,
354
506
  options?: MethodOptions
355
- ): GaxiosPromise<Schema$SiteVerificationWebResourceGettokenResponse>;
507
+ ): Promise<
508
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceGettokenResponse>
509
+ >;
356
510
  getToken(
357
511
  params: Params$Resource$Webresource$Gettoken,
358
512
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -387,8 +541,10 @@ export namespace siteVerification_v1 {
387
541
  | BodyResponseCallback<Readable>
388
542
  ):
389
543
  | void
390
- | GaxiosPromise<Schema$SiteVerificationWebResourceGettokenResponse>
391
- | GaxiosPromise<Readable> {
544
+ | Promise<
545
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceGettokenResponse>
546
+ >
547
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
392
548
  let params = (paramsOrCallback ||
393
549
  {}) as Params$Resource$Webresource$Gettoken;
394
550
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -436,6 +592,67 @@ export namespace siteVerification_v1 {
436
592
 
437
593
  /**
438
594
  * Attempt verification of a website or domain.
595
+ * @example
596
+ * ```js
597
+ * // Before running the sample:
598
+ * // - Enable the API at:
599
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
600
+ * // - Login into gcloud by running:
601
+ * // ```sh
602
+ * // $ gcloud auth application-default login
603
+ * // ```
604
+ * // - Install the npm module by running:
605
+ * // ```sh
606
+ * // $ npm install googleapis
607
+ * // ```
608
+ *
609
+ * const {google} = require('googleapis');
610
+ * const siteVerification = google.siteVerification('v1');
611
+ *
612
+ * async function main() {
613
+ * const auth = new google.auth.GoogleAuth({
614
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
615
+ * scopes: [
616
+ * 'https://www.googleapis.com/auth/siteverification',
617
+ * 'https://www.googleapis.com/auth/siteverification.verify_only',
618
+ * ],
619
+ * });
620
+ *
621
+ * // Acquire an auth client, and bind it to all future calls
622
+ * const authClient = await auth.getClient();
623
+ * google.options({auth: authClient});
624
+ *
625
+ * // Do the magic
626
+ * const res = await siteVerification.webResource.insert({
627
+ * // The method to use for verifying a site or domain.
628
+ * verificationMethod: 'placeholder-value',
629
+ *
630
+ * // Request body metadata
631
+ * requestBody: {
632
+ * // request body parameters
633
+ * // {
634
+ * // "id": "my_id",
635
+ * // "owners": [],
636
+ * // "site": {}
637
+ * // }
638
+ * },
639
+ * });
640
+ * console.log(res.data);
641
+ *
642
+ * // Example response
643
+ * // {
644
+ * // "id": "my_id",
645
+ * // "owners": [],
646
+ * // "site": {}
647
+ * // }
648
+ * }
649
+ *
650
+ * main().catch(e => {
651
+ * console.error(e);
652
+ * throw e;
653
+ * });
654
+ *
655
+ * ```
439
656
  *
440
657
  * @param params - Parameters for request
441
658
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -445,11 +662,13 @@ export namespace siteVerification_v1 {
445
662
  insert(
446
663
  params: Params$Resource$Webresource$Insert,
447
664
  options: StreamMethodOptions
448
- ): GaxiosPromise<Readable>;
665
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
449
666
  insert(
450
667
  params?: Params$Resource$Webresource$Insert,
451
668
  options?: MethodOptions
452
- ): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
669
+ ): Promise<
670
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
671
+ >;
453
672
  insert(
454
673
  params: Params$Resource$Webresource$Insert,
455
674
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -484,8 +703,10 @@ export namespace siteVerification_v1 {
484
703
  | BodyResponseCallback<Readable>
485
704
  ):
486
705
  | void
487
- | GaxiosPromise<Schema$SiteVerificationWebResourceResource>
488
- | GaxiosPromise<Readable> {
706
+ | Promise<
707
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
708
+ >
709
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
489
710
  let params = (paramsOrCallback ||
490
711
  {}) as Params$Resource$Webresource$Insert;
491
712
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -533,6 +754,49 @@ export namespace siteVerification_v1 {
533
754
 
534
755
  /**
535
756
  * Get the list of your verified websites and domains.
757
+ * @example
758
+ * ```js
759
+ * // Before running the sample:
760
+ * // - Enable the API at:
761
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
762
+ * // - Login into gcloud by running:
763
+ * // ```sh
764
+ * // $ gcloud auth application-default login
765
+ * // ```
766
+ * // - Install the npm module by running:
767
+ * // ```sh
768
+ * // $ npm install googleapis
769
+ * // ```
770
+ *
771
+ * const {google} = require('googleapis');
772
+ * const siteVerification = google.siteVerification('v1');
773
+ *
774
+ * async function main() {
775
+ * const auth = new google.auth.GoogleAuth({
776
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
777
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
778
+ * });
779
+ *
780
+ * // Acquire an auth client, and bind it to all future calls
781
+ * const authClient = await auth.getClient();
782
+ * google.options({auth: authClient});
783
+ *
784
+ * // Do the magic
785
+ * const res = await siteVerification.webResource.list({});
786
+ * console.log(res.data);
787
+ *
788
+ * // Example response
789
+ * // {
790
+ * // "items": []
791
+ * // }
792
+ * }
793
+ *
794
+ * main().catch(e => {
795
+ * console.error(e);
796
+ * throw e;
797
+ * });
798
+ *
799
+ * ```
536
800
  *
537
801
  * @param params - Parameters for request
538
802
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -542,11 +806,13 @@ export namespace siteVerification_v1 {
542
806
  list(
543
807
  params: Params$Resource$Webresource$List,
544
808
  options: StreamMethodOptions
545
- ): GaxiosPromise<Readable>;
809
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
546
810
  list(
547
811
  params?: Params$Resource$Webresource$List,
548
812
  options?: MethodOptions
549
- ): GaxiosPromise<Schema$SiteVerificationWebResourceListResponse>;
813
+ ): Promise<
814
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceListResponse>
815
+ >;
550
816
  list(
551
817
  params: Params$Resource$Webresource$List,
552
818
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -581,8 +847,10 @@ export namespace siteVerification_v1 {
581
847
  | BodyResponseCallback<Readable>
582
848
  ):
583
849
  | void
584
- | GaxiosPromise<Schema$SiteVerificationWebResourceListResponse>
585
- | GaxiosPromise<Readable> {
850
+ | Promise<
851
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceListResponse>
852
+ >
853
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
586
854
  let params = (paramsOrCallback || {}) as Params$Resource$Webresource$List;
587
855
  let options = (optionsOrCallback || {}) as MethodOptions;
588
856
 
@@ -629,6 +897,64 @@ export namespace siteVerification_v1 {
629
897
 
630
898
  /**
631
899
  * Modify the list of owners for your website or domain. This method supports patch semantics.
900
+ * @example
901
+ * ```js
902
+ * // Before running the sample:
903
+ * // - Enable the API at:
904
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
905
+ * // - Login into gcloud by running:
906
+ * // ```sh
907
+ * // $ gcloud auth application-default login
908
+ * // ```
909
+ * // - Install the npm module by running:
910
+ * // ```sh
911
+ * // $ npm install googleapis
912
+ * // ```
913
+ *
914
+ * const {google} = require('googleapis');
915
+ * const siteVerification = google.siteVerification('v1');
916
+ *
917
+ * async function main() {
918
+ * const auth = new google.auth.GoogleAuth({
919
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
920
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
921
+ * });
922
+ *
923
+ * // Acquire an auth client, and bind it to all future calls
924
+ * const authClient = await auth.getClient();
925
+ * google.options({auth: authClient});
926
+ *
927
+ * // Do the magic
928
+ * const res = await siteVerification.webResource.patch({
929
+ * // The id of a verified site or domain.
930
+ * id: 'placeholder-value',
931
+ *
932
+ * // Request body metadata
933
+ * requestBody: {
934
+ * // request body parameters
935
+ * // {
936
+ * // "id": "my_id",
937
+ * // "owners": [],
938
+ * // "site": {}
939
+ * // }
940
+ * },
941
+ * });
942
+ * console.log(res.data);
943
+ *
944
+ * // Example response
945
+ * // {
946
+ * // "id": "my_id",
947
+ * // "owners": [],
948
+ * // "site": {}
949
+ * // }
950
+ * }
951
+ *
952
+ * main().catch(e => {
953
+ * console.error(e);
954
+ * throw e;
955
+ * });
956
+ *
957
+ * ```
632
958
  *
633
959
  * @param params - Parameters for request
634
960
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -638,11 +964,13 @@ export namespace siteVerification_v1 {
638
964
  patch(
639
965
  params: Params$Resource$Webresource$Patch,
640
966
  options: StreamMethodOptions
641
- ): GaxiosPromise<Readable>;
967
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
642
968
  patch(
643
969
  params?: Params$Resource$Webresource$Patch,
644
970
  options?: MethodOptions
645
- ): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
971
+ ): Promise<
972
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
973
+ >;
646
974
  patch(
647
975
  params: Params$Resource$Webresource$Patch,
648
976
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -677,8 +1005,10 @@ export namespace siteVerification_v1 {
677
1005
  | BodyResponseCallback<Readable>
678
1006
  ):
679
1007
  | void
680
- | GaxiosPromise<Schema$SiteVerificationWebResourceResource>
681
- | GaxiosPromise<Readable> {
1008
+ | Promise<
1009
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
1010
+ >
1011
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
682
1012
  let params = (paramsOrCallback ||
683
1013
  {}) as Params$Resource$Webresource$Patch;
684
1014
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -726,6 +1056,64 @@ export namespace siteVerification_v1 {
726
1056
 
727
1057
  /**
728
1058
  * Modify the list of owners for your website or domain.
1059
+ * @example
1060
+ * ```js
1061
+ * // Before running the sample:
1062
+ * // - Enable the API at:
1063
+ * // https://console.developers.google.com/apis/api/siteVerification.googleapis.com
1064
+ * // - Login into gcloud by running:
1065
+ * // ```sh
1066
+ * // $ gcloud auth application-default login
1067
+ * // ```
1068
+ * // - Install the npm module by running:
1069
+ * // ```sh
1070
+ * // $ npm install googleapis
1071
+ * // ```
1072
+ *
1073
+ * const {google} = require('googleapis');
1074
+ * const siteVerification = google.siteVerification('v1');
1075
+ *
1076
+ * async function main() {
1077
+ * const auth = new google.auth.GoogleAuth({
1078
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1079
+ * scopes: ['https://www.googleapis.com/auth/siteverification'],
1080
+ * });
1081
+ *
1082
+ * // Acquire an auth client, and bind it to all future calls
1083
+ * const authClient = await auth.getClient();
1084
+ * google.options({auth: authClient});
1085
+ *
1086
+ * // Do the magic
1087
+ * const res = await siteVerification.webResource.update({
1088
+ * // The id of a verified site or domain.
1089
+ * id: 'placeholder-value',
1090
+ *
1091
+ * // Request body metadata
1092
+ * requestBody: {
1093
+ * // request body parameters
1094
+ * // {
1095
+ * // "id": "my_id",
1096
+ * // "owners": [],
1097
+ * // "site": {}
1098
+ * // }
1099
+ * },
1100
+ * });
1101
+ * console.log(res.data);
1102
+ *
1103
+ * // Example response
1104
+ * // {
1105
+ * // "id": "my_id",
1106
+ * // "owners": [],
1107
+ * // "site": {}
1108
+ * // }
1109
+ * }
1110
+ *
1111
+ * main().catch(e => {
1112
+ * console.error(e);
1113
+ * throw e;
1114
+ * });
1115
+ *
1116
+ * ```
729
1117
  *
730
1118
  * @param params - Parameters for request
731
1119
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -735,11 +1123,13 @@ export namespace siteVerification_v1 {
735
1123
  update(
736
1124
  params: Params$Resource$Webresource$Update,
737
1125
  options: StreamMethodOptions
738
- ): GaxiosPromise<Readable>;
1126
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
739
1127
  update(
740
1128
  params?: Params$Resource$Webresource$Update,
741
1129
  options?: MethodOptions
742
- ): GaxiosPromise<Schema$SiteVerificationWebResourceResource>;
1130
+ ): Promise<
1131
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
1132
+ >;
743
1133
  update(
744
1134
  params: Params$Resource$Webresource$Update,
745
1135
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -774,8 +1164,10 @@ export namespace siteVerification_v1 {
774
1164
  | BodyResponseCallback<Readable>
775
1165
  ):
776
1166
  | void
777
- | GaxiosPromise<Schema$SiteVerificationWebResourceResource>
778
- | GaxiosPromise<Readable> {
1167
+ | Promise<
1168
+ GaxiosResponseWithHTTP2<Schema$SiteVerificationWebResourceResource>
1169
+ >
1170
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
779
1171
  let params = (paramsOrCallback ||
780
1172
  {}) as Params$Resource$Webresource$Update;
781
1173
  let options = (optionsOrCallback || {}) as MethodOptions;