Skip to content

Commit adffdd0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fabbc01 of spec repo (#1043)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d74d535 commit adffdd0

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
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.5.1.dev2",
7-
"regenerated": "2021-11-11 13:59:10.435912",
8-
"spec_repo_commit": "084ca04"
7+
"regenerated": "2021-11-12 11:37:21.745481",
8+
"spec_repo_commit": "fabbc01"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-11-11 13:59:11.787445",
13-
"spec_repo_commit": "084ca04"
12+
"regenerated": "2021-11-12 11:37:23.046131",
13+
"spec_repo_commit": "fabbc01"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7641,6 +7641,7 @@ components:
76417641
SLO correction.
76427642
example: 3600
76437643
format: int64
7644+
nullable: true
76447645
type: integer
76457646
end:
76467647
description: Ending time of the correction in epoch seconds.
@@ -7649,6 +7650,7 @@ components:
76497650
rrule:
76507651
description: Recurrence rules as defined in the iCalendar RFC 5545.
76517652
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7653+
nullable: true
76527654
type: string
76537655
slo_id:
76547656
description: ID of the SLO that this correction will be applied to.

src/main/java/com/datadog/api/v1/client/model/SLOCorrectionResponseAttributes.java

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import io.swagger.annotations.ApiModel;
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.util.Objects;
20+
import org.openapitools.jackson.nullable.JsonNullable;
2021

2122
/** The attribute object associated with the SLO correction. */
2223
@ApiModel(description = "The attribute object associated with the SLO correction.")
@@ -44,13 +45,13 @@ public class SLOCorrectionResponseAttributes {
4445
private String description;
4546

4647
public static final String JSON_PROPERTY_DURATION = "duration";
47-
private Long duration;
48+
private JsonNullable<Long> duration = JsonNullable.<Long>undefined();
4849

4950
public static final String JSON_PROPERTY_END = "end";
5051
private Long end;
5152

5253
public static final String JSON_PROPERTY_RRULE = "rrule";
53-
private String rrule;
54+
private JsonNullable<String> rrule = JsonNullable.<String>undefined();
5455

5556
public static final String JSON_PROPERTY_SLO_ID = "slo_id";
5657
private String sloId;
@@ -133,7 +134,7 @@ public void setDescription(String description) {
133134
}
134135

135136
public SLOCorrectionResponseAttributes duration(Long duration) {
136-
this.duration = duration;
137+
this.duration = JsonNullable.<Long>of(duration);
137138
return this;
138139
}
139140

@@ -146,16 +147,26 @@ public SLOCorrectionResponseAttributes duration(Long duration) {
146147
@ApiModelProperty(
147148
example = "3600",
148149
value = "Length of time (in seconds) for a specified `rrule` recurring SLO correction.")
150+
@JsonIgnore
151+
public Long getDuration() {
152+
return duration.orElse(null);
153+
}
154+
149155
@JsonProperty(JSON_PROPERTY_DURATION)
150156
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151-
public Long getDuration() {
157+
public JsonNullable<Long> getDuration_JsonNullable() {
152158
return duration;
153159
}
154160

155-
public void setDuration(Long duration) {
161+
@JsonProperty(JSON_PROPERTY_DURATION)
162+
public void setDuration_JsonNullable(JsonNullable<Long> duration) {
156163
this.duration = duration;
157164
}
158165

166+
public void setDuration(Long duration) {
167+
this.duration = JsonNullable.<Long>of(duration);
168+
}
169+
159170
public SLOCorrectionResponseAttributes end(Long end) {
160171
this.end = end;
161172
return this;
@@ -179,7 +190,7 @@ public void setEnd(Long end) {
179190
}
180191

181192
public SLOCorrectionResponseAttributes rrule(String rrule) {
182-
this.rrule = rrule;
193+
this.rrule = JsonNullable.<String>of(rrule);
183194
return this;
184195
}
185196

@@ -192,16 +203,26 @@ public SLOCorrectionResponseAttributes rrule(String rrule) {
192203
@ApiModelProperty(
193204
example = "RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5",
194205
value = "Recurrence rules as defined in the iCalendar RFC 5545.")
206+
@JsonIgnore
207+
public String getRrule() {
208+
return rrule.orElse(null);
209+
}
210+
195211
@JsonProperty(JSON_PROPERTY_RRULE)
196212
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197-
public String getRrule() {
213+
public JsonNullable<String> getRrule_JsonNullable() {
198214
return rrule;
199215
}
200216

201-
public void setRrule(String rrule) {
217+
@JsonProperty(JSON_PROPERTY_RRULE)
218+
public void setRrule_JsonNullable(JsonNullable<String> rrule) {
202219
this.rrule = rrule;
203220
}
204221

222+
public void setRrule(String rrule) {
223+
this.rrule = JsonNullable.<String>of(rrule);
224+
}
225+
205226
public SLOCorrectionResponseAttributes sloId(String sloId) {
206227
this.sloId = sloId;
207228
return this;

0 commit comments

Comments
 (0)