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

Function createParam

parametermanager/createParam.js:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 const client = new ParameterManagerClient();
36
37 async function createParam() {
38 const parent = client.locationPath(projectId, 'global');
39 const request = {
40 parent: parent,
41 parameterId: parameterId,
42 };
43
44 const [parameter] = await client.createParameter(request);
45 console.log(`Created parameter: ${parameter.name}`);
46 return parameter;
47 }
48
49 return await createParam();
50 // [END parametermanager_create_param]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected