diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1907f9ce406..71b4528bc8d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -28204,6 +28204,10 @@ components: description: The date/time when the rotation starts (ISO 8601). format: date-time type: string + time_zone: + description: The time zone for this layer. + example: America/New_York + type: string type: object LayerAttributesInterval: description: Defines how often the rotation repeats, using a combination of @@ -44308,6 +44312,10 @@ components: example: '2025-01-01T00:00:00Z' format: date-time type: string + time_zone: + description: The time zone for this layer. + example: America/New_York + type: string required: - name - interval @@ -44658,6 +44666,10 @@ components: example: '2025-02-01T00:00:00Z' format: date-time type: string + time_zone: + description: The time zone for this layer. + example: America/New_York + type: string required: - effective_date - interval diff --git a/src/main/java/com/datadog/api/client/v2/model/LayerAttributes.java b/src/main/java/com/datadog/api/client/v2/model/LayerAttributes.java index 6184003c2fe..e9e1d3fca89 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LayerAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/LayerAttributes.java @@ -29,7 +29,8 @@ LayerAttributes.JSON_PROPERTY_INTERVAL, LayerAttributes.JSON_PROPERTY_NAME, LayerAttributes.JSON_PROPERTY_RESTRICTIONS, - LayerAttributes.JSON_PROPERTY_ROTATION_START + LayerAttributes.JSON_PROPERTY_ROTATION_START, + LayerAttributes.JSON_PROPERTY_TIME_ZONE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -53,6 +54,9 @@ public class LayerAttributes { public static final String JSON_PROPERTY_ROTATION_START = "rotation_start"; private OffsetDateTime rotationStart; + public static final String JSON_PROPERTY_TIME_ZONE = "time_zone"; + private String timeZone; + public LayerAttributes effectiveDate(OffsetDateTime effectiveDate) { this.effectiveDate = effectiveDate; return this; @@ -193,6 +197,27 @@ public void setRotationStart(OffsetDateTime rotationStart) { this.rotationStart = rotationStart; } + public LayerAttributes timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * The time zone for this layer. + * + * @return timeZone + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -255,13 +280,21 @@ public boolean equals(Object o) { && Objects.equals(this.name, layerAttributes.name) && Objects.equals(this.restrictions, layerAttributes.restrictions) && Objects.equals(this.rotationStart, layerAttributes.rotationStart) + && Objects.equals(this.timeZone, layerAttributes.timeZone) && Objects.equals(this.additionalProperties, layerAttributes.additionalProperties); } @Override public int hashCode() { return Objects.hash( - effectiveDate, endDate, interval, name, restrictions, rotationStart, additionalProperties); + effectiveDate, + endDate, + interval, + name, + restrictions, + rotationStart, + timeZone, + additionalProperties); } @Override @@ -274,6 +307,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n"); sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ScheduleCreateRequestDataAttributesLayersItems.java b/src/main/java/com/datadog/api/client/v2/model/ScheduleCreateRequestDataAttributesLayersItems.java index 76d1c38bac3..b1ea51c5a55 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScheduleCreateRequestDataAttributesLayersItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScheduleCreateRequestDataAttributesLayersItems.java @@ -31,7 +31,8 @@ ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_MEMBERS, ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_NAME, ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_RESTRICTIONS, - ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START + ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START, + ScheduleCreateRequestDataAttributesLayersItems.JSON_PROPERTY_TIME_ZONE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -58,6 +59,9 @@ public class ScheduleCreateRequestDataAttributesLayersItems { public static final String JSON_PROPERTY_ROTATION_START = "rotation_start"; private OffsetDateTime rotationStart; + public static final String JSON_PROPERTY_TIME_ZONE = "time_zone"; + private String timeZone; + public ScheduleCreateRequestDataAttributesLayersItems() {} @JsonCreator @@ -250,6 +254,27 @@ public void setRotationStart(OffsetDateTime rotationStart) { this.rotationStart = rotationStart; } + public ScheduleCreateRequestDataAttributesLayersItems timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * The time zone for this layer. + * + * @return timeZone + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -318,6 +343,7 @@ public boolean equals(Object o) { this.restrictions, scheduleCreateRequestDataAttributesLayersItems.restrictions) && Objects.equals( this.rotationStart, scheduleCreateRequestDataAttributesLayersItems.rotationStart) + && Objects.equals(this.timeZone, scheduleCreateRequestDataAttributesLayersItems.timeZone) && Objects.equals( this.additionalProperties, scheduleCreateRequestDataAttributesLayersItems.additionalProperties); @@ -333,6 +359,7 @@ public int hashCode() { name, restrictions, rotationStart, + timeZone, additionalProperties); } @@ -347,6 +374,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n"); sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ScheduleUpdateRequestDataAttributesLayersItems.java b/src/main/java/com/datadog/api/client/v2/model/ScheduleUpdateRequestDataAttributesLayersItems.java index 4c9715b0e44..76cee34c6a9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScheduleUpdateRequestDataAttributesLayersItems.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScheduleUpdateRequestDataAttributesLayersItems.java @@ -32,7 +32,8 @@ ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_MEMBERS, ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_NAME, ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_RESTRICTIONS, - ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START + ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_ROTATION_START, + ScheduleUpdateRequestDataAttributesLayersItems.JSON_PROPERTY_TIME_ZONE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -62,6 +63,9 @@ public class ScheduleUpdateRequestDataAttributesLayersItems { public static final String JSON_PROPERTY_ROTATION_START = "rotation_start"; private OffsetDateTime rotationStart; + public static final String JSON_PROPERTY_TIME_ZONE = "time_zone"; + private String timeZone; + public ScheduleUpdateRequestDataAttributesLayersItems() {} @JsonCreator @@ -275,6 +279,27 @@ public void setRotationStart(OffsetDateTime rotationStart) { this.rotationStart = rotationStart; } + public ScheduleUpdateRequestDataAttributesLayersItems timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * The time zone for this layer. + * + * @return timeZone + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME_ZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -344,6 +369,7 @@ public boolean equals(Object o) { this.restrictions, scheduleUpdateRequestDataAttributesLayersItems.restrictions) && Objects.equals( this.rotationStart, scheduleUpdateRequestDataAttributesLayersItems.rotationStart) + && Objects.equals(this.timeZone, scheduleUpdateRequestDataAttributesLayersItems.timeZone) && Objects.equals( this.additionalProperties, scheduleUpdateRequestDataAttributesLayersItems.additionalProperties); @@ -360,6 +386,7 @@ public int hashCode() { name, restrictions, rotationStart, + timeZone, additionalProperties); } @@ -375,6 +402,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" restrictions: ").append(toIndentedString(restrictions)).append("\n"); sb.append(" rotationStart: ").append(toIndentedString(rotationStart)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n");