Skip to content

Commit 097e489

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a3c2cdc of spec repo
1 parent 09b33e8 commit 097e489

File tree

7 files changed

+61
-28
lines changed

7 files changed

+61
-28
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13283,6 +13283,7 @@ components:
1328313283
type:
1328413284
$ref: '#/components/schemas/StatusPagesComponentGroupType'
1328513285
required:
13286+
- attributes
1328613287
- type
1328713288
type: object
1328813289
CreateComponentRequestDataAttributes:
@@ -13367,7 +13368,7 @@ components:
1336713368
properties:
1336813369
id:
1336913370
description: The ID of the group.
13370-
example: ''
13371+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1337113372
format: uuid
1337213373
type: string
1337313374
type:
@@ -13569,6 +13570,7 @@ components:
1356913570
type:
1357013571
$ref: '#/components/schemas/PatchDegradationRequestDataType'
1357113572
required:
13573+
- attributes
1357213574
- type
1357313575
type: object
1357413576
CreateDegradationRequestDataAttributes:
@@ -13604,7 +13606,7 @@ components:
1360413606
properties:
1360513607
id:
1360613608
description: The ID of the component. Must be a component of type `component`.
13607-
example: ''
13609+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1360813610
format: uuid
1360913611
type: string
1361013612
name:
@@ -14327,6 +14329,7 @@ components:
1432714329
type:
1432814330
$ref: '#/components/schemas/StatusPageDataType'
1432914331
required:
14332+
- attributes
1433014333
- type
1433114334
type: object
1433214335
CreateStatusPageRequestDataAttributes:
@@ -18391,7 +18394,7 @@ components:
1839118394
properties:
1839218395
id:
1839318396
description: The ID of the component.
18394-
example: ''
18397+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1839518398
format: uuid
1839618399
type: string
1839718400
name:
@@ -18436,7 +18439,7 @@ components:
1843618439
properties:
1843718440
id:
1843818441
description: Identifier of the component affected at the time of the update.
18439-
example: ''
18442+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1844018443
format: uuid
1844118444
type: string
1844218445
name:
@@ -18512,7 +18515,7 @@ components:
1851218515
properties:
1851318516
id:
1851418517
description: The ID of the status page.
18515-
example: ''
18518+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
1851618519
format: uuid
1851718520
type: string
1851818521
type:
@@ -43661,11 +43664,14 @@ components:
4366143664
$ref: '#/components/schemas/PatchComponentRequestDataAttributes'
4366243665
id:
4366343666
description: The ID of the component.
43667+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4366443668
format: uuid
4366543669
type: string
4366643670
type:
4366743671
$ref: '#/components/schemas/StatusPagesComponentGroupType'
4366843672
required:
43673+
- attributes
43674+
- id
4366943675
- type
4367043676
type: object
4367143677
PatchComponentRequestDataAttributes:
@@ -43704,11 +43710,14 @@ components:
4370443710
$ref: '#/components/schemas/PatchDegradationRequestDataAttributes'
4370543711
id:
4370643712
description: The ID of the degradation.
43713+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4370743714
format: uuid
4370843715
type: string
4370943716
type:
4371043717
$ref: '#/components/schemas/PatchDegradationRequestDataType'
4371143718
required:
43719+
- attributes
43720+
- id
4371243721
- type
4371343722
type: object
4371443723
PatchDegradationRequestDataAttributes:
@@ -43739,7 +43748,7 @@ components:
4373943748
properties:
4374043749
id:
4374143750
description: The ID of the component. Must be a component of type `component`.
43742-
example: ''
43751+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4374343752
format: uuid
4374443753
type: string
4374543754
name:
@@ -43844,11 +43853,14 @@ components:
4384443853
$ref: '#/components/schemas/PatchStatusPageRequestDataAttributes'
4384543854
id:
4384643855
description: The ID of the status page.
43856+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
4384743857
format: uuid
4384843858
type: string
4384943859
type:
4385043860
$ref: '#/components/schemas/StatusPageDataType'
4385143861
required:
43862+
- attributes
43863+
- id
4385243864
- type
4385343865
type: object
4385443866
PatchStatusPageRequestDataAttributes:
@@ -58776,7 +58788,7 @@ components:
5877658788
properties:
5877758789
id:
5877858790
description: The ID of the group the component belongs to.
58779-
example: ''
58791+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5878058792
format: uuid
5878158793
type: string
5878258794
type:
@@ -58815,7 +58827,7 @@ components:
5881558827
properties:
5881658828
id:
5881758829
description: The ID of the status page the component belongs to.
58818-
example: ''
58830+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5881958831
format: uuid
5882058832
type: string
5882158833
type:
@@ -58957,7 +58969,7 @@ components:
5895758969
nullable: true
5895858970
properties:
5895958971
id:
58960-
example: ''
58972+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5896158973
format: uuid
5896258974
type: string
5896358975
type:
@@ -58999,7 +59011,7 @@ components:
5899959011
properties:
5900059012
id:
5900159013
description: The ID of the status page.
59002-
example: ''
59014+
example: 1234abcd-12ab-34cd-56ef-123456abcdef
5900359015
format: uuid
5900459016
type: string
5900559017
type:

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public CreateComponentRequestData() {}
4040

4141
@JsonCreator
4242
public CreateComponentRequestData(
43+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
44+
CreateComponentRequestDataAttributes attributes,
4345
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
4446
StatusPagesComponentGroupType type) {
47+
this.attributes = attributes;
48+
this.unparsed |= attributes.unparsed;
4549
this.type = type;
4650
this.unparsed |= !type.isValid();
4751
}
@@ -57,9 +61,8 @@ public CreateComponentRequestData attributes(CreateComponentRequestDataAttribute
5761
*
5862
* @return attributes
5963
*/
60-
@jakarta.annotation.Nullable
6164
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
62-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6366
public CreateComponentRequestDataAttributes getAttributes() {
6467
return attributes;
6568
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ public CreateDegradationRequestData() {}
3636

3737
@JsonCreator
3838
public CreateDegradationRequestData(
39+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
40+
CreateDegradationRequestDataAttributes attributes,
3941
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
4042
PatchDegradationRequestDataType type) {
43+
this.attributes = attributes;
44+
this.unparsed |= attributes.unparsed;
4145
this.type = type;
4246
this.unparsed |= !type.isValid();
4347
}
@@ -54,9 +58,8 @@ public CreateDegradationRequestData attributes(
5458
*
5559
* @return attributes
5660
*/
57-
@jakarta.annotation.Nullable
5861
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
59-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
62+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6063
public CreateDegradationRequestDataAttributes getAttributes() {
6164
return attributes;
6265
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ public CreateStatusPageRequestData() {}
3636

3737
@JsonCreator
3838
public CreateStatusPageRequestData(
39+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
40+
CreateStatusPageRequestDataAttributes attributes,
3941
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPageDataType type) {
42+
this.attributes = attributes;
43+
this.unparsed |= attributes.unparsed;
4044
this.type = type;
4145
this.unparsed |= !type.isValid();
4246
}
@@ -52,9 +56,8 @@ public CreateStatusPageRequestData attributes(CreateStatusPageRequestDataAttribu
5256
*
5357
* @return attributes
5458
*/
55-
@jakarta.annotation.Nullable
5659
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
57-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
5861
public CreateStatusPageRequestDataAttributes getAttributes() {
5962
return attributes;
6063
}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ public PatchComponentRequestData() {}
4141

4242
@JsonCreator
4343
public PatchComponentRequestData(
44+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
45+
PatchComponentRequestDataAttributes attributes,
46+
@JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id,
4447
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
4548
StatusPagesComponentGroupType type) {
49+
this.attributes = attributes;
50+
this.unparsed |= attributes.unparsed;
51+
this.id = id;
4652
this.type = type;
4753
this.unparsed |= !type.isValid();
4854
}
@@ -58,9 +64,8 @@ public PatchComponentRequestData attributes(PatchComponentRequestDataAttributes
5864
*
5965
* @return attributes
6066
*/
61-
@jakarta.annotation.Nullable
6267
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
63-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6469
public PatchComponentRequestDataAttributes getAttributes() {
6570
return attributes;
6671
}
@@ -79,9 +84,8 @@ public PatchComponentRequestData id(UUID id) {
7984
*
8085
* @return id
8186
*/
82-
@jakarta.annotation.Nullable
8387
@JsonProperty(JSON_PROPERTY_ID)
84-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
8589
public UUID getId() {
8690
return id;
8791
}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ public PatchDegradationRequestData() {}
4141

4242
@JsonCreator
4343
public PatchDegradationRequestData(
44+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
45+
PatchDegradationRequestDataAttributes attributes,
46+
@JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id,
4447
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
4548
PatchDegradationRequestDataType type) {
49+
this.attributes = attributes;
50+
this.unparsed |= attributes.unparsed;
51+
this.id = id;
4652
this.type = type;
4753
this.unparsed |= !type.isValid();
4854
}
@@ -58,9 +64,8 @@ public PatchDegradationRequestData attributes(PatchDegradationRequestDataAttribu
5864
*
5965
* @return attributes
6066
*/
61-
@jakarta.annotation.Nullable
6267
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
63-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6469
public PatchDegradationRequestDataAttributes getAttributes() {
6570
return attributes;
6671
}
@@ -79,9 +84,8 @@ public PatchDegradationRequestData id(UUID id) {
7984
*
8085
* @return id
8186
*/
82-
@jakarta.annotation.Nullable
8387
@JsonProperty(JSON_PROPERTY_ID)
84-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
8589
public UUID getId() {
8690
return id;
8791
}

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ public PatchStatusPageRequestData() {}
4141

4242
@JsonCreator
4343
public PatchStatusPageRequestData(
44+
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
45+
PatchStatusPageRequestDataAttributes attributes,
46+
@JsonProperty(required = true, value = JSON_PROPERTY_ID) UUID id,
4447
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) StatusPageDataType type) {
48+
this.attributes = attributes;
49+
this.unparsed |= attributes.unparsed;
50+
this.id = id;
4551
this.type = type;
4652
this.unparsed |= !type.isValid();
4753
}
@@ -57,9 +63,8 @@ public PatchStatusPageRequestData attributes(PatchStatusPageRequestDataAttribute
5763
*
5864
* @return attributes
5965
*/
60-
@jakarta.annotation.Nullable
6166
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
62-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6368
public PatchStatusPageRequestDataAttributes getAttributes() {
6469
return attributes;
6570
}
@@ -78,9 +83,8 @@ public PatchStatusPageRequestData id(UUID id) {
7883
*
7984
* @return id
8085
*/
81-
@jakarta.annotation.Nullable
8286
@JsonProperty(JSON_PROPERTY_ID)
83-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
87+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
8488
public UUID getId() {
8589
return id;
8690
}

0 commit comments

Comments
 (0)