Skip to content

Commit

Permalink
Remove compute samples which have moved. (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry authored Oct 31, 2017
1 parent b563be0 commit d944a0c
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 569 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Google infrastructure.
View the [Compute Engine Node.js samples][compute_samples].

[compute_docs]: https://cloud.google.com/compute/docs/
[compute_samples]: computeengine
[compute_samples]: https://github.com/googleapis/nodejs-compute/tree/master/samples

#### Google Container Engine

Expand Down
1 change: 0 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ deployment:
- node scripts/build "auth"
- node scripts/build "appengine/pubsub"
- node scripts/build "bigquery"
- node scripts/build "computeengine"
- node scripts/build "containerengine/hello-world"
- node scripts/build "datastore"
- node scripts/build "debugger"
Expand Down
118 changes: 4 additions & 114 deletions computeengine/README.md
Original file line number Diff line number Diff line change
@@ -1,115 +1,5 @@
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
Samples for the [Google Compute Engine API Node.js Client][client] have moved to
[github.com/googleapis/nodejs-compute/tree/master/samples/][samples].

# Google Compute Engine Node.js Samples

[Compute Engine][compute_docs] lets you create and run virtual machines on
Google infrastructure.

[compute_docs]: https://cloud.google.com/compute/docs/

## Table of Contents

* [Setup](#setup)
* [Samples](#samples)
* [Sending mail with Sendgrid](#sending-mail-with-sendgrid)
* [Sending mail with Mailjet](#sending-mail-with-mailjet)
* [Listing instances (recommended)](#listing-instances-recommended)
* [Listing instances](#listing-instances)
* [Running the tests](#running-the-tests)

## Setup

1. Read [Prerequisites][prereq] and [How to run a sample][run] first.
1. Install dependencies:

With `npm`:

npm install

With `yarn`:

yarn install

[prereq]: ../README.md#prerequisities
[run]: ../README.md#how-to-run-a-sample

## Samples

### Sending mail with Sendgrid

View the [documentation][sendgrid_docs] or the [source code][sendgrid_code].

__Run the sample:__

1. Set the `SENDGRID_API_KEY` environment variable:

export SENDGRID_API_KEY=<your-sendgrid-api-key>

1. Start the server:

node sendgrid

1. Open http://localhost:8080 in your browser

[sendgrid_docs]: https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid
[sendgrid_code]: sendgrid.js

### Sending mail with Mailjet

View the [documentation][mailjet_docs] or the [source code][mailjet_code].

__Run the sample:__

1. Set the `MAILJET_API_KEY` environment variable:

export MAILJET_API_KEY=<your-mailjet-api-key>

1. Set the `MAILJET_API_SECRET` environment variable:

export MAILJET_API_SECRET=<your-mailjet-api-secret>

1. Start the server:

node mailjet

1. Open http://localhost:8080 in your browser

[mailjet_docs]: https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailjet
[mailjet_code]: mailjet.js

### Listing instances (recommended)

View the [documentation][vms_docs] or the [source code][vms_code].

__Run the sample:__

node vms

[vms_docs]: https://cloud.google.com/compute/docs/tutorials/nodejs-guide
[vms_code]: vms.js

### Listing instances

View the [documentation][vms_api_docs] or the [source code][vms_api_code].

__Run the sample:__

node vms_api

[vms_api_docs]: https://cloud.google.com/compute/docs/tutorials/nodejs-guide
[vms_api_code]: vms_api.js

## Running the tests

1. Set the `GCLOUD_PROJECT` and `GOOGLE_APPLICATION_CREDENTIALS` environment
variables.

1. Run the tests:

With `npm`:

npm test

With `yarn`:

yarn test
[client]: https://github.com/googleapis/nodejs-compute
[samples]: https://github.com/googleapis/nodejs-compute/tree/master/samples
43 changes: 0 additions & 43 deletions computeengine/mailjet.js

This file was deleted.

38 changes: 0 additions & 38 deletions computeengine/package.json

This file was deleted.

46 changes: 0 additions & 46 deletions computeengine/sendgrid.js

This file was deleted.

34 changes: 0 additions & 34 deletions computeengine/system-test/vms.test.js

This file was deleted.

33 changes: 0 additions & 33 deletions computeengine/system-test/vms_api.test.js

This file was deleted.

59 changes: 0 additions & 59 deletions computeengine/test/mailjet.test.js

This file was deleted.

Loading

0 comments on commit d944a0c

Please sign in to comment.