Skip to content

Commit 0488465

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2e09d5a6 of spec repo
1 parent a2637f5 commit 0488465

13 files changed

+80
-94
lines changed

.apigentools-info

+4-4
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-16 20:32:57.249173",
8-
"spec_repo_commit": "9708d631"
7+
"regenerated": "2025-04-17 01:23:18.721448",
8+
"spec_repo_commit": "2e09d5a6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-16 20:32:57.267116",
13-
"spec_repo_commit": "9708d631"
12+
"regenerated": "2025-04-17 01:23:18.737786",
13+
"spec_repo_commit": "2e09d5a6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -12932,7 +12932,7 @@ components:
1293212932
type: string
1293312933
name:
1293412934
description: Specifies the name for the new escalation policy.
12935-
example: On-call Escalation Policy
12935+
example: On-Call Escalation Policy
1293612936
type: string
1293712937
resolve_page_on_policy_end:
1293812938
description: Indicates whether the page is automatically resolved when the
@@ -13065,24 +13065,24 @@ components:
1306513065
$ref: '#/components/schemas/EscalationPolicyDataAttributes'
1306613066
id:
1306713067
description: Specifies the unique identifier of the escalation policy.
13068+
example: ab000000-0000-0000-0000-000000000000
1306813069
type: string
1306913070
relationships:
1307013071
$ref: '#/components/schemas/EscalationPolicyDataRelationships'
1307113072
type:
1307213073
$ref: '#/components/schemas/EscalationPolicyDataType'
13073-
required:
13074-
- type
1307513074
type: object
1307613075
EscalationPolicyDataAttributes:
1307713076
description: Defines the main attributes of an escalation policy, such as its
1307813077
description, name, and behavior on policy end.
1307913078
properties:
1308013079
description:
1308113080
description: Provides a detailed text description of the escalation policy.
13081+
example: This is an escalation policy for on-call support.
1308213082
type: string
1308313083
name:
1308413084
description: Specifies the name of the escalation policy.
13085-
example: On-call Escalation Policy
13085+
example: On-Call Escalation Policy
1308613086
type: string
1308713087
resolve_page_on_policy_end:
1308813088
description: Indicates whether the page is automatically resolved when the
@@ -13091,10 +13091,9 @@ components:
1309113091
retries:
1309213092
description: Specifies how many times the escalation sequence is retried
1309313093
if there is no response.
13094+
example: 2
1309413095
format: int64
1309513096
type: integer
13096-
required:
13097-
- name
1309813097
type: object
1309913098
EscalationPolicyDataRelationships:
1310013099
description: Represents the relationships for an escalation policy, including
@@ -13308,7 +13307,7 @@ components:
1330813307
type: string
1330913308
name:
1331013309
description: Specifies the name of the escalation policy.
13311-
example: On-call Escalation Policy
13310+
example: On-Call Escalation Policy
1331213311
type: string
1331313312
resolve_page_on_policy_end:
1331413313
description: Indicates whether the page is automatically resolved when the
@@ -27992,6 +27991,7 @@ components:
2799227991
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
2799327992
required:
2799427993
- type
27994+
- attributes
2799527995
type: object
2799627996
ScheduleCreateRequestDataAttributes:
2799727997
description: Describes the main attributes for creating a new schedule, including
@@ -47424,7 +47424,7 @@ paths:
4742447424
- apiKeyAuth: []
4742547425
appKeyAuth: []
4742647426
- AuthZ: []
47427-
summary: Create on call escalation policy
47427+
summary: Create on-call escalation policy
4742847428
tags:
4742947429
- On-Call
4743047430
/api/v2/on-call/escalation-policies/{policy_id}:
@@ -47454,7 +47454,7 @@ paths:
4745447454
- apiKeyAuth: []
4745547455
appKeyAuth: []
4745647456
- AuthZ: []
47457-
summary: Delete on call escalation policy
47457+
summary: Delete on-call escalation policy
4745847458
tags:
4745947459
- On-Call
4746047460
get:
@@ -47495,7 +47495,7 @@ paths:
4749547495
- apiKeyAuth: []
4749647496
appKeyAuth: []
4749747497
- AuthZ: []
47498-
summary: Get on call escalation policy
47498+
summary: Get on-call escalation policy
4749947499
tags:
4750047500
- On-Call
4750147501
put:
@@ -47542,7 +47542,7 @@ paths:
4754247542
- apiKeyAuth: []
4754347543
appKeyAuth: []
4754447544
- AuthZ: []
47545-
summary: Update on call escalation policy
47545+
summary: Update on-call escalation policy
4754647546
tags:
4754747547
- On-Call
4754847548
/api/v2/on-call/schedules:

examples/v2/on-call/CreateOnCallEscalationPolicy.java

+1-1
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;

examples/v2/on-call/DeleteOnCallEscalationPolicy.java

+1-1
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

+1-1
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

+1-1
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

+18-18
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
*

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

+2-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11-
import com.fasterxml.jackson.annotation.JsonCreator;
1211
import com.fasterxml.jackson.annotation.JsonIgnore;
1312
import com.fasterxml.jackson.annotation.JsonInclude;
1413
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -43,15 +42,6 @@ public class EscalationPolicyData {
4342
public static final String JSON_PROPERTY_TYPE = "type";
4443
private EscalationPolicyDataType type = EscalationPolicyDataType.POLICIES;
4544

46-
public EscalationPolicyData() {}
47-
48-
@JsonCreator
49-
public EscalationPolicyData(
50-
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) EscalationPolicyDataType type) {
51-
this.type = type;
52-
this.unparsed |= !type.isValid();
53-
}
54-
5545
public EscalationPolicyData attributes(EscalationPolicyDataAttributes attributes) {
5646
this.attributes = attributes;
5747
this.unparsed |= attributes.unparsed;
@@ -129,8 +119,9 @@ public EscalationPolicyData type(EscalationPolicyDataType type) {
129119
*
130120
* @return type
131121
*/
122+
@jakarta.annotation.Nullable
132123
@JsonProperty(JSON_PROPERTY_TYPE)
133-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
124+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134125
public EscalationPolicyDataType getType() {
135126
return type;
136127
}

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

+2-10
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11-
import com.fasterxml.jackson.annotation.JsonCreator;
1211
import com.fasterxml.jackson.annotation.JsonIgnore;
1312
import com.fasterxml.jackson.annotation.JsonInclude;
1413
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -44,14 +43,6 @@ public class EscalationPolicyDataAttributes {
4443
public static final String JSON_PROPERTY_RETRIES = "retries";
4544
private Long retries;
4645

47-
public EscalationPolicyDataAttributes() {}
48-
49-
@JsonCreator
50-
public EscalationPolicyDataAttributes(
51-
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) {
52-
this.name = name;
53-
}
54-
5546
public EscalationPolicyDataAttributes description(String description) {
5647
this.description = description;
5748
return this;
@@ -83,8 +74,9 @@ public EscalationPolicyDataAttributes name(String name) {
8374
*
8475
* @return name
8576
*/
77+
@jakarta.annotation.Nullable
8678
@JsonProperty(JSON_PROPERTY_NAME)
87-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
79+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
8880
public String getName() {
8981
return name;
9082
}

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ public ScheduleCreateRequestData() {}
4343

4444
@JsonCreator
4545
public ScheduleCreateRequestData(
46+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
47+
ScheduleCreateRequestDataAttributes attributes,
4648
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
4749
ScheduleCreateRequestDataType type) {
50+
this.attributes = attributes;
51+
this.unparsed |= attributes.unparsed;
4852
this.type = type;
4953
this.unparsed |= !type.isValid();
5054
}
@@ -61,9 +65,8 @@ public ScheduleCreateRequestData attributes(ScheduleCreateRequestDataAttributes
6165
*
6266
* @return attributes
6367
*/
64-
@jakarta.annotation.Nullable
6568
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
66-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6770
public ScheduleCreateRequestDataAttributes getAttributes() {
6871
return attributes;
6972
}

0 commit comments

Comments
 (0)