Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit ce940c1

Browse files
fix: Updating WORKSPACE files to use the newest version of the Typescript generator. (#8)
* fix: Updating WORKSPACE files to use the newest version of the Typescript generator. 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: https://github.com/googleapis/googleapis-gen/commit/d3509d2520fb8db862129633f1cf8406d17454e1 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c689196 commit ce940c1

7 files changed

Lines changed: 61 additions & 8 deletions

linkinator.config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"skip": [
44
"https://codecov.io/gh/googleapis/",
55
"www.googleapis.com",
6-
"img.shields.io",
7-
"https://github.com/googleapis/nodejs-dataflow/blob/master/CHANGELOG.md"
6+
"img.shields.io"
87
],
98
"silent": true,
109
"concurrency": 10

src/v1beta3/flex_templates_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
3939
export class FlexTemplatesServiceClient {
4040
private _terminated = false;
4141
private _opts: ClientOptions;
42+
private _providedCustomServicePath: boolean;
4243
private _gaxModule: typeof gax | typeof gax.fallback;
4344
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
4445
private _protos: {};
@@ -50,6 +51,7 @@ export class FlexTemplatesServiceClient {
5051
longrunning: {},
5152
batching: {},
5253
};
54+
warn: (code: string, message: string, warnType?: string) => void;
5355
innerApiCalls: {[name: string]: Function};
5456
flexTemplatesServiceStub?: Promise<{[name: string]: Function}>;
5557

@@ -92,6 +94,9 @@ export class FlexTemplatesServiceClient {
9294
const staticMembers = this.constructor as typeof FlexTemplatesServiceClient;
9395
const servicePath =
9496
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
97+
this._providedCustomServicePath = !!(
98+
opts?.servicePath || opts?.apiEndpoint
99+
);
95100
const port = opts?.port || staticMembers.port;
96101
const clientConfig = opts?.clientConfig ?? {};
97102
const fallback =
@@ -151,6 +156,9 @@ export class FlexTemplatesServiceClient {
151156
// of calling the API is handled in `google-gax`, with this code
152157
// merely providing the destination and request information.
153158
this.innerApiCalls = {};
159+
160+
// Add a warn function to the client constructor so it can be easily tested.
161+
this.warn = gax.warn;
154162
}
155163

156164
/**
@@ -179,7 +187,8 @@ export class FlexTemplatesServiceClient {
179187
)
180188
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
181189
(this._protos as any).google.dataflow.v1beta3.FlexTemplatesService,
182-
this._opts
190+
this._opts,
191+
this._providedCustomServicePath
183192
) as Promise<{[method: string]: Function}>;
184193

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

src/v1beta3/jobs_v1_beta3_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 JobsV1Beta3Client {
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 JobsV1Beta3Client {
6061
longrunning: {},
6162
batching: {},
6263
};
64+
warn: (code: string, message: string, warnType?: string) => void;
6365
innerApiCalls: {[name: string]: Function};
6466
jobsV1Beta3Stub?: Promise<{[name: string]: Function}>;
6567

@@ -102,6 +104,9 @@ export class JobsV1Beta3Client {
102104
const staticMembers = this.constructor as typeof JobsV1Beta3Client;
103105
const servicePath =
104106
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
107+
this._providedCustomServicePath = !!(
108+
opts?.servicePath || opts?.apiEndpoint
109+
);
105110
const port = opts?.port || staticMembers.port;
106111
const clientConfig = opts?.clientConfig ?? {};
107112
const fallback =
@@ -177,6 +182,9 @@ export class JobsV1Beta3Client {
177182
// of calling the API is handled in `google-gax`, with this code
178183
// merely providing the destination and request information.
179184
this.innerApiCalls = {};
185+
186+
// Add a warn function to the client constructor so it can be easily tested.
187+
this.warn = gax.warn;
180188
}
181189

182190
/**
@@ -205,7 +213,8 @@ export class JobsV1Beta3Client {
205213
)
206214
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
207215
(this._protos as any).google.dataflow.v1beta3.JobsV1Beta3,
208-
this._opts
216+
this._opts,
217+
this._providedCustomServicePath
209218
) as Promise<{[method: string]: Function}>;
210219

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

src/v1beta3/messages_v1_beta3_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 MessagesV1Beta3Client {
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 MessagesV1Beta3Client {
6061
longrunning: {},
6162
batching: {},
6263
};
64+
warn: (code: string, message: string, warnType?: string) => void;
6365
innerApiCalls: {[name: string]: Function};
6466
messagesV1Beta3Stub?: Promise<{[name: string]: Function}>;
6567

@@ -102,6 +104,9 @@ export class MessagesV1Beta3Client {
102104
const staticMembers = this.constructor as typeof MessagesV1Beta3Client;
103105
const servicePath =
104106
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
107+
this._providedCustomServicePath = !!(
108+
opts?.servicePath || opts?.apiEndpoint
109+
);
105110
const port = opts?.port || staticMembers.port;
106111
const clientConfig = opts?.clientConfig ?? {};
107112
const fallback =
@@ -172,6 +177,9 @@ export class MessagesV1Beta3Client {
172177
// of calling the API is handled in `google-gax`, with this code
173178
// merely providing the destination and request information.
174179
this.innerApiCalls = {};
180+
181+
// Add a warn function to the client constructor so it can be easily tested.
182+
this.warn = gax.warn;
175183
}
176184

177185
/**
@@ -200,7 +208,8 @@ export class MessagesV1Beta3Client {
200208
)
201209
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
202210
(this._protos as any).google.dataflow.v1beta3.MessagesV1Beta3,
203-
this._opts
211+
this._opts,
212+
this._providedCustomServicePath
204213
) as Promise<{[method: string]: Function}>;
205214

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

src/v1beta3/metrics_v1_beta3_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 MetricsV1Beta3Client {
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 MetricsV1Beta3Client {
6061
longrunning: {},
6162
batching: {},
6263
};
64+
warn: (code: string, message: string, warnType?: string) => void;
6365
innerApiCalls: {[name: string]: Function};
6466
metricsV1Beta3Stub?: Promise<{[name: string]: Function}>;
6567

@@ -102,6 +104,9 @@ export class MetricsV1Beta3Client {
102104
const staticMembers = this.constructor as typeof MetricsV1Beta3Client;
103105
const servicePath =
104106
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
107+
this._providedCustomServicePath = !!(
108+
opts?.servicePath || opts?.apiEndpoint
109+
);
105110
const port = opts?.port || staticMembers.port;
106111
const clientConfig = opts?.clientConfig ?? {};
107112
const fallback =
@@ -177,6 +182,9 @@ export class MetricsV1Beta3Client {
177182
// of calling the API is handled in `google-gax`, with this code
178183
// merely providing the destination and request information.
179184
this.innerApiCalls = {};
185+
186+
// Add a warn function to the client constructor so it can be easily tested.
187+
this.warn = gax.warn;
180188
}
181189

182190
/**
@@ -205,7 +213,8 @@ export class MetricsV1Beta3Client {
205213
)
206214
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
207215
(this._protos as any).google.dataflow.v1beta3.MetricsV1Beta3,
208-
this._opts
216+
this._opts,
217+
this._providedCustomServicePath
209218
) as Promise<{[method: string]: Function}>;
210219

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

src/v1beta3/snapshots_v1_beta3_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
3939
export class SnapshotsV1Beta3Client {
4040
private _terminated = false;
4141
private _opts: ClientOptions;
42+
private _providedCustomServicePath: boolean;
4243
private _gaxModule: typeof gax | typeof gax.fallback;
4344
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
4445
private _protos: {};
@@ -50,6 +51,7 @@ export class SnapshotsV1Beta3Client {
5051
longrunning: {},
5152
batching: {},
5253
};
54+
warn: (code: string, message: string, warnType?: string) => void;
5355
innerApiCalls: {[name: string]: Function};
5456
snapshotsV1Beta3Stub?: Promise<{[name: string]: Function}>;
5557

@@ -92,6 +94,9 @@ export class SnapshotsV1Beta3Client {
9294
const staticMembers = this.constructor as typeof SnapshotsV1Beta3Client;
9395
const servicePath =
9496
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
97+
this._providedCustomServicePath = !!(
98+
opts?.servicePath || opts?.apiEndpoint
99+
);
95100
const port = opts?.port || staticMembers.port;
96101
const clientConfig = opts?.clientConfig ?? {};
97102
const fallback =
@@ -151,6 +156,9 @@ export class SnapshotsV1Beta3Client {
151156
// of calling the API is handled in `google-gax`, with this code
152157
// merely providing the destination and request information.
153158
this.innerApiCalls = {};
159+
160+
// Add a warn function to the client constructor so it can be easily tested.
161+
this.warn = gax.warn;
154162
}
155163

156164
/**
@@ -179,7 +187,8 @@ export class SnapshotsV1Beta3Client {
179187
)
180188
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
181189
(this._protos as any).google.dataflow.v1beta3.SnapshotsV1Beta3,
182-
this._opts
190+
this._opts,
191+
this._providedCustomServicePath
183192
) as Promise<{[method: string]: Function}>;
184193

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

src/v1beta3/templates_service_client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
3939
export class TemplatesServiceClient {
4040
private _terminated = false;
4141
private _opts: ClientOptions;
42+
private _providedCustomServicePath: boolean;
4243
private _gaxModule: typeof gax | typeof gax.fallback;
4344
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
4445
private _protos: {};
@@ -50,6 +51,7 @@ export class TemplatesServiceClient {
5051
longrunning: {},
5152
batching: {},
5253
};
54+
warn: (code: string, message: string, warnType?: string) => void;
5355
innerApiCalls: {[name: string]: Function};
5456
templatesServiceStub?: Promise<{[name: string]: Function}>;
5557

@@ -92,6 +94,9 @@ export class TemplatesServiceClient {
9294
const staticMembers = this.constructor as typeof TemplatesServiceClient;
9395
const servicePath =
9496
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
97+
this._providedCustomServicePath = !!(
98+
opts?.servicePath || opts?.apiEndpoint
99+
);
95100
const port = opts?.port || staticMembers.port;
96101
const clientConfig = opts?.clientConfig ?? {};
97102
const fallback =
@@ -151,6 +156,9 @@ export class TemplatesServiceClient {
151156
// of calling the API is handled in `google-gax`, with this code
152157
// merely providing the destination and request information.
153158
this.innerApiCalls = {};
159+
160+
// Add a warn function to the client constructor so it can be easily tested.
161+
this.warn = gax.warn;
154162
}
155163

156164
/**
@@ -179,7 +187,8 @@ export class TemplatesServiceClient {
179187
)
180188
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
181189
(this._protos as any).google.dataflow.v1beta3.TemplatesService,
182-
this._opts
190+
this._opts,
191+
this._providedCustomServicePath
183192
) as Promise<{[method: string]: Function}>;
184193

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

0 commit comments

Comments
 (0)