Skip to content

Commit 86df206

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 20fab84 of spec repo
1 parent 6646511 commit 86df206

File tree

9 files changed

+258
-14
lines changed

9 files changed

+258
-14
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-10-18 13:05:32.173095",
8-
"spec_repo_commit": "3b56e2f"
7+
"regenerated": "2021-10-18 13:34:54.642619",
8+
"spec_repo_commit": "20fab84"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-18 13:06:21.888029",
13-
"spec_repo_commit": "3b56e2f"
12+
"regenerated": "2021-10-18 13:35:49.421597",
13+
"spec_repo_commit": "20fab84"
1414
}
1515
}
1616
}

api_docs/v1/SLOCorrectionCreateRequestAttributes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**category** | **SLOCorrectionCategory** | |
1212
**description** | **String** | Description of the correction being made. | [optional]
13-
**end** | **Long** | Ending time of the correction in epoch seconds. |
13+
**duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional]
14+
**end** | **Long** | Ending time of the correction in epoch seconds. | [optional]
15+
**rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional]
1416
**sloId** | **String** | ID of the SLO that this correction will be applied to. |
1517
**start** | **Long** | Starting time of the correction in epoch seconds. |
1618
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\"). | [optional]

api_docs/v1/SLOCorrectionResponseAttributes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ Name | Type | Description | Notes
1111
**category** | **SLOCorrectionCategory** | | [optional]
1212
**creator** | [**Creator**](Creator.md) | | [optional]
1313
**description** | **String** | Description of the correction being made. | [optional]
14+
**duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional]
1415
**end** | **Long** | Ending time of the correction in epoch seconds. | [optional]
16+
**rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional]
1517
**sloId** | **String** | ID of the SLO that this correction will be applied to. | [optional]
1618
**start** | **Long** | Starting time of the correction in epoch seconds. | [optional]
1719
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\"). | [optional]

api_docs/v1/SLOCorrectionUpdateRequestAttributes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**category** | **SLOCorrectionCategory** | | [optional]
1212
**description** | **String** | Description of the correction being made. | [optional]
13+
**duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional]
1314
**end** | **Long** | Ending time of the correction in epoch seconds. | [optional]
15+
**rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional]
1416
**start** | **Long** | Starting time of the correction in epoch seconds. | [optional]
1517
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\"). | [optional]
1618

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

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
@JsonPropertyOrder({
2525
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_CATEGORY,
2626
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_DESCRIPTION,
27+
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_DURATION,
2728
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_END,
29+
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_RRULE,
2830
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_SLO_ID,
2931
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_START,
3032
SLOCorrectionCreateRequestAttributes.JSON_PROPERTY_TIMEZONE
@@ -38,9 +40,15 @@ public class SLOCorrectionCreateRequestAttributes {
3840
public static final String JSON_PROPERTY_DESCRIPTION = "description";
3941
private String description;
4042

43+
public static final String JSON_PROPERTY_DURATION = "duration";
44+
private Long duration;
45+
4146
public static final String JSON_PROPERTY_END = "end";
4247
private Long end;
4348

49+
public static final String JSON_PROPERTY_RRULE = "rrule";
50+
private String rrule;
51+
4452
public static final String JSON_PROPERTY_SLO_ID = "slo_id";
4553
private String sloId;
4654

@@ -55,12 +63,10 @@ public SLOCorrectionCreateRequestAttributes() {}
5563
@JsonCreator
5664
public SLOCorrectionCreateRequestAttributes(
5765
@JsonProperty(required = true, value = JSON_PROPERTY_CATEGORY) SLOCorrectionCategory category,
58-
@JsonProperty(required = true, value = JSON_PROPERTY_END) Long end,
5966
@JsonProperty(required = true, value = JSON_PROPERTY_SLO_ID) String sloId,
6067
@JsonProperty(required = true, value = JSON_PROPERTY_START) Long start) {
6168
this.category = category;
6269
this.unparsed |= !category.isValid();
63-
this.end = end;
6470
this.sloId = sloId;
6571
this.start = start;
6672
}
@@ -112,6 +118,30 @@ public void setDescription(String description) {
112118
this.description = description;
113119
}
114120

121+
public SLOCorrectionCreateRequestAttributes duration(Long duration) {
122+
this.duration = duration;
123+
return this;
124+
}
125+
126+
/**
127+
* Length of time (in seconds) for a specified `rrule` recurring SLO correction.
128+
*
129+
* @return duration
130+
*/
131+
@javax.annotation.Nullable
132+
@ApiModelProperty(
133+
example = "1600000000",
134+
value = "Length of time (in seconds) for a specified `rrule` recurring SLO correction.")
135+
@JsonProperty(JSON_PROPERTY_DURATION)
136+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137+
public Long getDuration() {
138+
return duration;
139+
}
140+
141+
public void setDuration(Long duration) {
142+
this.duration = duration;
143+
}
144+
115145
public SLOCorrectionCreateRequestAttributes end(Long end) {
116146
this.end = end;
117147
return this;
@@ -122,12 +152,12 @@ public SLOCorrectionCreateRequestAttributes end(Long end) {
122152
*
123153
* @return end
124154
*/
155+
@javax.annotation.Nullable
125156
@ApiModelProperty(
126157
example = "1600000000",
127-
required = true,
128158
value = "Ending time of the correction in epoch seconds.")
129159
@JsonProperty(JSON_PROPERTY_END)
130-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
160+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131161
public Long getEnd() {
132162
return end;
133163
}
@@ -136,6 +166,30 @@ public void setEnd(Long end) {
136166
this.end = end;
137167
}
138168

169+
public SLOCorrectionCreateRequestAttributes rrule(String rrule) {
170+
this.rrule = rrule;
171+
return this;
172+
}
173+
174+
/**
175+
* Recurrence rules as defined in the iCalendar RFC 5545.
176+
*
177+
* @return rrule
178+
*/
179+
@javax.annotation.Nullable
180+
@ApiModelProperty(
181+
example = "RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5",
182+
value = "Recurrence rules as defined in the iCalendar RFC 5545.")
183+
@JsonProperty(JSON_PROPERTY_RRULE)
184+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185+
public String getRrule() {
186+
return rrule;
187+
}
188+
189+
public void setRrule(String rrule) {
190+
this.rrule = rrule;
191+
}
192+
139193
public SLOCorrectionCreateRequestAttributes sloId(String sloId) {
140194
this.sloId = sloId;
141195
return this;
@@ -221,15 +275,17 @@ public boolean equals(Object o) {
221275
(SLOCorrectionCreateRequestAttributes) o;
222276
return Objects.equals(this.category, slOCorrectionCreateRequestAttributes.category)
223277
&& Objects.equals(this.description, slOCorrectionCreateRequestAttributes.description)
278+
&& Objects.equals(this.duration, slOCorrectionCreateRequestAttributes.duration)
224279
&& Objects.equals(this.end, slOCorrectionCreateRequestAttributes.end)
280+
&& Objects.equals(this.rrule, slOCorrectionCreateRequestAttributes.rrule)
225281
&& Objects.equals(this.sloId, slOCorrectionCreateRequestAttributes.sloId)
226282
&& Objects.equals(this.start, slOCorrectionCreateRequestAttributes.start)
227283
&& Objects.equals(this.timezone, slOCorrectionCreateRequestAttributes.timezone);
228284
}
229285

230286
@Override
231287
public int hashCode() {
232-
return Objects.hash(category, description, end, sloId, start, timezone);
288+
return Objects.hash(category, description, duration, end, rrule, sloId, start, timezone);
233289
}
234290

235291
@Override
@@ -238,7 +294,9 @@ public String toString() {
238294
sb.append("class SLOCorrectionCreateRequestAttributes {\n");
239295
sb.append(" category: ").append(toIndentedString(category)).append("\n");
240296
sb.append(" description: ").append(toIndentedString(description)).append("\n");
297+
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
241298
sb.append(" end: ").append(toIndentedString(end)).append("\n");
299+
sb.append(" rrule: ").append(toIndentedString(rrule)).append("\n");
242300
sb.append(" sloId: ").append(toIndentedString(sloId)).append("\n");
243301
sb.append(" start: ").append(toIndentedString(start)).append("\n");
244302
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");

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

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
SLOCorrectionResponseAttributes.JSON_PROPERTY_CATEGORY,
2525
SLOCorrectionResponseAttributes.JSON_PROPERTY_CREATOR,
2626
SLOCorrectionResponseAttributes.JSON_PROPERTY_DESCRIPTION,
27+
SLOCorrectionResponseAttributes.JSON_PROPERTY_DURATION,
2728
SLOCorrectionResponseAttributes.JSON_PROPERTY_END,
29+
SLOCorrectionResponseAttributes.JSON_PROPERTY_RRULE,
2830
SLOCorrectionResponseAttributes.JSON_PROPERTY_SLO_ID,
2931
SLOCorrectionResponseAttributes.JSON_PROPERTY_START,
3032
SLOCorrectionResponseAttributes.JSON_PROPERTY_TIMEZONE
@@ -41,9 +43,15 @@ public class SLOCorrectionResponseAttributes {
4143
public static final String JSON_PROPERTY_DESCRIPTION = "description";
4244
private String description;
4345

46+
public static final String JSON_PROPERTY_DURATION = "duration";
47+
private Long duration;
48+
4449
public static final String JSON_PROPERTY_END = "end";
4550
private Long end;
4651

52+
public static final String JSON_PROPERTY_RRULE = "rrule";
53+
private String rrule;
54+
4755
public static final String JSON_PROPERTY_SLO_ID = "slo_id";
4856
private String sloId;
4957

@@ -124,6 +132,30 @@ public void setDescription(String description) {
124132
this.description = description;
125133
}
126134

135+
public SLOCorrectionResponseAttributes duration(Long duration) {
136+
this.duration = duration;
137+
return this;
138+
}
139+
140+
/**
141+
* Length of time (in seconds) for a specified `rrule` recurring SLO correction.
142+
*
143+
* @return duration
144+
*/
145+
@javax.annotation.Nullable
146+
@ApiModelProperty(
147+
example = "1600000000",
148+
value = "Length of time (in seconds) for a specified `rrule` recurring SLO correction.")
149+
@JsonProperty(JSON_PROPERTY_DURATION)
150+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151+
public Long getDuration() {
152+
return duration;
153+
}
154+
155+
public void setDuration(Long duration) {
156+
this.duration = duration;
157+
}
158+
127159
public SLOCorrectionResponseAttributes end(Long end) {
128160
this.end = end;
129161
return this;
@@ -146,6 +178,30 @@ public void setEnd(Long end) {
146178
this.end = end;
147179
}
148180

181+
public SLOCorrectionResponseAttributes rrule(String rrule) {
182+
this.rrule = rrule;
183+
return this;
184+
}
185+
186+
/**
187+
* Recurrence rules as defined in the iCalendar RFC 5545.
188+
*
189+
* @return rrule
190+
*/
191+
@javax.annotation.Nullable
192+
@ApiModelProperty(
193+
example = "RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5",
194+
value = "Recurrence rules as defined in the iCalendar RFC 5545.")
195+
@JsonProperty(JSON_PROPERTY_RRULE)
196+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197+
public String getRrule() {
198+
return rrule;
199+
}
200+
201+
public void setRrule(String rrule) {
202+
this.rrule = rrule;
203+
}
204+
149205
public SLOCorrectionResponseAttributes sloId(String sloId) {
150206
this.sloId = sloId;
151207
return this;
@@ -227,15 +283,18 @@ public boolean equals(Object o) {
227283
return Objects.equals(this.category, slOCorrectionResponseAttributes.category)
228284
&& Objects.equals(this.creator, slOCorrectionResponseAttributes.creator)
229285
&& Objects.equals(this.description, slOCorrectionResponseAttributes.description)
286+
&& Objects.equals(this.duration, slOCorrectionResponseAttributes.duration)
230287
&& Objects.equals(this.end, slOCorrectionResponseAttributes.end)
288+
&& Objects.equals(this.rrule, slOCorrectionResponseAttributes.rrule)
231289
&& Objects.equals(this.sloId, slOCorrectionResponseAttributes.sloId)
232290
&& Objects.equals(this.start, slOCorrectionResponseAttributes.start)
233291
&& Objects.equals(this.timezone, slOCorrectionResponseAttributes.timezone);
234292
}
235293

236294
@Override
237295
public int hashCode() {
238-
return Objects.hash(category, creator, description, end, sloId, start, timezone);
296+
return Objects.hash(
297+
category, creator, description, duration, end, rrule, sloId, start, timezone);
239298
}
240299

241300
@Override
@@ -245,7 +304,9 @@ public String toString() {
245304
sb.append(" category: ").append(toIndentedString(category)).append("\n");
246305
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
247306
sb.append(" description: ").append(toIndentedString(description)).append("\n");
307+
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
248308
sb.append(" end: ").append(toIndentedString(end)).append("\n");
309+
sb.append(" rrule: ").append(toIndentedString(rrule)).append("\n");
249310
sb.append(" sloId: ").append(toIndentedString(sloId)).append("\n");
250311
sb.append(" start: ").append(toIndentedString(start)).append("\n");
251312
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");

0 commit comments

Comments
 (0)