Skip to content

Commit 32f2592

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 72291188 of spec repo
1 parent ae0c357 commit 32f2592

16 files changed

+552
-107
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-03-26 15:17:45.583561",
8-
"spec_repo_commit": "46383d02"
7+
"regenerated": "2024-03-28 14:26:51.102729",
8+
"spec_repo_commit": "72291188"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-26 15:17:45.602729",
13-
"spec_repo_commit": "46383d02"
12+
"regenerated": "2024-03-28 14:26:51.121619",
13+
"spec_repo_commit": "72291188"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 97 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,11 +1325,10 @@ components:
13251325
- type
13261326
type: object
13271327
AuthNMappingCreateRelationships:
1328-
description: Relationship of AuthN Mapping create object to Role.
1329-
properties:
1330-
role:
1331-
$ref: '#/components/schemas/RelationshipToRole'
1332-
type: object
1328+
description: Relationship of AuthN Mapping create object to a Role or Team.
1329+
oneOf:
1330+
- $ref: '#/components/schemas/AuthNMappingRelationshipToRole'
1331+
- $ref: '#/components/schemas/AuthNMappingRelationshipToTeam'
13331332
AuthNMappingCreateRequest:
13341333
description: Request for creating an AuthN Mapping.
13351334
properties:
@@ -1343,13 +1342,32 @@ components:
13431342
oneOf:
13441343
- $ref: '#/components/schemas/SAMLAssertionAttribute'
13451344
- $ref: '#/components/schemas/Role'
1345+
- $ref: '#/components/schemas/AuthNMappingTeam'
1346+
AuthNMappingRelationshipToRole:
1347+
description: Relationship of AuthN Mapping to a Role.
1348+
properties:
1349+
role:
1350+
$ref: '#/components/schemas/RelationshipToRole'
1351+
required:
1352+
- role
1353+
type: object
1354+
AuthNMappingRelationshipToTeam:
1355+
description: Relationship of AuthN Mapping to a Team.
1356+
properties:
1357+
team:
1358+
$ref: '#/components/schemas/RelationshipToTeam'
1359+
required:
1360+
- team
1361+
type: object
13461362
AuthNMappingRelationships:
13471363
description: All relationships associated with AuthN Mapping.
13481364
properties:
13491365
role:
13501366
$ref: '#/components/schemas/RelationshipToRole'
13511367
saml_assertion_attribute:
13521368
$ref: '#/components/schemas/RelationshipToSAMLAssertionAttribute'
1369+
team:
1370+
$ref: '#/components/schemas/RelationshipToTeam'
13531371
type: object
13541372
AuthNMappingResponse:
13551373
description: AuthN Mapping response from the API.
@@ -1362,6 +1380,60 @@ components:
13621380
$ref: '#/components/schemas/AuthNMappingIncluded'
13631381
type: array
13641382
type: object
1383+
AuthNMappingTeam:
1384+
description: Team.
1385+
properties:
1386+
attributes:
1387+
$ref: '#/components/schemas/AuthNMappingTeamAttributes'
1388+
id:
1389+
description: The ID of the Team.
1390+
example: f9bb8444-af7f-11ec-ac2c-da7ad0900001
1391+
type: string
1392+
type:
1393+
$ref: '#/components/schemas/TeamType'
1394+
type: object
1395+
AuthNMappingTeamAttributes:
1396+
description: Team attributes.
1397+
properties:
1398+
avatar:
1399+
description: Unicode representation of the avatar for the team, limited
1400+
to a single grapheme
1401+
example: "\U0001F951"
1402+
nullable: true
1403+
type: string
1404+
banner:
1405+
description: Banner selection for the team
1406+
format: int64
1407+
nullable: true
1408+
type: integer
1409+
handle:
1410+
description: The team's identifier
1411+
example: example-team
1412+
maxLength: 195
1413+
type: string
1414+
link_count:
1415+
description: The number of links belonging to the team
1416+
format: int32
1417+
maximum: 2147483647
1418+
readOnly: true
1419+
type: integer
1420+
name:
1421+
description: The name of the team
1422+
example: Example Team
1423+
maxLength: 200
1424+
type: string
1425+
summary:
1426+
description: A brief summary of the team, derived from the `description`
1427+
maxLength: 120
1428+
nullable: true
1429+
type: string
1430+
user_count:
1431+
description: The number of users belonging to the team
1432+
format: int32
1433+
maximum: 2147483647
1434+
readOnly: true
1435+
type: integer
1436+
type: object
13651437
AuthNMappingUpdateAttributes:
13661438
description: Key/Value pair of attributes used for update request.
13671439
properties:
@@ -1394,11 +1466,10 @@ components:
13941466
- type
13951467
type: object
13961468
AuthNMappingUpdateRelationships:
1397-
description: Relationship of AuthN Mapping update object to Role.
1398-
properties:
1399-
role:
1400-
$ref: '#/components/schemas/RelationshipToRole'
1401-
type: object
1469+
description: Relationship of AuthN Mapping update object to a Role or Team.
1470+
oneOf:
1471+
- $ref: '#/components/schemas/AuthNMappingRelationshipToRole'
1472+
- $ref: '#/components/schemas/AuthNMappingRelationshipToTeam'
14021473
AuthNMappingUpdateRequest:
14031474
description: Request to update an AuthN Mapping.
14041475
properties:
@@ -15667,6 +15738,22 @@ components:
1566715738
- id
1566815739
- type
1566915740
type: object
15741+
RelationshipToTeam:
15742+
description: Relationship to team.
15743+
properties:
15744+
data:
15745+
$ref: '#/components/schemas/RelationshipToTeamData'
15746+
type: object
15747+
RelationshipToTeamData:
15748+
description: Relationship to Team object.
15749+
properties:
15750+
id:
15751+
description: The unique identifier of the team.
15752+
example: f9bb8444-af7f-11ec-ac2c-da7ad0900001
15753+
type: string
15754+
type:
15755+
$ref: '#/components/schemas/TeamType'
15756+
type: object
1567015757
RelationshipToTeamLinkData:
1567115758
description: Relationship between a link and a team
1567215759
properties:

packages/datadog-api-client-v2/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,14 @@ export { AuthNMappingCreateRelationships } from "./models/AuthNMappingCreateRela
547547
export { AuthNMappingCreateRequest } from "./models/AuthNMappingCreateRequest";
548548
export { AuthNMappingIncluded } from "./models/AuthNMappingIncluded";
549549
export { AuthNMappingRelationships } from "./models/AuthNMappingRelationships";
550+
export { AuthNMappingRelationshipToRole } from "./models/AuthNMappingRelationshipToRole";
551+
export { AuthNMappingRelationshipToTeam } from "./models/AuthNMappingRelationshipToTeam";
550552
export { AuthNMappingResponse } from "./models/AuthNMappingResponse";
551553
export { AuthNMappingsResponse } from "./models/AuthNMappingsResponse";
552554
export { AuthNMappingsSort } from "./models/AuthNMappingsSort";
553555
export { AuthNMappingsType } from "./models/AuthNMappingsType";
556+
export { AuthNMappingTeam } from "./models/AuthNMappingTeam";
557+
export { AuthNMappingTeamAttributes } from "./models/AuthNMappingTeamAttributes";
554558
export { AuthNMappingUpdateAttributes } from "./models/AuthNMappingUpdateAttributes";
555559
export { AuthNMappingUpdateData } from "./models/AuthNMappingUpdateData";
556560
export { AuthNMappingUpdateRelationships } from "./models/AuthNMappingUpdateRelationships";
@@ -1436,6 +1440,8 @@ export { RelationshipToRuleData } from "./models/RelationshipToRuleData";
14361440
export { RelationshipToRuleDataObject } from "./models/RelationshipToRuleDataObject";
14371441
export { RelationshipToSAMLAssertionAttribute } from "./models/RelationshipToSAMLAssertionAttribute";
14381442
export { RelationshipToSAMLAssertionAttributeData } from "./models/RelationshipToSAMLAssertionAttributeData";
1443+
export { RelationshipToTeam } from "./models/RelationshipToTeam";
1444+
export { RelationshipToTeamData } from "./models/RelationshipToTeamData";
14391445
export { RelationshipToTeamLinkData } from "./models/RelationshipToTeamLinkData";
14401446
export { RelationshipToTeamLinks } from "./models/RelationshipToTeamLinks";
14411447
export { RelationshipToUser } from "./models/RelationshipToUser";

packages/datadog-api-client-v2/models/AuthNMappingCreateData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AuthNMappingCreateData {
1818
*/
1919
"attributes"?: AuthNMappingCreateAttributes;
2020
/**
21-
* Relationship of AuthN Mapping create object to Role.
21+
* Relationship of AuthN Mapping create object to a Role or Team.
2222
*/
2323
"relationships"?: AuthNMappingCreateRelationships;
2424
/**

packages/datadog-api-client-v2/models/AuthNMappingCreateRelationships.ts

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,16 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { RelationshipToRole } from "./RelationshipToRole";
6+
import { AuthNMappingRelationshipToRole } from "./AuthNMappingRelationshipToRole";
7+
import { AuthNMappingRelationshipToTeam } from "./AuthNMappingRelationshipToTeam";
78

8-
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
import { UnparsedObject } from "../../datadog-api-client-common/util";
910

1011
/**
11-
* Relationship of AuthN Mapping create object to Role.
12+
* Relationship of AuthN Mapping create object to a Role or Team.
1213
*/
13-
export class AuthNMappingCreateRelationships {
14-
/**
15-
* Relationship to role.
16-
*/
17-
"role"?: RelationshipToRole;
1814

19-
/**
20-
* A container for additional, undeclared properties.
21-
* This is a holder for any undeclared properties as specified with
22-
* the 'additionalProperties' keyword in the OAS document.
23-
*/
24-
"additionalProperties"?: { [key: string]: any };
25-
26-
/**
27-
* @ignore
28-
*/
29-
"_unparsed"?: boolean;
30-
31-
/**
32-
* @ignore
33-
*/
34-
static readonly attributeTypeMap: AttributeTypeMap = {
35-
role: {
36-
baseName: "role",
37-
type: "RelationshipToRole",
38-
},
39-
additionalProperties: {
40-
baseName: "additionalProperties",
41-
type: "any",
42-
},
43-
};
44-
45-
/**
46-
* @ignore
47-
*/
48-
static getAttributeTypeMap(): AttributeTypeMap {
49-
return AuthNMappingCreateRelationships.attributeTypeMap;
50-
}
51-
52-
public constructor() {}
53-
}
15+
export type AuthNMappingCreateRelationships =
16+
| AuthNMappingRelationshipToRole
17+
| AuthNMappingRelationshipToTeam
18+
| UnparsedObject;

packages/datadog-api-client-v2/models/AuthNMappingIncluded.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { AuthNMappingTeam } from "./AuthNMappingTeam";
67
import { Role } from "./Role";
78
import { SAMLAssertionAttribute } from "./SAMLAssertionAttribute";
89

@@ -15,4 +16,5 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1516
export type AuthNMappingIncluded =
1617
| SAMLAssertionAttribute
1718
| Role
19+
| AuthNMappingTeam
1820
| UnparsedObject;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { RelationshipToRole } from "./RelationshipToRole";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Relationship of AuthN Mapping to a Role.
12+
*/
13+
export class AuthNMappingRelationshipToRole {
14+
/**
15+
* Relationship to role.
16+
*/
17+
"role": RelationshipToRole;
18+
19+
/**
20+
* A container for additional, undeclared properties.
21+
* This is a holder for any undeclared properties as specified with
22+
* the 'additionalProperties' keyword in the OAS document.
23+
*/
24+
"additionalProperties"?: { [key: string]: any };
25+
26+
/**
27+
* @ignore
28+
*/
29+
"_unparsed"?: boolean;
30+
31+
/**
32+
* @ignore
33+
*/
34+
static readonly attributeTypeMap: AttributeTypeMap = {
35+
role: {
36+
baseName: "role",
37+
type: "RelationshipToRole",
38+
required: true,
39+
},
40+
additionalProperties: {
41+
baseName: "additionalProperties",
42+
type: "any",
43+
},
44+
};
45+
46+
/**
47+
* @ignore
48+
*/
49+
static getAttributeTypeMap(): AttributeTypeMap {
50+
return AuthNMappingRelationshipToRole.attributeTypeMap;
51+
}
52+
53+
public constructor() {}
54+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { RelationshipToTeam } from "./RelationshipToTeam";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Relationship of AuthN Mapping to a Team.
12+
*/
13+
export class AuthNMappingRelationshipToTeam {
14+
/**
15+
* Relationship to team.
16+
*/
17+
"team": RelationshipToTeam;
18+
19+
/**
20+
* A container for additional, undeclared properties.
21+
* This is a holder for any undeclared properties as specified with
22+
* the 'additionalProperties' keyword in the OAS document.
23+
*/
24+
"additionalProperties"?: { [key: string]: any };
25+
26+
/**
27+
* @ignore
28+
*/
29+
"_unparsed"?: boolean;
30+
31+
/**
32+
* @ignore
33+
*/
34+
static readonly attributeTypeMap: AttributeTypeMap = {
35+
team: {
36+
baseName: "team",
37+
type: "RelationshipToTeam",
38+
required: true,
39+
},
40+
additionalProperties: {
41+
baseName: "additionalProperties",
42+
type: "any",
43+
},
44+
};
45+
46+
/**
47+
* @ignore
48+
*/
49+
static getAttributeTypeMap(): AttributeTypeMap {
50+
return AuthNMappingRelationshipToTeam.attributeTypeMap;
51+
}
52+
53+
public constructor() {}
54+
}

0 commit comments

Comments
 (0)