Skip to content

Commit

Permalink
feat: introduces HTTP targets to default v2 API (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and grayside committed Nov 3, 2022
1 parent 2e02aaf commit 971ef2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloud-tasks/createHttpTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ async function createHttpTask(
) {
// [START cloud_tasks_create_http_task]
// Imports the Google Cloud Tasks library.
const {v2beta3} = require('@google-cloud/tasks');
const {CloudTasksClient} = require('@google-cloud/tasks');

// Instantiates a client.
const client = new v2beta3.CloudTasksClient();
const client = new CloudTasksClient();

// TODO(developer): Uncomment these lines and replace with your values.
// const project = 'my-project-id';
Expand Down
4 changes: 2 additions & 2 deletions cloud-tasks/createHttpTaskWithToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ async function createHttpTaskWithToken(
) {
// [START cloud_tasks_create_http_task_with_token]
// Imports the Google Cloud Tasks library.
const {v2beta3} = require('@google-cloud/tasks');
const {CloudTasksClient} = require('@google-cloud/tasks');

// Instantiates a client.
const client = new v2beta3.CloudTasksClient();
const client = new CloudTasksClient();

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

0 comments on commit 971ef2f

Please sign in to comment.