Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
259 changes: 176 additions & 83 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-03-17T17:26:21.682Z"
"2026-04-21T18:00:45.123Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-03-17T17:26:23.134Z"
"2026-04-21T18:01:01.223Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-04-01T20:36:45.896Z"
"2026-04-21T18:01:15.906Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-03-17T17:26:24.320Z"
"2026-04-21T16:59:12.935Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-03-17T17:26:24.940Z"
"2026-04-21T14:41:15.447Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-03-17T17:26:25.094Z"
"2026-04-21T18:02:04.114Z"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2026-04-01T20:36:50.944Z"
"2026-04-21T18:02:19.665Z"

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion examples/v2/feature-flags/ListFeatureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FeatureFlagsApi(configuration);

const params: v2.FeatureFlagsApiListFeatureFlagsRequest = {
limit: 10,
};

apiInstance
.listFeatureFlags()
.listFeatureFlags(params)
.then((data: v2.ListFeatureFlagsResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
Expand Down
1 change: 1 addition & 0 deletions features/v2/feature_flags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ Feature: Feature Flags
@team:DataDog/feature-flags
Scenario: List feature flags returns "OK" response
Given new "ListFeatureFlags" request
And request contains "limit" parameter with value 10
When the request is sent
Then the response status is 200 OK

Expand Down
16 changes: 7 additions & 9 deletions packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
applySecurityAuthentication(_config, requestContext, [
"apiKeyAuth",
"appKeyAuth",
"AuthZ",
]);

return requestContext;
Expand Down Expand Up @@ -1217,7 +1216,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
applySecurityAuthentication(_config, requestContext, [
"apiKeyAuth",
"appKeyAuth",
"AuthZ",
]);

return requestContext;
Expand Down Expand Up @@ -1879,7 +1877,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
applySecurityAuthentication(_config, requestContext, [
"apiKeyAuth",
"appKeyAuth",
"AuthZ",
]);

return requestContext;
Expand Down Expand Up @@ -11450,7 +11447,7 @@ export class SecurityMonitoringApiResponseProcessor {

export interface SecurityMonitoringApiActivateContentPackRequest {
/**
* The ID of the content pack to activate (for example, `aws-cloudtrail`).
* The ID of the content pack to activate.
* @type string
*/
contentPackId: string;
Expand Down Expand Up @@ -11634,7 +11631,7 @@ export interface SecurityMonitoringApiCreateVulnerabilityNotificationRuleRequest

export interface SecurityMonitoringApiDeactivateContentPackRequest {
/**
* The ID of the content pack to deactivate (for example, `aws-cloudtrail`).
* The ID of the content pack to deactivate.
* @type string
*/
contentPackId: string;
Expand Down Expand Up @@ -12889,7 +12886,7 @@ export class SecurityMonitoringApi {
}

/**
* Activate a Cloud SIEM content pack. This operation configures the necessary
* Activate a security monitoring content pack. This operation configures the necessary
* log filters or security filters depending on the pricing model and updates the content
* pack activation state.
* @param param The request object
Expand Down Expand Up @@ -13420,7 +13417,7 @@ export class SecurityMonitoringApi {
}

/**
* Deactivate a Cloud SIEM content pack. This operation removes the content pack's
* Deactivate a security monitoring content pack. This operation removes the content pack's
* configuration from log filters or security filters and updates the content pack activation state.
* @param param The request object
*/
Expand Down Expand Up @@ -13769,8 +13766,9 @@ export class SecurityMonitoringApi {
}

/**
* Get the activation state, integration status, and log collection status
* for all Cloud SIEM content packs.
* Get the activation and configuration states for all security monitoring content packs.
* This endpoint returns status information about each content pack including activation state,
* integration status, and log collection status.
* @param param The request object
*/
public getContentPacksStates(
Expand Down
3 changes: 3 additions & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2931,6 +2931,9 @@ export { FastlyServiceType } from "./models/FastlyServiceType";
export { FeatureFlag } from "./models/FeatureFlag";
export { FeatureFlagAttributes } from "./models/FeatureFlagAttributes";
export { FeatureFlagEnvironment } from "./models/FeatureFlagEnvironment";
export { FeatureFlagEnvironmentListItem } from "./models/FeatureFlagEnvironmentListItem";
export { FeatureFlagListItem } from "./models/FeatureFlagListItem";
export { FeatureFlagListItemAttributes } from "./models/FeatureFlagListItemAttributes";
export { FeatureFlagResponse } from "./models/FeatureFlagResponse";
export { FeatureFlagsPaginationMeta } from "./models/FeatureFlagsPaginationMeta";
export { FeatureFlagsPaginationMetaPage } from "./models/FeatureFlagsPaginationMetaPage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class FeatureFlagAttributes {
* Indicates whether this feature flag requires approval for changes.
*/
"requireApproval"?: boolean;
/**
* Indicates the staleness status of the feature flag.
*/
"stalenessStatus"?: string;
/**
* Tags associated with the feature flag.
*/
Expand Down Expand Up @@ -141,6 +145,10 @@ export class FeatureFlagAttributes {
baseName: "require_approval",
type: "boolean",
},
stalenessStatus: {
baseName: "staleness_status",
type: "string",
},
tags: {
baseName: "tags",
type: "Array<string>",
Expand Down
17 changes: 0 additions & 17 deletions packages/datadog-api-client-v2/models/FeatureFlagEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ export class FeatureFlagEnvironment {
* Indicates whether feature flag changes require approval in this environment.
*/
"requireFeatureFlagApproval"?: boolean;
/**
* Rollout percentage for this environment.
*/
"rolloutPercentage"?: number;
/**
* Environment targeting rules for this feature flag.
*/
"rules"?: Array<{ [key: string]: any }>;
/**
* The status of a feature flag in an environment.
*/
Expand Down Expand Up @@ -130,15 +122,6 @@ export class FeatureFlagEnvironment {
baseName: "require_feature_flag_approval",
type: "boolean",
},
rolloutPercentage: {
baseName: "rollout_percentage",
type: "number",
format: "int64",
},
rules: {
baseName: "rules",
type: "Array<{ [key: string]: any; }>",
},
status: {
baseName: "status",
type: "FeatureFlagStatus",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { FeatureFlagStatus } from "./FeatureFlagStatus";

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

/**
* Environment-specific settings for a feature flag in list responses.
*/
export class FeatureFlagEnvironmentListItem {
/**
* The allocation key used for the default variant.
*/
"defaultAllocationKey"?: string;
/**
* The ID of the default variant for this environment.
*/
"defaultVariantId"?: string;
/**
* The ID of the environment.
*/
"environmentId": string;
/**
* The name of the environment.
*/
"environmentName"?: string;
/**
* Queries that target this environment.
*/
"environmentQueries"?: Array<string>;
/**
* Indicates whether the environment is production.
*/
"isProduction"?: boolean;
/**
* The allocation key used for the override variant.
*/
"overrideAllocationKey"?: string;
/**
* The ID of the override variant for this environment.
*/
"overrideVariantId"?: string;
/**
* Pending suggestion identifier, if approval is required.
*/
"pendingSuggestionId"?: string;
/**
* Indicates whether feature flag changes require approval in this environment.
*/
"requireFeatureFlagApproval"?: boolean;
/**
* The status of a feature flag in an environment.
*/
"status": FeatureFlagStatus;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
defaultAllocationKey: {
baseName: "default_allocation_key",
type: "string",
},
defaultVariantId: {
baseName: "default_variant_id",
type: "string",
},
environmentId: {
baseName: "environment_id",
type: "string",
required: true,
format: "uuid",
},
environmentName: {
baseName: "environment_name",
type: "string",
},
environmentQueries: {
baseName: "environment_queries",
type: "Array<string>",
},
isProduction: {
baseName: "is_production",
type: "boolean",
},
overrideAllocationKey: {
baseName: "override_allocation_key",
type: "string",
},
overrideVariantId: {
baseName: "override_variant_id",
type: "string",
},
pendingSuggestionId: {
baseName: "pending_suggestion_id",
type: "string",
},
requireFeatureFlagApproval: {
baseName: "require_feature_flag_approval",
type: "boolean",
},
status: {
baseName: "status",
type: "FeatureFlagStatus",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return FeatureFlagEnvironmentListItem.attributeTypeMap;
}

public constructor() {}
}
74 changes: 74 additions & 0 deletions packages/datadog-api-client-v2/models/FeatureFlagListItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { CreateFeatureFlagDataType } from "./CreateFeatureFlagDataType";
import { FeatureFlagListItemAttributes } from "./FeatureFlagListItemAttributes";

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

/**
* A feature flag resource for list responses.
*/
export class FeatureFlagListItem {
/**
* Attributes of a feature flag in list responses.
*/
"attributes": FeatureFlagListItemAttributes;
/**
* The unique identifier of the feature flag.
*/
"id": string;
/**
* The resource type.
*/
"type": CreateFeatureFlagDataType;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
attributes: {
baseName: "attributes",
type: "FeatureFlagListItemAttributes",
required: true,
},
id: {
baseName: "id",
type: "string",
required: true,
format: "uuid",
},
type: {
baseName: "type",
type: "CreateFeatureFlagDataType",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return FeatureFlagListItem.attributeTypeMap;
}

public constructor() {}
}
Loading
Loading