Skip to content

Commit cb4ec96

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 14ab03a of spec repo
1 parent b839b22 commit cb4ec96

15 files changed

+702
-58
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 202 additions & 32 deletions
Large diffs are not rendered by default.

features/v2/org_groups.feature

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,71 +12,71 @@ Feature: Org Groups
1212
Scenario: Bulk update org group memberships returns "Bad Request" response
1313
Given operation "BulkUpdateOrgGroupMemberships" enabled
1414
And new "BulkUpdateOrgGroupMemberships" request
15-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
15+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

1919
@generated @skip @team:DataDog/org-management
2020
Scenario: Bulk update org group memberships returns "Not Found" response
2121
Given operation "BulkUpdateOrgGroupMemberships" enabled
2222
And new "BulkUpdateOrgGroupMemberships" request
23-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
23+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
2424
When the request is sent
2525
Then the response status is 404 Not Found
2626

2727
@generated @skip @team:DataDog/org-management
2828
Scenario: Bulk update org group memberships returns "OK" response
2929
Given operation "BulkUpdateOrgGroupMemberships" enabled
3030
And new "BulkUpdateOrgGroupMemberships" request
31-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
31+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
3232
When the request is sent
3333
Then the response status is 200 OK
3434

3535
@generated @skip @team:DataDog/org-management
3636
Scenario: Create an org group policy override returns "Bad Request" response
3737
Given operation "CreateOrgGroupPolicyOverride" enabled
3838
And new "CreateOrgGroupPolicyOverride" request
39-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
39+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
4040
When the request is sent
4141
Then the response status is 400 Bad Request
4242

4343
@generated @skip @team:DataDog/org-management
4444
Scenario: Create an org group policy override returns "Conflict" response
4545
Given operation "CreateOrgGroupPolicyOverride" enabled
4646
And new "CreateOrgGroupPolicyOverride" request
47-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
47+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
4848
When the request is sent
4949
Then the response status is 409 Conflict
5050

5151
@generated @skip @team:DataDog/org-management
5252
Scenario: Create an org group policy override returns "Created" response
5353
Given operation "CreateOrgGroupPolicyOverride" enabled
5454
And new "CreateOrgGroupPolicyOverride" request
55-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
55+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
5656
When the request is sent
5757
Then the response status is 201 Created
5858

5959
@generated @skip @team:DataDog/org-management
6060
Scenario: Create an org group policy returns "Bad Request" response
6161
Given operation "CreateOrgGroupPolicy" enabled
6262
And new "CreateOrgGroupPolicy" request
63-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
63+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
6464
When the request is sent
6565
Then the response status is 400 Bad Request
6666

6767
@generated @skip @team:DataDog/org-management
6868
Scenario: Create an org group policy returns "Conflict" response
6969
Given operation "CreateOrgGroupPolicy" enabled
7070
And new "CreateOrgGroupPolicy" request
71-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
71+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
7272
When the request is sent
7373
Then the response status is 409 Conflict
7474

7575
@generated @skip @team:DataDog/org-management
7676
Scenario: Create an org group policy returns "Created" response
7777
Given operation "CreateOrgGroupPolicy" enabled
7878
And new "CreateOrgGroupPolicy" request
79-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
79+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
8080
When the request is sent
8181
Then the response status is 201 Created
8282

@@ -200,6 +200,54 @@ Feature: Org Groups
200200
When the request is sent
201201
Then the response status is 200 OK
202202

203+
@generated @skip @team:DataDog/org-management
204+
Scenario: Get an org group policy override returns "Bad Request" response
205+
Given operation "GetOrgGroupPolicyOverride" enabled
206+
And new "GetOrgGroupPolicyOverride" request
207+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
208+
When the request is sent
209+
Then the response status is 400 Bad Request
210+
211+
@generated @skip @team:DataDog/org-management
212+
Scenario: Get an org group policy override returns "Not Found" response
213+
Given operation "GetOrgGroupPolicyOverride" enabled
214+
And new "GetOrgGroupPolicyOverride" request
215+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
216+
When the request is sent
217+
Then the response status is 404 Not Found
218+
219+
@generated @skip @team:DataDog/org-management
220+
Scenario: Get an org group policy override returns "OK" response
221+
Given operation "GetOrgGroupPolicyOverride" enabled
222+
And new "GetOrgGroupPolicyOverride" request
223+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
224+
When the request is sent
225+
Then the response status is 200 OK
226+
227+
@generated @skip @team:DataDog/org-management
228+
Scenario: Get an org group policy returns "Bad Request" response
229+
Given operation "GetOrgGroupPolicy" enabled
230+
And new "GetOrgGroupPolicy" request
231+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
232+
When the request is sent
233+
Then the response status is 400 Bad Request
234+
235+
@generated @skip @team:DataDog/org-management
236+
Scenario: Get an org group policy returns "Not Found" response
237+
Given operation "GetOrgGroupPolicy" enabled
238+
And new "GetOrgGroupPolicy" request
239+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
240+
When the request is sent
241+
Then the response status is 404 Not Found
242+
243+
@generated @skip @team:DataDog/org-management
244+
Scenario: Get an org group policy returns "OK" response
245+
Given operation "GetOrgGroupPolicy" enabled
246+
And new "GetOrgGroupPolicy" request
247+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
248+
When the request is sent
249+
Then the response status is 200 OK
250+
203251
@generated @skip @team:DataDog/org-management
204252
Scenario: Get an org group returns "Bad Request" response
205253
Given operation "GetOrgGroup" enabled
@@ -323,7 +371,7 @@ Feature: Org Groups
323371
Given operation "UpdateOrgGroupPolicyOverride" enabled
324372
And new "UpdateOrgGroupPolicyOverride" request
325373
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
326-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
374+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
327375
When the request is sent
328376
Then the response status is 400 Bad Request
329377

@@ -332,7 +380,7 @@ Feature: Org Groups
332380
Given operation "UpdateOrgGroupPolicyOverride" enabled
333381
And new "UpdateOrgGroupPolicyOverride" request
334382
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
335-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
383+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
336384
When the request is sent
337385
Then the response status is 404 Not Found
338386

@@ -341,7 +389,7 @@ Feature: Org Groups
341389
Given operation "UpdateOrgGroupPolicyOverride" enabled
342390
And new "UpdateOrgGroupPolicyOverride" request
343391
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
344-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
392+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
345393
When the request is sent
346394
Then the response status is 200 OK
347395

@@ -350,7 +398,7 @@ Feature: Org Groups
350398
Given operation "UpdateOrgGroupPolicy" enabled
351399
And new "UpdateOrgGroupPolicy" request
352400
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
353-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
401+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
354402
When the request is sent
355403
Then the response status is 400 Bad Request
356404

@@ -359,7 +407,7 @@ Feature: Org Groups
359407
Given operation "UpdateOrgGroupPolicy" enabled
360408
And new "UpdateOrgGroupPolicy" request
361409
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
362-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
410+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
363411
When the request is sent
364412
Then the response status is 404 Not Found
365413

@@ -368,7 +416,7 @@ Feature: Org Groups
368416
Given operation "UpdateOrgGroupPolicy" enabled
369417
And new "UpdateOrgGroupPolicy" request
370418
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
371-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
419+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
372420
When the request is sent
373421
Then the response status is 200 OK
374422

features/v2/undo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4197,6 +4197,12 @@
41974197
"type": "unsafe"
41984198
}
41994199
},
4200+
"GetOrgGroupPolicy": {
4201+
"tag": "Org Groups",
4202+
"undo": {
4203+
"type": "safe"
4204+
}
4205+
},
42004206
"UpdateOrgGroupPolicy": {
42014207
"tag": "Org Groups",
42024208
"undo": {
@@ -4233,6 +4239,12 @@
42334239
"type": "unsafe"
42344240
}
42354241
},
4242+
"GetOrgGroupPolicyOverride": {
4243+
"tag": "Org Groups",
4244+
"undo": {
4245+
"type": "safe"
4246+
}
4247+
},
42364248
"UpdateOrgGroupPolicyOverride": {
42374249
"tag": "Org Groups",
42384250
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9601,6 +9601,13 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
96019601
},
96029602
operationResponseType: "OrgGroupPolicyResponse",
96039603
},
9604+
"OrgGroupsApi.V2.GetOrgGroupPolicy": {
9605+
orgGroupPolicyId: {
9606+
type: "string",
9607+
format: "uuid",
9608+
},
9609+
operationResponseType: "OrgGroupPolicyResponse",
9610+
},
96049611
"OrgGroupsApi.V2.DeleteOrgGroupPolicy": {
96059612
orgGroupPolicyId: {
96069613
type: "string",
@@ -9652,6 +9659,13 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
96529659
},
96539660
operationResponseType: "OrgGroupPolicyOverrideResponse",
96549661
},
9662+
"OrgGroupsApi.V2.GetOrgGroupPolicyOverride": {
9663+
orgGroupPolicyOverrideId: {
9664+
type: "string",
9665+
format: "uuid",
9666+
},
9667+
operationResponseType: "OrgGroupPolicyOverrideResponse",
9668+
},
96559669
"OrgGroupsApi.V2.DeleteOrgGroupPolicyOverride": {
96569670
orgGroupPolicyOverrideId: {
96579671
type: "string",

0 commit comments

Comments
 (0)