Skip to content

Commit 8c30031

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e8da02f of spec repo
1 parent 14d9e5d commit 8c30031

File tree

177 files changed

+642
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+642
-197
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22994,6 +22994,35 @@ components:
2299422994
$ref: '#/components/schemas/EscalationPolicyIncluded'
2299522995
type: array
2299622996
type: object
22997+
EscalationPolicyAction:
22998+
description: Triggers an escalation policy when the routing rule matches.
22999+
properties:
23000+
policy_id:
23001+
description: The ID of the escalation policy to trigger.
23002+
example: fad4eee1-13f5-40d8-886b-4e56d8d5d1c6
23003+
type: string
23004+
support_hours:
23005+
$ref: '#/components/schemas/TimeRestrictions'
23006+
description: Defines the support hours during which the escalation policy
23007+
will be executed.
23008+
nullable: true
23009+
type:
23010+
$ref: '#/components/schemas/EscalationPolicyActionType'
23011+
urgency:
23012+
$ref: '#/components/schemas/Urgency'
23013+
required:
23014+
- type
23015+
- policy_id
23016+
type: object
23017+
EscalationPolicyActionType:
23018+
default: escalation_policy
23019+
description: Indicates that the action is an escalation policy action.
23020+
enum:
23021+
- escalation_policy
23022+
example: escalation_policy
23023+
type: string
23024+
x-enum-varnames:
23025+
- ESCALATION_POLICY
2299723026
EscalationPolicyCreateRequest:
2299823027
description: Represents a request to create a new escalation policy, including
2299923028
the policy data.
@@ -52369,6 +52398,7 @@ components:
5236952398
oneOf:
5237052399
- $ref: '#/components/schemas/SendSlackMessageAction'
5237152400
- $ref: '#/components/schemas/SendTeamsMessageAction'
52401+
- $ref: '#/components/schemas/EscalationPolicyAction'
5237252402
RoutingRuleAttributes:
5237352403
description: Defines the configurable attributes of a routing rule, such as
5237452404
actions, query, time restriction, and urgency.
@@ -91487,6 +91517,12 @@ paths:
9148791517
name: include
9148891518
schema:
9148991519
type: string
91520+
- description: When set to `true`, escalation policies are returned as actions
91521+
within routing rules rather than as a separate `policy_id` field.
91522+
in: query
91523+
name: use_policy_action
91524+
schema:
91525+
type: boolean
9149091526
responses:
9149191527
'200':
9149291528
content:
@@ -91524,6 +91560,12 @@ paths:
9152491560
name: include
9152591561
schema:
9152691562
type: string
91563+
- description: When set to `true`, escalation policies are returned as actions
91564+
within routing rules rather than as a separate `policy_id` field.
91565+
in: query
91566+
name: use_policy_action
91567+
schema:
91568+
type: boolean
9152791569
requestBody:
9152891570
content:
9152991571
application/json:

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@ public CompletableFuture<ApiResponse<Schedule>> getOnCallScheduleWithHttpInfoAsy
17901790
/** Manage optional parameters to getOnCallTeamRoutingRules. */
17911791
public static class GetOnCallTeamRoutingRulesOptionalParameters {
17921792
private String include;
1793+
private Boolean usePolicyAction;
17931794

17941795
/**
17951796
* Set include.
@@ -1802,6 +1803,19 @@ public GetOnCallTeamRoutingRulesOptionalParameters include(String include) {
18021803
this.include = include;
18031804
return this;
18041805
}
1806+
1807+
/**
1808+
* Set usePolicyAction.
1809+
*
1810+
* @param usePolicyAction When set to <code>true</code>, escalation policies are returned as
1811+
* actions within routing rules rather than as a separate <code>policy_id</code> field.
1812+
* (optional)
1813+
* @return GetOnCallTeamRoutingRulesOptionalParameters
1814+
*/
1815+
public GetOnCallTeamRoutingRulesOptionalParameters usePolicyAction(Boolean usePolicyAction) {
1816+
this.usePolicyAction = usePolicyAction;
1817+
return this;
1818+
}
18051819
}
18061820

18071821
/**
@@ -1894,6 +1908,7 @@ public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(
18941908
400, "Missing the required parameter 'teamId' when calling getOnCallTeamRoutingRules");
18951909
}
18961910
String include = parameters.include;
1911+
Boolean usePolicyAction = parameters.usePolicyAction;
18971912
// create path and map variables
18981913
String localVarPath =
18991914
"/api/v2/on-call/teams/{team_id}/routing-rules"
@@ -1903,6 +1918,8 @@ public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(
19031918
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
19041919

19051920
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
1921+
localVarQueryParams.addAll(
1922+
apiClient.parameterToPairs("", "use_policy_action", usePolicyAction));
19061923

19071924
Invocation.Builder builder =
19081925
apiClient.createBuilder(
@@ -1948,6 +1965,7 @@ public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(
19481965
return result;
19491966
}
19501967
String include = parameters.include;
1968+
Boolean usePolicyAction = parameters.usePolicyAction;
19511969
// create path and map variables
19521970
String localVarPath =
19531971
"/api/v2/on-call/teams/{team_id}/routing-rules"
@@ -1957,6 +1975,8 @@ public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(
19571975
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
19581976

19591977
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
1978+
localVarQueryParams.addAll(
1979+
apiClient.parameterToPairs("", "use_policy_action", usePolicyAction));
19601980

19611981
Invocation.Builder builder;
19621982
try {
@@ -3154,6 +3174,7 @@ public ApiResponse<ListOnCallNotificationRulesResponse> listUserNotificationRule
31543174
/** Manage optional parameters to setOnCallTeamRoutingRules. */
31553175
public static class SetOnCallTeamRoutingRulesOptionalParameters {
31563176
private String include;
3177+
private Boolean usePolicyAction;
31573178

31583179
/**
31593180
* Set include.
@@ -3166,6 +3187,19 @@ public SetOnCallTeamRoutingRulesOptionalParameters include(String include) {
31663187
this.include = include;
31673188
return this;
31683189
}
3190+
3191+
/**
3192+
* Set usePolicyAction.
3193+
*
3194+
* @param usePolicyAction When set to <code>true</code>, escalation policies are returned as
3195+
* actions within routing rules rather than as a separate <code>policy_id</code> field.
3196+
* (optional)
3197+
* @return SetOnCallTeamRoutingRulesOptionalParameters
3198+
*/
3199+
public SetOnCallTeamRoutingRulesOptionalParameters usePolicyAction(Boolean usePolicyAction) {
3200+
this.usePolicyAction = usePolicyAction;
3201+
return this;
3202+
}
31693203
}
31703204

31713205
/**
@@ -3279,6 +3313,7 @@ public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(
32793313
400, "Missing the required parameter 'body' when calling setOnCallTeamRoutingRules");
32803314
}
32813315
String include = parameters.include;
3316+
Boolean usePolicyAction = parameters.usePolicyAction;
32823317
// create path and map variables
32833318
String localVarPath =
32843319
"/api/v2/on-call/teams/{team_id}/routing-rules"
@@ -3288,6 +3323,8 @@ public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(
32883323
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
32893324

32903325
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
3326+
localVarQueryParams.addAll(
3327+
apiClient.parameterToPairs("", "use_policy_action", usePolicyAction));
32913328

32923329
Invocation.Builder builder =
32933330
apiClient.createBuilder(
@@ -3345,6 +3382,7 @@ public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(
33453382
return result;
33463383
}
33473384
String include = parameters.include;
3385+
Boolean usePolicyAction = parameters.usePolicyAction;
33483386
// create path and map variables
33493387
String localVarPath =
33503388
"/api/v2/on-call/teams/{team_id}/routing-rules"
@@ -3354,6 +3392,8 @@ public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(
33543392
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
33553393

33563394
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
3395+
localVarQueryParams.addAll(
3396+
apiClient.parameterToPairs("", "use_policy_action", usePolicyAction));
33573397

33583398
Invocation.Builder builder;
33593399
try {

0 commit comments

Comments
 (0)