Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#313)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474338479

Source-Link: googleapis/googleapis@d5d35e0

Source-Link: googleapis/googleapis-gen@efcd3f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 1fa9125 commit 15e32f9
Show file tree
Hide file tree
Showing 16 changed files with 3,250 additions and 2,928 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getGameServerCluster(request, options, callback);
Expand Down Expand Up @@ -659,7 +659,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.previewCreateGameServerCluster(
Expand Down Expand Up @@ -763,7 +763,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.previewDeleteGameServerCluster(
Expand Down Expand Up @@ -871,7 +871,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'game_server_cluster.name': request.gameServerCluster!.name || '',
'game_server_cluster.name': request.gameServerCluster!.name ?? '',
});
this.initialize();
return this.innerApiCalls.previewUpdateGameServerCluster(
Expand Down Expand Up @@ -984,7 +984,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createGameServerCluster(
Expand Down Expand Up @@ -1127,7 +1127,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteGameServerCluster(
Expand Down Expand Up @@ -1274,7 +1274,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'game_server_cluster.name': request.gameServerCluster!.name || '',
'game_server_cluster.name': request.gameServerCluster!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateGameServerCluster(
Expand Down Expand Up @@ -1428,7 +1428,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listGameServerClusters(
Expand Down Expand Up @@ -1487,7 +1487,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerClusters'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1551,7 +1551,7 @@ export class GameServerClustersServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerClusters'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getGameServerConfig(request, options, callback);
Expand Down Expand Up @@ -634,7 +634,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createGameServerConfig(
Expand Down Expand Up @@ -778,7 +778,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteGameServerConfig(
Expand Down Expand Up @@ -926,7 +926,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listGameServerConfigs(request, options, callback);
Expand Down Expand Up @@ -974,7 +974,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1031,7 +1031,7 @@ export class GameServerConfigsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerConfigs'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getGameServerDeployment(
Expand Down Expand Up @@ -663,7 +663,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getGameServerDeploymentRollout(
Expand Down Expand Up @@ -773,7 +773,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'rollout.name': request.rollout!.name || '',
'rollout.name': request.rollout!.name ?? '',
});
this.initialize();
return this.innerApiCalls.previewGameServerDeploymentRollout(
Expand Down Expand Up @@ -871,7 +871,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.fetchDeploymentState(request, options, callback);
Expand Down Expand Up @@ -980,7 +980,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createGameServerDeployment(
Expand Down Expand Up @@ -1123,7 +1123,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteGameServerDeployment(
Expand Down Expand Up @@ -1270,7 +1270,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'game_server_deployment.name': request.gameServerDeployment!.name || '',
'game_server_deployment.name': request.gameServerDeployment!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateGameServerDeployment(
Expand Down Expand Up @@ -1422,7 +1422,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'rollout.name': request.rollout!.name || '',
'rollout.name': request.rollout!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateGameServerDeploymentRollout(
Expand Down Expand Up @@ -1570,7 +1570,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listGameServerDeployments(
Expand Down Expand Up @@ -1623,7 +1623,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerDeployments'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1681,7 +1681,7 @@ export class GameServerDeploymentsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listGameServerDeployments'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
16 changes: 8 additions & 8 deletions packages/google-cloud-gaming/src/v1/realms_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getRealm(request, options, callback);
Expand Down Expand Up @@ -618,7 +618,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'realm.name': request.realm!.name || '',
'realm.name': request.realm!.name ?? '',
});
this.initialize();
return this.innerApiCalls.previewRealmUpdate(request, options, callback);
Expand Down Expand Up @@ -727,7 +727,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createRealm(request, options, callback);
Expand Down Expand Up @@ -866,7 +866,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteRealm(request, options, callback);
Expand Down Expand Up @@ -1009,7 +1009,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'realm.name': request.realm!.name || '',
'realm.name': request.realm!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateRealm(request, options, callback);
Expand Down Expand Up @@ -1145,7 +1145,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listRealms(request, options, callback);
Expand Down Expand Up @@ -1194,7 +1194,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listRealms'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1252,7 +1252,7 @@ export class RealmsServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listRealms'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 15e32f9

Please sign in to comment.