Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-backupdr/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-backupdr</artifactId>
<version>v1-rev20260715-2.0.0</version>
<version>v1-rev20260805-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<java.lang.String> excludedDisks;

/**
* A list of guest accelerator cards' type and count to use for instances created from these
* properties.
Expand All @@ -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<java.lang.String> includedDisks;

/**
* KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default
* value is "NONE" if it is not specified.
Expand Down Expand Up @@ -229,6 +243,23 @@ public ComputeInstanceBackupProperties setDisk(java.util.List<AttachedDisk> disk
return this;
}

/**
* Optional. List of disks excluded from the backup.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> 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<java.lang.String> excludedDisks) {
this.excludedDisks = excludedDisks;
return this;
}

/**
* A list of guest accelerator cards' type and count to use for instances created from these
* properties.
Expand Down Expand Up @@ -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<java.lang.String> 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<java.lang.String> 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @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<LabelKeyValPair> 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<LabelKeyValPair> 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<LabelKeyValPair> 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();
}

}
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @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();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-backupdr/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-backupdr</artifactId>
<version>v1-rev20260715-2.0.0</version>
<name>Backup and DR Service API v1-rev20260715-2.0.0</name>
<version>v1-rev20260805-2.0.0</version>
<name>Backup and DR Service API v1-rev20260805-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-backupdr/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-backupdr</artifactId>
<version>v1-rev20260715-2.0.0</version>
<version>v1-rev20260805-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Loading