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

Commit

Permalink
fix: fixes for dynamic routing and streaming descriptors (#591)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Use gapic-generator-typescript v2.14.5.

PiperOrigin-RevId: 450616838

Source-Link: googleapis/googleapis@7a47b72

Source-Link: googleapis/googleapis-gen@42cc633
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjYzYzMzFiYWUwYjk5ZjYxYjhlMDFhZTE1YjA1MjExNzE2YzRmOSJ9
  • Loading branch information
gcf-owl-bot[bot] authored May 31, 2022
1 parent c7303a7 commit 3d1dc28
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 60 deletions.
16 changes: 16 additions & 0 deletions src/v1/cluster_controller_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.getCluster(request, options, callback);
Expand Down Expand Up @@ -636,6 +638,7 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.createCluster(request, options, callback);
Expand Down Expand Up @@ -859,6 +862,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.updateCluster(request, options, callback);
Expand Down Expand Up @@ -1017,6 +1022,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.stopCluster(request, options, callback);
Expand Down Expand Up @@ -1175,6 +1182,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.startCluster(request, options, callback);
Expand Down Expand Up @@ -1335,6 +1344,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.deleteCluster(request, options, callback);
Expand Down Expand Up @@ -1483,6 +1494,8 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
cluster_name: request.clusterName || '',
});
this.initialize();
return this.innerApiCalls.diagnoseCluster(request, options, callback);
Expand Down Expand Up @@ -1632,6 +1645,7 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.listClusters(request, options, callback);
Expand Down Expand Up @@ -1693,6 +1707,7 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['listClusters'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1763,6 +1778,7 @@ export class ClusterControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['listClusters'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
13 changes: 13 additions & 0 deletions src/v1/job_controller_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.submitJob(request, options, callback);
Expand Down Expand Up @@ -552,6 +553,8 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
job_id: request.jobId || '',
});
this.initialize();
return this.innerApiCalls.getJob(request, options, callback);
Expand Down Expand Up @@ -649,6 +652,8 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
job_id: request.jobId || '',
});
this.initialize();
return this.innerApiCalls.updateJob(request, options, callback);
Expand Down Expand Up @@ -741,6 +746,8 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
job_id: request.jobId || '',
});
this.initialize();
return this.innerApiCalls.cancelJob(request, options, callback);
Expand Down Expand Up @@ -830,6 +837,8 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
job_id: request.jobId || '',
});
this.initialize();
return this.innerApiCalls.deleteJob(request, options, callback);
Expand Down Expand Up @@ -952,6 +961,7 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.submitJobAsOperation(request, options, callback);
Expand Down Expand Up @@ -1103,6 +1113,7 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.listJobs(request, options, callback);
Expand Down Expand Up @@ -1168,6 +1179,7 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['listJobs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1242,6 +1254,7 @@ export class JobControllerClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project_id: request.projectId || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['listJobs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 3d1dc28

Please sign in to comment.