Skip to content

Commit f2212b5

Browse files
jsimonweblesv
authored andcommitted
Replaced queue.xml with queue.yaml (GoogleCloudPlatform#211)
1 parent 2c8cc14 commit f2212b5

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
queue:
2+
- name: pull-queue
3+
mode: pull
4+
acl:
5+
- user_email: bar@foo.com # can list, get, lease, delete, and update tasks
6+
- writer_email: user@gmail.com # can insert tasks
7+
- writer_email: bar@foo.com # can insert tasks, in addition to rights granted by being a user_email above

taskqueue/pull/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,24 @@ to create one first and then come back and run this sample.
1414
reuse an existing project by clicking on it.
1515
1. Note: You will need to enable billing for the project to use Compute
1616
Engine.
17-
1. Click "Overview" in the left-side navigation menu and copy your Project ID
18-
for use in step 3.3 below.
1917

2018
1. Authentication instructions to run the sample (on your local machine or on a Compute Engine VM):
2119
* Running the sample locally on your development machine:
2220
1. Install [Google Cloud SDK](https://cloud.google.com/sdk/)
2321
1. Run the following command to authorize the Cloud SDK and configure your project:
2422
<pre>gcloud init</pre>
25-
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
26-
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues)
27-
on the Task Queue configuration page.
23+
1. Add your authenticated email account as 'user_email' and 'writer_email' elements to the queue.yaml
24+
file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
25+
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
2826
* Running the sample on a Google Compute Engine VM using Default Application Credentials:
2927
1. Create a service account and add it to queue.xml
3028
1. In the API Manager > [Credentials](https://pantheon.corp.google.com/apis/credentials)
3129
section click "Create credentials" and choose "Service account key".
3230
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.
3331
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".
34-
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
35-
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/config/queue#Defining_Pull_Queues)
36-
on the Task Queue configuration page.
32+
1. Add the "Service account ID" as 'user_email' and 'writer_email' elements to the queue.yaml file of the
33+
App Engine app that created the pull queue task you're trying to access. For more details, please see
34+
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
3735

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

0 commit comments

Comments
 (0)