Skip to content

Commit

Permalink
chore(samples): start/stop samples (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodoTheTrue authored Oct 15, 2021
1 parent cfd2c6e commit 74c8063
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-compute/tre
| List Images By Page | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/listImagesByPage.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/listImagesByPage.js,samples/README.md) |
| List Instances | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/listInstances.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/listInstances.js,samples/README.md) |
| Mailjet | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/mailjet.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/mailjet.js,samples/README.md) |
| Reset Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/resetInstance.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/resetInstance.js,samples/README.md) |
| Sendgrid | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/sendgrid.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/sendgrid.js,samples/README.md) |
| Set Usage Export Bucket | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/setUsageExportBucket.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/setUsageExportBucket.js,samples/README.md) |
| Start Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/startInstance.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/startInstance.js,samples/README.md) |
| Start Instance With Enc Key | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/startInstanceWithEncKey.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/startInstanceWithEncKey.js,samples/README.md) |
| Stop Instance | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/stopInstance.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/stopInstance.js,samples/README.md) |
| Wait For Operation | [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/waitForOperation.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/waitForOperation.js,samples/README.md) |


Expand Down
72 changes: 72 additions & 0 deletions packages/google-cloud-compute/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
* [List Images By Page](#list-images-by-page)
* [List Instances](#list-instances)
* [Mailjet](#mailjet)
* [Reset Instance](#reset-instance)
* [Sendgrid](#sendgrid)
* [Set Usage Export Bucket](#set-usage-export-bucket)
* [Start Instance](#start-instance)
* [Start Instance With Enc Key](#start-instance-with-enc-key)
* [Stop Instance](#stop-instance)
* [Wait For Operation](#wait-for-operation)

## Before you begin
Expand Down Expand Up @@ -193,6 +197,23 @@ __Usage:__



### Reset Instance

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

__Usage:__


`node samples/resetInstance.js`


-----




### Sendgrid

View the [source code](https://github.com/googleapis/nodejs-compute/blob/main/samples/sendgrid.js).
Expand Down Expand Up @@ -227,6 +248,57 @@ __Usage:__



### Start Instance

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

__Usage:__


`node samples/startInstance.js`


-----




### Start Instance With Enc Key

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

__Usage:__


`node samples/startInstanceWithEncKey.js`


-----




### Stop Instance

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

__Usage:__


`node samples/stopInstance.js`


-----




### Wait For Operation

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

0 comments on commit 74c8063

Please sign in to comment.