Skip to content

Commit 0be7d0b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8e38215 of spec repo
1 parent 0fec376 commit 0be7d0b

18 files changed

Lines changed: 34 additions & 323 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:

examples/v2/org-groups/CreateOrgGroupPolicy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const params: v2.OrgGroupsApiCreateOrgGroupPolicyRequest = {
1515
content: {
1616
value: "UTC",
1717
},
18-
enforcementTier: "DEFAULT",
18+
enforcementTier: "OVERRIDE_ALLOWED",
1919
policyName: "monitor_timezone",
2020
policyType: "org_config",
2121
},

examples/v2/org-groups/UpdateOrgGroupPolicy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const params: v2.OrgGroupsApiUpdateOrgGroupPolicyRequest = {
1515
content: {
1616
value: "UTC",
1717
},
18-
enforcementTier: "DEFAULT",
18+
enforcementTier: "OVERRIDE_ALLOWED",
1919
},
2020
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789",
2121
type: "org_group_policies",

features/support/scenarios_model_mapping.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11336,10 +11336,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
1133611336
"type": "OrgGroupSortOption",
1133711337
"format": "",
1133811338
},
11339-
"include": {
11340-
"type": "Array<OrgGroupIncludeOption>",
11341-
"format": "",
11342-
},
1134311339
"operationResponseType": "OrgGroupListResponse",
1134411340
},
1134511341
"v2.CreateOrgGroup": {

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

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { ApiException } from "../../datadog-api-client-common/exception";
1919
import { APIErrorResponse } from "../models/APIErrorResponse";
2020
import { JSONAPIErrorResponse } from "../models/JSONAPIErrorResponse";
2121
import { OrgGroupCreateRequest } from "../models/OrgGroupCreateRequest";
22-
import { OrgGroupIncludeOption } from "../models/OrgGroupIncludeOption";
2322
import { OrgGroupListResponse } from "../models/OrgGroupListResponse";
2423
import { OrgGroupMembershipBulkUpdateRequest } from "../models/OrgGroupMembershipBulkUpdateRequest";
2524
import { OrgGroupMembershipListResponse } from "../models/OrgGroupMembershipListResponse";
@@ -794,7 +793,6 @@ export class OrgGroupsApiRequestFactory extends BaseAPIRequestFactory {
794793
pageNumber?: number,
795794
pageSize?: number,
796795
sort?: OrgGroupSortOption,
797-
include?: Array<OrgGroupIncludeOption>,
798796
_options?: Configuration
799797
): Promise<RequestContext> {
800798
const _config = _options || this.configuration;
@@ -836,13 +834,6 @@ export class OrgGroupsApiRequestFactory extends BaseAPIRequestFactory {
836834
""
837835
);
838836
}
839-
if (include !== undefined) {
840-
requestContext.setQueryParam(
841-
"include",
842-
ObjectSerializer.serialize(include, "Array<OrgGroupIncludeOption>", ""),
843-
"csv"
844-
);
845-
}
846837

847838
// Apply auth methods
848839
applySecurityAuthentication(_config, requestContext, [
@@ -2964,11 +2955,6 @@ export interface OrgGroupsApiListOrgGroupsRequest {
29642955
* @type OrgGroupSortOption
29652956
*/
29662957
sort?: OrgGroupSortOption;
2967-
/**
2968-
* List of related resources to include.
2969-
* @type Array<OrgGroupIncludeOption>
2970-
*/
2971-
include?: Array<OrgGroupIncludeOption>;
29722958
}
29732959

29742960
export interface OrgGroupsApiUpdateOrgGroupRequest {
@@ -3384,7 +3370,6 @@ export class OrgGroupsApi {
33843370
param.pageNumber,
33853371
param.pageSize,
33863372
param.sort,
3387-
param.include,
33883373
options
33893374
);
33903375
return requestContextPromise.then((requestContext) => {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5120,7 +5120,6 @@ export { OrgGroupCreateAttributes } from "./models/OrgGroupCreateAttributes";
51205120
export { OrgGroupCreateData } from "./models/OrgGroupCreateData";
51215121
export { OrgGroupCreateRequest } from "./models/OrgGroupCreateRequest";
51225122
export { OrgGroupData } from "./models/OrgGroupData";
5123-
export { OrgGroupIncludeOption } from "./models/OrgGroupIncludeOption";
51245123
export { OrgGroupListResponse } from "./models/OrgGroupListResponse";
51255124
export { OrgGroupMembershipAttributes } from "./models/OrgGroupMembershipAttributes";
51265125
export { OrgGroupMembershipBulkUpdateAttributes } from "./models/OrgGroupMembershipBulkUpdateAttributes";
@@ -5130,11 +5129,9 @@ export { OrgGroupMembershipBulkUpdateRequest } from "./models/OrgGroupMembership
51305129
export { OrgGroupMembershipBulkUpdateType } from "./models/OrgGroupMembershipBulkUpdateType";
51315130
export { OrgGroupMembershipData } from "./models/OrgGroupMembershipData";
51325131
export { OrgGroupMembershipListResponse } from "./models/OrgGroupMembershipListResponse";
5133-
export { OrgGroupMembershipRelationshipData } from "./models/OrgGroupMembershipRelationshipData";
51345132
export { OrgGroupMembershipRelationships } from "./models/OrgGroupMembershipRelationships";
51355133
export { OrgGroupMembershipResponse } from "./models/OrgGroupMembershipResponse";
51365134
export { OrgGroupMembershipSortOption } from "./models/OrgGroupMembershipSortOption";
5137-
export { OrgGroupMembershipsRelationship } from "./models/OrgGroupMembershipsRelationship";
51385135
export { OrgGroupMembershipType } from "./models/OrgGroupMembershipType";
51395136
export { OrgGroupMembershipUpdateData } from "./models/OrgGroupMembershipUpdateData";
51405137
export { OrgGroupMembershipUpdateRelationships } from "./models/OrgGroupMembershipUpdateRelationships";
@@ -5178,7 +5175,6 @@ export { OrgGroupPolicyType } from "./models/OrgGroupPolicyType";
51785175
export { OrgGroupPolicyUpdateAttributes } from "./models/OrgGroupPolicyUpdateAttributes";
51795176
export { OrgGroupPolicyUpdateData } from "./models/OrgGroupPolicyUpdateData";
51805177
export { OrgGroupPolicyUpdateRequest } from "./models/OrgGroupPolicyUpdateRequest";
5181-
export { OrgGroupRelationships } from "./models/OrgGroupRelationships";
51825178
export { OrgGroupRelationshipToOne } from "./models/OrgGroupRelationshipToOne";
51835179
export { OrgGroupRelationshipToOneData } from "./models/OrgGroupRelationshipToOneData";
51845180
export { OrgGroupResponse } from "./models/OrgGroupResponse";

0 commit comments

Comments
 (0)