diff --git a/clients/google-api-services-backupdr/v1/2.0.0/README.md b/clients/google-api-services-backupdr/v1/2.0.0/README.md index 0ff4dd00aaa..c1161626ee4 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/README.md +++ b/clients/google-api-services-backupdr/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-backupdr - v1-rev20260715-2.0.0 + v1-rev20260805-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260715-2.0.0' + implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260805-2.0.0' } ``` diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupPlanProperties.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupPlanProperties.java index 55e715102c0..7d324dff2e0 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupPlanProperties.java +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupPlanProperties.java @@ -30,6 +30,21 @@ @SuppressWarnings("javadoc") public final class ComputeInstanceBackupPlanProperties extends com.google.api.client.json.GenericJson { + /** + * Optional. If true, only the boot disk will be backed up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean bootDiskOnly; + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskExclusionLabels diskExclusionLabels; + /** * Optional. Indicates whether to perform a guest flush operation before taking a compute backup. * When set to false, the system will create crash-consistent backups. Default value is false. @@ -38,6 +53,42 @@ public final class ComputeInstanceBackupPlanProperties extends com.google.api.cl @com.google.api.client.util.Key private java.lang.Boolean guestFlush; + /** + * Optional. If true, only the boot disk will be backed up. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBootDiskOnly() { + return bootDiskOnly; + } + + /** + * Optional. If true, only the boot disk will be backed up. + * @param bootDiskOnly bootDiskOnly or {@code null} for none + */ + public ComputeInstanceBackupPlanProperties setBootDiskOnly(java.lang.Boolean bootDiskOnly) { + this.bootDiskOnly = bootDiskOnly; + return this; + } + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * @return value or {@code null} for none + */ + public DiskExclusionLabels getDiskExclusionLabels() { + return diskExclusionLabels; + } + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * @param diskExclusionLabels diskExclusionLabels or {@code null} for none + */ + public ComputeInstanceBackupPlanProperties setDiskExclusionLabels(DiskExclusionLabels diskExclusionLabels) { + this.diskExclusionLabels = diskExclusionLabels; + return this; + } + /** * Optional. Indicates whether to perform a guest flush operation before taking a compute backup. * When set to false, the system will create crash-consistent backups. Default value is false. diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupProperties.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupProperties.java index 6a29b567766..41f0a4415ee 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupProperties.java +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/ComputeInstanceBackupProperties.java @@ -62,6 +62,13 @@ public final class ComputeInstanceBackupProperties extends com.google.api.client com.google.api.client.util.Data.nullOf(AttachedDisk.class); } + /** + * Optional. List of disks excluded from the backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedDisks; + /** * A list of guest accelerator cards' type and count to use for instances created from these * properties. @@ -84,6 +91,13 @@ public final class ComputeInstanceBackupProperties extends com.google.api.client @com.google.api.client.util.Key private java.lang.Boolean guestFlush; + /** + * Optional. List of disks included in the backup. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedDisks; + /** * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default * value is "NONE" if it is not specified. @@ -229,6 +243,23 @@ public ComputeInstanceBackupProperties setDisk(java.util.List disk return this; } + /** + * Optional. List of disks excluded from the backup. + * @return value or {@code null} for none + */ + public java.util.List getExcludedDisks() { + return excludedDisks; + } + + /** + * Optional. List of disks excluded from the backup. + * @param excludedDisks excludedDisks or {@code null} for none + */ + public ComputeInstanceBackupProperties setExcludedDisks(java.util.List excludedDisks) { + this.excludedDisks = excludedDisks; + return this; + } + /** * A list of guest accelerator cards' type and count to use for instances created from these * properties. @@ -267,6 +298,23 @@ public ComputeInstanceBackupProperties setGuestFlush(java.lang.Boolean guestFlus return this; } + /** + * Optional. List of disks included in the backup. + * @return value or {@code null} for none + */ + public java.util.List getIncludedDisks() { + return includedDisks; + } + + /** + * Optional. List of disks included in the backup. + * @param includedDisks includedDisks or {@code null} for none + */ + public ComputeInstanceBackupProperties setIncludedDisks(java.util.List includedDisks) { + this.includedDisks = includedDisks; + return this; + } + /** * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default * value is "NONE" if it is not specified. diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/DiskExclusionLabels.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/DiskExclusionLabels.java new file mode 100644 index 00000000000..320c2a016ab --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/DiskExclusionLabels.java @@ -0,0 +1,70 @@ +/* + * 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.backupdr.v1.model; + +/** + * Message for selective disk backup exclusion labels. + * + *

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 Backup and DR Service 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 DiskExclusionLabels extends com.google.api.client.json.GenericJson { + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List labels; + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * @return value or {@code null} for none + */ + public java.util.List getLabels() { + return labels; + } + + /** + * Optional. Labels used to identify disks for exclusion from the backup. If a disk carries any of + * these labels, it will be excluded (OR logic). + * @param labels labels or {@code null} for none + */ + public DiskExclusionLabels setLabels(java.util.List labels) { + this.labels = labels; + return this; + } + + @Override + public DiskExclusionLabels set(String fieldName, Object value) { + return (DiskExclusionLabels) super.set(fieldName, value); + } + + @Override + public DiskExclusionLabels clone() { + return (DiskExclusionLabels) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/LabelKeyValPair.java b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/LabelKeyValPair.java new file mode 100644 index 00000000000..be79bafcd49 --- /dev/null +++ b/clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/LabelKeyValPair.java @@ -0,0 +1,109 @@ +/* + * 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.backupdr.v1.model; + +/** + * Message for a label key-value pair. + * + *

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 Backup and DR Service 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 LabelKeyValPair extends com.google.api.client.json.GenericJson { + + /** + * Key of the label. The key must follow the format: `\\p{Ll}\\p{Lo}{0,62}`. This means the key + * must start with a lowercase letter or a lowercase international character, followed by zero or + * more lowercase letters, lowercase international characters, numbers, underscores, or dashes. + * The key must be at most 63 characters long. International characters are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Value of the label. The value must follow the format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`. This + * means the value must be one or more lowercase letters, lowercase international characters, + * numbers, underscores, or dashes. The value must be at most 63 characters long. International + * characters are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Key of the label. The key must follow the format: `\\p{Ll}\\p{Lo}{0,62}`. This means the key + * must start with a lowercase letter or a lowercase international character, followed by zero or + * more lowercase letters, lowercase international characters, numbers, underscores, or dashes. + * The key must be at most 63 characters long. International characters are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Key of the label. The key must follow the format: `\\p{Ll}\\p{Lo}{0,62}`. This means the key + * must start with a lowercase letter or a lowercase international character, followed by zero or + * more lowercase letters, lowercase international characters, numbers, underscores, or dashes. + * The key must be at most 63 characters long. International characters are allowed. + * @param key key or {@code null} for none + */ + public LabelKeyValPair setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Value of the label. The value must follow the format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`. This + * means the value must be one or more lowercase letters, lowercase international characters, + * numbers, underscores, or dashes. The value must be at most 63 characters long. International + * characters are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Value of the label. The value must follow the format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`. This + * means the value must be one or more lowercase letters, lowercase international characters, + * numbers, underscores, or dashes. The value must be at most 63 characters long. International + * characters are allowed. + * @param value value or {@code null} for none + */ + public LabelKeyValPair setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public LabelKeyValPair set(String fieldName, Object value) { + return (LabelKeyValPair) super.set(fieldName, value); + } + + @Override + public LabelKeyValPair clone() { + return (LabelKeyValPair) super.clone(); + } + +} diff --git a/clients/google-api-services-backupdr/v1/2.0.0/pom.xml b/clients/google-api-services-backupdr/v1/2.0.0/pom.xml index 83d1a7c6921..8457d4863c3 100644 --- a/clients/google-api-services-backupdr/v1/2.0.0/pom.xml +++ b/clients/google-api-services-backupdr/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-backupdr - v1-rev20260715-2.0.0 - Backup and DR Service API v1-rev20260715-2.0.0 + v1-rev20260805-2.0.0 + Backup and DR Service API v1-rev20260805-2.0.0 jar 2011 diff --git a/clients/google-api-services-backupdr/v1/README.md b/clients/google-api-services-backupdr/v1/README.md index 0ff4dd00aaa..c1161626ee4 100644 --- a/clients/google-api-services-backupdr/v1/README.md +++ b/clients/google-api-services-backupdr/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-backupdr - v1-rev20260715-2.0.0 + v1-rev20260805-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260715-2.0.0' + implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260805-2.0.0' } ```