Skip to content

Commit

Permalink
Remove tasks samples (#703)
Browse files Browse the repository at this point in the history
* Remove tasks samples

* Delete cloudtasks job config
  • Loading branch information
Ace Nassri authored Aug 3, 2018
1 parent 3bb14ef commit ccdd400
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 348 deletions.
19 changes: 0 additions & 19 deletions .kokoro/cloudtasks.cfg

This file was deleted.

79 changes: 4 additions & 75 deletions cloudtasks/README.md
Original file line number Diff line number Diff line change
@@ -1,76 +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 Cloud Tasks API Node.js Client][client]
have moved to [github.com/googleapis/nodejs-tasks/tree/master/samples/][samples].

# Google Cloud Tasks API Node.js Samples

The [Cloud Tasks API](https://cloud.google.com/cloud-tasks/docs) enables
developers to manage the execution of large numbers of distributed requests.

## Table of Contents

* [Setup](#setup)
* [Samples](#samples)
* [Tasks](#tasks)
* [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#prerequisites
[run]: ../README.md#how-to-run-a-sample

## Samples

### Tasks

View the [documentation][tasks_0_docs] or the [source code][tasks_0_code].

__Usage:__ `node tasks.js --help`

```
tasks.js <command>
Commands:
tasks.js create <project> <location> <queue> Create a task.
tasks.js pull <project> <location> <queue> Pull a task.
tasks.js acknowledge <task> Acknowledge a task.
Options:
--version Show version number [boolean]
--help Show help [boolean]
Examples:
node tasks.js create my-project-id us-central1 my-queue
node tasks.js pull my-project-id us-central1 my-queue
node tasks.js acknowledge
'{"name":"projects/my-project-id/locations/us-central1/queues/my-queue/tasks/1234","scheduleTime":"2017-11-01T22:27:
53.628279Z"}'
For more information, see https://cloud.google.com/cloud-tasks/docs
```

[tasks_0_docs]: https://cloud.google.com/cloud-tasks/docs
[tasks_0_code]: tasks.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-tasks
[samples]: https://github.com/googleapis/nodejs-tasks/tree/master/samples
37 changes: 0 additions & 37 deletions cloudtasks/package.json

This file was deleted.

64 changes: 0 additions & 64 deletions cloudtasks/system-test/tasks.test.js

This file was deleted.

153 changes: 0 additions & 153 deletions cloudtasks/tasks.js

This file was deleted.

0 comments on commit ccdd400

Please sign in to comment.