From b652840e999f1cc46af12f9d6b58cf04d413ac8e Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 21 Aug 2023 14:24:32 +0000 Subject: [PATCH] Regenerate client from commit 77f8c067 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 69 ++++++++++++ .../frozen.json | 1 + .../recording.har | 104 ++++++++++++++++++ .../frozen.json | 2 +- .../recording.har | 42 +++---- examples/v2/teams/CreateTeam_252121814.ts | 33 ++++++ examples/v2/teams/UpdateTeam.ts | 4 + features/v2/teams.feature | 31 +++++- .../models/TeamAttributes.ts | 33 ++++++ .../models/TeamCreateAttributes.ts | 33 ++++++ .../models/TeamUpdateAttributes.ts | 33 ++++++ 12 files changed, 365 insertions(+), 28 deletions(-) create mode 100644 cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/frozen.json create mode 100644 cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/recording.har create mode 100644 examples/v2/teams/CreateTeam_252121814.ts diff --git a/.apigentools-info b/.apigentools-info index cf44b76600a3..2614cef9da31 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.5", - "regenerated": "2023-08-17 19:37:29.403596", - "spec_repo_commit": "bb17cef0" + "regenerated": "2023-08-21 14:22:27.833087", + "spec_repo_commit": "77f8c067" }, "v2": { "apigentools_version": "1.6.5", - "regenerated": "2023-08-17 19:37:29.416739", - "spec_repo_commit": "bb17cef0" + "regenerated": "2023-08-21 14:22:27.850938", + "spec_repo_commit": "77f8c067" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 338819c1356b..9a23025f0ed7 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -16002,6 +16002,17 @@ components: TeamAttributes: description: Team attributes properties: + avatar: + description: Unicode representation of the avatar for the team, limited + to a single grapheme + example: "\U0001F951" + nullable: true + type: string + banner: + description: Banner selection for the team + format: int64 + nullable: true + type: integer created_at: description: Creation date of the team format: date-time @@ -16015,6 +16026,12 @@ components: example: example-team maxLength: 195 type: string + hidden_modules: + description: Collection of hidden modules for the team + items: + description: String identifier of the module + type: string + type: array link_count: description: The number of links belonging to the team format: int32 @@ -16041,6 +16058,12 @@ components: maximum: 2147483647 readOnly: true type: integer + visible_modules: + description: Collection of visible modules for the team + items: + description: String identifier of the module + type: string + type: array required: - handle - name @@ -16061,6 +16084,17 @@ components: TeamCreateAttributes: description: Team creation attributes properties: + avatar: + description: Unicode representation of the avatar for the team, limited + to a single grapheme + example: "\U0001F951" + nullable: true + type: string + banner: + description: Banner selection for the team + format: int64 + nullable: true + type: integer description: description: Free-form markdown description/content for the team's homepage type: string @@ -16069,11 +16103,23 @@ components: example: example-team maxLength: 195 type: string + hidden_modules: + description: Collection of hidden modules for the team + items: + description: String identifier of the module + type: string + type: array name: description: The name of the team example: Example Team maxLength: 200 type: string + visible_modules: + description: Collection of visible modules for the team + items: + description: String identifier of the module + type: string + type: array required: - handle - name @@ -16344,6 +16390,17 @@ components: TeamUpdateAttributes: description: Team update attributes properties: + avatar: + description: Unicode representation of the avatar for the team, limited + to a single grapheme + example: "\U0001F951" + nullable: true + type: string + banner: + description: Banner selection for the team + format: int64 + nullable: true + type: integer color: description: An identifier for the color representing the team format: int32 @@ -16358,11 +16415,23 @@ components: example: example-team maxLength: 195 type: string + hidden_modules: + description: Collection of hidden modules for the team + items: + description: String identifier of the module + type: string + type: array name: description: The name of the team example: Example Team maxLength: 200 type: string + visible_modules: + description: Collection of visible modules for the team + items: + description: String identifier of the module + type: string + type: array required: - handle - name diff --git a/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/frozen.json b/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/frozen.json new file mode 100644 index 000000000000..6c4beb9b431b --- /dev/null +++ b/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/frozen.json @@ -0,0 +1 @@ +"2023-08-18T22:21:29.944Z" diff --git a/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/recording.har b/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/recording.har new file mode 100644 index 000000000000..26e2f4702170 --- /dev/null +++ b/cassettes/v2/Teams_3116892301/Create-a-team-with-V2-fields-returns-CREATED-response_2031254614/recording.har @@ -0,0 +1,104 @@ +{ + "log": { + "_recordingName": "Teams/Create a team with V2 fields returns \"CREATED\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "656622ab0fcfd497d012a67e6296cde5", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 186, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 549, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"avatar\":\"\ud83e\udd51\",\"banner\":7,\"handle\":\"handle-29fddb97704028c4\",\"hidden_modules\":[\"m3\"],\"name\":\"name-29fddb97704028c4\",\"visible_modules\":[\"m1\",\"m2\"]},\"type\":\"team\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/team" + }, + "response": { + "bodySize": 629, + "content": { + "mimeType": "application/json", + "size": 629, + "text": "{\"data\":{\"type\":\"team\",\"id\":\"94ba28ea-3e15-11ee-8d97-da7ad0900002\",\"attributes\":{\"name\":\"name-29fddb97704028c4\",\"handle\":\"handle-29fddb97704028c4\",\"summary\":null,\"description\":null,\"avatar\":\"\\ud83e\\udd51\",\"banner\":7,\"visible_modules\":[\"m1\",\"m2\"],\"hidden_modules\":[\"m3\"],\"created_at\":\"2023-08-18T22:21:30.549604+00:00\",\"modified_at\":\"2023-08-18T22:21:30.549611+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/94ba28ea-3e15-11ee-8d97-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/94ba28ea-3e15-11ee-8d97-da7ad0900002/permission-settings\"}}}}}\n" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 654, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2023-08-18T22:21:30.488Z", + "time": 157 + }, + { + "_id": "6bdbbfe457deee8ac666f8bc0d442891", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 522, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/team/94ba28ea-3e15-11ee-8d97-da7ad0900002" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2023-08-18T22:21:30.656Z", + "time": 126 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/frozen.json b/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/frozen.json index 8b84d67aabc3..a93966fb2bbb 100644 --- a/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/frozen.json +++ b/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/frozen.json @@ -1 +1 @@ -"2023-07-12T17:29:37.638Z" +"2023-08-18T22:21:30.795Z" diff --git a/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/recording.har b/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/recording.har index e0c45aa7df83..cb129215c712 100644 --- a/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/recording.har +++ b/cassettes/v2/Teams_3116892301/Update-a-team-returns-OK-response_3744394858/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "341cb992f3713c23f0959e81f5690fd4", + "_id": "96127d411dc0a108381beaf3abd657b6", "_order": 0, "cache": {}, "request": { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"handle\":\"handle-35daf948e7104345\",\"name\":\"name-35daf948e7104345\"},\"type\":\"team\"}}" + "text": "{\"data\":{\"attributes\":{\"handle\":\"handle-368d558fc674f4d3\",\"name\":\"name-368d558fc674f4d3\"},\"type\":\"team\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/team" }, "response": { - "bodySize": 540, + "bodySize": 609, "content": { "mimeType": "application/json", - "size": 540, - "text": "{\"data\":{\"type\":\"team\",\"id\":\"ad5a151c-20d9-11ee-bfa0-da7ad0900002\",\"attributes\":{\"name\":\"name-35daf948e7104345\",\"handle\":\"handle-35daf948e7104345\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:38.339300+00:00\",\"modified_at\":\"2023-07-12T17:29:38.339306+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002/permission-settings\"}}}}}\n" + "size": 609, + "text": "{\"data\":{\"type\":\"team\",\"id\":\"94e8c5a6-3e15-11ee-b7c9-da7ad0900002\",\"attributes\":{\"name\":\"name-368d558fc674f4d3\",\"handle\":\"handle-368d558fc674f4d3\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":null,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2023-08-18T22:21:30.855820+00:00\",\"modified_at\":\"2023-08-18T22:21:30.855826+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002/permission-settings\"}}}}}\n" }, "cookies": [], "headers": [ @@ -57,15 +57,15 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2023-07-12T17:29:37.641Z", - "time": 1316 + "startedDateTime": "2023-08-18T22:21:30.800Z", + "time": 128 }, { - "_id": "351d12e3d1f7144b8c316d500c46d1f5", + "_id": "48384ce1f8c3808c520d19b62c364e9d", "_order": 0, "cache": {}, "request": { - "bodySize": 113, + "bodySize": 194, "cookies": [], "headers": [ { @@ -85,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"handle\":\"handle-35daf948e7104345\",\"name\":\"name-35daf948e7104345 updated\"},\"type\":\"team\"}}" + "text": "{\"data\":{\"attributes\":{\"avatar\":\"\ud83e\udd51\",\"banner\":7,\"handle\":\"handle-368d558fc674f4d3\",\"hidden_modules\":[\"m3\"],\"name\":\"name-368d558fc674f4d3 updated\",\"visible_modules\":[\"m1\",\"m2\"]},\"type\":\"team\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002" }, "response": { - "bodySize": 548, + "bodySize": 637, "content": { "mimeType": "application/json", - "size": 548, - "text": "{\"data\":{\"type\":\"team\",\"id\":\"ad5a151c-20d9-11ee-bfa0-da7ad0900002\",\"attributes\":{\"name\":\"name-35daf948e7104345 updated\",\"handle\":\"handle-35daf948e7104345\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:38.339300+00:00\",\"modified_at\":\"2023-07-12T17:29:39.089732+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002/permission-settings\"}}}}}\n" + "size": 637, + "text": "{\"data\":{\"type\":\"team\",\"id\":\"94e8c5a6-3e15-11ee-b7c9-da7ad0900002\",\"attributes\":{\"name\":\"name-368d558fc674f4d3 updated\",\"handle\":\"handle-368d558fc674f4d3\",\"summary\":null,\"description\":null,\"avatar\":\"\\ud83e\\udd51\",\"banner\":7,\"visible_modules\":[\"m1\",\"m2\"],\"hidden_modules\":[\"m3\"],\"created_at\":\"2023-08-18T22:21:30.855820+00:00\",\"modified_at\":\"2023-08-18T22:21:31.005082+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002/permission-settings\"}}}}}\n" }, "cookies": [], "headers": [ @@ -110,11 +110,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-07-12T17:29:38.971Z", - "time": 141 + "startedDateTime": "2023-08-18T22:21:30.934Z", + "time": 121 }, { - "_id": "1f5aec5edfedd8e1c2a1061ef5fbac9d", + "_id": "04a864c3cd783dcd78772e81fe737f50", "_order": 0, "cache": {}, "request": { @@ -127,11 +127,11 @@ "value": "*/*" } ], - "headersSize": 522, + "headersSize": 521, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/team/ad5a151c-20d9-11ee-bfa0-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/team/94e8c5a6-3e15-11ee-b7c9-da7ad0900002" }, "response": { "bodySize": 0, @@ -147,8 +147,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-07-12T17:29:39.118Z", - "time": 153 + "startedDateTime": "2023-08-18T22:21:31.062Z", + "time": 117 } ], "pages": [], diff --git a/examples/v2/teams/CreateTeam_252121814.ts b/examples/v2/teams/CreateTeam_252121814.ts new file mode 100644 index 000000000000..1fba1913a0c8 --- /dev/null +++ b/examples/v2/teams/CreateTeam_252121814.ts @@ -0,0 +1,33 @@ +/** + * Create a team with V2 fields returns "CREATED" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.TeamsApi(configuration); + +const params: v2.TeamsApiCreateTeamRequest = { + body: { + data: { + attributes: { + handle: "handle-a0fc0297eb519635", + name: "name-a0fc0297eb519635", + avatar: "🥑", + banner: 7, + visibleModules: ["m1", "m2"], + hiddenModules: ["m3"], + }, + type: "team", + }, + }, +}; + +apiInstance + .createTeam(params) + .then((data: v2.TeamResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/teams/UpdateTeam.ts b/examples/v2/teams/UpdateTeam.ts index 6b6d3c3f0775..35a1e2cfbeb9 100644 --- a/examples/v2/teams/UpdateTeam.ts +++ b/examples/v2/teams/UpdateTeam.ts @@ -18,6 +18,10 @@ const params: v2.TeamsApiUpdateTeamRequest = { attributes: { handle: DD_TEAM_DATA_ATTRIBUTES_HANDLE, name: "Example Team updated", + avatar: "🥑", + banner: 7, + hiddenModules: ["m3"], + visibleModules: ["m1", "m2"], }, type: "team", }, diff --git a/features/v2/teams.feature b/features/v2/teams.feature index bb5e4dea1c1d..4eb4d081bff8 100644 --- a/features/v2/teams.feature +++ b/features/v2/teams.feature @@ -40,6 +40,9 @@ Feature: Teams And body with value {"data": {"attributes": {"label": "Link label", "url": "https://example.com", "position": 0}, "type": "team_links"}} When the request is sent Then the response status is 200 OK + And the response "data.attributes.label" is equal to "Link label" + And the response "data.attributes.url" is equal to "https://example.com" + And the response "data.attributes.position" is equal to 0 @team:DataDog/core-app Scenario: Create a team returns "API error response." response @@ -56,6 +59,22 @@ Feature: Teams When the request is sent Then the response status is 201 CREATED And the response "data" has field "id" + And the response "data.attributes.handle" is equal to "handle-{{ unique_hash }}" + And the response "data.attributes.name" is equal to "name-{{ unique_hash }}" + + @team:DataDog/core-app + Scenario: Create a team with V2 fields returns "CREATED" response + Given new "CreateTeam" request + And body with value {"data": {"attributes": {"handle": "handle-{{ unique_hash }}","name": "name-{{ unique_hash }}", "avatar": "🥑", "banner": 7, "visible_modules": ["m1","m2"], "hidden_modules": ["m3"]}, "type": "team"}} + When the request is sent + Then the response status is 201 CREATED + And the response "data" has field "id" + And the response "data.attributes.handle" is equal to "handle-{{ unique_hash }}" + And the response "data.attributes.name" is equal to "name-{{ unique_hash }}" + And the response "data.attributes.avatar" is equal to "🥑" + And the response "data.attributes.banner" is equal to 7 + And the response "data.attributes.visible_modules" is equal to ["m1","m2"] + And the response "data.attributes.hidden_modules" is equal to ["m3"] @team:DataDog/core-app Scenario: Get a team link returns "API error response." response @@ -234,12 +253,14 @@ Feature: Teams Then the response status is 200 OK And the response "data.id" is equal to "{{ team_link.data.id }}" And the response "data.attributes.team_id" is equal to "{{ dd_team.data.id }}" + And the response "data.attributes.label" is equal to "New Label" + And the response "data.attributes.url" is equal to "https://example.com" @generated @skip @team:DataDog/core-app Scenario: Update a team returns "API error response." response Given new "UpdateTeam" request And request contains "team_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"handle": "example-team", "name": "Example Team"}, "relationships": {"team_links": {"data": [{"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001", "type": "team_links"}], "links": {"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"}}}, "type": "team"}} + And body with value {"data": {"attributes": {"avatar": "\ud83e\udd51", "banner": null, "handle": "example-team", "hidden_modules": [], "name": "Example Team", "visible_modules": []}, "relationships": {"team_links": {"data": [{"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001", "type": "team_links"}], "links": {"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"}}}, "type": "team"}} When the request is sent Then the response status is 409 API error response. @@ -248,10 +269,16 @@ Feature: Teams Given new "UpdateTeam" request And there is a valid "dd_team" in the system And request contains "team_id" parameter from "dd_team.data.id" - And body with value {"data": {"attributes": {"handle": "{{dd_team.data.attributes.handle}}", "name": "{{dd_team.data.attributes.name}} updated"}, "type": "team"}} + And body with value {"data": {"attributes": {"handle": "{{dd_team.data.attributes.handle}}", "name": "{{dd_team.data.attributes.name}} updated", "avatar": "🥑", "banner": 7, "hidden_modules": ["m3"], "visible_modules": ["m1", "m2"]}, "type": "team"}} When the request is sent Then the response status is 200 OK And the response "data.id" is equal to "{{ dd_team.data.id }}" + And the response "data.attributes.handle" is equal to "{{dd_team.data.attributes.handle}}" + And the response "data.attributes.name" is equal to "{{dd_team.data.attributes.name}} updated" + And the response "data.attributes.avatar" is equal to "🥑" + And the response "data.attributes.banner" is equal to 7 + And the response "data.attributes.hidden_modules" is equal to ["m3"] + And the response "data.attributes.visible_modules" is equal to ["m1", "m2"] @generated @skip @team:DataDog/core-app Scenario: Update a user's membership attributes on a team returns "API error response." response diff --git a/packages/datadog-api-client-v2/models/TeamAttributes.ts b/packages/datadog-api-client-v2/models/TeamAttributes.ts index df1ddd2d5b06..630135e4327a 100644 --- a/packages/datadog-api-client-v2/models/TeamAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamAttributes.ts @@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Team attributes */ export class TeamAttributes { + /** + * Unicode representation of the avatar for the team, limited to a single grapheme + */ + "avatar"?: string; + /** + * Banner selection for the team + */ + "banner"?: number; /** * Creation date of the team */ @@ -22,6 +30,10 @@ export class TeamAttributes { * The team's identifier */ "handle": string; + /** + * Collection of hidden modules for the team + */ + "hiddenModules"?: Array; /** * The number of links belonging to the team */ @@ -42,6 +54,10 @@ export class TeamAttributes { * The number of users belonging to the team */ "userCount"?: number; + /** + * Collection of visible modules for the team + */ + "visibleModules"?: Array; /** * @ignore @@ -52,6 +68,15 @@ export class TeamAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + avatar: { + baseName: "avatar", + type: "string", + }, + banner: { + baseName: "banner", + type: "number", + format: "int64", + }, createdAt: { baseName: "created_at", type: "Date", @@ -66,6 +91,10 @@ export class TeamAttributes { type: "string", required: true, }, + hiddenModules: { + baseName: "hidden_modules", + type: "Array", + }, linkCount: { baseName: "link_count", type: "number", @@ -90,6 +119,10 @@ export class TeamAttributes { type: "number", format: "int32", }, + visibleModules: { + baseName: "visible_modules", + type: "Array", + }, }; /** diff --git a/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts b/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts index 493f0ee5da00..f03811104d7e 100644 --- a/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamCreateAttributes.ts @@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Team creation attributes */ export class TeamCreateAttributes { + /** + * Unicode representation of the avatar for the team, limited to a single grapheme + */ + "avatar"?: string; + /** + * Banner selection for the team + */ + "banner"?: number; /** * Free-form markdown description/content for the team's homepage */ @@ -18,10 +26,18 @@ export class TeamCreateAttributes { * The team's identifier */ "handle": string; + /** + * Collection of hidden modules for the team + */ + "hiddenModules"?: Array; /** * The name of the team */ "name": string; + /** + * Collection of visible modules for the team + */ + "visibleModules"?: Array; /** * @ignore @@ -32,6 +48,15 @@ export class TeamCreateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + avatar: { + baseName: "avatar", + type: "string", + }, + banner: { + baseName: "banner", + type: "number", + format: "int64", + }, description: { baseName: "description", type: "string", @@ -41,11 +66,19 @@ export class TeamCreateAttributes { type: "string", required: true, }, + hiddenModules: { + baseName: "hidden_modules", + type: "Array", + }, name: { baseName: "name", type: "string", required: true, }, + visibleModules: { + baseName: "visible_modules", + type: "Array", + }, }; /** diff --git a/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts b/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts index c6642f0709df..1920bfe16be6 100644 --- a/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/TeamUpdateAttributes.ts @@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Team update attributes */ export class TeamUpdateAttributes { + /** + * Unicode representation of the avatar for the team, limited to a single grapheme + */ + "avatar"?: string; + /** + * Banner selection for the team + */ + "banner"?: number; /** * An identifier for the color representing the team */ @@ -22,10 +30,18 @@ export class TeamUpdateAttributes { * The team's identifier */ "handle": string; + /** + * Collection of hidden modules for the team + */ + "hiddenModules"?: Array; /** * The name of the team */ "name": string; + /** + * Collection of visible modules for the team + */ + "visibleModules"?: Array; /** * @ignore @@ -36,6 +52,15 @@ export class TeamUpdateAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + avatar: { + baseName: "avatar", + type: "string", + }, + banner: { + baseName: "banner", + type: "number", + format: "int64", + }, color: { baseName: "color", type: "number", @@ -50,11 +75,19 @@ export class TeamUpdateAttributes { type: "string", required: true, }, + hiddenModules: { + baseName: "hidden_modules", + type: "Array", + }, name: { baseName: "name", type: "string", required: true, }, + visibleModules: { + baseName: "visible_modules", + type: "Array", + }, }; /**