MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / getInstance

Function getInstance

compute/test/samples.test.js:49–56  ·  view source on GitHub ↗
(projectId, zone, instanceName)

Source from the content-addressed store, hash-verified

47};
48
49const getInstance = async (projectId, zone, instanceName) => {
50 const [instance] = await instancesClient.get({
51 project: projectId,
52 zone,
53 instance: instanceName,
54 });
55 return instance;
56};
57
58describe('samples', () => {
59 const instanceName = generateTestId();

Callers 1

samples.test.jsFile · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected