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-rev20260805-2.0.0</version>
<version>v1-rev20260812-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-rev20260805-2.0.0'
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260812-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public final class DiskRestoreProperties extends com.google.api.client.json.Gene
@com.google.api.client.util.Key
private java.util.List<GuestOsFeature> guestOsFeature;

/**
* Provides options for creating a disk from a source Compute Instance backup.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RestoreDiskFromInstanceOptions instanceBackupSource;

/**
* Optional. Labels to apply to this disk. These can be modified later using setLabels method.
* Label values can be empty.
Expand Down Expand Up @@ -269,6 +276,23 @@ public DiskRestoreProperties setGuestOsFeature(java.util.List<GuestOsFeature> gu
return this;
}

/**
* Provides options for creating a disk from a source Compute Instance backup.
* @return value or {@code null} for none
*/
public RestoreDiskFromInstanceOptions getInstanceBackupSource() {
return instanceBackupSource;
}

/**
* Provides options for creating a disk from a source Compute Instance backup.
* @param instanceBackupSource instanceBackupSource or {@code null} for none
*/
public DiskRestoreProperties setInstanceBackupSource(RestoreDiskFromInstanceOptions instanceBackupSource) {
this.instanceBackupSource = instanceBackupSource;
return this;
}

/**
* Optional. Labels to apply to this disk. These can be modified later using setLabels method.
* Label values can be empty.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* 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;

/**
* Options for creating a disk from a source Compute Instance backup.
*
* <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 RestoreDiskFromInstanceOptions extends com.google.api.client.json.GenericJson {

/**
* Specifies that the boot disk should be restored from the instance backup. This field should
* only be set to `true` if selected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean bootDisk;

/**
* The device name of the disk to restore from the VM backup.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceDeviceName;

/**
* Specifies that the boot disk should be restored from the instance backup. This field should
* only be set to `true` if selected.
* @return value or {@code null} for none
*/
public java.lang.Boolean getBootDisk() {
return bootDisk;
}

/**
* Specifies that the boot disk should be restored from the instance backup. This field should
* only be set to `true` if selected.
* @param bootDisk bootDisk or {@code null} for none
*/
public RestoreDiskFromInstanceOptions setBootDisk(java.lang.Boolean bootDisk) {
this.bootDisk = bootDisk;
return this;
}

/**
* The device name of the disk to restore from the VM backup.
* @return value or {@code null} for none
*/
public java.lang.String getSourceDeviceName() {
return sourceDeviceName;
}

/**
* The device name of the disk to restore from the VM backup.
* @param sourceDeviceName sourceDeviceName or {@code null} for none
*/
public RestoreDiskFromInstanceOptions setSourceDeviceName(java.lang.String sourceDeviceName) {
this.sourceDeviceName = sourceDeviceName;
return this;
}

@Override
public RestoreDiskFromInstanceOptions set(String fieldName, Object value) {
return (RestoreDiskFromInstanceOptions) super.set(fieldName, value);
}

@Override
public RestoreDiskFromInstanceOptions clone() {
return (RestoreDiskFromInstanceOptions) 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-rev20260805-2.0.0</version>
<name>Backup and DR Service API v1-rev20260805-2.0.0</name>
<version>v1-rev20260812-2.0.0</version>
<name>Backup and DR Service API v1-rev20260812-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-rev20260805-2.0.0</version>
<version>v1-rev20260812-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-rev20260805-2.0.0'
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20260812-2.0.0'
}
```

Expand Down
Loading