|
14 | 14 |
|
15 | 15 | 'use strict';
|
16 | 16 |
|
17 |
| -const gapicConfig = require('./cluster_controller_client_config'); |
| 17 | +const gapicConfig = require('./cluster_controller_client_config.json'); |
18 | 18 | const gax = require('google-gax');
|
19 | 19 | const merge = require('lodash.merge');
|
20 | 20 | const path = require('path');
|
@@ -367,6 +367,20 @@ class ClusterControllerClient {
|
367 | 367 | * .catch(err => {
|
368 | 368 | * console.error(err);
|
369 | 369 | * });
|
| 370 | + * |
| 371 | + * const projectId = ''; |
| 372 | + * const region = ''; |
| 373 | + * const cluster = {}; |
| 374 | + * const request = { |
| 375 | + * projectId: projectId, |
| 376 | + * region: region, |
| 377 | + * cluster: cluster, |
| 378 | + * }; |
| 379 | + * |
| 380 | + * // Handle the operation using the await pattern. |
| 381 | + * const [operation] = await client.createCluster(request); |
| 382 | + * |
| 383 | + * const [response] = await operation.promise(); |
370 | 384 | */
|
371 | 385 | createCluster(request, options, callback) {
|
372 | 386 | if (options instanceof Function && callback === undefined) {
|
@@ -555,6 +569,24 @@ class ClusterControllerClient {
|
555 | 569 | * .catch(err => {
|
556 | 570 | * console.error(err);
|
557 | 571 | * });
|
| 572 | + * |
| 573 | + * const projectId = ''; |
| 574 | + * const region = ''; |
| 575 | + * const clusterName = ''; |
| 576 | + * const cluster = {}; |
| 577 | + * const updateMask = {}; |
| 578 | + * const request = { |
| 579 | + * projectId: projectId, |
| 580 | + * region: region, |
| 581 | + * clusterName: clusterName, |
| 582 | + * cluster: cluster, |
| 583 | + * updateMask: updateMask, |
| 584 | + * }; |
| 585 | + * |
| 586 | + * // Handle the operation using the await pattern. |
| 587 | + * const [operation] = await client.updateCluster(request); |
| 588 | + * |
| 589 | + * const [response] = await operation.promise(); |
558 | 590 | */
|
559 | 591 | updateCluster(request, options, callback) {
|
560 | 592 | if (options instanceof Function && callback === undefined) {
|
@@ -673,6 +705,20 @@ class ClusterControllerClient {
|
673 | 705 | * .catch(err => {
|
674 | 706 | * console.error(err);
|
675 | 707 | * });
|
| 708 | + * |
| 709 | + * const projectId = ''; |
| 710 | + * const region = ''; |
| 711 | + * const clusterName = ''; |
| 712 | + * const request = { |
| 713 | + * projectId: projectId, |
| 714 | + * region: region, |
| 715 | + * clusterName: clusterName, |
| 716 | + * }; |
| 717 | + * |
| 718 | + * // Handle the operation using the await pattern. |
| 719 | + * const [operation] = await client.deleteCluster(request); |
| 720 | + * |
| 721 | + * const [response] = await operation.promise(); |
676 | 722 | */
|
677 | 723 | deleteCluster(request, options, callback) {
|
678 | 724 | if (options instanceof Function && callback === undefined) {
|
@@ -1045,6 +1091,20 @@ class ClusterControllerClient {
|
1045 | 1091 | * .catch(err => {
|
1046 | 1092 | * console.error(err);
|
1047 | 1093 | * });
|
| 1094 | + * |
| 1095 | + * const projectId = ''; |
| 1096 | + * const region = ''; |
| 1097 | + * const clusterName = ''; |
| 1098 | + * const request = { |
| 1099 | + * projectId: projectId, |
| 1100 | + * region: region, |
| 1101 | + * clusterName: clusterName, |
| 1102 | + * }; |
| 1103 | + * |
| 1104 | + * // Handle the operation using the await pattern. |
| 1105 | + * const [operation] = await client.diagnoseCluster(request); |
| 1106 | + * |
| 1107 | + * const [response] = await operation.promise(); |
1048 | 1108 | */
|
1049 | 1109 | diagnoseCluster(request, options, callback) {
|
1050 | 1110 | if (options instanceof Function && callback === undefined) {
|
|
0 commit comments