Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Fix Readme.md in /samples #73

Merged
merged 1 commit into from
May 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .cloud-repo-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"samples": [
{
"id": "vms",
"name": "Virtual Machines",
"name": "List Virtual Machines",
"file": "vms.js",
"docs_link": "https://cloud.google.com/compute/docs"
"docs_link": "https://cloud.google.com/compute/docs",
"description": "Get a list of virtual machine instances and log the first result.\n\n"
},
{
"id": "vms_api",
"name": "Use Google Auth and list Virtual Machines",
"file": "vms_api.js",
"docs_link": "https://cloud.google.com/compute/docs",
"description": "After explicit authentication, get a list of virtual machine instances and log the first result.\n\n"
}
]
}
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CRoed <chris.roed@anserinnovation.com>
Dave Gramlich <callmehiphop@gmail.com>
Eric Uldall <ericuldall@gmail.com>
F. Hinkelmann <fhinkel@vt.edu>
Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Jason Dobry <jason.dobry@gmail.com>
Jason Dobry <jmdobry@users.noreply.github.com>
Kevin Leung <kevinresol@users.noreply.github.com>
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ has instructions for running the samples.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Virtual Machines | [source code](https://github.com/googleapis/nodejs-compute/blob/master/samples/vms.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/vms.js,samples/README.md) |
| List Virtual Machines | [source code](https://github.com/googleapis/nodejs-compute/blob/master/samples/vms.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/vms.js,samples/README.md) |
| Use Google Auth and list Virtual Machines | [source code](https://github.com/googleapis/nodejs-compute/blob/master/samples/vms_api.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/vms_api.js,samples/README.md) |

The [Compute Engine Node.js Client API Reference][client-docs] documentation
also contains samples.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"Dave Gramlich <callmehiphop@gmail.com>",
"Eric Uldall <ericuldall@gmail.com>",
"F. Hinkelmann <fhinkel@vt.edu>",
"Franziska Hinkelmann <franziska.hinkelmann@gmail.com>",
"Jason Dobry <jason.dobry@gmail.com>",
"Jason Dobry <jmdobry@users.noreply.github.com>",
"Kevin Leung <kevinresol@users.noreply.github.com>",
Expand Down
22 changes: 19 additions & 3 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Virtual Machines](#virtual-machines)
* [List Virtual Machines](#list-virtual-machines)
* [Use Google Auth and list Virtual Machines](#use-google-auth-and-list-virtual-machines)

## Before you begin

Expand All @@ -22,12 +23,27 @@ library's README.

## Samples

### Virtual Machines
### List Virtual Machines

View the [source code][vms_0_code].

[![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/vms.js,samples/README.md)[vms_0_docs]: https://cloud.google.com/compute/docs
[![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/vms.js,samples/README.md)

Get a list of virtual machine instances and log the first result.

[vms_0_docs]: https://cloud.google.com/compute/docs
[vms_0_code]: vms.js

### Use Google Auth and list Virtual Machines

View the [source code][vms_api_1_code].

[![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/vms_api.js,samples/README.md)

After explicit authentication, get a list of virtual machine instances and log the first result.

[vms_api_1_docs]: https://cloud.google.com/compute/docs
[vms_api_1_code]: vms_api.js

[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-compute&page=editor&open_in_editor=samples/README.md
48 changes: 0 additions & 48 deletions samples/mailjet.js

This file was deleted.

Loading