Skip to content

Commit e61e025

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e87d1b28 of spec repo
1 parent 9545470 commit e61e025

20 files changed

+96
-156
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-17 13:26:18.289754",
8-
"spec_repo_commit": "12ab5180"
7+
"regenerated": "2025-04-17 17:10:23.071056",
8+
"spec_repo_commit": "e87d1b28"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-17 13:26:18.308287",
13-
"spec_repo_commit": "12ab5180"
12+
"regenerated": "2025-04-17 17:10:23.086979",
13+
"spec_repo_commit": "e87d1b28"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12889,13 +12889,6 @@ components:
1288912889
type: schedules
1289012890
- id: 00000000-aba3-0000-0000-000000000000
1289112891
type: teams
12892-
- assignment: round-robin
12893-
escalate_after_seconds: 3600
12894-
targets:
12895-
- id: 00000000-aba1-0000-0000-000000000000
12896-
type: users
12897-
- id: 00000000-abb1-0000-0000-000000000000
12898-
type: users
1289912892
relationships:
1290012893
teams:
1290112894
data:
@@ -12932,7 +12925,7 @@ components:
1293212925
type: string
1293312926
name:
1293412927
description: Specifies the name for the new escalation policy.
12935-
example: On-call Escalation Policy
12928+
example: On-Call Escalation Policy
1293612929
type: string
1293712930
resolve_page_on_policy_end:
1293812931
description: Indicates whether the page is automatically resolved when the
@@ -12975,15 +12968,13 @@ components:
1297512968
type: object
1297612969
EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment:
1297712970
description: Specifies how this escalation step will assign targets (example
12978-
`default` or `round-robin`).
12971+
`default`).
1297912972
enum:
1298012973
- default
12981-
- round-robin
1298212974
example: default
1298312975
type: string
1298412976
x-enum-varnames:
1298512977
- DEFAULT
12986-
- ROUND_ROBIN
1298712978
EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems:
1298812979
description: Defines a single escalation target within a step for an escalation
1298912980
policy creation request. Contains `id` and `type`.
@@ -13065,24 +13056,24 @@ components:
1306513056
$ref: '#/components/schemas/EscalationPolicyDataAttributes'
1306613057
id:
1306713058
description: Specifies the unique identifier of the escalation policy.
13059+
example: ab000000-0000-0000-0000-000000000000
1306813060
type: string
1306913061
relationships:
1307013062
$ref: '#/components/schemas/EscalationPolicyDataRelationships'
1307113063
type:
1307213064
$ref: '#/components/schemas/EscalationPolicyDataType'
13073-
required:
13074-
- type
1307513065
type: object
1307613066
EscalationPolicyDataAttributes:
1307713067
description: Defines the main attributes of an escalation policy, such as its
1307813068
description, name, and behavior on policy end.
1307913069
properties:
1308013070
description:
1308113071
description: Provides a detailed text description of the escalation policy.
13072+
example: This is an escalation policy for on-call support.
1308213073
type: string
1308313074
name:
1308413075
description: Specifies the name of the escalation policy.
13085-
example: On-call Escalation Policy
13076+
example: On-Call Escalation Policy
1308613077
type: string
1308713078
resolve_page_on_policy_end:
1308813079
description: Indicates whether the page is automatically resolved when the
@@ -13091,10 +13082,9 @@ components:
1309113082
retries:
1309213083
description: Specifies how many times the escalation sequence is retried
1309313084
if there is no response.
13085+
example: 2
1309413086
format: int64
1309513087
type: integer
13096-
required:
13097-
- name
1309813088
type: object
1309913089
EscalationPolicyDataRelationships:
1310013090
description: Represents the relationships for an escalation policy, including
@@ -13223,14 +13213,12 @@ components:
1322313213
type: object
1322413214
EscalationPolicyStepAttributesAssignment:
1322513215
description: Specifies how this escalation step will assign targets (example
13226-
`default` or `round-robin`).
13216+
`default`).
1322713217
enum:
1322813218
- default
13229-
- round-robin
1323013219
type: string
1323113220
x-enum-varnames:
1323213221
- DEFAULT
13233-
- ROUND_ROBIN
1323413222
EscalationPolicyStepRelationships:
1323513223
description: Represents the relationship of an escalation policy step to its
1323613224
targets.
@@ -13308,7 +13296,7 @@ components:
1330813296
type: string
1330913297
name:
1331013298
description: Specifies the name of the escalation policy.
13311-
example: On-call Escalation Policy
13299+
example: On-Call Escalation Policy
1331213300
type: string
1331313301
resolve_page_on_policy_end:
1331413302
description: Indicates whether the page is automatically resolved when the
@@ -13356,15 +13344,13 @@ components:
1335613344
type: object
1335713345
EscalationPolicyUpdateRequestDataAttributesStepsItemsAssignment:
1335813346
description: Specifies how this escalation step will assign targets (example
13359-
`default` or `round-robin`).
13347+
`default`).
1336013348
enum:
1336113349
- default
13362-
- round-robin
1336313350
example: default
1336413351
type: string
1336513352
x-enum-varnames:
1336613353
- DEFAULT
13367-
- ROUND_ROBIN
1336813354
EscalationPolicyUpdateRequestDataAttributesStepsItemsTargetsItems:
1336913355
description: Defines a single escalation target within a step for an escalation
1337013356
policy update request. Contains `id` and `type`.
@@ -27999,6 +27985,7 @@ components:
2799927985
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
2800027986
required:
2800127987
- type
27988+
- attributes
2800227989
type: object
2800327990
ScheduleCreateRequestDataAttributes:
2800427991
description: Describes the main attributes for creating a new schedule, including
@@ -47474,7 +47461,7 @@ paths:
4747447461
- apiKeyAuth: []
4747547462
appKeyAuth: []
4747647463
- AuthZ: []
47477-
summary: Create on call escalation policy
47464+
summary: Create on-call escalation policy
4747847465
tags:
4747947466
- On-Call
4748047467
/api/v2/on-call/escalation-policies/{policy_id}:
@@ -47504,7 +47491,7 @@ paths:
4750447491
- apiKeyAuth: []
4750547492
appKeyAuth: []
4750647493
- AuthZ: []
47507-
summary: Delete on call escalation policy
47494+
summary: Delete on-call escalation policy
4750847495
tags:
4750947496
- On-Call
4751047497
get:
@@ -47545,7 +47532,7 @@ paths:
4754547532
- apiKeyAuth: []
4754647533
appKeyAuth: []
4754747534
- AuthZ: []
47548-
summary: Get on call escalation policy
47535+
summary: Get on-call escalation policy
4754947536
tags:
4755047537
- On-Call
4755147538
put:
@@ -47592,7 +47579,7 @@ paths:
4759247579
- apiKeyAuth: []
4759347580
appKeyAuth: []
4759447581
- AuthZ: []
47595-
summary: Update on call escalation policy
47582+
summary: Update on-call escalation policy
4759647583
tags:
4759747584
- On-Call
4759847585
/api/v2/on-call/schedules:

examples/v2/on-call/CreateOnCallEscalationPolicy.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Create on call escalation policy returns "Created" response
1+
// Create on-call escalation policy returns "Created" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
@@ -44,7 +44,7 @@ public static void main(String[] args) {
4444
.resolvePageOnPolicyEnd(true)
4545
.retries(2L)
4646
.steps(
47-
Arrays.asList(
47+
Collections.singletonList(
4848
new EscalationPolicyCreateRequestDataAttributesStepsItems()
4949
.assignment(
5050
EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment
@@ -62,18 +62,6 @@ public static void main(String[] args) {
6262
.type(
6363
EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItemsType
6464
.SCHEDULES),
65-
new EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems()
66-
.id(DD_TEAM_DATA_ID)
67-
.type(
68-
EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItemsType
69-
.TEAMS))),
70-
new EscalationPolicyCreateRequestDataAttributesStepsItems()
71-
.assignment(
72-
EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment
73-
.ROUND_ROBIN)
74-
.escalateAfterSeconds(3600L)
75-
.targets(
76-
Collections.singletonList(
7765
new EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems()
7866
.id(DD_TEAM_DATA_ID)
7967
.type(

examples/v2/on-call/DeleteOnCallEscalationPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Delete on call escalation policy returns "No Content" response
1+
// Delete on-call escalation policy returns "No Content" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

examples/v2/on-call/GetOnCallEscalationPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Get on call escalation policy returns "OK" response
1+
// Get on-call escalation policy returns "OK" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

examples/v2/on-call/UpdateOnCallEscalationPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Update on call escalation policy returns "OK" response
1+
// Update on-call escalation policy returns "OK" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public CreateOnCallEscalationPolicyOptionalParameters include(String include) {
6767
}
6868

6969
/**
70-
* Create on call escalation policy.
70+
* Create on-call escalation policy.
7171
*
7272
* <p>See {@link #createOnCallEscalationPolicyWithHttpInfo}.
7373
*
@@ -83,7 +83,7 @@ body, new CreateOnCallEscalationPolicyOptionalParameters())
8383
}
8484

8585
/**
86-
* Create on call escalation policy.
86+
* Create on-call escalation policy.
8787
*
8888
* <p>See {@link #createOnCallEscalationPolicyWithHttpInfoAsync}.
8989
*
@@ -101,7 +101,7 @@ body, new CreateOnCallEscalationPolicyOptionalParameters())
101101
}
102102

103103
/**
104-
* Create on call escalation policy.
104+
* Create on-call escalation policy.
105105
*
106106
* <p>See {@link #createOnCallEscalationPolicyWithHttpInfo}.
107107
*
@@ -117,7 +117,7 @@ public EscalationPolicy createOnCallEscalationPolicy(
117117
}
118118

119119
/**
120-
* Create on call escalation policy.
120+
* Create on-call escalation policy.
121121
*
122122
* <p>See {@link #createOnCallEscalationPolicyWithHttpInfoAsync}.
123123
*
@@ -193,7 +193,7 @@ public ApiResponse<EscalationPolicy> createOnCallEscalationPolicyWithHttpInfo(
193193
}
194194

195195
/**
196-
* Create on call escalation policy.
196+
* Create on-call escalation policy.
197197
*
198198
* <p>See {@link #createOnCallEscalationPolicyWithHttpInfo}.
199199
*
@@ -449,7 +449,7 @@ public CompletableFuture<ApiResponse<Schedule>> createOnCallScheduleWithHttpInfo
449449
}
450450

451451
/**
452-
* Delete on call escalation policy.
452+
* Delete on-call escalation policy.
453453
*
454454
* <p>See {@link #deleteOnCallEscalationPolicyWithHttpInfo}.
455455
*
@@ -461,7 +461,7 @@ public void deleteOnCallEscalationPolicy(String policyId) throws ApiException {
461461
}
462462

463463
/**
464-
* Delete on call escalation policy.
464+
* Delete on-call escalation policy.
465465
*
466466
* <p>See {@link #deleteOnCallEscalationPolicyWithHttpInfoAsync}.
467467
*
@@ -531,7 +531,7 @@ public ApiResponse<Void> deleteOnCallEscalationPolicyWithHttpInfo(String policyI
531531
}
532532

533533
/**
534-
* Delete on call escalation policy.
534+
* Delete on-call escalation policy.
535535
*
536536
* <p>See {@link #deleteOnCallEscalationPolicyWithHttpInfo}.
537537
*
@@ -741,7 +741,7 @@ public GetOnCallEscalationPolicyOptionalParameters include(String include) {
741741
}
742742

743743
/**
744-
* Get on call escalation policy.
744+
* Get on-call escalation policy.
745745
*
746746
* <p>See {@link #getOnCallEscalationPolicyWithHttpInfo}.
747747
*
@@ -756,7 +756,7 @@ policyId, new GetOnCallEscalationPolicyOptionalParameters())
756756
}
757757

758758
/**
759-
* Get on call escalation policy.
759+
* Get on-call escalation policy.
760760
*
761761
* <p>See {@link #getOnCallEscalationPolicyWithHttpInfoAsync}.
762762
*
@@ -773,7 +773,7 @@ policyId, new GetOnCallEscalationPolicyOptionalParameters())
773773
}
774774

775775
/**
776-
* Get on call escalation policy.
776+
* Get on-call escalation policy.
777777
*
778778
* <p>See {@link #getOnCallEscalationPolicyWithHttpInfo}.
779779
*
@@ -788,7 +788,7 @@ public EscalationPolicy getOnCallEscalationPolicy(
788788
}
789789

790790
/**
791-
* Get on call escalation policy.
791+
* Get on-call escalation policy.
792792
*
793793
* <p>See {@link #getOnCallEscalationPolicyWithHttpInfoAsync}.
794794
*
@@ -865,7 +865,7 @@ public ApiResponse<EscalationPolicy> getOnCallEscalationPolicyWithHttpInfo(
865865
}
866866

867867
/**
868-
* Get on call escalation policy.
868+
* Get on-call escalation policy.
869869
*
870870
* <p>See {@link #getOnCallEscalationPolicyWithHttpInfo}.
871871
*
@@ -1143,7 +1143,7 @@ public UpdateOnCallEscalationPolicyOptionalParameters include(String include) {
11431143
}
11441144

11451145
/**
1146-
* Update on call escalation policy.
1146+
* Update on-call escalation policy.
11471147
*
11481148
* <p>See {@link #updateOnCallEscalationPolicyWithHttpInfo}.
11491149
*
@@ -1160,7 +1160,7 @@ policyId, body, new UpdateOnCallEscalationPolicyOptionalParameters())
11601160
}
11611161

11621162
/**
1163-
* Update on call escalation policy.
1163+
* Update on-call escalation policy.
11641164
*
11651165
* <p>See {@link #updateOnCallEscalationPolicyWithHttpInfoAsync}.
11661166
*
@@ -1179,7 +1179,7 @@ policyId, body, new UpdateOnCallEscalationPolicyOptionalParameters())
11791179
}
11801180

11811181
/**
1182-
* Update on call escalation policy.
1182+
* Update on-call escalation policy.
11831183
*
11841184
* <p>See {@link #updateOnCallEscalationPolicyWithHttpInfo}.
11851185
*
@@ -1198,7 +1198,7 @@ public EscalationPolicy updateOnCallEscalationPolicy(
11981198
}
11991199

12001200
/**
1201-
* Update on call escalation policy.
1201+
* Update on-call escalation policy.
12021202
*
12031203
* <p>See {@link #updateOnCallEscalationPolicyWithHttpInfoAsync}.
12041204
*
@@ -1289,7 +1289,7 @@ public ApiResponse<EscalationPolicy> updateOnCallEscalationPolicyWithHttpInfo(
12891289
}
12901290

12911291
/**
1292-
* Update on call escalation policy.
1292+
* Update on-call escalation policy.
12931293
*
12941294
* <p>See {@link #updateOnCallEscalationPolicyWithHttpInfo}.
12951295
*

0 commit comments

Comments
 (0)