From b0edacab3baabdb7cf030e8b4e77218d53dbe1a1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 6 Oct 2026 08:18:32 +0000 Subject: [PATCH] Regenerate client from commit 008159b of spec repo --- .generator/schemas/v2/openapi.yaml | 2 +- examples/v2/teams/ListTeams.ts | 2 +- examples/v2/teams/ListTeams_3712027764.ts | 23 ++++++++++++++++++++++ examples/v2/teams/ListTeams_4010677014.ts | 24 +++++++++++++++++++++++ features/v2/teams.feature | 12 ++++++++++++ 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 examples/v2/teams/ListTeams_3712027764.ts create mode 100644 examples/v2/teams/ListTeams_4010677014.ts diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1606032e9da3..f84a1088ee5a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -238536,7 +238536,7 @@ paths: appKeyAuth: [] - AuthZ: - teams_read - summary: Get all teams + summary: List all teams tags: - Teams x-pagination: diff --git a/examples/v2/teams/ListTeams.ts b/examples/v2/teams/ListTeams.ts index 33d75a063e1e..9868924d912a 100644 --- a/examples/v2/teams/ListTeams.ts +++ b/examples/v2/teams/ListTeams.ts @@ -1,5 +1,5 @@ /** - * Get all teams returns "OK" response + * List all teams returns "OK" response */ import { client, v2 } from "@datadog/datadog-api-client"; diff --git a/examples/v2/teams/ListTeams_3712027764.ts b/examples/v2/teams/ListTeams_3712027764.ts new file mode 100644 index 000000000000..33d75a063e1e --- /dev/null +++ b/examples/v2/teams/ListTeams_3712027764.ts @@ -0,0 +1,23 @@ +/** + * Get all teams returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration({ + authMethods: { + AuthZ: { + accessToken: process.env.DD_BEARER_TOKEN as string, + }, + }, +}); +const apiInstance = new v2.TeamsApi(configuration); + +apiInstance + .listTeams() + .then((data: v2.TeamsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/ListTeams_4010677014.ts b/examples/v2/teams/ListTeams_4010677014.ts new file mode 100644 index 000000000000..482e23db6c73 --- /dev/null +++ b/examples/v2/teams/ListTeams_4010677014.ts @@ -0,0 +1,24 @@ +/** + * List all teams returns "OK" response with pagination + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration({ + authMethods: { + AuthZ: { + accessToken: process.env.DD_BEARER_TOKEN as string, + }, + }, +}); +const apiInstance = new v2.TeamsApi(configuration); + +(async () => { + try { + for await (const item of apiInstance.listTeamsWithPagination()) { + console.log(item); + } + } catch (error) { + console.error(error); + } +})(); diff --git a/features/v2/teams.feature b/features/v2/teams.feature index 4133b1f46ebf..aa357ab7a290 100644 --- a/features/v2/teams.feature +++ b/features/v2/teams.feature @@ -476,6 +476,18 @@ Feature: Teams When the request is sent Then the response status is 200 OK + @generated @skip @team:ddoghq/aaa-omg + Scenario: List all teams returns "OK" response + Given new "ListTeams" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/aaa-omg @with-pagination + Scenario: List all teams returns "OK" response with pagination + Given new "ListTeams" request + When the request with pagination is sent + Then the response status is 200 OK + @generated @skip @team:ddoghq/aaa-omg Scenario: List team connections returns "Bad Request" response Given new "ListTeamConnections" request