Skip to content

Commit faaf165

Browse files
yoshi-automationbcoe
authored andcommitted
feat: introduces HTTP targets to default v2 API (#300)
1 parent 6e271cb commit faaf165

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cloud-tasks/createHttpTask.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ async function createHttpTask(
3333
) {
3434
// [START cloud_tasks_create_http_task]
3535
// Imports the Google Cloud Tasks library.
36-
const {v2beta3} = require('@google-cloud/tasks');
36+
const {CloudTasksClient} = require('@google-cloud/tasks');
3737

3838
// Instantiates a client.
39-
const client = new v2beta3.CloudTasksClient();
39+
const client = new CloudTasksClient();
4040

4141
// TODO(developer): Uncomment these lines and replace with your values.
4242
// const project = 'my-project-id';

cloud-tasks/createHttpTaskWithToken.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ async function createHttpTaskWithToken(
3434
) {
3535
// [START cloud_tasks_create_http_task_with_token]
3636
// Imports the Google Cloud Tasks library.
37-
const {v2beta3} = require('@google-cloud/tasks');
37+
const {CloudTasksClient} = require('@google-cloud/tasks');
3838

3939
// Instantiates a client.
40-
const client = new v2beta3.CloudTasksClient();
40+
const client = new CloudTasksClient();
4141

4242
// TODO(developer): Uncomment these lines and replace with your values.
4343
// const project = 'my-project-id';

0 commit comments

Comments
 (0)