Skip to content

Commit 9545470

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 12ab5180 of spec repo (#2811)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 604c145 commit 9545470

16 files changed

+254
-58
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 13:26:18.289754",
8+
"spec_repo_commit": "12ab5180"
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 13:26:18.308287",
13+
"spec_repo_commit": "12ab5180"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -18206,6 +18206,8 @@ components:
1820618206
$ref: '#/components/schemas/LayerRelationships'
1820718207
type:
1820818208
$ref: '#/components/schemas/LayerType'
18209+
required:
18210+
- type
1820918211
type: object
1821018212
LayerAttributes:
1821118213
description: Describes key properties of a Layer, including rotation details,
@@ -18339,12 +18341,16 @@ components:
1833918341
type: string
1834018342
type:
1834118343
$ref: '#/components/schemas/LayerRelationshipsMembersDataItemsType'
18344+
required:
18345+
- type
18346+
- id
1834218347
type: object
1834318348
LayerRelationshipsMembersDataItemsType:
1834418349
default: members
1834518350
description: Members resource type.
1834618351
enum:
1834718352
- members
18353+
example: members
1834818354
type: string
1834918355
x-enum-varnames:
1835018356
- MEMBERS
@@ -18353,6 +18359,7 @@ components:
1835318359
description: Layers resource type.
1835418360
enum:
1835518361
- layers
18362+
example: layers
1835618363
type: string
1835718364
x-enum-varnames:
1835818365
- LAYERS
@@ -28179,15 +28186,20 @@ components:
2817928186
properties:
2818028187
id:
2818128188
description: A unique identifier for the team.
28189+
example: ''
2818228190
type: string
2818328191
type:
2818428192
$ref: '#/components/schemas/ScheduleCreateRequestDataRelationshipsTeamsDataItemsType'
28193+
required:
28194+
- type
28195+
- id
2818528196
type: object
2818628197
ScheduleCreateRequestDataRelationshipsTeamsDataItemsType:
2818728198
default: teams
2818828199
description: Teams resource type.
2818928200
enum:
2819028201
- teams
28202+
example: teams
2819128203
type: string
2819228204
x-enum-varnames:
2819328205
- TEAMS
@@ -28214,6 +28226,8 @@ components:
2821428226
$ref: '#/components/schemas/ScheduleDataRelationships'
2821528227
type:
2821628228
$ref: '#/components/schemas/ScheduleDataType'
28229+
required:
28230+
- type
2821728231
type: object
2821828232
ScheduleDataAttributes:
2821928233
description: Provides core properties of a schedule object, such as its name,
@@ -28269,6 +28283,9 @@ components:
2826928283
type: string
2827028284
type:
2827128285
$ref: '#/components/schemas/ScheduleDataRelationshipsLayersDataItemsType'
28286+
required:
28287+
- type
28288+
- id
2827228289
type: object
2827328290
ScheduleDataRelationshipsLayersDataItemsType:
2827428291
default: layers
@@ -28298,6 +28315,9 @@ components:
2829828315
type: string
2829928316
type:
2830028317
$ref: '#/components/schemas/ScheduleDataRelationshipsTeamsDataItemsType'
28318+
required:
28319+
- type
28320+
- id
2830128321
type: object
2830228322
ScheduleDataRelationshipsTeamsDataItemsType:
2830328323
default: teams
@@ -28313,6 +28333,7 @@ components:
2831328333
description: Schedules resource type.
2831428334
enum:
2831528335
- schedules
28336+
example: schedules
2831628337
type: string
2831728338
x-enum-varnames:
2831828339
- SCHEDULES
@@ -28327,6 +28348,8 @@ components:
2832728348
$ref: '#/components/schemas/ScheduleMemberRelationships'
2832828349
type:
2832928350
$ref: '#/components/schemas/ScheduleMemberType'
28351+
required:
28352+
- type
2833028353
type: object
2833128354
ScheduleMemberRelationships:
2833228355
description: Defines relationships for a schedule member, primarily referencing
@@ -28340,6 +28363,8 @@ components:
2834028363
properties:
2834128364
data:
2834228365
$ref: '#/components/schemas/ScheduleMemberRelationshipsUserData'
28366+
required:
28367+
- data
2834328368
type: object
2834428369
ScheduleMemberRelationshipsUserData:
2834528370
description: Points to the user data associated with this schedule member, including
@@ -28351,12 +28376,16 @@ components:
2835128376
type: string
2835228377
type:
2835328378
$ref: '#/components/schemas/ScheduleMemberRelationshipsUserDataType'
28379+
required:
28380+
- type
28381+
- id
2835428382
type: object
2835528383
ScheduleMemberRelationshipsUserDataType:
2835628384
default: users
2835728385
description: Users resource type.
2835828386
enum:
2835928387
- users
28388+
example: users
2836028389
type: string
2836128390
x-enum-varnames:
2836228391
- USERS
@@ -28365,6 +28394,7 @@ components:
2836528394
description: Schedule Members resource type.
2836628395
enum:
2836728396
- members
28397+
example: members
2836828398
type: string
2836928399
x-enum-varnames:
2837028400
- MEMBERS
@@ -28542,6 +28572,12 @@ components:
2854228572
example: '2025-02-01T00:00:00Z'
2854328573
format: date-time
2854428574
type: string
28575+
required:
28576+
- effective_date
28577+
- interval
28578+
- members
28579+
- name
28580+
- rotation_start
2854528581
type: object
2854628582
ScheduleUpdateRequestDataAttributesLayersItemsInterval:
2854728583
description: 'Specifies how the rotation repeats: number of days, plus optional
@@ -28662,12 +28698,16 @@ components:
2866228698
type: string
2866328699
type:
2866428700
$ref: '#/components/schemas/ScheduleUpdateRequestDataRelationshipsTeamsDataItemsType'
28701+
required:
28702+
- type
28703+
- id
2866528704
type: object
2866628705
ScheduleUpdateRequestDataRelationshipsTeamsDataItemsType:
2866728706
default: teams
2866828707
description: Teams resource type.
2866928708
enum:
2867028709
- teams
28710+
example: teams
2867128711
type: string
2867228712
x-enum-varnames:
2867328713
- TEAMS
@@ -28691,6 +28731,8 @@ components:
2869128731
type: string
2869228732
type:
2869328733
$ref: '#/components/schemas/ScheduleUserType'
28734+
required:
28735+
- type
2869428736
type: object
2869528737
ScheduleUserAttributes:
2869628738
description: Provides basic user information for a schedule, including a name
@@ -28710,6 +28752,7 @@ components:
2871028752
description: Users resource type.
2871128753
enum:
2871228754
- users
28755+
example: users
2871328756
type: string
2871428757
x-enum-varnames:
2871528758
- USERS
@@ -34401,6 +34444,8 @@ components:
3440134444
$ref: '#/components/schemas/TeamReferenceRelationships'
3440234445
type:
3440334446
$ref: '#/components/schemas/TeamReferenceType'
34447+
required:
34448+
- type
3440434449
type: object
3440534450
TeamReferenceAttributes:
3440634451
description: Encapsulates the basic attributes of a Team reference, such as
@@ -34446,12 +34491,16 @@ components:
3444634491
type: string
3444734492
type:
3444834493
$ref: '#/components/schemas/TeamReferenceRelationshipsOncallUsersDataItemsType'
34494+
required:
34495+
- type
34496+
- id
3444934497
type: object
3445034498
TeamReferenceRelationshipsOncallUsersDataItemsType:
3445134499
default: users
3445234500
description: Users resource type.
3445334501
enum:
3445434502
- users
34503+
example: users
3445534504
type: string
3445634505
x-enum-varnames:
3445734506
- USERS
@@ -34460,6 +34509,7 @@ components:
3446034509
description: Teams resource type.
3446134510
enum:
3446234511
- teams
34512+
example: teams
3446334513
type: string
3446434514
x-enum-varnames:
3446534515
- TEAMS

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

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

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -42,6 +43,14 @@ public class Layer {
4243
public static final String JSON_PROPERTY_TYPE = "type";
4344
private LayerType type = LayerType.LAYERS;
4445

46+
public Layer() {}
47+
48+
@JsonCreator
49+
public Layer(@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LayerType type) {
50+
this.type = type;
51+
this.unparsed |= !type.isValid();
52+
}
53+
4554
public Layer attributes(LayerAttributes attributes) {
4655
this.attributes = attributes;
4756
this.unparsed |= attributes.unparsed;
@@ -119,9 +128,8 @@ public Layer type(LayerType type) {
119128
*
120129
* @return type
121130
*/
122-
@jakarta.annotation.Nullable
123131
@JsonProperty(JSON_PROPERTY_TYPE)
124-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
132+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
125133
public LayerType getType() {
126134
return type;
127135
}

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

+15-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -35,6 +36,18 @@ public class LayerRelationshipsMembersDataItems {
3536
private LayerRelationshipsMembersDataItemsType type =
3637
LayerRelationshipsMembersDataItemsType.MEMBERS;
3738

39+
public LayerRelationshipsMembersDataItems() {}
40+
41+
@JsonCreator
42+
public LayerRelationshipsMembersDataItems(
43+
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
44+
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
45+
LayerRelationshipsMembersDataItemsType type) {
46+
this.id = id;
47+
this.type = type;
48+
this.unparsed |= !type.isValid();
49+
}
50+
3851
public LayerRelationshipsMembersDataItems id(String id) {
3952
this.id = id;
4053
return this;
@@ -45,9 +58,8 @@ public LayerRelationshipsMembersDataItems id(String id) {
4558
*
4659
* @return id
4760
*/
48-
@jakarta.annotation.Nullable
4961
@JsonProperty(JSON_PROPERTY_ID)
50-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
5163
public String getId() {
5264
return id;
5365
}
@@ -67,9 +79,8 @@ public LayerRelationshipsMembersDataItems type(LayerRelationshipsMembersDataItem
6779
*
6880
* @return type
6981
*/
70-
@jakarta.annotation.Nullable
7182
@JsonProperty(JSON_PROPERTY_TYPE)
72-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
83+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
7384
public LayerRelationshipsMembersDataItemsType getType() {
7485
return type;
7586
}

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

+15-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonInclude;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -35,6 +36,18 @@ public class ScheduleCreateRequestDataRelationshipsTeamsDataItems {
3536
private ScheduleCreateRequestDataRelationshipsTeamsDataItemsType type =
3637
ScheduleCreateRequestDataRelationshipsTeamsDataItemsType.TEAMS;
3738

39+
public ScheduleCreateRequestDataRelationshipsTeamsDataItems() {}
40+
41+
@JsonCreator
42+
public ScheduleCreateRequestDataRelationshipsTeamsDataItems(
43+
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
44+
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
45+
ScheduleCreateRequestDataRelationshipsTeamsDataItemsType type) {
46+
this.id = id;
47+
this.type = type;
48+
this.unparsed |= !type.isValid();
49+
}
50+
3851
public ScheduleCreateRequestDataRelationshipsTeamsDataItems id(String id) {
3952
this.id = id;
4053
return this;
@@ -45,9 +58,8 @@ public ScheduleCreateRequestDataRelationshipsTeamsDataItems id(String id) {
4558
*
4659
* @return id
4760
*/
48-
@jakarta.annotation.Nullable
4961
@JsonProperty(JSON_PROPERTY_ID)
50-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
5163
public String getId() {
5264
return id;
5365
}
@@ -68,9 +80,8 @@ public ScheduleCreateRequestDataRelationshipsTeamsDataItems type(
6880
*
6981
* @return type
7082
*/
71-
@jakarta.annotation.Nullable
7283
@JsonProperty(JSON_PROPERTY_TYPE)
73-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
7485
public ScheduleCreateRequestDataRelationshipsTeamsDataItemsType getType() {
7586
return type;
7687
}

0 commit comments

Comments
 (0)