Skip to content

Commit

Permalink
fix: support request params {key} with no =value (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Apr 22, 2020
1 parent 920295f commit 840be4b
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 91 deletions.
30 changes: 30 additions & 0 deletions packages/google-container/src/v1/cluster_manager_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.listClusters(request, options, callback);
Expand Down Expand Up @@ -499,6 +500,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.getCluster(request, options, callback);
Expand Down Expand Up @@ -604,6 +606,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.createCluster(request, options, callback);
Expand Down Expand Up @@ -699,6 +702,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.updateCluster(request, options, callback);
Expand Down Expand Up @@ -810,6 +814,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.updateNodePool(request, options, callback);
Expand Down Expand Up @@ -917,6 +922,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setNodePoolAutoscaling(
Expand Down Expand Up @@ -1022,6 +1028,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setLoggingService(request, options, callback);
Expand Down Expand Up @@ -1131,6 +1138,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setMonitoringService(request, options, callback);
Expand Down Expand Up @@ -1227,6 +1235,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setAddonsConfig(request, options, callback);
Expand Down Expand Up @@ -1328,6 +1337,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setLocations(request, options, callback);
Expand Down Expand Up @@ -1432,6 +1442,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.updateMaster(request, options, callback);
Expand Down Expand Up @@ -1531,6 +1542,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setMasterAuth(request, options, callback);
Expand Down Expand Up @@ -1632,6 +1644,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.deleteCluster(request, options, callback);
Expand Down Expand Up @@ -1722,6 +1735,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.listOperations(request, options, callback);
Expand Down Expand Up @@ -1815,6 +1829,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.getOperation(request, options, callback);
Expand Down Expand Up @@ -1907,6 +1922,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.cancelOperation(request, options, callback);
Expand Down Expand Up @@ -1996,6 +2012,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.getServerConfig(request, options, callback);
Expand Down Expand Up @@ -2089,6 +2106,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.listNodePools(request, options, callback);
Expand Down Expand Up @@ -2186,6 +2204,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.getNodePool(request, options, callback);
Expand Down Expand Up @@ -2282,6 +2301,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.createNodePool(request, options, callback);
Expand Down Expand Up @@ -2379,6 +2399,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.deleteNodePool(request, options, callback);
Expand Down Expand Up @@ -2485,6 +2506,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.rollbackNodePoolUpgrade(
Expand Down Expand Up @@ -2596,6 +2618,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setNodePoolManagement(request, options, callback);
Expand Down Expand Up @@ -2698,6 +2721,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setLabels(request, options, callback);
Expand Down Expand Up @@ -2793,6 +2817,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setLegacyAbac(request, options, callback);
Expand Down Expand Up @@ -2888,6 +2913,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.startIPRotation(request, options, callback);
Expand Down Expand Up @@ -2983,6 +3009,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.completeIPRotation(request, options, callback);
Expand Down Expand Up @@ -3082,6 +3109,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setNodePoolSize(request, options, callback);
Expand Down Expand Up @@ -3179,6 +3207,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setNetworkPolicy(request, options, callback);
Expand Down Expand Up @@ -3281,6 +3310,7 @@ export class ClusterManagerClient {
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
project_id: request.projectId || '',
});
this.initialize();
return this.innerApiCalls.setMaintenancePolicy(request, options, callback);
Expand Down
2 changes: 1 addition & 1 deletion packages/google-container/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-cloud-container.git",
"sha": "b9097123158bbe2314732e5a5b88842421f05326"
"sha": "e8fd828801edf9d153ff2bfe957858129fee383f"
}
},
{
Expand Down
Loading

0 comments on commit 840be4b

Please sign in to comment.