Skip to content

Commit adbc448

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable route for auto merging (#1733)
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 411d925 commit adbc448

File tree

7 files changed

+31
-21
lines changed

7 files changed

+31
-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-08-01 21:20:18.000721",
8-
"spec_repo_commit": "55d5616e"
7+
"regenerated": "2024-08-02 13:54:22.867521",
8+
"spec_repo_commit": "74b2ffcb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-01 21:20:18.019864",
13-
"spec_repo_commit": "55d5616e"
12+
"regenerated": "2024-08-02 13:54:22.886245",
13+
"spec_repo_commit": "74b2ffcb"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17235,8 +17235,6 @@ components:
1723517235
properties:
1723617236
permissions:
1723717237
$ref: '#/components/schemas/RelationshipToPermissions'
17238-
users:
17239-
$ref: '#/components/schemas/RelationshipToUsers'
1724017238
type: object
1724117239
RoleResponse:
1724217240
description: Response containing information about a single role.
@@ -17266,6 +17264,11 @@ components:
1726617264
name:
1726717265
description: Name of the role.
1726817266
type: string
17267+
user_count:
17268+
description: The user count.
17269+
format: int32
17270+
maximum: 2147483647
17271+
type: integer
1726917272
type: object
1727017273
RoleUpdateData:
1727117274
description: Data related to the update of a role.
@@ -24040,6 +24043,10 @@ components:
2404024043
have permission to edit those SLOs.
2404124044
slos_read: View SLOs and status corrections.
2404224045
slos_write: Create, edit, and delete SLOs.
24046+
synthetics_default_settings_read: View the default settings for Synthetic
24047+
Monitoring.
24048+
synthetics_default_settings_write: Edit the default settings for Synthetic
24049+
Monitoring.
2404324050
synthetics_global_variable_read: View, search, and use Synthetics global
2404424051
variables.
2404524052
synthetics_global_variable_write: Create, edit, and delete global variables
@@ -38068,6 +38075,11 @@ paths:
3806838075
$ref: '#/components/responses/ForbiddenResponse'
3806938076
'429':
3807038077
$ref: '#/components/responses/TooManyRequestsResponse'
38078+
security:
38079+
- apiKeyAuth: []
38080+
appKeyAuth: []
38081+
- AuthZ:
38082+
- workflows_read
3807138083
summary: List workflow instances
3807238084
tags:
3807338085
- Workflow Automation

examples/v2/roles/CreateRole.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ const params: v2.RolesApiCreateRoleRequest = {
2121
},
2222
],
2323
},
24-
users: {
25-
data: [],
26-
},
2724
},
2825
type: "roles",
2926
},

features/v2/roles.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ Feature: Roles
8181
@generated @skip @team:DataDog/aaa-core-access
8282
Scenario: Create role returns "Bad Request" response
8383
Given new "CreateRole" request
84-
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}, "users": {"data": []}}, "type": "roles"}}
84+
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
8585
When the request is sent
8686
Then the response status is 400 Bad Request
8787

8888
@generated @skip @team:DataDog/aaa-core-access
8989
Scenario: Create role returns "OK" response
9090
Given new "CreateRole" request
91-
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}, "users": {"data": []}}, "type": "roles"}}
91+
And body with value {"data": {"attributes": {"name": "developers"}, "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
9292
When the request is sent
9393
Then the response status is 200 OK
9494

@@ -329,6 +329,6 @@ Feature: Roles
329329
Scenario: Update a role returns "Unprocessable Entity" response
330330
Given new "UpdateRole" request
331331
And request contains "role_id" parameter from "REPLACE.ME"
332-
And body with value {"data": {"attributes": {}, "id": "00000000-0000-1111-0000-000000000000", "relationships": {"permissions": {"data": [{"type": "permissions"}]}, "users": {"data": []}}, "type": "roles"}}
332+
And body with value {"data": {"attributes": {}, "id": "00000000-0000-1111-0000-000000000000", "relationships": {"permissions": {"data": [{"type": "permissions"}]}}, "type": "roles"}}
333333
When the request is sent
334334
Then the response status is 422 Unprocessable Entity

packages/datadog-api-client-v2/apis/WorkflowAutomationApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export class WorkflowAutomationApiRequestFactory extends BaseAPIRequestFactory {
194194

195195
// Apply auth methods
196196
applySecurityAuthentication(_config, requestContext, [
197+
"AuthZ",
197198
"apiKeyAuth",
198199
"appKeyAuth",
199200
]);

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { RelationshipToPermissions } from "./RelationshipToPermissions";
7-
import { RelationshipToUsers } from "./RelationshipToUsers";
87

98
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
109

@@ -16,10 +15,6 @@ export class RoleRelationships {
1615
* Relationship to multiple permissions objects.
1716
*/
1817
"permissions"?: RelationshipToPermissions;
19-
/**
20-
* Relationship to users.
21-
*/
22-
"users"?: RelationshipToUsers;
2318

2419
/**
2520
* A container for additional, undeclared properties.
@@ -41,10 +36,6 @@ export class RoleRelationships {
4136
baseName: "permissions",
4237
type: "RelationshipToPermissions",
4338
},
44-
users: {
45-
baseName: "users",
46-
type: "RelationshipToUsers",
47-
},
4839
additionalProperties: {
4940
baseName: "additionalProperties",
5041
type: "any",

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class RoleUpdateAttributes {
2222
* Name of the role.
2323
*/
2424
"name"?: string;
25+
/**
26+
* The user count.
27+
*/
28+
"userCount"?: number;
2529

2630
/**
2731
* A container for additional, undeclared properties.
@@ -53,6 +57,11 @@ export class RoleUpdateAttributes {
5357
baseName: "name",
5458
type: "string",
5559
},
60+
userCount: {
61+
baseName: "user_count",
62+
type: "number",
63+
format: "int32",
64+
},
5665
additionalProperties: {
5766
baseName: "additionalProperties",
5867
type: "any",

0 commit comments

Comments
 (0)