Skip to content

Commit 01d0ec1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5d4dec2 of spec repo
1 parent 1094864 commit 01d0ec1

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
@@ -59113,22 +59099,13 @@ components:
5911359099
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5911459100
format: uuid
5911559101
type: string
59116-
relationships:
59117-
$ref: "#/components/schemas/OrgGroupRelationships"
5911859102
type:
5911959103
$ref: "#/components/schemas/OrgGroupType"
5912059104
required:
5912159105
- id
5912259106
- type
5912359107
- attributes
5912459108
type: object
59125-
OrgGroupIncludeOption:
59126-
description: Allowed include options for org group endpoints.
59127-
enum:
59128-
- memberships
59129-
type: string
59130-
x-enum-varnames:
59131-
- MEMBERSHIPS
5913259109
OrgGroupListResponse:
5913359110
description: Response containing a list of org groups.
5913459111
properties:
@@ -59137,11 +59114,6 @@ components:
5913759114
items:
5913859115
$ref: "#/components/schemas/OrgGroupData"
5913959116
type: array
59140-
included:
59141-
description: Related resources included in the response when requested with the `include` parameter.
59142-
items:
59143-
$ref: "#/components/schemas/OrgGroupMembershipData"
59144-
type: array
5914559117
links:
5914659118
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5914759119
meta:
@@ -59268,20 +59240,6 @@ components:
5926859240
required:
5926959241
- data
5927059242
type: object
59271-
OrgGroupMembershipRelationshipData:
59272-
description: A reference to an org group membership.
59273-
properties:
59274-
id:
59275-
description: The ID of the membership.
59276-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59277-
format: uuid
59278-
type: string
59279-
type:
59280-
$ref: "#/components/schemas/OrgGroupMembershipType"
59281-
required:
59282-
- id
59283-
- type
59284-
type: object
5928559243
OrgGroupMembershipRelationships:
5928659244
description: Relationships of an org group membership.
5928759245
properties:
@@ -59352,17 +59310,6 @@ components:
5935259310
required:
5935359311
- data
5935459312
type: object
59355-
OrgGroupMembershipsRelationship:
59356-
description: Relationship to org group memberships.
59357-
properties:
59358-
data:
59359-
description: An array of membership relationship references.
59360-
items:
59361-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59362-
type: array
59363-
required:
59364-
- data
59365-
type: object
5936659313
OrgGroupPaginationLinks:
5936759314
description: Pagination links for navigating between pages of an org group list response.
5936859315
properties:
@@ -59596,18 +59543,18 @@ components:
5959659543
- attributes
5959759544
type: object
5959859545
OrgGroupPolicyEnforcementTier:
59599-
default: DEFAULT
59546+
default: OVERRIDE_ALLOWED
5960059547
description: >-
59601-
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.
59548+
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.
5960259549
enum:
59603-
- DEFAULT
59604-
- ENFORCE
59550+
- OVERRIDE_ALLOWED
59551+
- GROUP_MANAGED
5960559552
- DELEGATE
59606-
example: DEFAULT
59553+
example: OVERRIDE_ALLOWED
5960759554
type: string
5960859555
x-enum-varnames:
59609-
- DEFAULT
59610-
- ENFORCE
59556+
- OVERRIDE_ALLOWED
59557+
- GROUP_MANAGED
5961159558
- DELEGATE
5961259559
OrgGroupPolicyListResponse:
5961359560
description: Response containing a list of org group policies.
@@ -59948,12 +59895,6 @@ components:
5994859895
- id
5994959896
- type
5995059897
type: object
59951-
OrgGroupRelationships:
59952-
description: Relationships of an org group.
59953-
properties:
59954-
memberships:
59955-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
59956-
type: object
5995759898
OrgGroupResponse:
5995859899
description: Response containing a single org group.
5995959900
properties:
@@ -133677,7 +133618,7 @@ paths:
133677133618
- attributes:
133678133619
content:
133679133620
value: "UTC"
133680-
enforcement_tier: "DEFAULT"
133621+
enforcement_tier: "OVERRIDE_ALLOWED"
133681133622
modified_at: "2024-01-15T10:30:00Z"
133682133623
policy_name: "monitor_timezone"
133683133624
policy_type: "org_config"
@@ -133749,7 +133690,7 @@ paths:
133749133690
attributes:
133750133691
content:
133751133692
value: "UTC"
133752-
enforcement_tier: "DEFAULT"
133693+
enforcement_tier: "OVERRIDE_ALLOWED"
133753133694
policy_name: "monitor_timezone"
133754133695
policy_type: "org_config"
133755133696
relationships:
@@ -133772,7 +133713,7 @@ paths:
133772133713
attributes:
133773133714
content:
133774133715
value: "UTC"
133775-
enforcement_tier: "DEFAULT"
133716+
enforcement_tier: "OVERRIDE_ALLOWED"
133776133717
modified_at: "2024-01-15T10:30:00Z"
133777133718
policy_name: "monitor_timezone"
133778133719
policy_type: "org_config"
@@ -133881,7 +133822,7 @@ paths:
133881133822
attributes:
133882133823
content:
133883133824
value: "UTC"
133884-
enforcement_tier: "DEFAULT"
133825+
enforcement_tier: "OVERRIDE_ALLOWED"
133885133826
modified_at: "2024-01-15T10:30:00Z"
133886133827
policy_name: "monitor_timezone"
133887133828
policy_type: "org_config"
@@ -133945,7 +133886,7 @@ paths:
133945133886
attributes:
133946133887
content:
133947133888
value: "US/Eastern"
133948-
enforcement_tier: "ENFORCE"
133889+
enforcement_tier: "GROUP_MANAGED"
133949133890
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
133950133891
type: org_group_policies
133951133892
schema:
@@ -133962,7 +133903,7 @@ paths:
133962133903
attributes:
133963133904
content:
133964133905
value: "US/Eastern"
133965-
enforcement_tier: "ENFORCE"
133906+
enforcement_tier: "GROUP_MANAGED"
133966133907
modified_at: "2024-01-16T14:00:00Z"
133967133908
policy_name: "monitor_timezone"
133968133909
policy_type: "org_config"
@@ -134429,7 +134370,6 @@ paths:
134429134370
- $ref: "#/components/parameters/OrgGroupPageNumber"
134430134371
- $ref: "#/components/parameters/OrgGroupPageSize"
134431134372
- $ref: "#/components/parameters/OrgGroupSort"
134432-
- $ref: "#/components/parameters/OrgGroupInclude"
134433134373
responses:
134434134374
"200":
134435134375
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
@@ -11321,10 +11321,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
1132111321
"type": "OrgGroupSortOption",
1132211322
"format": "",
1132311323
},
11324-
"include": {
11325-
"type": "Array<OrgGroupIncludeOption>",
11326-
"format": "",
11327-
},
1132811324
"operationResponseType": "OrgGroupListResponse",
1132911325
},
1133011326
"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
@@ -5113,7 +5113,6 @@ export { OrgGroupCreateAttributes } from "./models/OrgGroupCreateAttributes";
51135113
export { OrgGroupCreateData } from "./models/OrgGroupCreateData";
51145114
export { OrgGroupCreateRequest } from "./models/OrgGroupCreateRequest";
51155115
export { OrgGroupData } from "./models/OrgGroupData";
5116-
export { OrgGroupIncludeOption } from "./models/OrgGroupIncludeOption";
51175116
export { OrgGroupListResponse } from "./models/OrgGroupListResponse";
51185117
export { OrgGroupMembershipAttributes } from "./models/OrgGroupMembershipAttributes";
51195118
export { OrgGroupMembershipBulkUpdateAttributes } from "./models/OrgGroupMembershipBulkUpdateAttributes";
@@ -5123,11 +5122,9 @@ export { OrgGroupMembershipBulkUpdateRequest } from "./models/OrgGroupMembership
51235122
export { OrgGroupMembershipBulkUpdateType } from "./models/OrgGroupMembershipBulkUpdateType";
51245123
export { OrgGroupMembershipData } from "./models/OrgGroupMembershipData";
51255124
export { OrgGroupMembershipListResponse } from "./models/OrgGroupMembershipListResponse";
5126-
export { OrgGroupMembershipRelationshipData } from "./models/OrgGroupMembershipRelationshipData";
51275125
export { OrgGroupMembershipRelationships } from "./models/OrgGroupMembershipRelationships";
51285126
export { OrgGroupMembershipResponse } from "./models/OrgGroupMembershipResponse";
51295127
export { OrgGroupMembershipSortOption } from "./models/OrgGroupMembershipSortOption";
5130-
export { OrgGroupMembershipsRelationship } from "./models/OrgGroupMembershipsRelationship";
51315128
export { OrgGroupMembershipType } from "./models/OrgGroupMembershipType";
51325129
export { OrgGroupMembershipUpdateData } from "./models/OrgGroupMembershipUpdateData";
51335130
export { OrgGroupMembershipUpdateRelationships } from "./models/OrgGroupMembershipUpdateRelationships";
@@ -5171,7 +5168,6 @@ export { OrgGroupPolicyType } from "./models/OrgGroupPolicyType";
51715168
export { OrgGroupPolicyUpdateAttributes } from "./models/OrgGroupPolicyUpdateAttributes";
51725169
export { OrgGroupPolicyUpdateData } from "./models/OrgGroupPolicyUpdateData";
51735170
export { OrgGroupPolicyUpdateRequest } from "./models/OrgGroupPolicyUpdateRequest";
5174-
export { OrgGroupRelationships } from "./models/OrgGroupRelationships";
51755171
export { OrgGroupRelationshipToOne } from "./models/OrgGroupRelationshipToOne";
51765172
export { OrgGroupRelationshipToOneData } from "./models/OrgGroupRelationshipToOneData";
51775173
export { OrgGroupResponse } from "./models/OrgGroupResponse";

0 commit comments

Comments
 (0)