From 14952a5959f932629fc777163f2e3ccbad858532 Mon Sep 17 00:00:00 2001 From: Fedor Isakov Date: Wed, 10 Nov 2021 11:27:07 +0300 Subject: [PATCH] chore(samples): create instance from template samples (#640) --- packages/google-cloud-compute/README.md | 2 ++ .../google-cloud-compute/samples/README.md | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index d72abd5b506..d3944a40760 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -64,6 +64,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-compute/tre | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Create Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/createInstance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/createInstance.js,samples/README.md) | +| Create Instance From Template | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/createInstanceFromTemplate.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/createInstanceFromTemplate.js,samples/README.md) | +| Create Instance From Template With Overrides | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/createInstanceFromTemplateWithOverrides.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/createInstanceFromTemplateWithOverrides.js,samples/README.md) | | Delete Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/deleteInstance.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/deleteInstance.js,samples/README.md) | | Disable Usage Export | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/disableUsageExport.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/disableUsageExport.js,samples/README.md) | | Get Usage Export Bucket | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/getUsageExportBucket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/getUsageExportBucket.js,samples/README.md) | diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index 424ef754be2..93dca84f2e8 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -13,6 +13,8 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Create Instance](#create-instance) + * [Create Instance From Template](#create-instance-from-template) + * [Create Instance From Template With Overrides](#create-instance-from-template-with-overrides) * [Delete Instance](#delete-instance) * [Disable Usage Export](#disable-usage-export) * [Get Usage Export Bucket](#get-usage-export-bucket) @@ -61,6 +63,40 @@ __Usage:__ +### Create Instance From Template + +View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/createInstanceFromTemplate.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/createInstanceFromTemplate.js,samples/README.md) + +__Usage:__ + + +`node samples/createInstanceFromTemplate.js` + + +----- + + + + +### Create Instance From Template With Overrides + +View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/createInstanceFromTemplateWithOverrides.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/createInstanceFromTemplateWithOverrides.js,samples/README.md) + +__Usage:__ + + +`node samples/createInstanceFromTemplateWithOverrides.js` + + +----- + + + + ### Delete Instance View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/deleteInstance.js).