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

Function deployModel

automl/deploy_model.js:36–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 const client = new AutoMlClient();
35
36 async function deployModel() {
37 // Construct request
38 const request = {
39 name: client.modelPath(projectId, location, modelId),
40 };
41
42 const [operation] = await client.deployModel(request);
43
44 // Wait for operation to complete.
45 const [response] = await operation.promise();
46 console.log(`Model deployment finished. ${response}`);
47 }
48
49 deployModel();
50 // [END automl_deploy_model]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected