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 #733

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
5 changes: 5 additions & 0 deletions src/v1/accelerator_types_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ export class AcceleratorTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
accelerator_type: request.acceleratorType || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -566,6 +568,7 @@ export class AcceleratorTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls.list(request, options, callback);
Expand Down Expand Up @@ -612,6 +615,7 @@ export class AcceleratorTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -667,6 +671,7 @@ export class AcceleratorTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
8 changes: 8 additions & 0 deletions src/v1/addresses_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
address: request.address || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -518,6 +520,8 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
address: request.address || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -614,6 +618,7 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -791,6 +796,7 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
});
this.initialize();
return this.innerApiCalls.list(request, options, callback);
Expand Down Expand Up @@ -837,6 +843,7 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -892,6 +899,7 @@ export class AddressesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
region: request.region || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
10 changes: 10 additions & 0 deletions src/v1/autoscalers_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
autoscaler: request.autoscaler || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -528,6 +530,8 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
autoscaler: request.autoscaler || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -630,6 +634,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -748,6 +753,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -872,6 +878,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1049,6 +1056,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls.list(request, options, callback);
Expand Down Expand Up @@ -1095,6 +1103,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1150,6 +1159,7 @@ export class AutoscalersClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
7 changes: 7 additions & 0 deletions src/v1/backend_buckets_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -536,6 +537,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -658,6 +660,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -771,6 +774,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -993,6 +997,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1115,6 +1120,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1237,6 +1243,7 @@ export class BackendBucketsClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_bucket: request.backendBucket || '',
});
this.initialize();
return this.innerApiCalls
Expand Down
9 changes: 9 additions & 0 deletions src/v1/backend_services_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -544,6 +545,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -666,6 +668,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -779,6 +782,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -879,6 +883,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls.getHealth(request, options, callback);
Expand Down Expand Up @@ -1101,6 +1106,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1223,6 +1229,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1345,6 +1352,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down Expand Up @@ -1467,6 +1475,7 @@ export class BackendServicesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
backend_service: request.backendService || '',
});
this.initialize();
return this.innerApiCalls
Expand Down
5 changes: 5 additions & 0 deletions src/v1/disk_types_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ export class DiskTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
disk_type: request.diskType || '',
});
this.initialize();
return this.innerApiCalls.get(request, options, callback);
Expand Down Expand Up @@ -553,6 +555,7 @@ export class DiskTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
this.initialize();
return this.innerApiCalls.list(request, options, callback);
Expand Down Expand Up @@ -599,6 +602,7 @@ export class DiskTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -654,6 +658,7 @@ export class DiskTypesClient {
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
project: request.project || '',
zone: request.zone || '',
});
const defaultCallSettings = this._defaults['list'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading