Skip to content

Commit f4fa605

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8e38215 of spec repo
1 parent 85cd500 commit f4fa605

16 files changed

Lines changed: 32 additions & 293 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,20 +1051,6 @@ components:
10511051
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
10521052
format: uuid
10531053
type: string
1054-
OrgGroupInclude:
1055-
description: >-
1056-
List of related resources to include.
1057-
explode: false
1058-
in: query
1059-
name: include
1060-
required: false
1061-
schema:
1062-
example:
1063-
- memberships
1064-
items:
1065-
$ref: "#/components/schemas/OrgGroupIncludeOption"
1066-
type: array
1067-
style: form
10681054
OrgGroupMembershipFilterOrgGroupId:
10691055
description: Filter memberships by org group ID. Required when `filter[org_uuid]` is not provided.
10701056
in: query
@@ -59225,22 +59211,13 @@ components:
5922559211
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5922659212
format: uuid
5922759213
type: string
59228-
relationships:
59229-
$ref: "#/components/schemas/OrgGroupRelationships"
5923059214
type:
5923159215
$ref: "#/components/schemas/OrgGroupType"
5923259216
required:
5923359217
- id
5923459218
- type
5923559219
- attributes
5923659220
type: object
59237-
OrgGroupIncludeOption:
59238-
description: Allowed include options for org group endpoints.
59239-
enum:
59240-
- memberships
59241-
type: string
59242-
x-enum-varnames:
59243-
- MEMBERSHIPS
5924459221
OrgGroupListResponse:
5924559222
description: Response containing a list of org groups.
5924659223
properties:
@@ -59249,11 +59226,6 @@ components:
5924959226
items:
5925059227
$ref: "#/components/schemas/OrgGroupData"
5925159228
type: array
59252-
included:
59253-
description: Related resources included in the response when requested with the `include` parameter.
59254-
items:
59255-
$ref: "#/components/schemas/OrgGroupMembershipData"
59256-
type: array
5925759229
links:
5925859230
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5925959231
meta:
@@ -59380,20 +59352,6 @@ components:
5938059352
required:
5938159353
- data
5938259354
type: object
59383-
OrgGroupMembershipRelationshipData:
59384-
description: A reference to an org group membership.
59385-
properties:
59386-
id:
59387-
description: The ID of the membership.
59388-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59389-
format: uuid
59390-
type: string
59391-
type:
59392-
$ref: "#/components/schemas/OrgGroupMembershipType"
59393-
required:
59394-
- id
59395-
- type
59396-
type: object
5939759355
OrgGroupMembershipRelationships:
5939859356
description: Relationships of an org group membership.
5939959357
properties:
@@ -59464,17 +59422,6 @@ components:
5946459422
required:
5946559423
- data
5946659424
type: object
59467-
OrgGroupMembershipsRelationship:
59468-
description: Relationship to org group memberships.
59469-
properties:
59470-
data:
59471-
description: An array of membership relationship references.
59472-
items:
59473-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59474-
type: array
59475-
required:
59476-
- data
59477-
type: object
5947859425
OrgGroupPaginationLinks:
5947959426
description: Pagination links for navigating between pages of an org group list response.
5948059427
properties:
@@ -59708,18 +59655,18 @@ components:
5970859655
- attributes
5970959656
type: object
5971059657
OrgGroupPolicyEnforcementTier:
59711-
default: DEFAULT
59658+
default: OVERRIDE_ALLOWED
5971259659
description: >-
59713-
The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
59660+
The enforcement tier of the policy. `OVERRIDE_ALLOWED` means the policy is set but member orgs may mutate it. `GROUP_MANAGED` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
5971459661
enum:
59715-
- DEFAULT
59716-
- ENFORCE
59662+
- OVERRIDE_ALLOWED
59663+
- GROUP_MANAGED
5971759664
- DELEGATE
59718-
example: DEFAULT
59665+
example: OVERRIDE_ALLOWED
5971959666
type: string
5972059667
x-enum-varnames:
59721-
- DEFAULT
59722-
- ENFORCE
59668+
- OVERRIDE_ALLOWED
59669+
- GROUP_MANAGED
5972359670
- DELEGATE
5972459671
OrgGroupPolicyListResponse:
5972559672
description: Response containing a list of org group policies.
@@ -60060,12 +60007,6 @@ components:
6006060007
- id
6006160008
- type
6006260009
type: object
60063-
OrgGroupRelationships:
60064-
description: Relationships of an org group.
60065-
properties:
60066-
memberships:
60067-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
60068-
type: object
6006960010
OrgGroupResponse:
6007060011
description: Response containing a single org group.
6007160012
properties:
@@ -133887,7 +133828,7 @@ paths:
133887133828
- attributes:
133888133829
content:
133889133830
value: "UTC"
133890-
enforcement_tier: "DEFAULT"
133831+
enforcement_tier: "OVERRIDE_ALLOWED"
133891133832
modified_at: "2024-01-15T10:30:00Z"
133892133833
policy_name: "monitor_timezone"
133893133834
policy_type: "org_config"
@@ -133959,7 +133900,7 @@ paths:
133959133900
attributes:
133960133901
content:
133961133902
value: "UTC"
133962-
enforcement_tier: "DEFAULT"
133903+
enforcement_tier: "OVERRIDE_ALLOWED"
133963133904
policy_name: "monitor_timezone"
133964133905
policy_type: "org_config"
133965133906
relationships:
@@ -133982,7 +133923,7 @@ paths:
133982133923
attributes:
133983133924
content:
133984133925
value: "UTC"
133985-
enforcement_tier: "DEFAULT"
133926+
enforcement_tier: "OVERRIDE_ALLOWED"
133986133927
modified_at: "2024-01-15T10:30:00Z"
133987133928
policy_name: "monitor_timezone"
133988133929
policy_type: "org_config"
@@ -134091,7 +134032,7 @@ paths:
134091134032
attributes:
134092134033
content:
134093134034
value: "UTC"
134094-
enforcement_tier: "DEFAULT"
134035+
enforcement_tier: "OVERRIDE_ALLOWED"
134095134036
modified_at: "2024-01-15T10:30:00Z"
134096134037
policy_name: "monitor_timezone"
134097134038
policy_type: "org_config"
@@ -134155,7 +134096,7 @@ paths:
134155134096
attributes:
134156134097
content:
134157134098
value: "US/Eastern"
134158-
enforcement_tier: "ENFORCE"
134099+
enforcement_tier: "GROUP_MANAGED"
134159134100
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
134160134101
type: org_group_policies
134161134102
schema:
@@ -134172,7 +134113,7 @@ paths:
134172134113
attributes:
134173134114
content:
134174134115
value: "US/Eastern"
134175-
enforcement_tier: "ENFORCE"
134116+
enforcement_tier: "GROUP_MANAGED"
134176134117
modified_at: "2024-01-16T14:00:00Z"
134177134118
policy_name: "monitor_timezone"
134178134119
policy_type: "org_config"
@@ -134639,7 +134580,6 @@ paths:
134639134580
- $ref: "#/components/parameters/OrgGroupPageNumber"
134640134581
- $ref: "#/components/parameters/OrgGroupPageSize"
134641134582
- $ref: "#/components/parameters/OrgGroupSort"
134642-
- $ref: "#/components/parameters/OrgGroupInclude"
134643134583
responses:
134644134584
"200":
134645134585
content:

features/v2/org_groups.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,23 @@ Feature: Org Groups
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"}, "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"}}
63+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED", "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"}, "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"}}
71+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED", "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"}, "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"}}
79+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED", "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

@@ -398,7 +398,7 @@ Feature: Org Groups
398398
Given operation "UpdateOrgGroupPolicy" enabled
399399
And new "UpdateOrgGroupPolicy" request
400400
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
401-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
401+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
402402
When the request is sent
403403
Then the response status is 400 Bad Request
404404

@@ -407,7 +407,7 @@ Feature: Org Groups
407407
Given operation "UpdateOrgGroupPolicy" enabled
408408
And new "UpdateOrgGroupPolicy" request
409409
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
410-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
410+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
411411
When the request is sent
412412
Then the response status is 404 Not Found
413413

@@ -416,7 +416,7 @@ Feature: Org Groups
416416
Given operation "UpdateOrgGroupPolicy" enabled
417417
And new "UpdateOrgGroupPolicy" request
418418
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
419-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
419+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "OVERRIDE_ALLOWED"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
420420
When the request is sent
421421
Then the response status is 200 OK
422422

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11348,10 +11348,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
1134811348
type: "OrgGroupSortOption",
1134911349
format: "",
1135011350
},
11351-
include: {
11352-
type: "Array<OrgGroupIncludeOption>",
11353-
format: "",
11354-
},
1135511351
operationResponseType: "OrgGroupListResponse",
1135611352
},
1135711353
"OrgGroupsApi.V2.CreateOrgGroup": {

services/org_groups/src/v2/OrgGroupsApi.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { TypingInfo } from "./models/TypingInfo";
2525
import { APIErrorResponse } from "./models/APIErrorResponse";
2626
import { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse";
2727
import { OrgGroupCreateRequest } from "./models/OrgGroupCreateRequest";
28-
import { OrgGroupIncludeOption } from "./models/OrgGroupIncludeOption";
2928
import { OrgGroupListResponse } from "./models/OrgGroupListResponse";
3029
import { OrgGroupMembershipBulkUpdateRequest } from "./models/OrgGroupMembershipBulkUpdateRequest";
3130
import { OrgGroupMembershipListResponse } from "./models/OrgGroupMembershipListResponse";
@@ -975,7 +974,6 @@ export class OrgGroupsApiRequestFactory extends BaseAPIRequestFactory {
975974
pageNumber?: number,
976975
pageSize?: number,
977976
sort?: OrgGroupSortOption,
978-
include?: Array<OrgGroupIncludeOption>,
979977
_options?: Configuration,
980978
): Promise<RequestContext> {
981979
const _config = _options || this.configuration;
@@ -1029,13 +1027,6 @@ export class OrgGroupsApiRequestFactory extends BaseAPIRequestFactory {
10291027
"",
10301028
);
10311029
}
1032-
if (include !== undefined) {
1033-
requestContext.setQueryParam(
1034-
"include",
1035-
serialize(include, TypingInfo, "Array<OrgGroupIncludeOption>", ""),
1036-
"csv",
1037-
);
1038-
}
10391030

10401031
// Apply auth methods
10411032
applySecurityAuthentication(_config, requestContext, [
@@ -3105,11 +3096,6 @@ export interface OrgGroupsApiListOrgGroupsRequest {
31053096
* @type OrgGroupSortOption
31063097
*/
31073098
sort?: OrgGroupSortOption;
3108-
/**
3109-
* List of related resources to include.
3110-
* @type Array<OrgGroupIncludeOption>
3111-
*/
3112-
include?: Array<OrgGroupIncludeOption>;
31133099
}
31143100

31153101
export interface OrgGroupsApiUpdateOrgGroupRequest {
@@ -3527,7 +3513,6 @@ export class OrgGroupsApi {
35273513
param.pageNumber,
35283514
param.pageSize,
35293515
param.sort,
3530-
param.include,
35313516
options,
35323517
);
35333518
return requestContextPromise.then((requestContext) => {

services/org_groups/src/v2/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export { OrgGroupCreateAttributes } from "./models/OrgGroupCreateAttributes";
3131
export { OrgGroupCreateData } from "./models/OrgGroupCreateData";
3232
export { OrgGroupCreateRequest } from "./models/OrgGroupCreateRequest";
3333
export { OrgGroupData } from "./models/OrgGroupData";
34-
export { OrgGroupIncludeOption } from "./models/OrgGroupIncludeOption";
3534
export { OrgGroupListResponse } from "./models/OrgGroupListResponse";
3635
export { OrgGroupMembershipAttributes } from "./models/OrgGroupMembershipAttributes";
3736
export { OrgGroupMembershipBulkUpdateAttributes } from "./models/OrgGroupMembershipBulkUpdateAttributes";
@@ -41,11 +40,9 @@ export { OrgGroupMembershipBulkUpdateRequest } from "./models/OrgGroupMembership
4140
export { OrgGroupMembershipBulkUpdateType } from "./models/OrgGroupMembershipBulkUpdateType";
4241
export { OrgGroupMembershipData } from "./models/OrgGroupMembershipData";
4342
export { OrgGroupMembershipListResponse } from "./models/OrgGroupMembershipListResponse";
44-
export { OrgGroupMembershipRelationshipData } from "./models/OrgGroupMembershipRelationshipData";
4543
export { OrgGroupMembershipRelationships } from "./models/OrgGroupMembershipRelationships";
4644
export { OrgGroupMembershipResponse } from "./models/OrgGroupMembershipResponse";
4745
export { OrgGroupMembershipSortOption } from "./models/OrgGroupMembershipSortOption";
48-
export { OrgGroupMembershipsRelationship } from "./models/OrgGroupMembershipsRelationship";
4946
export { OrgGroupMembershipType } from "./models/OrgGroupMembershipType";
5047
export { OrgGroupMembershipUpdateData } from "./models/OrgGroupMembershipUpdateData";
5148
export { OrgGroupMembershipUpdateRelationships } from "./models/OrgGroupMembershipUpdateRelationships";
@@ -89,7 +86,6 @@ export { OrgGroupPolicyType } from "./models/OrgGroupPolicyType";
8986
export { OrgGroupPolicyUpdateAttributes } from "./models/OrgGroupPolicyUpdateAttributes";
9087
export { OrgGroupPolicyUpdateData } from "./models/OrgGroupPolicyUpdateData";
9188
export { OrgGroupPolicyUpdateRequest } from "./models/OrgGroupPolicyUpdateRequest";
92-
export { OrgGroupRelationships } from "./models/OrgGroupRelationships";
9389
export { OrgGroupRelationshipToOne } from "./models/OrgGroupRelationshipToOne";
9490
export { OrgGroupRelationshipToOneData } from "./models/OrgGroupRelationshipToOneData";
9591
export { OrgGroupResponse } from "./models/OrgGroupResponse";

services/org_groups/src/v2/models/OrgGroupData.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

33
import { OrgGroupAttributes } from "./OrgGroupAttributes";
4-
import { OrgGroupRelationships } from "./OrgGroupRelationships";
54
import { OrgGroupType } from "./OrgGroupType";
65

76
/**
@@ -16,10 +15,6 @@ export class OrgGroupData {
1615
* The ID of the org group.
1716
*/
1817
"id": string;
19-
/**
20-
* Relationships of an org group.
21-
*/
22-
"relationships"?: OrgGroupRelationships;
2318
/**
2419
* Org groups resource type.
2520
*/
@@ -50,10 +45,6 @@ export class OrgGroupData {
5045
required: true,
5146
format: "uuid",
5247
},
53-
relationships: {
54-
baseName: "relationships",
55-
type: "OrgGroupRelationships",
56-
},
5748
type: {
5849
baseName: "type",
5950
type: "OrgGroupType",

services/org_groups/src/v2/models/OrgGroupIncludeOption.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)