Skip to content

Commit 5f3e7f7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[APITL-1060] Merging team.yaml (#1809)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 94f4223 commit 5f3e7f7

File tree

11 files changed

+476
-21
lines changed

11 files changed

+476
-21
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-09-12 09:36:33.417256",
8-
"spec_repo_commit": "7c86a87a"
7+
"regenerated": "2024-09-13 13:31:49.135917",
8+
"spec_repo_commit": "bee8c3e1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-12 09:36:33.436408",
13-
"spec_repo_commit": "7c86a87a"
12+
"regenerated": "2024-09-13 13:31:49.155731",
13+
"spec_repo_commit": "bee8c3e1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 97 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,64 @@ components:
950950
$ref: '#/components/schemas/AWSRelatedAccount'
951951
type: array
952952
type: object
953+
AbbreviatedTeam:
954+
description: The definition of `AbbreviatedTeam` object.
955+
properties:
956+
attributes:
957+
$ref: '#/components/schemas/AbbreviatedTeamAttributes'
958+
id:
959+
description: ID of the team
960+
type: string
961+
type:
962+
$ref: '#/components/schemas/AbbreviatedTeamType'
963+
required:
964+
- attributes
965+
- type
966+
type: object
967+
AbbreviatedTeamAttributes:
968+
description: The definition of `AbbreviatedTeamAttributes` object.
969+
properties:
970+
avatar:
971+
description: Unicode representation of the avatar for the team, limited
972+
to a single grapheme
973+
nullable: true
974+
type: string
975+
banner:
976+
description: Banner selection for the team
977+
format: int64
978+
type: integer
979+
handle:
980+
description: The team's identifier
981+
example: ''
982+
type: string
983+
handles:
984+
description: The `AbbreviatedTeamAttributes` `handles`.
985+
type: string
986+
is_open_membership:
987+
description: The `AbbreviatedTeamAttributes` `is_open_membership`.
988+
readOnly: true
989+
type: boolean
990+
name:
991+
description: The name of the team
992+
example: ''
993+
type: string
994+
summary:
995+
description: A brief summary of the team
996+
readOnly: true
997+
type: string
998+
required:
999+
- handle
1000+
- name
1001+
type: object
1002+
AbbreviatedTeamType:
1003+
default: team
1004+
description: The definition of `AbbreviatedTeamType` object.
1005+
enum:
1006+
- team
1007+
example: team
1008+
type: string
1009+
x-enum-varnames:
1010+
- TEAM
9531011
ActiveBillingDimensionsAttributes:
9541012
description: List of active billing dimensions.
9551013
properties:
@@ -23947,12 +24005,6 @@ components:
2394724005
format: int64
2394824006
nullable: true
2394924007
type: integer
23950-
color:
23951-
description: An identifier for the color representing the team
23952-
format: int32
23953-
maximum: 13
23954-
minimum: 0
23955-
type: integer
2395624008
description:
2395724009
description: Free-form markdown description/content for the team's homepage
2395824010
type: string
@@ -24774,6 +24826,8 @@ components:
2477424826
oneOf:
2477524827
- $ref: '#/components/schemas/User'
2477624828
- $ref: '#/components/schemas/Team'
24829+
- $ref: '#/components/schemas/AbbreviatedTeam'
24830+
- $ref: '#/components/schemas/UserTeamUser'
2477724831
UserTeamPermission:
2477824832
description: A user's permissions for a given team
2477924833
properties:
@@ -24878,6 +24932,42 @@ components:
2487824932
required:
2487924933
- data
2488024934
type: object
24935+
UserTeamUser:
24936+
description: The definition of `UserTeamUser` object.
24937+
properties:
24938+
attributes:
24939+
$ref: '#/components/schemas/UserTeamUserAttributes'
24940+
id:
24941+
description: The `UserTeamUser` ID.
24942+
type: string
24943+
type:
24944+
$ref: '#/components/schemas/UserTeamUserType'
24945+
required:
24946+
- type
24947+
type: object
24948+
UserTeamUserAttributes:
24949+
description: The definition of `UserTeamUserAttributes` object.
24950+
properties:
24951+
disabled:
24952+
description: The `UserTeamUserAttributes` `disabled`.
24953+
type: boolean
24954+
email:
24955+
description: The `UserTeamUserAttributes` `email`.
24956+
type: string
24957+
handle:
24958+
description: The `UserTeamUserAttributes` `handle`.
24959+
type: string
24960+
icon:
24961+
description: The `UserTeamUserAttributes` `icon`.
24962+
type: string
24963+
name:
24964+
description: The `UserTeamUserAttributes` `name`.
24965+
nullable: true
24966+
type: string
24967+
service_account:
24968+
description: The `UserTeamUserAttributes` `service_account`.
24969+
type: boolean
24970+
type: object
2488124971
UserTeamUserType:
2488224972
default: users
2488324973
description: User team user type
@@ -37849,6 +37939,7 @@ paths:
3784937939
name: filter[keyword]
3785037940
required: false
3785137941
schema:
37942+
description: Search query, can be user email or name.
3785237943
type: string
3785337944
responses:
3785437945
'200':

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,9 @@ export {
535535
WorkflowAutomationApi,
536536
} from "./apis/WorkflowAutomationApi";
537537

538+
export { AbbreviatedTeam } from "./models/AbbreviatedTeam";
539+
export { AbbreviatedTeamAttributes } from "./models/AbbreviatedTeamAttributes";
540+
export { AbbreviatedTeamType } from "./models/AbbreviatedTeamType";
538541
export { ActiveBillingDimensionsAttributes } from "./models/ActiveBillingDimensionsAttributes";
539542
export { ActiveBillingDimensionsBody } from "./models/ActiveBillingDimensionsBody";
540543
export { ActiveBillingDimensionsResponse } from "./models/ActiveBillingDimensionsResponse";
@@ -2111,6 +2114,8 @@ export { UserTeamTeamType } from "./models/UserTeamTeamType";
21112114
export { UserTeamType } from "./models/UserTeamType";
21122115
export { UserTeamUpdate } from "./models/UserTeamUpdate";
21132116
export { UserTeamUpdateRequest } from "./models/UserTeamUpdateRequest";
2117+
export { UserTeamUser } from "./models/UserTeamUser";
2118+
export { UserTeamUserAttributes } from "./models/UserTeamUserAttributes";
21142119
export { UserTeamUserType } from "./models/UserTeamUserType";
21152120
export { UserUpdateAttributes } from "./models/UserUpdateAttributes";
21162121
export { UserUpdateData } from "./models/UserUpdateData";
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 { AbbreviatedTeamAttributes } from "./AbbreviatedTeamAttributes";
7+
import { AbbreviatedTeamType } from "./AbbreviatedTeamType";
8+
9+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
10+
11+
/**
12+
* The definition of `AbbreviatedTeam` object.
13+
*/
14+
export class AbbreviatedTeam {
15+
/**
16+
* The definition of `AbbreviatedTeamAttributes` object.
17+
*/
18+
"attributes": AbbreviatedTeamAttributes;
19+
/**
20+
* ID of the team
21+
*/
22+
"id"?: string;
23+
/**
24+
* The definition of `AbbreviatedTeamType` object.
25+
*/
26+
"type": AbbreviatedTeamType;
27+
28+
/**
29+
* A container for additional, undeclared properties.
30+
* This is a holder for any undeclared properties as specified with
31+
* the 'additionalProperties' keyword in the OAS document.
32+
*/
33+
"additionalProperties"?: { [key: string]: any };
34+
35+
/**
36+
* @ignore
37+
*/
38+
"_unparsed"?: boolean;
39+
40+
/**
41+
* @ignore
42+
*/
43+
static readonly attributeTypeMap: AttributeTypeMap = {
44+
attributes: {
45+
baseName: "attributes",
46+
type: "AbbreviatedTeamAttributes",
47+
required: true,
48+
},
49+
id: {
50+
baseName: "id",
51+
type: "string",
52+
},
53+
type: {
54+
baseName: "type",
55+
type: "AbbreviatedTeamType",
56+
required: true,
57+
},
58+
additionalProperties: {
59+
baseName: "additionalProperties",
60+
type: "any",
61+
},
62+
};
63+
64+
/**
65+
* @ignore
66+
*/
67+
static getAttributeTypeMap(): AttributeTypeMap {
68+
return AbbreviatedTeam.attributeTypeMap;
69+
}
70+
71+
public constructor() {}
72+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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+
7+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* The definition of `AbbreviatedTeamAttributes` object.
11+
*/
12+
export class AbbreviatedTeamAttributes {
13+
/**
14+
* Unicode representation of the avatar for the team, limited to a single grapheme
15+
*/
16+
"avatar"?: string;
17+
/**
18+
* Banner selection for the team
19+
*/
20+
"banner"?: number;
21+
/**
22+
* The team's identifier
23+
*/
24+
"handle": string;
25+
/**
26+
* The `AbbreviatedTeamAttributes` `handles`.
27+
*/
28+
"handles"?: string;
29+
/**
30+
* The `AbbreviatedTeamAttributes` `is_open_membership`.
31+
*/
32+
"isOpenMembership"?: boolean;
33+
/**
34+
* The name of the team
35+
*/
36+
"name": string;
37+
/**
38+
* A brief summary of the team
39+
*/
40+
"summary"?: string;
41+
42+
/**
43+
* A container for additional, undeclared properties.
44+
* This is a holder for any undeclared properties as specified with
45+
* the 'additionalProperties' keyword in the OAS document.
46+
*/
47+
"additionalProperties"?: { [key: string]: any };
48+
49+
/**
50+
* @ignore
51+
*/
52+
"_unparsed"?: boolean;
53+
54+
/**
55+
* @ignore
56+
*/
57+
static readonly attributeTypeMap: AttributeTypeMap = {
58+
avatar: {
59+
baseName: "avatar",
60+
type: "string",
61+
},
62+
banner: {
63+
baseName: "banner",
64+
type: "number",
65+
format: "int64",
66+
},
67+
handle: {
68+
baseName: "handle",
69+
type: "string",
70+
required: true,
71+
},
72+
handles: {
73+
baseName: "handles",
74+
type: "string",
75+
},
76+
isOpenMembership: {
77+
baseName: "is_open_membership",
78+
type: "boolean",
79+
},
80+
name: {
81+
baseName: "name",
82+
type: "string",
83+
required: true,
84+
},
85+
summary: {
86+
baseName: "summary",
87+
type: "string",
88+
},
89+
additionalProperties: {
90+
baseName: "additionalProperties",
91+
type: "any",
92+
},
93+
};
94+
95+
/**
96+
* @ignore
97+
*/
98+
static getAttributeTypeMap(): AttributeTypeMap {
99+
return AbbreviatedTeamAttributes.attributeTypeMap;
100+
}
101+
102+
public constructor() {}
103+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* The definition of `AbbreviatedTeamType` object.
11+
*/
12+
13+
export type AbbreviatedTeamType = typeof TEAM | UnparsedObject;
14+
export const TEAM = "team";

0 commit comments

Comments
 (0)