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

fix: fixes for dynamic routing and streaming descriptors #591

Merged
merged 2 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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