Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 3d1dc28

Browse files
fix: fixes for dynamic routing and streaming descriptors (#591)
- [ ] Regenerate this pull request now. Use gapic-generator-typescript v2.14.5. PiperOrigin-RevId: 450616838 Source-Link: googleapis/googleapis@7a47b72 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42cc6331bae0b99f61b8e01ae15b05211716c4f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjYzYzMzFiYWUwYjk5ZjYxYjhlMDFhZTE1YjA1MjExNzE2YzRmOSJ9
1 parent c7303a7 commit 3d1dc28

4 files changed

+195
-60
lines changed

src/v1/cluster_controller_client.ts

+16
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ export class ClusterControllerClient {
511511
options.otherArgs.headers['x-goog-request-params'] =
512512
gax.routingHeader.fromParams({
513513
project_id: request.projectId || '',
514+
region: request.region || '',
515+
cluster_name: request.clusterName || '',
514516
});
515517
this.initialize();
516518
return this.innerApiCalls.getCluster(request, options, callback);
@@ -636,6 +638,7 @@ export class ClusterControllerClient {
636638
options.otherArgs.headers['x-goog-request-params'] =
637639
gax.routingHeader.fromParams({
638640
project_id: request.projectId || '',
641+
region: request.region || '',
639642
});
640643
this.initialize();
641644
return this.innerApiCalls.createCluster(request, options, callback);
@@ -859,6 +862,8 @@ export class ClusterControllerClient {
859862
options.otherArgs.headers['x-goog-request-params'] =
860863
gax.routingHeader.fromParams({
861864
project_id: request.projectId || '',
865+
region: request.region || '',
866+
cluster_name: request.clusterName || '',
862867
});
863868
this.initialize();
864869
return this.innerApiCalls.updateCluster(request, options, callback);
@@ -1017,6 +1022,8 @@ export class ClusterControllerClient {
10171022
options.otherArgs.headers['x-goog-request-params'] =
10181023
gax.routingHeader.fromParams({
10191024
project_id: request.projectId || '',
1025+
region: request.region || '',
1026+
cluster_name: request.clusterName || '',
10201027
});
10211028
this.initialize();
10221029
return this.innerApiCalls.stopCluster(request, options, callback);
@@ -1175,6 +1182,8 @@ export class ClusterControllerClient {
11751182
options.otherArgs.headers['x-goog-request-params'] =
11761183
gax.routingHeader.fromParams({
11771184
project_id: request.projectId || '',
1185+
region: request.region || '',
1186+
cluster_name: request.clusterName || '',
11781187
});
11791188
this.initialize();
11801189
return this.innerApiCalls.startCluster(request, options, callback);
@@ -1335,6 +1344,8 @@ export class ClusterControllerClient {
13351344
options.otherArgs.headers['x-goog-request-params'] =
13361345
gax.routingHeader.fromParams({
13371346
project_id: request.projectId || '',
1347+
region: request.region || '',
1348+
cluster_name: request.clusterName || '',
13381349
});
13391350
this.initialize();
13401351
return this.innerApiCalls.deleteCluster(request, options, callback);
@@ -1483,6 +1494,8 @@ export class ClusterControllerClient {
14831494
options.otherArgs.headers['x-goog-request-params'] =
14841495
gax.routingHeader.fromParams({
14851496
project_id: request.projectId || '',
1497+
region: request.region || '',
1498+
cluster_name: request.clusterName || '',
14861499
});
14871500
this.initialize();
14881501
return this.innerApiCalls.diagnoseCluster(request, options, callback);
@@ -1632,6 +1645,7 @@ export class ClusterControllerClient {
16321645
options.otherArgs.headers['x-goog-request-params'] =
16331646
gax.routingHeader.fromParams({
16341647
project_id: request.projectId || '',
1648+
region: request.region || '',
16351649
});
16361650
this.initialize();
16371651
return this.innerApiCalls.listClusters(request, options, callback);
@@ -1693,6 +1707,7 @@ export class ClusterControllerClient {
16931707
options.otherArgs.headers['x-goog-request-params'] =
16941708
gax.routingHeader.fromParams({
16951709
project_id: request.projectId || '',
1710+
region: request.region || '',
16961711
});
16971712
const defaultCallSettings = this._defaults['listClusters'];
16981713
const callSettings = defaultCallSettings.merge(options);
@@ -1763,6 +1778,7 @@ export class ClusterControllerClient {
17631778
options.otherArgs.headers['x-goog-request-params'] =
17641779
gax.routingHeader.fromParams({
17651780
project_id: request.projectId || '',
1781+
region: request.region || '',
17661782
});
17671783
const defaultCallSettings = this._defaults['listClusters'];
17681784
const callSettings = defaultCallSettings.merge(options);

src/v1/job_controller_client.ts

+13
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ export class JobControllerClient {
464464
options.otherArgs.headers['x-goog-request-params'] =
465465
gax.routingHeader.fromParams({
466466
project_id: request.projectId || '',
467+
region: request.region || '',
467468
});
468469
this.initialize();
469470
return this.innerApiCalls.submitJob(request, options, callback);
@@ -552,6 +553,8 @@ export class JobControllerClient {
552553
options.otherArgs.headers['x-goog-request-params'] =
553554
gax.routingHeader.fromParams({
554555
project_id: request.projectId || '',
556+
region: request.region || '',
557+
job_id: request.jobId || '',
555558
});
556559
this.initialize();
557560
return this.innerApiCalls.getJob(request, options, callback);
@@ -649,6 +652,8 @@ export class JobControllerClient {
649652
options.otherArgs.headers['x-goog-request-params'] =
650653
gax.routingHeader.fromParams({
651654
project_id: request.projectId || '',
655+
region: request.region || '',
656+
job_id: request.jobId || '',
652657
});
653658
this.initialize();
654659
return this.innerApiCalls.updateJob(request, options, callback);
@@ -741,6 +746,8 @@ export class JobControllerClient {
741746
options.otherArgs.headers['x-goog-request-params'] =
742747
gax.routingHeader.fromParams({
743748
project_id: request.projectId || '',
749+
region: request.region || '',
750+
job_id: request.jobId || '',
744751
});
745752
this.initialize();
746753
return this.innerApiCalls.cancelJob(request, options, callback);
@@ -830,6 +837,8 @@ export class JobControllerClient {
830837
options.otherArgs.headers['x-goog-request-params'] =
831838
gax.routingHeader.fromParams({
832839
project_id: request.projectId || '',
840+
region: request.region || '',
841+
job_id: request.jobId || '',
833842
});
834843
this.initialize();
835844
return this.innerApiCalls.deleteJob(request, options, callback);
@@ -952,6 +961,7 @@ export class JobControllerClient {
952961
options.otherArgs.headers['x-goog-request-params'] =
953962
gax.routingHeader.fromParams({
954963
project_id: request.projectId || '',
964+
region: request.region || '',
955965
});
956966
this.initialize();
957967
return this.innerApiCalls.submitJobAsOperation(request, options, callback);
@@ -1103,6 +1113,7 @@ export class JobControllerClient {
11031113
options.otherArgs.headers['x-goog-request-params'] =
11041114
gax.routingHeader.fromParams({
11051115
project_id: request.projectId || '',
1116+
region: request.region || '',
11061117
});
11071118
this.initialize();
11081119
return this.innerApiCalls.listJobs(request, options, callback);
@@ -1168,6 +1179,7 @@ export class JobControllerClient {
11681179
options.otherArgs.headers['x-goog-request-params'] =
11691180
gax.routingHeader.fromParams({
11701181
project_id: request.projectId || '',
1182+
region: request.region || '',
11711183
});
11721184
const defaultCallSettings = this._defaults['listJobs'];
11731185
const callSettings = defaultCallSettings.merge(options);
@@ -1242,6 +1254,7 @@ export class JobControllerClient {
12421254
options.otherArgs.headers['x-goog-request-params'] =
12431255
gax.routingHeader.fromParams({
12441256
project_id: request.projectId || '',
1257+
region: request.region || '',
12451258
});
12461259
const defaultCallSettings = this._defaults['listJobs'];
12471260
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)