Skip to content

Commit f438b40

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4697b4f of spec repo
1 parent d5fdae6 commit f438b40

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117110,7 +117110,10 @@ components:
117110117110
description: Request to create or update a targeting rule (allocation) for a feature flag environment.
117111117111
properties:
117112117112
experiment_id:
117113-
description: The experiment ID for experiment-linked allocations.
117113+
description: |-
117114+
The experiment ID linked to the allocation. For `FEATURE_GATE` allocations,
117115+
a non-null value denotes a standard experiment. For `CANARY` allocations,
117116+
Datadog manages this value. Omit it when creating a canary allocation.
117114117117
example: "550e8400-e29b-41d4-a716-446655440030"
117115117118
nullable: true
117116117119
type: string
@@ -144699,6 +144702,11 @@ paths:
144699144702
description: |-
144700144703
Updates targeting rules (allocations) for a specific feature flag in a specific environment.
144701144704
This operation replaces the existing allocation set with the request payload.
144705+
Creating, updating, or deleting a standard experiment allocation—an allocation with
144706+
`type: FEATURE_GATE` and a non-null `experiment_id`—also requires the
144707+
`product_analytics_experiments_write` permission. This additional permission is not
144708+
required for `CANARY` allocations, exposure schedules, or guardrail metrics unless
144709+
the same operation also mutates a standard experiment allocation.
144702144710
operationId: UpdateAllocationsForFeatureFlagInEnvironment
144703144711
parameters:
144704144712
- $ref: "#/components/parameters/feature_flag_id"
@@ -144772,7 +144780,9 @@ paths:
144772144780
application/json:
144773144781
schema:
144774144782
$ref: "#/components/schemas/APIErrorResponse"
144775-
description: Forbidden
144783+
description: |-
144784+
Forbidden. The caller is missing the `feature_flag_config_write` permission.
144785+
This error is also returned when the operation mutates a standard experiment allocation and the caller is missing the `product_analytics_experiments_write` permission.
144776144786
"404":
144777144787
content:
144778144788
application/json:

src/main/java/com/datadog/api/client/v2/api/FeatureFlagsApi.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,12 @@ public ListAllocationsResponse updateAllocationsForFeatureFlagInEnvironment(
30063006

30073007
/**
30083008
* Updates targeting rules (allocations) for a specific feature flag in a specific environment.
3009-
* This operation replaces the existing allocation set with the request payload.
3009+
* This operation replaces the existing allocation set with the request payload. Creating,
3010+
* updating, or deleting a standard experiment allocation—an allocation with <code>
3011+
* type: FEATURE_GATE</code> and a non-null <code>experiment_id</code>—also requires the <code>
3012+
* product_analytics_experiments_write</code> permission. This additional permission is not
3013+
* required for <code>CANARY</code> allocations, exposure schedules, or guardrail metrics unless
3014+
* the same operation also mutates a standard experiment allocation.
30103015
*
30113016
* @param featureFlagId The ID of the feature flag. (required)
30123017
* @param environmentId The ID of the environment. (required)
@@ -3020,7 +3025,7 @@ public ListAllocationsResponse updateAllocationsForFeatureFlagInEnvironment(
30203025
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
30213026
* <tr><td> 202 </td><td> Accepted - Approval required for this change </td><td> - </td></tr>
30223027
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
3023-
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
3028+
* <tr><td> 403 </td><td> Forbidden. The caller is missing the &#x60;feature_flag_config_write&#x60; permission. This error is also returned when the operation mutates a standard experiment allocation and the caller is missing the &#x60;product_analytics_experiments_write&#x60; permission. </td><td> - </td></tr>
30243029
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
30253030
* <tr><td> 409 </td><td> Conflict </td><td> - </td></tr>
30263031
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>

src/main/java/com/datadog/api/client/v2/model/UpsertAllocationRequest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public UpsertAllocationRequest experimentId(String experimentId) {
8383
}
8484

8585
/**
86-
* The experiment ID for experiment-linked allocations.
86+
* The experiment ID linked to the allocation. For <code>FEATURE_GATE</code> allocations, a
87+
* non-null value denotes a standard experiment. For <code>CANARY</code> allocations, Datadog
88+
* manages this value. Omit it when creating a canary allocation.
8789
*
8890
* @return experimentId
8991
*/

0 commit comments

Comments
 (0)