Skip to content

Commit

Permalink
chore(samples): create instance from template samples (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodoTheTrue authored Nov 10, 2021
1 parent 7305745 commit 14952a5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
36 changes: 36 additions & 0 deletions packages/google-cloud-compute/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 14952a5

Please sign in to comment.