diff --git a/packages/google-cloud-gaming/src/v1/game_server_clusters_service_client.ts b/packages/google-cloud-gaming/src/v1/game_server_clusters_service_client.ts index 203cb3f9354..5937810cdc7 100644 --- a/packages/google-cloud-gaming/src/v1/game_server_clusters_service_client.ts +++ b/packages/google-cloud-gaming/src/v1/game_server_clusters_service_client.ts @@ -135,6 +135,12 @@ export class GameServerClustersServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1828,6 +1834,7 @@ export class GameServerClustersServiceClient { return this.gameServerClustersServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1/game_server_configs_service_client.ts b/packages/google-cloud-gaming/src/v1/game_server_configs_service_client.ts index d0eda58f91b..d03ddf30745 100644 --- a/packages/google-cloud-gaming/src/v1/game_server_configs_service_client.ts +++ b/packages/google-cloud-gaming/src/v1/game_server_configs_service_client.ts @@ -134,6 +134,12 @@ export class GameServerConfigsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1335,6 +1341,7 @@ export class GameServerConfigsServiceClient { return this.gameServerConfigsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1/game_server_deployments_service_client.ts b/packages/google-cloud-gaming/src/v1/game_server_deployments_service_client.ts index d23ff511591..81b21ef9ff8 100644 --- a/packages/google-cloud-gaming/src/v1/game_server_deployments_service_client.ts +++ b/packages/google-cloud-gaming/src/v1/game_server_deployments_service_client.ts @@ -135,6 +135,12 @@ export class GameServerDeploymentsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1998,6 +2004,7 @@ export class GameServerDeploymentsServiceClient { return this.gameServerDeploymentsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1/realms_service_client.ts b/packages/google-cloud-gaming/src/v1/realms_service_client.ts index 4f8d466aa53..0dacdfd713f 100644 --- a/packages/google-cloud-gaming/src/v1/realms_service_client.ts +++ b/packages/google-cloud-gaming/src/v1/realms_service_client.ts @@ -134,6 +134,12 @@ export class RealmsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1559,6 +1565,7 @@ export class RealmsServiceClient { return this.realmsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1beta/game_server_clusters_service_client.ts b/packages/google-cloud-gaming/src/v1beta/game_server_clusters_service_client.ts index a0a4dfd1683..00707802a2b 100644 --- a/packages/google-cloud-gaming/src/v1beta/game_server_clusters_service_client.ts +++ b/packages/google-cloud-gaming/src/v1beta/game_server_clusters_service_client.ts @@ -135,6 +135,12 @@ export class GameServerClustersServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1837,6 +1843,7 @@ export class GameServerClustersServiceClient { return this.gameServerClustersServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1beta/game_server_configs_service_client.ts b/packages/google-cloud-gaming/src/v1beta/game_server_configs_service_client.ts index 97e5a939dd9..370d2d30376 100644 --- a/packages/google-cloud-gaming/src/v1beta/game_server_configs_service_client.ts +++ b/packages/google-cloud-gaming/src/v1beta/game_server_configs_service_client.ts @@ -134,6 +134,12 @@ export class GameServerConfigsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1339,6 +1345,7 @@ export class GameServerConfigsServiceClient { return this.gameServerConfigsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1beta/game_server_deployments_service_client.ts b/packages/google-cloud-gaming/src/v1beta/game_server_deployments_service_client.ts index 7827c009ee4..2ef156cbd25 100644 --- a/packages/google-cloud-gaming/src/v1beta/game_server_deployments_service_client.ts +++ b/packages/google-cloud-gaming/src/v1beta/game_server_deployments_service_client.ts @@ -135,6 +135,12 @@ export class GameServerDeploymentsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -2012,6 +2018,7 @@ export class GameServerDeploymentsServiceClient { return this.gameServerDeploymentsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-gaming/src/v1beta/realms_service_client.ts b/packages/google-cloud-gaming/src/v1beta/realms_service_client.ts index 39072e58a07..cf5498bb7d9 100644 --- a/packages/google-cloud-gaming/src/v1beta/realms_service_client.ts +++ b/packages/google-cloud-gaming/src/v1beta/realms_service_client.ts @@ -134,6 +134,12 @@ export class RealmsServiceClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; @@ -1561,6 +1567,7 @@ export class RealmsServiceClient { return this.realmsServiceStub!.then(stub => { this._terminated = true; stub.close(); + this.operationsClient.close(); }); } return Promise.resolve();