Skip to content

Commit 729e658

Browse files
fix: Updating WORKSPACE files to use the newest version of the Typescript generator. (#198)
Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file. PiperOrigin-RevId: 385101839 Source-Link: googleapis/googleapis@80f4042 Source-Link: googleapis/googleapis-gen@d3509d2
1 parent 16836df commit 729e658

8 files changed

Lines changed: 80 additions & 8 deletions

packages/google-cloud-gaming/src/v1/game_server_clusters_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class GameServerClustersServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class GameServerClustersServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -106,6 +108,9 @@ export class GameServerClustersServiceClient {
106108
.constructor as typeof GameServerClustersServiceClient;
107109
const servicePath =
108110
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
111+
this._providedCustomServicePath = !!(
112+
opts?.servicePath || opts?.apiEndpoint
113+
);
109114
const port = opts?.port || staticMembers.port;
110115
const clientConfig = opts?.clientConfig ?? {};
111116
const fallback =
@@ -258,6 +263,9 @@ export class GameServerClustersServiceClient {
258263
// of calling the API is handled in `google-gax`, with this code
259264
// merely providing the destination and request information.
260265
this.innerApiCalls = {};
266+
267+
// Add a warn function to the client constructor so it can be easily tested.
268+
this.warn = gax.warn;
261269
}
262270

263271
/**
@@ -287,7 +295,8 @@ export class GameServerClustersServiceClient {
287295
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
288296
(this._protos as any).google.cloud.gaming.v1
289297
.GameServerClustersService,
290-
this._opts
298+
this._opts,
299+
this._providedCustomServicePath
291300
) as Promise<{[method: string]: Function}>;
292301

293302
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1/game_server_configs_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const version = require('../../../package.json').version;
4949
export class GameServerConfigsServiceClient {
5050
private _terminated = false;
5151
private _opts: ClientOptions;
52+
private _providedCustomServicePath: boolean;
5253
private _gaxModule: typeof gax | typeof gax.fallback;
5354
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5455
private _protos: {};
@@ -60,6 +61,7 @@ export class GameServerConfigsServiceClient {
6061
longrunning: {},
6162
batching: {},
6263
};
64+
warn: (code: string, message: string, warnType?: string) => void;
6365
innerApiCalls: {[name: string]: Function};
6466
pathTemplates: {[name: string]: gax.PathTemplate};
6567
operationsClient: gax.OperationsClient;
@@ -105,6 +107,9 @@ export class GameServerConfigsServiceClient {
105107
.constructor as typeof GameServerConfigsServiceClient;
106108
const servicePath =
107109
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
110+
this._providedCustomServicePath = !!(
111+
opts?.servicePath || opts?.apiEndpoint
112+
);
108113
const port = opts?.port || staticMembers.port;
109114
const clientConfig = opts?.clientConfig ?? {};
110115
const fallback =
@@ -242,6 +247,9 @@ export class GameServerConfigsServiceClient {
242247
// of calling the API is handled in `google-gax`, with this code
243248
// merely providing the destination and request information.
244249
this.innerApiCalls = {};
250+
251+
// Add a warn function to the client constructor so it can be easily tested.
252+
this.warn = gax.warn;
245253
}
246254

247255
/**
@@ -270,7 +278,8 @@ export class GameServerConfigsServiceClient {
270278
)
271279
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
272280
(this._protos as any).google.cloud.gaming.v1.GameServerConfigsService,
273-
this._opts
281+
this._opts,
282+
this._providedCustomServicePath
274283
) as Promise<{[method: string]: Function}>;
275284

276285
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1/game_server_deployments_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class GameServerDeploymentsServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class GameServerDeploymentsServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -106,6 +108,9 @@ export class GameServerDeploymentsServiceClient {
106108
.constructor as typeof GameServerDeploymentsServiceClient;
107109
const servicePath =
108110
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
111+
this._providedCustomServicePath = !!(
112+
opts?.servicePath || opts?.apiEndpoint
113+
);
109114
const port = opts?.port || staticMembers.port;
110115
const clientConfig = opts?.clientConfig ?? {};
111116
const fallback =
@@ -274,6 +279,9 @@ export class GameServerDeploymentsServiceClient {
274279
// of calling the API is handled in `google-gax`, with this code
275280
// merely providing the destination and request information.
276281
this.innerApiCalls = {};
282+
283+
// Add a warn function to the client constructor so it can be easily tested.
284+
this.warn = gax.warn;
277285
}
278286

279287
/**
@@ -303,7 +311,8 @@ export class GameServerDeploymentsServiceClient {
303311
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
304312
(this._protos as any).google.cloud.gaming.v1
305313
.GameServerDeploymentsService,
306-
this._opts
314+
this._opts,
315+
this._providedCustomServicePath
307316
) as Promise<{[method: string]: Function}>;
308317

309318
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1/realms_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class RealmsServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class RealmsServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -105,6 +107,9 @@ export class RealmsServiceClient {
105107
const staticMembers = this.constructor as typeof RealmsServiceClient;
106108
const servicePath =
107109
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
110+
this._providedCustomServicePath = !!(
111+
opts?.servicePath || opts?.apiEndpoint
112+
);
108113
const port = opts?.port || staticMembers.port;
109114
const clientConfig = opts?.clientConfig ?? {};
110115
const fallback =
@@ -245,6 +250,9 @@ export class RealmsServiceClient {
245250
// of calling the API is handled in `google-gax`, with this code
246251
// merely providing the destination and request information.
247252
this.innerApiCalls = {};
253+
254+
// Add a warn function to the client constructor so it can be easily tested.
255+
this.warn = gax.warn;
248256
}
249257

250258
/**
@@ -273,7 +281,8 @@ export class RealmsServiceClient {
273281
)
274282
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
275283
(this._protos as any).google.cloud.gaming.v1.RealmsService,
276-
this._opts
284+
this._opts,
285+
this._providedCustomServicePath
277286
) as Promise<{[method: string]: Function}>;
278287

279288
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1beta/game_server_clusters_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class GameServerClustersServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class GameServerClustersServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -106,6 +108,9 @@ export class GameServerClustersServiceClient {
106108
.constructor as typeof GameServerClustersServiceClient;
107109
const servicePath =
108110
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
111+
this._providedCustomServicePath = !!(
112+
opts?.servicePath || opts?.apiEndpoint
113+
);
109114
const port = opts?.port || staticMembers.port;
110115
const clientConfig = opts?.clientConfig ?? {};
111116
const fallback =
@@ -258,6 +263,9 @@ export class GameServerClustersServiceClient {
258263
// of calling the API is handled in `google-gax`, with this code
259264
// merely providing the destination and request information.
260265
this.innerApiCalls = {};
266+
267+
// Add a warn function to the client constructor so it can be easily tested.
268+
this.warn = gax.warn;
261269
}
262270

263271
/**
@@ -287,7 +295,8 @@ export class GameServerClustersServiceClient {
287295
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
288296
(this._protos as any).google.cloud.gaming.v1beta
289297
.GameServerClustersService,
290-
this._opts
298+
this._opts,
299+
this._providedCustomServicePath
291300
) as Promise<{[method: string]: Function}>;
292301

293302
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1beta/game_server_configs_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const version = require('../../../package.json').version;
4949
export class GameServerConfigsServiceClient {
5050
private _terminated = false;
5151
private _opts: ClientOptions;
52+
private _providedCustomServicePath: boolean;
5253
private _gaxModule: typeof gax | typeof gax.fallback;
5354
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5455
private _protos: {};
@@ -60,6 +61,7 @@ export class GameServerConfigsServiceClient {
6061
longrunning: {},
6162
batching: {},
6263
};
64+
warn: (code: string, message: string, warnType?: string) => void;
6365
innerApiCalls: {[name: string]: Function};
6466
pathTemplates: {[name: string]: gax.PathTemplate};
6567
operationsClient: gax.OperationsClient;
@@ -105,6 +107,9 @@ export class GameServerConfigsServiceClient {
105107
.constructor as typeof GameServerConfigsServiceClient;
106108
const servicePath =
107109
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
110+
this._providedCustomServicePath = !!(
111+
opts?.servicePath || opts?.apiEndpoint
112+
);
108113
const port = opts?.port || staticMembers.port;
109114
const clientConfig = opts?.clientConfig ?? {};
110115
const fallback =
@@ -242,6 +247,9 @@ export class GameServerConfigsServiceClient {
242247
// of calling the API is handled in `google-gax`, with this code
243248
// merely providing the destination and request information.
244249
this.innerApiCalls = {};
250+
251+
// Add a warn function to the client constructor so it can be easily tested.
252+
this.warn = gax.warn;
245253
}
246254

247255
/**
@@ -271,7 +279,8 @@ export class GameServerConfigsServiceClient {
271279
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
272280
(this._protos as any).google.cloud.gaming.v1beta
273281
.GameServerConfigsService,
274-
this._opts
282+
this._opts,
283+
this._providedCustomServicePath
275284
) as Promise<{[method: string]: Function}>;
276285

277286
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1beta/game_server_deployments_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class GameServerDeploymentsServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class GameServerDeploymentsServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -106,6 +108,9 @@ export class GameServerDeploymentsServiceClient {
106108
.constructor as typeof GameServerDeploymentsServiceClient;
107109
const servicePath =
108110
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
111+
this._providedCustomServicePath = !!(
112+
opts?.servicePath || opts?.apiEndpoint
113+
);
109114
const port = opts?.port || staticMembers.port;
110115
const clientConfig = opts?.clientConfig ?? {};
111116
const fallback =
@@ -274,6 +279,9 @@ export class GameServerDeploymentsServiceClient {
274279
// of calling the API is handled in `google-gax`, with this code
275280
// merely providing the destination and request information.
276281
this.innerApiCalls = {};
282+
283+
// Add a warn function to the client constructor so it can be easily tested.
284+
this.warn = gax.warn;
277285
}
278286

279287
/**
@@ -303,7 +311,8 @@ export class GameServerDeploymentsServiceClient {
303311
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
304312
(this._protos as any).google.cloud.gaming.v1beta
305313
.GameServerDeploymentsService,
306-
this._opts
314+
this._opts,
315+
this._providedCustomServicePath
307316
) as Promise<{[method: string]: Function}>;
308317

309318
// Iterate over each of the methods that the service provides

packages/google-cloud-gaming/src/v1beta/realms_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const version = require('../../../package.json').version;
5050
export class RealmsServiceClient {
5151
private _terminated = false;
5252
private _opts: ClientOptions;
53+
private _providedCustomServicePath: boolean;
5354
private _gaxModule: typeof gax | typeof gax.fallback;
5455
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
5556
private _protos: {};
@@ -61,6 +62,7 @@ export class RealmsServiceClient {
6162
longrunning: {},
6263
batching: {},
6364
};
65+
warn: (code: string, message: string, warnType?: string) => void;
6466
innerApiCalls: {[name: string]: Function};
6567
pathTemplates: {[name: string]: gax.PathTemplate};
6668
operationsClient: gax.OperationsClient;
@@ -105,6 +107,9 @@ export class RealmsServiceClient {
105107
const staticMembers = this.constructor as typeof RealmsServiceClient;
106108
const servicePath =
107109
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
110+
this._providedCustomServicePath = !!(
111+
opts?.servicePath || opts?.apiEndpoint
112+
);
108113
const port = opts?.port || staticMembers.port;
109114
const clientConfig = opts?.clientConfig ?? {};
110115
const fallback =
@@ -245,6 +250,9 @@ export class RealmsServiceClient {
245250
// of calling the API is handled in `google-gax`, with this code
246251
// merely providing the destination and request information.
247252
this.innerApiCalls = {};
253+
254+
// Add a warn function to the client constructor so it can be easily tested.
255+
this.warn = gax.warn;
248256
}
249257

250258
/**
@@ -273,7 +281,8 @@ export class RealmsServiceClient {
273281
)
274282
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
275283
(this._protos as any).google.cloud.gaming.v1beta.RealmsService,
276-
this._opts
284+
this._opts,
285+
this._providedCustomServicePath
277286
) as Promise<{[method: string]: Function}>;
278287

279288
// Iterate over each of the methods that the service provides

0 commit comments

Comments
 (0)