File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ async function createHttpTask(
33
33
) {
34
34
// [START cloud_tasks_create_http_task]
35
35
// Imports the Google Cloud Tasks library.
36
- const { v2beta3 } = require ( '@google-cloud/tasks' ) ;
36
+ const { CloudTasksClient } = require ( '@google-cloud/tasks' ) ;
37
37
38
38
// Instantiates a client.
39
- const client = new v2beta3 . CloudTasksClient ( ) ;
39
+ const client = new CloudTasksClient ( ) ;
40
40
41
41
// TODO(developer): Uncomment these lines and replace with your values.
42
42
// const project = 'my-project-id';
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ async function createHttpTaskWithToken(
34
34
) {
35
35
// [START cloud_tasks_create_http_task_with_token]
36
36
// Imports the Google Cloud Tasks library.
37
- const { v2beta3 } = require ( '@google-cloud/tasks' ) ;
37
+ const { CloudTasksClient } = require ( '@google-cloud/tasks' ) ;
38
38
39
39
// Instantiates a client.
40
- const client = new v2beta3 . CloudTasksClient ( ) ;
40
+ const client = new CloudTasksClient ( ) ;
41
41
42
42
// TODO(developer): Uncomment these lines and replace with your values.
43
43
// const project = 'my-project-id';
You can’t perform that action at this time.
0 commit comments