Skip to content

Commit

Permalink
Replaced queue.xml with queue.yaml (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonweb authored and lesv committed Apr 28, 2016
1 parent 2c8cc14 commit f2212b5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
10 changes: 0 additions & 10 deletions appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.xml

This file was deleted.

7 changes: 7 additions & 0 deletions appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
queue:
- name: pull-queue
mode: pull
acl:
- user_email: bar@foo.com # can list, get, lease, delete, and update tasks
- writer_email: user@gmail.com # can insert tasks
- writer_email: bar@foo.com # can insert tasks, in addition to rights granted by being a user_email above
14 changes: 6 additions & 8 deletions taskqueue/pull/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,24 @@ to create one first and then come back and run this sample.
reuse an existing project by clicking on it.
1. Note: You will need to enable billing for the project to use Compute
Engine.
1. Click "Overview" in the left-side navigation menu and copy your Project ID
for use in step 3.3 below.

1. Authentication instructions to run the sample (on your local machine or on a Compute Engine VM):
* Running the sample locally on your development machine:
1. Install [Google Cloud SDK](https://cloud.google.com/sdk/)
1. Run the following command to authorize the Cloud SDK and configure your project:
<pre>gcloud init</pre>
1. Add your authenticated email account as &lt;user-email&gt; and &lt;writer-email&gt; elements to the queue.xml file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues)
on the Task Queue configuration page.
1. Add your authenticated email account as 'user_email' and 'writer_email' elements to the queue.yaml
file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
* Running the sample on a Google Compute Engine VM using Default Application Credentials:
1. Create a service account and add it to queue.xml
1. In the API Manager > [Credentials](https://pantheon.corp.google.com/apis/credentials)
section click "Create credentials" and choose "Service account key".
1. On the "Create service account key" page, select "Compute Engine default service account" from the "Service Account" drop-down menu. Leave the Key type set to JSON and click the "Create" button.
1. Once the service account is created, click the "Manage service accounts" link and copy the "Service account ID" of the "Compute Engine default service account".
1. Add the "Service account ID" as &lt;user-email&gt; and &lt;writer-email&gt; elements to the queue.xml file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues)
on the Task Queue configuration page.
1. Add the "Service account ID" as 'user_email' and 'writer_email' elements to the queue.yaml file of the
App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).

1. Create a Compute Engine VM Instance.
1. In the [Cloud Console](https://console.cloud.google.com/project)
Expand Down

0 comments on commit f2212b5

Please sign in to comment.