Skip to content
This repository was archived by the owner on Oct 20, 2026. 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
203 changes: 0 additions & 203 deletions src/common-grpc/operation.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

import {GrpcService, GrpcServiceConfig} from './common-grpc/service';
import {GrpcOperation} from './common-grpc/operation';
import {paginator} from '@google-cloud/paginator';
import {PreciseDate} from '@google-cloud/precise-date';
import {replaceProjectIdToken} from '@google-cloud/projectify';
Expand Down Expand Up @@ -635,27 +634,6 @@ class Spanner extends GrpcService {
return this.instances_.get(key)!;
}

/**
* Get a reference to an Operation object.
*
* @throws {Error} If a name is not provided.
*
* @param {string} name The name of the operation.
* @returns {Operation} An Operation object.
*
* @example
* const {Spanner} = require('@google-cloud/spanner');
* const spanner = new Spanner();
* const operation = spanner.operation('operation-name');
*/
operation(name) {
if (!name) {
throw new Error('A name is required to access an Operation object.');
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return new GrpcOperation(this as any, name);
}

/**
* Prepare a gapic request. This will cache the GAX client and replace
* {{projectId}} placeholders, if necessary.
Expand Down
Loading