diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/README.md b/clients/google-api-services-redis/v1beta1/2.0.0/README.md
index cd46b0f6330..845b5c22090 100644
--- a/clients/google-api-services-redis/v1beta1/2.0.0/README.md
+++ b/clients/google-api-services-redis/v1beta1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
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 Google Cloud Memorystore for Redis API. For a @@ -138,6 +138,13 @@ public final class DatabaseResourceMetadata extends com.google.api.client.json.G @com.google.api.client.util.Key private MachineConfiguration machineConfiguration; + /** + * Optional. Maintenance info for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceMaintenanceInfo maintenanceInfo; + /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the @@ -478,6 +485,23 @@ public DatabaseResourceMetadata setMachineConfiguration(MachineConfiguration mac return this; } + /** + * Optional. Maintenance info for the resource. + * @return value or {@code null} for none + */ + public ResourceMaintenanceInfo getMaintenanceInfo() { + return maintenanceInfo; + } + + /** + * Optional. Maintenance info for the resource. + * @param maintenanceInfo maintenanceInfo or {@code null} for none + */ + public DatabaseResourceMetadata setMaintenanceInfo(ResourceMaintenanceInfo maintenanceInfo) { + this.maintenanceInfo = maintenanceInfo; + return this; + } + /** * Identifier for this resource's immediate parent/primary resource if the current resource is a * replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Date.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Date.java new file mode 100644 index 00000000000..edb5cb6c970 --- /dev/null +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/Date.java @@ -0,0 +1,124 @@ +/* + * 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.redis.v1beta1.model; + +/** + * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: * A full date, with non-zero year, month, and + * day values. * A month and day, with a zero year (for example, an anniversary). * A year on its + * own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit + * card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * + * google.protobuf.Timestamp + * + *
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 Google Cloud Memorystore for Redis 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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceDenySchedule.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceDenySchedule.java new file mode 100644 index 00000000000..987a6631dbf --- /dev/null +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceDenySchedule.java @@ -0,0 +1,116 @@ +/* + * 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.redis.v1beta1.model; + +/** + * Deny maintenance period for the database resource. It specifies the time range during which the + * maintenance cannot start. This is configured by the customer. + * + *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 Google Cloud Memorystore for Redis 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 ResourceMaintenanceDenySchedule extends com.google.api.client.json.GenericJson { + + /** + * Optional. Deny period end date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date endDate; + + /** + * Optional. The start date of the deny maintenance period. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date startDate; + + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on end_date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay time; + + /** + * Optional. Deny period end date. + * @return value or {@code null} for none + */ + public Date getEndDate() { + return endDate; + } + + /** + * Optional. Deny period end date. + * @param endDate endDate or {@code null} for none + */ + public ResourceMaintenanceDenySchedule setEndDate(Date endDate) { + this.endDate = endDate; + return this; + } + + /** + * Optional. The start date of the deny maintenance period. + * @return value or {@code null} for none + */ + public Date getStartDate() { + return startDate; + } + + /** + * Optional. The start date of the deny maintenance period. + * @param startDate startDate or {@code null} for none + */ + public ResourceMaintenanceDenySchedule setStartDate(Date startDate) { + this.startDate = startDate; + return this; + } + + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on end_date. + * @return value or {@code null} for none + */ + public TimeOfDay getTime() { + return time; + } + + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on end_date. + * @param time time or {@code null} for none + */ + public ResourceMaintenanceDenySchedule setTime(TimeOfDay time) { + this.time = time; + return this; + } + + @Override + public ResourceMaintenanceDenySchedule set(String fieldName, Object value) { + return (ResourceMaintenanceDenySchedule) super.set(fieldName, value); + } + + @Override + public ResourceMaintenanceDenySchedule clone() { + return (ResourceMaintenanceDenySchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceInfo.java b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceInfo.java new file mode 100644 index 00000000000..259a711ee07 --- /dev/null +++ b/clients/google-api-services-redis/v1beta1/2.0.0/com/google/api/services/redis/v1beta1/model/ResourceMaintenanceInfo.java @@ -0,0 +1,124 @@ +/* + * 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.redis.v1beta1.model; + +/** + * MaintenanceInfo to capture the maintenance details of database resource. + * + *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 Google Cloud Memorystore for Redis 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 ResourceMaintenanceInfo extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of Deny maintenance period for the database resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Cloud Memorystore for Redis 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 ResourceMaintenanceSchedule extends com.google.api.client.json.GenericJson { + + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String day; + + /** + * Optional. Phase of the maintenance window. This is to capture order of maintenance. For + * example, for Cloud SQL resources, this can be used to capture if the maintenance window is in + * Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more + * details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phase; + + /** + * Optional. Preferred time to start the maintenance operation on the specified day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeOfDay time; + + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + * @return value or {@code null} for none + */ + public java.lang.String getDay() { + return day; + } + + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + * @param day day or {@code null} for none + */ + public ResourceMaintenanceSchedule setDay(java.lang.String day) { + this.day = day; + return this; + } + + /** + * Optional. Phase of the maintenance window. This is to capture order of maintenance. For + * example, for Cloud SQL resources, this can be used to capture if the maintenance window is in + * Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more + * details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance + * @return value or {@code null} for none + */ + public java.lang.String getPhase() { + return phase; + } + + /** + * Optional. Phase of the maintenance window. This is to capture order of maintenance. For + * example, for Cloud SQL resources, this can be used to capture if the maintenance window is in + * Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more + * details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance + * @param phase phase or {@code null} for none + */ + public ResourceMaintenanceSchedule setPhase(java.lang.String phase) { + this.phase = phase; + return this; + } + + /** + * Optional. Preferred time to start the maintenance operation on the specified day. + * @return value or {@code null} for none + */ + public TimeOfDay getTime() { + return time; + } + + /** + * Optional. Preferred time to start the maintenance operation on the specified day. + * @param time time or {@code null} for none + */ + public ResourceMaintenanceSchedule setTime(TimeOfDay time) { + this.time = time; + return this; + } + + @Override + public ResourceMaintenanceSchedule set(String fieldName, Object value) { + return (ResourceMaintenanceSchedule) super.set(fieldName, value); + } + + @Override + public ResourceMaintenanceSchedule clone() { + return (ResourceMaintenanceSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-redis/v1beta1/2.0.0/pom.xml b/clients/google-api-services-redis/v1beta1/2.0.0/pom.xml index 010b16aab50..694b2ba51e6 100644 --- a/clients/google-api-services-redis/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-redis/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@