Skip to content

Commit 07ebe6d

Browse files
authored
Merge pull request GoogleCloudPlatform#988 from GoogleCloudPlatform/launch
Update Cloud Tasks to new library
2 parents 5fdfca6 + ee7c408 commit 07ebe6d

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

appengine/flexible/tasks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ App Engine task attempts.
4040

4141
To create a queue using the Cloud SDK, use the following gcloud command:
4242

43-
gcloud alpha tasks queues create-app-engine-queue my-appengine-queue
43+
gcloud tasks queues create-app-engine-queue my-appengine-queue
4444

4545
Note: A newly created queue will route to the default App Engine service and
4646
version unless configured to do otherwise.
@@ -70,12 +70,12 @@ First, your project ID:
7070
export PROJECT_ID=my-project-id
7171

7272
Then the queue ID, as specified at queue creation time. Queue IDs already
73-
created can be listed with `gcloud alpha tasks queues list`.
73+
created can be listed with `gcloud tasks queues list`.
7474

7575
export QUEUE_ID=my-appengine-queue
7676

7777
And finally the location ID, which can be discovered with
78-
`gcloud alpha tasks queues describe $QUEUE_ID`, with the location embedded in
78+
`gcloud tasks queues describe $QUEUE_ID`, with the location embedded in
7979
the "name" value (for instance, if the name is
8080
"projects/my-project/locations/us-central1/queues/my-appengine-queue", then the
8181
location is "us-central1").

appengine/php72/tasks/snippets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Al code in the snippets directory demonstrate how to invoke Cloud Tasks from PHP
3535
export PROJECT_ID=my-project-id
3636

3737
Then the queue ID, as specified at queue creation time. Queue IDs already
38-
created can be listed with `gcloud alpha tasks queues list`.
38+
created can be listed with `gcloud tasks queues list`.
3939

4040
export QUEUE_ID=my-appengine-queue
4141

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"require": {
3-
"google/cloud-tasks": "^1.0.0"
3+
"google/cloud-tasks": "^1.4.0"
4+
},
5+
"require-dev": {
6+
"phpunit/phpunit": "^5",
7+
"google/cloud-tools": "^0.8.5"
48
}
59
}

tasks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Al code in the snippets directory demonstrate how to invoke
4343
where:
4444
* `PROJECT_ID` is your Google Cloud Project id.
4545
* `QUEUE_ID` is your queue id.
46-
Queue IDs already created can be listed with `gcloud alpha tasks queues list`.
47-
* `LOCATION_ID` is the location of your queue.
46+
Queue IDs already created can be listed with `gcloud tasks queues list`.
47+
* `LOCATION_ID` is the location of your queue.
4848
Determine the location ID, which can be discovered with
4949
`gcloud tasks queues describe <QUEUE_NAME>`, with the location embedded in
5050
the "name" value (for instance, if the name is

tasks/composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"require": {
3-
"google/cloud-tasks": "^1.0.0"
3+
"google/cloud-tasks": "^1.4.0"
4+
},
5+
"require-dev": {
6+
"phpunit/phpunit": "^5",
7+
"google/cloud-tools": "^0.8.5"
48
}
59
}

tasks/src/create_http_task.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
list($_, $projectId, $locationId, $queueId, $url, $payload) = $argv;
3131

3232
# [START cloud_tasks_create_http_task]
33-
use Google\Cloud\Tasks\V2beta3\CloudTasksClient;
34-
use Google\Cloud\Tasks\V2beta3\HttpMethod;
35-
use Google\Cloud\Tasks\V2beta3\HttpRequest;
36-
use Google\Cloud\Tasks\V2beta3\Task;
33+
use Google\Cloud\Tasks\V2\CloudTasksClient;
34+
use Google\Cloud\Tasks\V2\HttpMethod;
35+
use Google\Cloud\Tasks\V2\HttpRequest;
36+
use Google\Cloud\Tasks\V2\Task;
3737

3838
/** Uncomment and populate these variables in your code */
3939
// $projectId = 'The Google project ID';

0 commit comments

Comments
 (0)