Skip to content
Open
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-file/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-file</artifactId>
<version>v1-rev20260422-2.0.0</version>
<version>v1-rev20260710-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-file:v1-rev20260422-2.0.0'
implementation 'com.google.apis:google-api-services-file:v1-rev20260710-2.0.0'
}
```

Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-file/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-file</artifactId>
<version>v1-rev20260422-2.0.0</version>
<name>Cloud Filestore API v1-rev20260422-2.0.0</name>
<version>v1-rev20260710-2.0.0</version>
<name>Cloud Filestore API v1-rev20260710-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-file/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-file</artifactId>
<version>v1-rev20260422-2.0.0</version>
<version>v1-rev20260710-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-file:v1-rev20260422-2.0.0'
implementation 'com.google.apis:google-api-services-file:v1-rev20260710-2.0.0'
}
```

Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-file/v1beta1/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-file</artifactId>
<version>v1beta1-rev20260612-2.0.0</version>
<version>v1beta1-rev20260710-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-file:v1beta1-rev20260612-2.0.0'
implementation 'com.google.apis:google-api-services-file:v1beta1-rev20260710-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ public final class FileShareConfig extends com.google.api.client.json.GenericJso
@com.google.api.client.util.Key
private java.util.List<NfsExportOptions> nfsExportOptions;

/**
* Optional. Input only. Specifies options for restoring from a backup source. Use this field to
* configure a partial restore, allowing recovery of specific files or directories instead of the
* entire backup. This field is only valid if the source oneof is set to `source_backup` or
* `source_backupdr_backup`. If this field is not provided, restoring from a backup will perform a
* full restore.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RestoreConfig restoreConfig;

/**
* The resource name of the backup, in the format
* `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has
Expand Down Expand Up @@ -124,6 +135,31 @@ public FileShareConfig setNfsExportOptions(java.util.List<NfsExportOptions> nfsE
return this;
}

/**
* Optional. Input only. Specifies options for restoring from a backup source. Use this field to
* configure a partial restore, allowing recovery of specific files or directories instead of the
* entire backup. This field is only valid if the source oneof is set to `source_backup` or
* `source_backupdr_backup`. If this field is not provided, restoring from a backup will perform a
* full restore.
* @return value or {@code null} for none
*/
public RestoreConfig getRestoreConfig() {
return restoreConfig;
}

/**
* Optional. Input only. Specifies options for restoring from a backup source. Use this field to
* configure a partial restore, allowing recovery of specific files or directories instead of the
* entire backup. This field is only valid if the source oneof is set to `source_backup` or
* `source_backupdr_backup`. If this field is not provided, restoring from a backup will perform a
* full restore.
* @param restoreConfig restoreConfig or {@code null} for none
*/
public FileShareConfig setRestoreConfig(RestoreConfig restoreConfig) {
this.restoreConfig = restoreConfig;
return this;
}

/**
* The resource name of the backup, in the format
* `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* 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.file.v1beta1.model;

/**
* Optional configuration for restore backup operations.
*
* <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 Cloud Filestore 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 RestoreConfig extends com.google.api.client.json.GenericJson {

/**
* Optional. Example: If you want to restore `/mnt/share/dir1/file.txt`, the path pattern must be
* `/dir1/file.txt`. If you want to restore `/mnt/share/dir1/`, the path pattern must be `/dir1`.
* Currently only single path is supported, Glob patterns are not supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> pathPatterns;

/**
* Optional. Example: If you want to restore `/mnt/share/dir1/file.txt`, the path pattern must be
* `/dir1/file.txt`. If you want to restore `/mnt/share/dir1/`, the path pattern must be `/dir1`.
* Currently only single path is supported, Glob patterns are not supported.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getPathPatterns() {
return pathPatterns;
}

/**
* Optional. Example: If you want to restore `/mnt/share/dir1/file.txt`, the path pattern must be
* `/dir1/file.txt`. If you want to restore `/mnt/share/dir1/`, the path pattern must be `/dir1`.
* Currently only single path is supported, Glob patterns are not supported.
* @param pathPatterns pathPatterns or {@code null} for none
*/
public RestoreConfig setPathPatterns(java.util.List<java.lang.String> pathPatterns) {
this.pathPatterns = pathPatterns;
return this;
}

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

@Override
public RestoreConfig clone() {
return (RestoreConfig) super.clone();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-file/v1beta1/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-file</artifactId>
<version>v1beta1-rev20260612-2.0.0</version>
<name>Cloud Filestore API v1beta1-rev20260612-2.0.0</name>
<version>v1beta1-rev20260710-2.0.0</version>
<name>Cloud Filestore API v1beta1-rev20260710-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-file/v1beta1/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-file</artifactId>
<version>v1beta1-rev20260612-2.0.0</version>
<version>v1beta1-rev20260710-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-file:v1beta1-rev20260612-2.0.0'
implementation 'com.google.apis:google-api-services-file:v1beta1-rev20260710-2.0.0'
}
```

Expand Down
Loading