Skip to content

Commit

Permalink
build(nodejs): fix naming for package name (#17)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 385853197
Source-Link: googleapis/googleapis@43fda80
Source-Link: googleapis/googleapis-gen@fa2adb5

chore: use gapic-generator-typescript v2.1.0
Committer: @alexander-fenster
PiperOrigin-RevId: 385246182
Source-Link: googleapis/googleapis@d767d0a
Source-Link: googleapis/googleapis-gen@e44f054

fix: Updating WORKSPACE files to use the newest version of the Typescript generator
PiperOrigin-RevId: 385101839
Source-Link: googleapis/googleapis@80f4042
Source-Link: googleapis/googleapis-gen@d3509d2
  • Loading branch information
gcf-owl-bot[bot] authored Jul 22, 2021
1 parent eee986a commit d5b3a1c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const version = require('../../../package.json').version;
export class WorkflowsServiceV2BetaClient {
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 @@ -57,6 +58,7 @@ export class WorkflowsServiceV2BetaClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
workflowsServiceV2BetaStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -101,6 +103,9 @@ export class WorkflowsServiceV2BetaClient {
.constructor as typeof WorkflowsServiceV2BetaClient;
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 @@ -187,6 +192,9 @@ export class WorkflowsServiceV2BetaClient {
// 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 @@ -216,7 +224,8 @@ export class WorkflowsServiceV2BetaClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.lifesciences.v2beta
.WorkflowsServiceV2Beta,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

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

0 comments on commit d5b3a1c

Please sign in to comment.