@@ -375,6 +375,55 @@ export namespace verifiedaccess_v2 {
375
375
376
376
/**
377
377
* Generates a new challenge.
378
+ * @example
379
+ * ```js
380
+ * // Before running the sample:
381
+ * // - Enable the API at:
382
+ * // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
383
+ * // - Login into gcloud by running:
384
+ * // ```sh
385
+ * // $ gcloud auth application-default login
386
+ * // ```
387
+ * // - Install the npm module by running:
388
+ * // ```sh
389
+ * // $ npm install googleapis
390
+ * // ```
391
+ *
392
+ * const {google} = require('googleapis');
393
+ * const verifiedaccess = google.verifiedaccess('v2');
394
+ *
395
+ * async function main() {
396
+ * const auth = new google.auth.GoogleAuth({
397
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
398
+ * scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
399
+ * });
400
+ *
401
+ * // Acquire an auth client, and bind it to all future calls
402
+ * const authClient = await auth.getClient();
403
+ * google.options({auth: authClient});
404
+ *
405
+ * // Do the magic
406
+ * const res = await verifiedaccess.challenge.generate({
407
+ * // Request body metadata
408
+ * requestBody: {
409
+ * // request body parameters
410
+ * // {}
411
+ * },
412
+ * });
413
+ * console.log(res.data);
414
+ *
415
+ * // Example response
416
+ * // {
417
+ * // "challenge": "my_challenge"
418
+ * // }
419
+ * }
420
+ *
421
+ * main().catch(e => {
422
+ * console.error(e);
423
+ * throw e;
424
+ * });
425
+ *
426
+ * ```
378
427
*
379
428
* @param params - Parameters for request
380
429
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -467,6 +516,70 @@ export namespace verifiedaccess_v2 {
467
516
468
517
/**
469
518
* Verifies the challenge response.
519
+ * @example
520
+ * ```js
521
+ * // Before running the sample:
522
+ * // - Enable the API at:
523
+ * // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
524
+ * // - Login into gcloud by running:
525
+ * // ```sh
526
+ * // $ gcloud auth application-default login
527
+ * // ```
528
+ * // - Install the npm module by running:
529
+ * // ```sh
530
+ * // $ npm install googleapis
531
+ * // ```
532
+ *
533
+ * const {google} = require('googleapis');
534
+ * const verifiedaccess = google.verifiedaccess('v2');
535
+ *
536
+ * async function main() {
537
+ * const auth = new google.auth.GoogleAuth({
538
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
539
+ * scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
540
+ * });
541
+ *
542
+ * // Acquire an auth client, and bind it to all future calls
543
+ * const authClient = await auth.getClient();
544
+ * google.options({auth: authClient});
545
+ *
546
+ * // Do the magic
547
+ * const res = await verifiedaccess.challenge.verify({
548
+ * // Request body metadata
549
+ * requestBody: {
550
+ * // request body parameters
551
+ * // {
552
+ * // "challengeResponse": "my_challengeResponse",
553
+ * // "expectedIdentity": "my_expectedIdentity"
554
+ * // }
555
+ * },
556
+ * });
557
+ * console.log(res.data);
558
+ *
559
+ * // Example response
560
+ * // {
561
+ * // "attestedDeviceId": "my_attestedDeviceId",
562
+ * // "customerId": "my_customerId",
563
+ * // "deviceEnrollmentId": "my_deviceEnrollmentId",
564
+ * // "devicePermanentId": "my_devicePermanentId",
565
+ * // "deviceSignal": "my_deviceSignal",
566
+ * // "deviceSignals": {},
567
+ * // "keyTrustLevel": "my_keyTrustLevel",
568
+ * // "profileCustomerId": "my_profileCustomerId",
569
+ * // "profileKeyTrustLevel": "my_profileKeyTrustLevel",
570
+ * // "profilePermanentId": "my_profilePermanentId",
571
+ * // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
572
+ * // "virtualDeviceId": "my_virtualDeviceId",
573
+ * // "virtualProfileId": "my_virtualProfileId"
574
+ * // }
575
+ * }
576
+ *
577
+ * main().catch(e => {
578
+ * console.error(e);
579
+ * throw e;
580
+ * });
581
+ *
582
+ * ```
470
583
*
471
584
* @param params - Parameters for request
472
585
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
0 commit comments