diff --git a/clients/google-api-services-monitoring/v1/2.0.0/README.md b/clients/google-api-services-monitoring/v1/2.0.0/README.md index b9c79a9f010..245464d146e 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/README.md +++ b/clients/google-api-services-monitoring/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-monitoring - v1-rev20260705-2.0.0 + v1-rev20260903-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260705-2.0.0' + implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260903-2.0.0' } ``` diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TimeRange.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TimeRange.java new file mode 100644 index 00000000000..19126d59a44 --- /dev/null +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/TimeRange.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.monitoring.v1.model; + +/** + * Represents a time range. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeRange extends com.google.api.client.json.GenericJson { + + /** + * Optional. Represents a time range with absolute start and end times. The start time is + * inclusive, and the end time is exclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Interval absoluteWindow; + + /** + * Optional. Specifies the duration used to shift the data relative to current time as the end + * time. The duration must be positive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String relativeDuration; + + /** + * Optional. Represents a time range with absolute start and end times. The start time is + * inclusive, and the end time is exclusive. + * @return value or {@code null} for none + */ + public Interval getAbsoluteWindow() { + return absoluteWindow; + } + + /** + * Optional. Represents a time range with absolute start and end times. The start time is + * inclusive, and the end time is exclusive. + * @param absoluteWindow absoluteWindow or {@code null} for none + */ + public TimeRange setAbsoluteWindow(Interval absoluteWindow) { + this.absoluteWindow = absoluteWindow; + return this; + } + + /** + * Optional. Specifies the duration used to shift the data relative to current time as the end + * time. The duration must be positive. + * @return value or {@code null} for none + */ + public String getRelativeDuration() { + return relativeDuration; + } + + /** + * Optional. Specifies the duration used to shift the data relative to current time as the end + * time. The duration must be positive. + * @param relativeDuration relativeDuration or {@code null} for none + */ + public TimeRange setRelativeDuration(String relativeDuration) { + this.relativeDuration = relativeDuration; + return this; + } + + @Override + public TimeRange set(String fieldName, Object value) { + return (TimeRange) super.set(fieldName, value); + } + + @Override + public TimeRange clone() { + return (TimeRange) super.clone(); + } + +} diff --git a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Widget.java b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Widget.java index 86f53467a28..8596c1a9aa5 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Widget.java +++ b/clients/google-api-services-monitoring/v1/2.0.0/com/google/api/services/monitoring/v1/model/Widget.java @@ -123,6 +123,14 @@ public final class Widget extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Text text; + /** + * Optional. Represents a time range for the widget. When set, this time range will override the + * dashboard time range. Supported for line, stacked area and stacked bar widgets only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeRange timeRange; + /** * A widget that displays time series data in a tabular format. * The value may be {@code null}. @@ -383,6 +391,25 @@ public Widget setText(Text text) { return this; } + /** + * Optional. Represents a time range for the widget. When set, this time range will override the + * dashboard time range. Supported for line, stacked area and stacked bar widgets only. + * @return value or {@code null} for none + */ + public TimeRange getTimeRange() { + return timeRange; + } + + /** + * Optional. Represents a time range for the widget. When set, this time range will override the + * dashboard time range. Supported for line, stacked area and stacked bar widgets only. + * @param timeRange timeRange or {@code null} for none + */ + public Widget setTimeRange(TimeRange timeRange) { + this.timeRange = timeRange; + return this; + } + /** * A widget that displays time series data in a tabular format. * @return value or {@code null} for none diff --git a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml index 62bdd92ff8a..30b1c5efeb3 100644 --- a/clients/google-api-services-monitoring/v1/2.0.0/pom.xml +++ b/clients/google-api-services-monitoring/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-monitoring - v1-rev20260705-2.0.0 - Cloud Monitoring API v1-rev20260705-2.0.0 + v1-rev20260903-2.0.0 + Cloud Monitoring API v1-rev20260903-2.0.0 jar 2011 diff --git a/clients/google-api-services-monitoring/v1/README.md b/clients/google-api-services-monitoring/v1/README.md index b9c79a9f010..245464d146e 100644 --- a/clients/google-api-services-monitoring/v1/README.md +++ b/clients/google-api-services-monitoring/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-monitoring - v1-rev20260705-2.0.0 + v1-rev20260903-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260705-2.0.0' + implementation 'com.google.apis:google-api-services-monitoring:v1-rev20260903-2.0.0' } ```