Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"https://github.com/googleapis/nodejs-dataflow/blob/master/CHANGELOG.md"
"img.shields.io"
],
"silent": true,
"concurrency": 10
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/flex_templates_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
export class FlexTemplatesServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -50,6 +51,7 @@ export class FlexTemplatesServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
flexTemplatesServiceStub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -92,6 +94,9 @@ export class FlexTemplatesServiceClient {
const staticMembers = this.constructor as typeof FlexTemplatesServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -151,6 +156,9 @@ export class FlexTemplatesServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -179,7 +187,8 @@ export class FlexTemplatesServiceClient {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.FlexTemplatesService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/jobs_v1_beta3_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const version = require('../../../package.json').version;
export class JobsV1Beta3Client {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -60,6 +61,7 @@ export class JobsV1Beta3Client {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
jobsV1Beta3Stub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -102,6 +104,9 @@ export class JobsV1Beta3Client {
const staticMembers = this.constructor as typeof JobsV1Beta3Client;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -177,6 +182,9 @@ export class JobsV1Beta3Client {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -205,7 +213,8 @@ export class JobsV1Beta3Client {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.JobsV1Beta3,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/messages_v1_beta3_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const version = require('../../../package.json').version;
export class MessagesV1Beta3Client {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -60,6 +61,7 @@ export class MessagesV1Beta3Client {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
messagesV1Beta3Stub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -102,6 +104,9 @@ export class MessagesV1Beta3Client {
const staticMembers = this.constructor as typeof MessagesV1Beta3Client;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -172,6 +177,9 @@ export class MessagesV1Beta3Client {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -200,7 +208,8 @@ export class MessagesV1Beta3Client {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.MessagesV1Beta3,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/metrics_v1_beta3_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const version = require('../../../package.json').version;
export class MetricsV1Beta3Client {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -60,6 +61,7 @@ export class MetricsV1Beta3Client {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
metricsV1Beta3Stub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -102,6 +104,9 @@ export class MetricsV1Beta3Client {
const staticMembers = this.constructor as typeof MetricsV1Beta3Client;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -177,6 +182,9 @@ export class MetricsV1Beta3Client {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -205,7 +213,8 @@ export class MetricsV1Beta3Client {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.MetricsV1Beta3,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/snapshots_v1_beta3_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
export class SnapshotsV1Beta3Client {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -50,6 +51,7 @@ export class SnapshotsV1Beta3Client {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
snapshotsV1Beta3Stub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -92,6 +94,9 @@ export class SnapshotsV1Beta3Client {
const staticMembers = this.constructor as typeof SnapshotsV1Beta3Client;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -151,6 +156,9 @@ export class SnapshotsV1Beta3Client {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -179,7 +187,8 @@ export class SnapshotsV1Beta3Client {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.SnapshotsV1Beta3,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta3/templates_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
export class TemplatesServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -50,6 +51,7 @@ export class TemplatesServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
templatesServiceStub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -92,6 +94,9 @@ export class TemplatesServiceClient {
const staticMembers = this.constructor as typeof TemplatesServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -151,6 +156,9 @@ export class TemplatesServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -179,7 +187,8 @@ export class TemplatesServiceClient {
)
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.dataflow.v1beta3.TemplatesService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down