Skip to content

Commit 5f0c0ef

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[BGL-1927] Add timezone to on-call layer (#3258)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8e0e1f7 commit 5f0c0ef

File tree

4 files changed

+106
-4
lines changed

4 files changed

+106
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28204,6 +28204,10 @@ components:
2820428204
description: The date/time when the rotation starts (ISO 8601).
2820528205
format: date-time
2820628206
type: string
28207+
time_zone:
28208+
description: The time zone for this layer.
28209+
example: America/New_York
28210+
type: string
2820728211
type: object
2820828212
LayerAttributesInterval:
2820928213
description: Defines how often the rotation repeats, using a combination of
@@ -44308,6 +44312,10 @@ components:
4430844312
example: '2025-01-01T00:00:00Z'
4430944313
format: date-time
4431044314
type: string
44315+
time_zone:
44316+
description: The time zone for this layer.
44317+
example: America/New_York
44318+
type: string
4431144319
required:
4431244320
- name
4431344321
- interval
@@ -44658,6 +44666,10 @@ components:
4465844666
example: '2025-02-01T00:00:00Z'
4465944667
format: date-time
4466044668
type: string
44669+
time_zone:
44670+
description: The time zone for this layer.
44671+
example: America/New_York
44672+
type: string
4466144673
required:
4466244674
- effective_date
4466344675
- interval

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

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
LayerAttributes.JSON_PROPERTY_INTERVAL,
3030
LayerAttributes.JSON_PROPERTY_NAME,
3131
LayerAttributes.JSON_PROPERTY_RESTRICTIONS,
32-
LayerAttributes.JSON_PROPERTY_ROTATION_START
32+
LayerAttributes.JSON_PROPERTY_ROTATION_START,
33+
LayerAttributes.JSON_PROPERTY_TIME_ZONE
3334
})
3435
@jakarta.annotation.Generated(
3536
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -53,6 +54,9 @@ public class LayerAttributes {
5354
public static final String JSON_PROPERTY_ROTATION_START = "rotation_start";
5455
private OffsetDateTime rotationStart;
5556

57+
public static final String JSON_PROPERTY_TIME_ZONE = "time_zone";
58+
private String timeZone;
59+
5660
public LayerAttributes effectiveDate(OffsetDateTime effectiveDate) {
5761
this.effectiveDate = effectiveDate;
5862
return this;
@@ -193,6 +197,27 @@ public void setRotationStart(OffsetDateTime rotationStart) {
193197
this.rotationStart = rotationStart;
194198
}
195199

200+
public LayerAttributes timeZone(String timeZone) {
201+
this.timeZone = timeZone;
202+
return this;
203+
}
204+
205+
/**
206+
* The time zone for this layer.
207+
*
208+
* @return timeZone
209+
*/
210+
@jakarta.annotation.Nullable
211+
@JsonProperty(JSON_PROPERTY_TIME_ZONE)
212+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213+
public String getTimeZone() {
214+
return timeZone;
215+
}
216+
217+
public void setTimeZone(String timeZone) {
218+
this.timeZone = timeZone;
219+
}
220+
196221
/**
197222
* A container for additional, undeclared properties. This is a holder for any undeclared
198223
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -255,13 +280,21 @@ public boolean equals(Object o) {
255280
&& Objects.equals(this.name, layerAttributes.name)
256281
&& Objects.equals(this.restrictions, layerAttributes.restrictions)
257282
&& Objects.equals(this.rotationStart, layerAttributes.rotationStart)
283+
&& Objects.equals(this.timeZone, layerAttributes.timeZone)
258284
&& Objects.equals(this.additionalProperties, layerAttributes.additionalProperties);
259285
}
260286

261287
@Override
262288
public int hashCode() {
263289
return Objects.hash(
264-
effectiveDate, endDate, interval, name, restrictions, rotationStart, additionalProperties);
290+
effectiveDate,
291+
endDate,
292+
interval,
293+
name,
294+
restrictions,
295+
rotationStart,
296+
timeZone,
297+
additionalProperties);
265298
}
266299

267300
@Override
@@ -274,6 +307,7 @@ public String toString() {
274307
sb.append(" name: ").append(toIndentedString(name)).append("\n");
275308
sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n");
276309
sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n");
310+
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
277311
sb.append(" additionalProperties: ")
278312
.append(toIndentedString(additionalProperties))
279313
.append("\n");

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_MEMBERS,
3232
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_NAME,
3333
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_RESTRICTIONS,
34-
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START
34+
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START,
35+
ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_TIME_ZONE
3536
})
3637
@jakarta.annotation.Generated(
3738
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -58,6 +59,9 @@ public class ScheduleCreateRequestDataAttributesLayersItems {
5859
public static final String JSON_PROPERTY_ROTATION_START = "rotation_start";
5960
private OffsetDateTime rotationStart;
6061

62+
public static final String JSON_PROPERTY_TIME_ZONE = "time_zone";
63+
private String timeZone;
64+
6165
public ScheduleCreateRequestDataAttributesLayersItems() {}
6266

6367
@JsonCreator
@@ -250,6 +254,27 @@ public void setRotationStart(OffsetDateTime rotationStart) {
250254
this.rotationStart = rotationStart;
251255
}
252256

257+
public ScheduleCreateRequestDataAttributesLayersItems timeZone(String timeZone) {
258+
this.timeZone = timeZone;
259+
return this;
260+
}
261+
262+
/**
263+
* The time zone for this layer.
264+
*
265+
* @return timeZone
266+
*/
267+
@jakarta.annotation.Nullable
268+
@JsonProperty(JSON_PROPERTY_TIME_ZONE)
269+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270+
public String getTimeZone() {
271+
return timeZone;
272+
}
273+
274+
public void setTimeZone(String timeZone) {
275+
this.timeZone = timeZone;
276+
}
277+
253278
/**
254279
* A container for additional, undeclared properties. This is a holder for any undeclared
255280
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -318,6 +343,7 @@ public boolean equals(Object o) {
318343
this.restrictions, scheduleCreateRequestDataAttributesLayersItems.restrictions)
319344
&& Objects.equals(
320345
this.rotationStart, scheduleCreateRequestDataAttributesLayersItems.rotationStart)
346+
&& Objects.equals(this.timeZone, scheduleCreateRequestDataAttributesLayersItems.timeZone)
321347
&& Objects.equals(
322348
this.additionalProperties,
323349
scheduleCreateRequestDataAttributesLayersItems.additionalProperties);
@@ -333,6 +359,7 @@ public int hashCode() {
333359
name,
334360
restrictions,
335361
rotationStart,
362+
timeZone,
336363
additionalProperties);
337364
}
338365

@@ -347,6 +374,7 @@ public String toString() {
347374
sb.append(" name: ").append(toIndentedString(name)).append("\n");
348375
sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n");
349376
sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n");
377+
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
350378
sb.append(" additionalProperties: ")
351379
.append(toIndentedString(additionalProperties))
352380
.append("\n");

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_MEMBERS,
3333
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_NAME,
3434
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_RESTRICTIONS,
35-
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START
35+
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START,
36+
ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_TIME_ZONE
3637
})
3738
@jakarta.annotation.Generated(
3839
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -62,6 +63,9 @@ public class ScheduleUpdateRequestDataAttributesLayersItems {
6263
public static final String JSON_PROPERTY_ROTATION_START = "rotation_start";
6364
private OffsetDateTime rotationStart;
6465

66+
public static final String JSON_PROPERTY_TIME_ZONE = "time_zone";
67+
private String timeZone;
68+
6569
public ScheduleUpdateRequestDataAttributesLayersItems() {}
6670

6771
@JsonCreator
@@ -275,6 +279,27 @@ public void setRotationStart(OffsetDateTime rotationStart) {
275279
this.rotationStart = rotationStart;
276280
}
277281

282+
public ScheduleUpdateRequestDataAttributesLayersItems timeZone(String timeZone) {
283+
this.timeZone = timeZone;
284+
return this;
285+
}
286+
287+
/**
288+
* The time zone for this layer.
289+
*
290+
* @return timeZone
291+
*/
292+
@jakarta.annotation.Nullable
293+
@JsonProperty(JSON_PROPERTY_TIME_ZONE)
294+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
295+
public String getTimeZone() {
296+
return timeZone;
297+
}
298+
299+
public void setTimeZone(String timeZone) {
300+
this.timeZone = timeZone;
301+
}
302+
278303
/**
279304
* A container for additional, undeclared properties. This is a holder for any undeclared
280305
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -344,6 +369,7 @@ public boolean equals(Object o) {
344369
this.restrictions, scheduleUpdateRequestDataAttributesLayersItems.restrictions)
345370
&& Objects.equals(
346371
this.rotationStart, scheduleUpdateRequestDataAttributesLayersItems.rotationStart)
372+
&& Objects.equals(this.timeZone, scheduleUpdateRequestDataAttributesLayersItems.timeZone)
347373
&& Objects.equals(
348374
this.additionalProperties,
349375
scheduleUpdateRequestDataAttributesLayersItems.additionalProperties);
@@ -360,6 +386,7 @@ public int hashCode() {
360386
name,
361387
restrictions,
362388
rotationStart,
389+
timeZone,
363390
additionalProperties);
364391
}
365392

@@ -375,6 +402,7 @@ public String toString() {
375402
sb.append(" name: ").append(toIndentedString(name)).append("\n");
376403
sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n");
377404
sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n");
405+
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
378406
sb.append(" additionalProperties: ")
379407
.append(toIndentedString(additionalProperties))
380408
.append("\n");

0 commit comments

Comments
 (0)