Skip to content

Commit 17a8604

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f510509 of spec repo
1 parent 8a59ff1 commit 17a8604

11 files changed

+528
-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-27 12:50:07.155117",
8-
"spec_repo_commit": "0b58986"
7+
"regenerated": "2021-10-28 15:03:17.778040",
8+
"spec_repo_commit": "f510509"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-27 12:50:08.374292",
13-
"spec_repo_commit": "0b58986"
12+
"regenerated": "2021-10-28 15:03:19.034901",
13+
"spec_repo_commit": "f510509"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7570,11 +7570,21 @@ components:
75707570
description:
75717571
description: Description of the correction being made.
75727572
type: string
7573+
duration:
7574+
description: Length of time (in seconds) for a specified `rrule` recurring
7575+
SLO correction.
7576+
example: 1600000000
7577+
format: int64
7578+
type: integer
75737579
end:
75747580
description: Ending time of the correction in epoch seconds.
75757581
example: 1600000000
75767582
format: int64
75777583
type: integer
7584+
rrule:
7585+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7586+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7587+
type: string
75787588
slo_id:
75797589
description: ID of the SLO that this correction will be applied to.
75807590
example: sloId
@@ -7592,7 +7602,6 @@ components:
75927602
required:
75937603
- slo_id
75947604
- start
7595-
- end
75967605
- category
75977606
type: object
75987607
SLOCorrectionListResponse:
@@ -7622,10 +7631,20 @@ components:
76227631
description:
76237632
description: Description of the correction being made.
76247633
type: string
7634+
duration:
7635+
description: Length of time (in seconds) for a specified `rrule` recurring
7636+
SLO correction.
7637+
example: 3600
7638+
format: int64
7639+
type: integer
76257640
end:
76267641
description: Ending time of the correction in epoch seconds.
76277642
format: int64
76287643
type: integer
7644+
rrule:
7645+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7646+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7647+
type: string
76297648
slo_id:
76307649
description: ID of the SLO that this correction will be applied to.
76317650
type: string
@@ -7669,11 +7688,21 @@ components:
76697688
description:
76707689
description: Description of the correction being made.
76717690
type: string
7691+
duration:
7692+
description: Length of time (in seconds) for a specified `rrule` recurring
7693+
SLO correction.
7694+
example: 3600
7695+
format: int64
7696+
type: integer
76727697
end:
76737698
description: Ending time of the correction in epoch seconds.
76747699
example: 1600000000
76757700
format: int64
76767701
type: integer
7702+
rrule:
7703+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7704+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7705+
type: string
76777706
start:
76787707
description: Starting time of the correction in epoch seconds.
76797708
example: 1600000000

api_docs/v1/SLOCorrectionCreateRequestAttributes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ The attribute object associated with the SLO correction to be created.
88
| --------------- | ------------------------- | ------------------------------------------------------------------------------------------- | ---------- |
99
| **category** | **SLOCorrectionCategory** | |
1010
| **description** | **String** | Description of the correction being made. | [optional] |
11-
| **end** | **Long** | Ending time of the correction in epoch seconds. |
11+
| **duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional] |
12+
| **end** | **Long** | Ending time of the correction in epoch seconds. | [optional] |
13+
| **rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional] |
1214
| **sloId** | **String** | ID of the SLO that this correction will be applied to. |
1315
| **start** | **Long** | Starting time of the correction in epoch seconds. |
1416
| **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
@@ -9,7 +9,9 @@ The attribute object associated with the SLO correction.
99
| **category** | **SLOCorrectionCategory** | | [optional] |
1010
| **creator** | [**Creator**](Creator.md) | | [optional] |
1111
| **description** | **String** | Description of the correction being made. | [optional] |
12+
| **duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional] |
1213
| **end** | **Long** | Ending time of the correction in epoch seconds. | [optional] |
14+
| **rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional] |
1315
| **sloId** | **String** | ID of the SLO that this correction will be applied to. | [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] |

api_docs/v1/SLOCorrectionUpdateRequestAttributes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The attribute object associated with the SLO correction to be updated.
88
| --------------- | ------------------------- | ------------------------------------------------------------------------------------------- | ---------- |
99
| **category** | **SLOCorrectionCategory** | | [optional] |
1010
| **description** | **String** | Description of the correction being made. | [optional] |
11+
| **duration** | **Long** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional] |
1112
| **end** | **Long** | Ending time of the correction in epoch seconds. | [optional] |
13+
| **rrule** | **String** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional] |
1214
| **start** | **Long** | Starting time of the correction in epoch seconds. | [optional] |
1315
| **timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\"). | [optional] |

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 = "3600",
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)