From 2c95fb2764d459edb4e87bc91cdbaf02f2c0de71 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Oct 2023 17:45:32 +0000 Subject: [PATCH] Regenerate client from commit 71a1e1d2 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 77 ++++++++++++++++++- .../frozen.json | 1 + .../recording.har | 64 +++++++++++++++ examples/v2/teams/ListTeams_3429963470.ts | 21 +++++ features/support/scenarios_model_mapping.ts | 24 ++++++ features/v2/teams.feature | 10 +++ .../apis/KeyManagementApi.ts | 52 +++++++++++++ .../datadog-api-client-v2/apis/RolesApi.ts | 13 ++++ .../datadog-api-client-v2/apis/TeamsApi.ts | 15 ++++ packages/datadog-api-client-v2/index.ts | 1 + .../models/ObjectSerializer.ts | 17 ++++ .../models/TeamsField.ts | 44 +++++++++++ .../models/UserTeamPermissionAttributes.ts | 2 +- 14 files changed, 342 insertions(+), 7 deletions(-) create mode 100644 cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/frozen.json create mode 100644 cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/recording.har create mode 100644 examples/v2/teams/ListTeams_3429963470.ts create mode 100644 packages/datadog-api-client-v2/models/TeamsField.ts diff --git a/.apigentools-info b/.apigentools-info index d282541f86d4..1c89dd344277 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:29.129078", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-11 17:43:29.272361", + "spec_repo_commit": "71a1e1d2" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:29.143556", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-11 17:43:29.296551", + "spec_repo_commit": "71a1e1d2" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2975fa2f4450..b6dedcceb89f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4,6 +4,13 @@ components: headers: {} links: {} parameters: + APIKeyCategoryParameter: + description: Filter API keys by category. + in: query + name: filter[category] + required: false + schema: + type: string APIKeyFilterCreatedAtEndParameter: description: Only include API keys created on or before the specified date. in: query @@ -59,6 +66,13 @@ components: schema: example: created_by,modified_by type: string + APIKeyReadConfigReadEnabledParameter: + description: Filter API keys by remote config read enabled status. + in: query + name: filter[remote_config_read_enabled] + required: false + schema: + type: boolean APIKeysSortParameter: description: 'API key attribute used to sort results. Sort order is ascending @@ -17216,6 +17230,41 @@ components: required: - data type: object + TeamsField: + description: Supported teams field. + enum: + - id + - name + - handle + - summary + - description + - avatar + - banner + - visible_modules + - hidden_modules + - created_at + - modified_at + - user_count + - link_count + - team_links + - user_team_permissions + type: string + x-enum-varnames: + - ID + - NAME + - HANDLE + - SUMMARY + - DESCRIPTION + - AVATAR + - BANNER + - VISIBLE_MODULES + - HIDDEN_MODULES + - CREATED_AT + - MODIFIED_AT + - USER_COUNT + - LINK_COUNT + - TEAM_LINKS + - USER_TEAM_PERMISSIONS TeamsResponse: description: Response with multiple teams properties: @@ -17850,8 +17899,8 @@ components: description: User team permission attributes properties: permissions: - description: Object of team permission actions and boolean values indicating - of the currently logged in user can perform them on this team + description: Object of team permission actions and boolean values that a + logged in user can perform on this team. readOnly: true type: object type: object @@ -18106,6 +18155,8 @@ paths: - $ref: '#/components/parameters/APIKeyFilterModifiedAtStartParameter' - $ref: '#/components/parameters/APIKeyFilterModifiedAtEndParameter' - $ref: '#/components/parameters/APIKeyIncludeParameter' + - $ref: '#/components/parameters/APIKeyReadConfigReadEnabledParameter' + - $ref: '#/components/parameters/APIKeyCategoryParameter' responses: '200': content: @@ -18539,6 +18590,7 @@ paths: - $ref: '#/components/parameters/ApplicationKeyFilterParameter' - $ref: '#/components/parameters/ApplicationKeyFilterCreatedAtStartParameter' - $ref: '#/components/parameters/ApplicationKeyFilterCreatedAtEndParameter' + - $ref: '#/components/parameters/ApplicationKeyIncludeParameter' responses: '200': content: @@ -19420,6 +19472,7 @@ paths: - $ref: '#/components/parameters/ApplicationKeyFilterParameter' - $ref: '#/components/parameters/ApplicationKeyFilterCreatedAtStartParameter' - $ref: '#/components/parameters/ApplicationKeyFilterCreatedAtEndParameter' + - $ref: '#/components/parameters/ApplicationKeyIncludeParameter' responses: '200': content: @@ -24353,6 +24406,12 @@ paths: required: false schema: type: string + - description: Filter all roles by the given list of role IDs. + in: query + name: filter[id] + required: false + schema: + type: string responses: '200': content: @@ -27073,12 +27132,14 @@ paths: - description: Specifies the order of the returned teams in: query name: sort + required: false schema: $ref: '#/components/schemas/ListTeamsSort' - description: 'Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions`' in: query name: include + required: false schema: items: $ref: '#/components/schemas/ListTeamsInclude' @@ -27087,13 +27148,23 @@ paths: member in: query name: filter[keyword] + required: false schema: type: string - description: When true, only returns teams the current user belongs to in: query name: filter[me] + required: false schema: type: boolean + - description: List of fields that need to be fetched. + in: query + name: fields[team] + required: false + schema: + items: + $ref: '#/components/schemas/TeamsField' + type: array responses: '200': content: @@ -27508,11 +27579,13 @@ paths: - description: Specifies the order of returned team memberships in: query name: sort + required: false schema: $ref: '#/components/schemas/GetTeamMembershipsSort' - description: Search query, can be user email or name in: query name: filter[keyword] + required: false schema: type: string responses: diff --git a/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/frozen.json b/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/frozen.json new file mode 100644 index 000000000000..af9a4e473be1 --- /dev/null +++ b/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/frozen.json @@ -0,0 +1 @@ +"2023-10-11T17:40:11.903Z" diff --git a/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/recording.har b/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/recording.har new file mode 100644 index 000000000000..3bf68f7076da --- /dev/null +++ b/cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/recording.har @@ -0,0 +1,64 @@ +{ + "log": { + "_recordingName": "Teams/Get all teams with fields_team parameter returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "e8920722757839c9ea01a896837e687d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 530, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "fields", + "value": { + "team": "id,name,handle" + } + } + ], + "url": "https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id%2Cname%2Chandle" + }, + "response": { + "bodySize": 938, + "content": { + "mimeType": "application/json", + "size": 938, + "text": "{\"data\":[{\"type\":\"team\",\"id\":\"ac73040e-c8d4-11ed-b2ea-da7ad0900002\",\"attributes\":{\"name\":\"Example Team\",\"handle\":\"api-spec-test-team\"}},{\"type\":\"team\",\"id\":\"cc338b02-405b-11ee-835e-da7ad0900002\",\"attributes\":{\"name\":\"test-name-12938712938\",\"handle\":\"test-handle-12938712938\"}},{\"type\":\"team\",\"id\":\"ecc8affc-27d6-11ee-b33c-da7ad0900002\",\"attributes\":{\"name\":\"tf-testaccteamlinkbasic-local-1689951453\",\"handle\":\"tf-testaccteamlinkbasic-local-1689951453\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":100,\"last_offset\":0,\"limit\":100,\"type\":\"offset_limit\",\"total\":3}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=100&page[limit]=100\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=0&page[limit]=100\"}}\n" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 653, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-10-11T17:40:11.911Z", + "time": 202 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/examples/v2/teams/ListTeams_3429963470.ts b/examples/v2/teams/ListTeams_3429963470.ts new file mode 100644 index 000000000000..cca6df742eda --- /dev/null +++ b/examples/v2/teams/ListTeams_3429963470.ts @@ -0,0 +1,21 @@ +/** + * Get all teams with fields_team parameter returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.TeamsApi(configuration); + +const params: v2.TeamsApiListTeamsRequest = { + fieldsTeam: ["id", "name", "handle"], +}; + +apiInstance + .listTeams(params) + .then((data: v2.TeamsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index bf533e3bfe68..70645deb8d34 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -2310,6 +2310,14 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, + "filterRemoteConfigReadEnabled": { + "type": "boolean", + "format": "", + }, + "filterCategory": { + "type": "string", + "format": "", + }, "operationResponseType": "APIKeysResponse", }, "v2.CreateAPIKey": { @@ -2373,6 +2381,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, + "include": { + "type": "string", + "format": "", + }, "operationResponseType": "ListApplicationKeysResponse", }, "v2.DeleteApplicationKey": { @@ -2429,6 +2441,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, + "include": { + "type": "string", + "format": "", + }, "operationResponseType": "ListApplicationKeysResponse", }, "v2.CreateCurrentUserApplicationKey": { @@ -3752,6 +3768,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, + "filterId": { + "type": "string", + "format": "", + }, "operationResponseType": "RolesResponse", }, "v2.CreateRole": { @@ -4632,6 +4652,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "boolean", "format": "", }, + "fieldsTeam": { + "type": "Array", + "format": "", + }, "operationResponseType": "TeamsResponse", }, "v2.CreateTeam": { diff --git a/features/v2/teams.feature b/features/v2/teams.feature index 0bc53da0f0dd..c226790f553c 100644 --- a/features/v2/teams.feature +++ b/features/v2/teams.feature @@ -126,6 +126,16 @@ Feature: Teams Then the response status is 200 OK And the response has 3 items + @team:DataDog/core-app + Scenario: Get all teams with fields_team parameter returns "OK" response + Given new "ListTeams" request + And request contains "fields[team]" parameter with value ["id", "name", "handle"] + When the request is sent + Then the response status is 200 OK + And the response "data[0]" has field "id" + And the response "data[0].attributes" has field "name" + And the response "data[0].attributes" has field "handle" + @team:DataDog/core-app Scenario: Get links for a team returns "API error response." response Given new "GetTeamLinks" request diff --git a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts index 8d2f50de2e4a..52889725ec4b 100644 --- a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts @@ -339,6 +339,8 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { filterModifiedAtStart?: string, filterModifiedAtEnd?: string, include?: string, + filterRemoteConfigReadEnabled?: boolean, + filterCategory?: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -408,6 +410,18 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { ObjectSerializer.serialize(include, "string", "") ); } + if (filterRemoteConfigReadEnabled !== undefined) { + requestContext.setQueryParam( + "filter[remote_config_read_enabled]", + ObjectSerializer.serialize(filterRemoteConfigReadEnabled, "boolean", "") + ); + } + if (filterCategory !== undefined) { + requestContext.setQueryParam( + "filter[category]", + ObjectSerializer.serialize(filterCategory, "string", "") + ); + } // Apply auth methods applySecurityAuthentication(_config, requestContext, [ @@ -425,6 +439,7 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { filter?: string, filterCreatedAtStart?: string, filterCreatedAtEnd?: string, + include?: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -476,6 +491,12 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") ); } + if (include !== undefined) { + requestContext.setQueryParam( + "include", + ObjectSerializer.serialize(include, "string", "") + ); + } // Apply auth methods applySecurityAuthentication(_config, requestContext, [ @@ -493,6 +514,7 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { filter?: string, filterCreatedAtStart?: string, filterCreatedAtEnd?: string, + include?: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -544,6 +566,12 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { ObjectSerializer.serialize(filterCreatedAtEnd, "string", "") ); } + if (include !== undefined) { + requestContext.setQueryParam( + "include", + ObjectSerializer.serialize(include, "string", "") + ); + } // Apply auth methods applySecurityAuthentication(_config, requestContext, [ @@ -1684,6 +1712,16 @@ export interface KeyManagementApiListAPIKeysRequest { * @type string */ include?: string; + /** + * Filter API keys by remote config read enabled status. + * @type boolean + */ + filterRemoteConfigReadEnabled?: boolean; + /** + * Filter API keys by category. + * @type string + */ + filterCategory?: string; } export interface KeyManagementApiListApplicationKeysRequest { @@ -1719,6 +1757,11 @@ export interface KeyManagementApiListApplicationKeysRequest { * @type string */ filterCreatedAtEnd?: string; + /** + * Resource path for related resources to include in the response. Only `owned_by` is supported. + * @type string + */ + include?: string; } export interface KeyManagementApiListCurrentUserApplicationKeysRequest { @@ -1754,6 +1797,11 @@ export interface KeyManagementApiListCurrentUserApplicationKeysRequest { * @type string */ filterCreatedAtEnd?: string; + /** + * Resource path for related resources to include in the response. Only `owned_by` is supported. + * @type string + */ + include?: string; } export interface KeyManagementApiUpdateAPIKeyRequest { @@ -2000,6 +2048,8 @@ export class KeyManagementApi { param.filterModifiedAtStart, param.filterModifiedAtEnd, param.include, + param.filterRemoteConfigReadEnabled, + param.filterCategory, options ); return requestContextPromise.then((requestContext) => { @@ -2026,6 +2076,7 @@ export class KeyManagementApi { param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, + param.include, options ); return requestContextPromise.then((requestContext) => { @@ -2053,6 +2104,7 @@ export class KeyManagementApi { param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, + param.include, options ); return requestContextPromise.then((requestContext) => { diff --git a/packages/datadog-api-client-v2/apis/RolesApi.ts b/packages/datadog-api-client-v2/apis/RolesApi.ts index bdb0f6037213..82cd00e9c58b 100644 --- a/packages/datadog-api-client-v2/apis/RolesApi.ts +++ b/packages/datadog-api-client-v2/apis/RolesApi.ts @@ -358,6 +358,7 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { pageNumber?: number, sort?: RolesSort, filter?: string, + filterId?: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -397,6 +398,12 @@ export class RolesApiRequestFactory extends BaseAPIRequestFactory { ObjectSerializer.serialize(filter, "string", "") ); } + if (filterId !== undefined) { + requestContext.setQueryParam( + "filter[id]", + ObjectSerializer.serialize(filterId, "string", "") + ); + } // Apply auth methods applySecurityAuthentication(_config, requestContext, [ @@ -1516,6 +1523,11 @@ export interface RolesApiListRolesRequest { * @type string */ filter?: string; + /** + * Filter all roles by the given list of role IDs. + * @type string + */ + filterId?: string; } export interface RolesApiListRoleUsersRequest { @@ -1781,6 +1793,7 @@ export class RolesApi { param.pageNumber, param.sort, param.filter, + param.filterId, options ); return requestContextPromise.then((requestContext) => { diff --git a/packages/datadog-api-client-v2/apis/TeamsApi.ts b/packages/datadog-api-client-v2/apis/TeamsApi.ts index cc5d7479e523..b1e5fd87167d 100644 --- a/packages/datadog-api-client-v2/apis/TeamsApi.ts +++ b/packages/datadog-api-client-v2/apis/TeamsApi.ts @@ -29,6 +29,7 @@ import { TeamPermissionSettingResponse } from "../models/TeamPermissionSettingRe import { TeamPermissionSettingsResponse } from "../models/TeamPermissionSettingsResponse"; import { TeamPermissionSettingUpdateRequest } from "../models/TeamPermissionSettingUpdateRequest"; import { TeamResponse } from "../models/TeamResponse"; +import { TeamsField } from "../models/TeamsField"; import { TeamsResponse } from "../models/TeamsResponse"; import { TeamUpdateRequest } from "../models/TeamUpdateRequest"; import { UserTeamRequest } from "../models/UserTeamRequest"; @@ -539,6 +540,7 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { include?: Array, filterKeyword?: string, filterMe?: boolean, + fieldsTeam?: Array, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -590,6 +592,12 @@ export class TeamsApiRequestFactory extends BaseAPIRequestFactory { ObjectSerializer.serialize(filterMe, "boolean", "") ); } + if (fieldsTeam !== undefined) { + requestContext.setQueryParam( + "fields[team]", + ObjectSerializer.serialize(fieldsTeam, "Array", "") + ); + } // Apply auth methods applySecurityAuthentication(_config, requestContext, [ @@ -2020,6 +2028,11 @@ export interface TeamsApiListTeamsRequest { * @type boolean */ filterMe?: boolean; + /** + * List of fields that need to be fetched. + * @type Array + */ + fieldsTeam?: Array; } export interface TeamsApiUpdateTeamRequest { @@ -2382,6 +2395,7 @@ export class TeamsApi { param.include, param.filterKeyword, param.filterMe, + param.fieldsTeam, options ); return requestContextPromise.then((requestContext) => { @@ -2414,6 +2428,7 @@ export class TeamsApi { param.include, param.filterKeyword, param.filterMe, + param.fieldsTeam, options ); const responseContext = await this.configuration.httpApi.send( diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 2ae78b9a1c6c..d29ca000d051 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -1482,6 +1482,7 @@ export { TeamPermissionSettingValue } from "./models/TeamPermissionSettingValue" export { TeamRelationships } from "./models/TeamRelationships"; export { TeamRelationshipsLinks } from "./models/TeamRelationshipsLinks"; export { TeamResponse } from "./models/TeamResponse"; +export { TeamsField } from "./models/TeamsField"; export { TeamsResponse } from "./models/TeamsResponse"; export { TeamsResponseLinks } from "./models/TeamsResponseLinks"; export { TeamsResponseMeta } from "./models/TeamsResponseMeta"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 8f88a52614c5..d4f1174885cf 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1351,6 +1351,23 @@ const enumsMap: { [key: string]: any[] } = { "teams_manage", ], TeamType: ["team"], + TeamsField: [ + "id", + "name", + "handle", + "summary", + "description", + "avatar", + "banner", + "visible_modules", + "hidden_modules", + "created_at", + "modified_at", + "user_count", + "link_count", + "team_links", + "user_team_permissions", + ], TimeseriesFormulaRequestType: ["timeseries_request"], TimeseriesFormulaResponseType: ["timeseries_response"], UsageTimeSeriesType: ["usage_timeseries"], diff --git a/packages/datadog-api-client-v2/models/TeamsField.ts b/packages/datadog-api-client-v2/models/TeamsField.ts new file mode 100644 index 000000000000..9a4ecbe046bb --- /dev/null +++ b/packages/datadog-api-client-v2/models/TeamsField.ts @@ -0,0 +1,44 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Supported teams field. + */ + +export type TeamsField = + | typeof ID + | typeof NAME + | typeof HANDLE + | typeof SUMMARY + | typeof DESCRIPTION + | typeof AVATAR + | typeof BANNER + | typeof VISIBLE_MODULES + | typeof HIDDEN_MODULES + | typeof CREATED_AT + | typeof MODIFIED_AT + | typeof USER_COUNT + | typeof LINK_COUNT + | typeof TEAM_LINKS + | typeof USER_TEAM_PERMISSIONS + | UnparsedObject; +export const ID = "id"; +export const NAME = "name"; +export const HANDLE = "handle"; +export const SUMMARY = "summary"; +export const DESCRIPTION = "description"; +export const AVATAR = "avatar"; +export const BANNER = "banner"; +export const VISIBLE_MODULES = "visible_modules"; +export const HIDDEN_MODULES = "hidden_modules"; +export const CREATED_AT = "created_at"; +export const MODIFIED_AT = "modified_at"; +export const USER_COUNT = "user_count"; +export const LINK_COUNT = "link_count"; +export const TEAM_LINKS = "team_links"; +export const USER_TEAM_PERMISSIONS = "user_team_permissions"; diff --git a/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts b/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts index 7452b110d301..2e1736087b56 100644 --- a/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserTeamPermissionAttributes.ts @@ -11,7 +11,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class UserTeamPermissionAttributes { /** - * Object of team permission actions and boolean values indicating of the currently logged in user can perform them on this team + * Object of team permission actions and boolean values that a logged in user can perform on this team. */ "permissions"?: any;