Skip to content

Commit

Permalink
chore(samples): add moving instances between zones samples (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodoTheTrue authored Jul 14, 2022
1 parent ee8f56b commit f260dee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-compute/tre
| 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 Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/getInstance.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/getInstance.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) |
| List All Instances | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/listAllInstances.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/listAllInstances.js,samples/README.md) |
| List Images | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/listImages.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/listImages.js,samples/README.md) |
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-compute/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and 3.0.y.
* [Create Instance From Template With Overrides](#create-instance-from-template-with-overrides)
* [Delete Instance](#delete-instance)
* [Disable Usage Export](#disable-usage-export)
* [Get Instance](#get-instance)
* [Get Usage Export Bucket](#get-usage-export-bucket)
* [List All Instances](#list-all-instances)
* [List Images](#list-images)
Expand Down Expand Up @@ -142,6 +143,23 @@ __Usage:__



### Get Instance

View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/getInstance.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/getInstance.js,samples/README.md)

__Usage:__


`node samples/getInstance.js`


-----




### Get Usage Export Bucket

View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/getUsageExportBucket.js).
Expand Down

0 comments on commit f260dee

Please sign in to comment.