Skip to content

Commit ac2f1e3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable auto-merging for keys routes. (#1761)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c2f073e commit ac2f1e3

12 files changed

+264
-12
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-08-14 22:02:40.456090",
8-
"spec_repo_commit": "5e33062a"
7+
"regenerated": "2024-08-14 22:32:08.174345",
8+
"spec_repo_commit": "07d72513"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-14 22:02:40.474316",
13-
"spec_repo_commit": "5e33062a"
12+
"regenerated": "2024-08-14 22:32:08.192333",
13+
"spec_repo_commit": "07d72513"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,16 @@ components:
673673
APIKeyCreateAttributes:
674674
description: Attributes used to create an API Key.
675675
properties:
676+
category:
677+
description: The APIKeyCreateAttributes category.
678+
type: string
676679
name:
677680
description: Name of the API key.
678681
example: API Key for submitting metrics
679682
type: string
683+
remote_config_read_enabled:
684+
description: The APIKeyCreateAttributes remote_config_read_enabled.
685+
type: boolean
680686
required:
681687
- name
682688
type: object
@@ -722,13 +728,20 @@ components:
722728
description: An object related to an API key.
723729
oneOf:
724730
- $ref: '#/components/schemas/User'
731+
- $ref: '#/components/schemas/LeakedKey'
725732
APIKeyUpdateAttributes:
726733
description: Attributes used to update an API Key.
727734
properties:
735+
category:
736+
description: The APIKeyUpdateAttributes category.
737+
type: string
728738
name:
729739
description: Name of the API key.
730740
example: API Key for submitting metrics
731741
type: string
742+
remote_config_read_enabled:
743+
description: The APIKeyUpdateAttributes remote_config_read_enabled.
744+
type: boolean
732745
required:
733746
- name
734747
type: object
@@ -981,6 +994,7 @@ components:
981994
oneOf:
982995
- $ref: '#/components/schemas/User'
983996
- $ref: '#/components/schemas/Role'
997+
- $ref: '#/components/schemas/LeakedKey'
984998
ApplicationKeyResponseMeta:
985999
description: Additional information related to the application key response.
9861000
properties:
@@ -8461,6 +8475,7 @@ components:
84618475
created_at:
84628476
description: Creation date of the API key.
84638477
example: '2020-11-23T10:00:00.000Z'
8478+
format: date-time
84648479
readOnly: true
84658480
type: string
84668481
key:
@@ -8477,6 +8492,7 @@ components:
84778492
modified_at:
84788493
description: Date the API key was last modified.
84798494
example: '2020-11-23T10:00:00.000Z'
8495+
format: date-time
84808496
readOnly: true
84818497
type: string
84828498
name:
@@ -11140,6 +11156,45 @@ components:
1114011156
description: Jira project key
1114111157
type: string
1114211158
type: object
11159+
LeakedKey:
11160+
description: The definition of LeakedKey object.
11161+
properties:
11162+
attributes:
11163+
$ref: '#/components/schemas/LeakedKeyAttributes'
11164+
id:
11165+
description: The LeakedKey id.
11166+
example: id
11167+
type: string
11168+
type:
11169+
$ref: '#/components/schemas/LeakedKeyType'
11170+
required:
11171+
- attributes
11172+
- id
11173+
- type
11174+
type: object
11175+
LeakedKeyAttributes:
11176+
description: The definition of LeakedKeyAttributes object.
11177+
properties:
11178+
date:
11179+
description: The LeakedKeyAttributes date.
11180+
example: '2017-07-21T17:32:28Z'
11181+
format: date-time
11182+
type: string
11183+
leak_source:
11184+
description: The LeakedKeyAttributes leak_source.
11185+
type: string
11186+
required:
11187+
- date
11188+
type: object
11189+
LeakedKeyType:
11190+
default: leaked_keys
11191+
description: The definition of LeakedKeyType object.
11192+
enum:
11193+
- leaked_keys
11194+
example: leaked_keys
11195+
type: string
11196+
x-enum-varnames:
11197+
- LEAKED_KEYS
1114311198
ListAPIsResponse:
1114411199
description: Response for `ListAPIs`.
1114511200
properties:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,9 @@ export { JiraIssue } from "./models/JiraIssue";
11831183
export { JiraIssueResult } from "./models/JiraIssueResult";
11841184
export { JSONAPIErrorItem } from "./models/JSONAPIErrorItem";
11851185
export { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse";
1186+
export { LeakedKey } from "./models/LeakedKey";
1187+
export { LeakedKeyAttributes } from "./models/LeakedKeyAttributes";
1188+
export { LeakedKeyType } from "./models/LeakedKeyType";
11861189
export { ListAPIsResponse } from "./models/ListAPIsResponse";
11871190
export { ListAPIsResponseData } from "./models/ListAPIsResponseData";
11881191
export { ListAPIsResponseDataAttributes } from "./models/ListAPIsResponseDataAttributes";

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Attributes used to create an API Key.
1111
*/
1212
export class APIKeyCreateAttributes {
13+
/**
14+
* The APIKeyCreateAttributes category.
15+
*/
16+
"category"?: string;
1317
/**
1418
* Name of the API key.
1519
*/
1620
"name": string;
21+
/**
22+
* The APIKeyCreateAttributes remote_config_read_enabled.
23+
*/
24+
"remoteConfigReadEnabled"?: boolean;
1725

1826
/**
1927
* A container for additional, undeclared properties.
@@ -31,11 +39,19 @@ export class APIKeyCreateAttributes {
3139
* @ignore
3240
*/
3341
static readonly attributeTypeMap: AttributeTypeMap = {
42+
category: {
43+
baseName: "category",
44+
type: "string",
45+
},
3446
name: {
3547
baseName: "name",
3648
type: "string",
3749
required: true,
3850
},
51+
remoteConfigReadEnabled: {
52+
baseName: "remote_config_read_enabled",
53+
type: "boolean",
54+
},
3955
additionalProperties: {
4056
baseName: "additionalProperties",
4157
type: "any",

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

Lines changed: 2 additions & 1 deletion
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 { LeakedKey } from "./LeakedKey";
67
import { User } from "./User";
78

89
import { UnparsedObject } from "../../datadog-api-client-common/util";
@@ -11,4 +12,4 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1112
* An object related to an API key.
1213
*/
1314

14-
export type APIKeyResponseIncludedItem = User | UnparsedObject;
15+
export type APIKeyResponseIncludedItem = User | LeakedKey | UnparsedObject;

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Attributes used to update an API Key.
1111
*/
1212
export class APIKeyUpdateAttributes {
13+
/**
14+
* The APIKeyUpdateAttributes category.
15+
*/
16+
"category"?: string;
1317
/**
1418
* Name of the API key.
1519
*/
1620
"name": string;
21+
/**
22+
* The APIKeyUpdateAttributes remote_config_read_enabled.
23+
*/
24+
"remoteConfigReadEnabled"?: boolean;
1725

1826
/**
1927
* A container for additional, undeclared properties.
@@ -31,11 +39,19 @@ export class APIKeyUpdateAttributes {
3139
* @ignore
3240
*/
3341
static readonly attributeTypeMap: AttributeTypeMap = {
42+
category: {
43+
baseName: "category",
44+
type: "string",
45+
},
3446
name: {
3547
baseName: "name",
3648
type: "string",
3749
required: true,
3850
},
51+
remoteConfigReadEnabled: {
52+
baseName: "remote_config_read_enabled",
53+
type: "boolean",
54+
},
3955
additionalProperties: {
4056
baseName: "additionalProperties",
4157
type: "any",

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

Lines changed: 6 additions & 1 deletion
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 { LeakedKey } from "./LeakedKey";
67
import { Role } from "./Role";
78
import { User } from "./User";
89

@@ -12,4 +13,8 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1213
* An object related to an application key.
1314
*/
1415

15-
export type ApplicationKeyResponseIncludedItem = User | Role | UnparsedObject;
16+
export type ApplicationKeyResponseIncludedItem =
17+
| User
18+
| Role
19+
| LeakedKey
20+
| UnparsedObject;

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class FullAPIKeyAttributes {
1717
/**
1818
* Creation date of the API key.
1919
*/
20-
"createdAt"?: string;
20+
"createdAt"?: Date;
2121
/**
2222
* The API key.
2323
*/
@@ -29,7 +29,7 @@ export class FullAPIKeyAttributes {
2929
/**
3030
* Date the API key was last modified.
3131
*/
32-
"modifiedAt"?: string;
32+
"modifiedAt"?: Date;
3333
/**
3434
* Name of the API key.
3535
*/
@@ -61,7 +61,8 @@ export class FullAPIKeyAttributes {
6161
},
6262
createdAt: {
6363
baseName: "created_at",
64-
type: "string",
64+
type: "Date",
65+
format: "date-time",
6566
},
6667
key: {
6768
baseName: "key",
@@ -73,7 +74,8 @@ export class FullAPIKeyAttributes {
7374
},
7475
modifiedAt: {
7576
baseName: "modified_at",
76-
type: "string",
77+
type: "Date",
78+
format: "date-time",
7779
},
7880
name: {
7981
baseName: "name",
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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 { LeakedKeyAttributes } from "./LeakedKeyAttributes";
7+
import { LeakedKeyType } from "./LeakedKeyType";
8+
9+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
10+
11+
/**
12+
* The definition of LeakedKey object.
13+
*/
14+
export class LeakedKey {
15+
/**
16+
* The definition of LeakedKeyAttributes object.
17+
*/
18+
"attributes": LeakedKeyAttributes;
19+
/**
20+
* The LeakedKey id.
21+
*/
22+
"id": string;
23+
/**
24+
* The definition of LeakedKeyType object.
25+
*/
26+
"type": LeakedKeyType;
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: "LeakedKeyAttributes",
47+
required: true,
48+
},
49+
id: {
50+
baseName: "id",
51+
type: "string",
52+
required: true,
53+
},
54+
type: {
55+
baseName: "type",
56+
type: "LeakedKeyType",
57+
required: true,
58+
},
59+
additionalProperties: {
60+
baseName: "additionalProperties",
61+
type: "any",
62+
},
63+
};
64+
65+
/**
66+
* @ignore
67+
*/
68+
static getAttributeTypeMap(): AttributeTypeMap {
69+
return LeakedKey.attributeTypeMap;
70+
}
71+
72+
public constructor() {}
73+
}

0 commit comments

Comments
 (0)