diff --git a/clients/google-api-services-file/v1/2.0.0/README.md b/clients/google-api-services-file/v1/2.0.0/README.md index c2d16dce1b1..3136fd6af41 100644 --- a/clients/google-api-services-file/v1/2.0.0/README.md +++ b/clients/google-api-services-file/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-file - v1-rev20260422-2.0.0 + v1-rev20260710-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-file/v1/2.0.0/pom.xml b/clients/google-api-services-file/v1/2.0.0/pom.xml index 0f0c82f30fb..005bb476ebd 100644 --- a/clients/google-api-services-file/v1/2.0.0/pom.xml +++ b/clients/google-api-services-file/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-file - v1-rev20260422-2.0.0 - Cloud Filestore API v1-rev20260422-2.0.0 + v1-rev20260710-2.0.0 + Cloud Filestore API v1-rev20260710-2.0.0 jar 2011 diff --git a/clients/google-api-services-file/v1/README.md b/clients/google-api-services-file/v1/README.md index c2d16dce1b1..3136fd6af41 100644 --- a/clients/google-api-services-file/v1/README.md +++ b/clients/google-api-services-file/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-file - v1-rev20260422-2.0.0 + v1-rev20260710-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-file/v1beta1/2.0.0/README.md b/clients/google-api-services-file/v1beta1/2.0.0/README.md index c32abad5753..e4d844565cf 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-file/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-file - v1beta1-rev20260612-2.0.0 + v1beta1-rev20260710-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/FileShareConfig.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/FileShareConfig.java index 985a930329f..a7ff124b83d 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/FileShareConfig.java +++ b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/FileShareConfig.java @@ -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; + /** + * 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 @@ -124,6 +135,31 @@ public FileShareConfig setNfsExportOptions(java.util.List 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 diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/RestoreConfig.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/RestoreConfig.java new file mode 100644 index 00000000000..66c0ceb2da8 --- /dev/null +++ b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/RestoreConfig.java @@ -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. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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 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 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 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(); + } + +} diff --git a/clients/google-api-services-file/v1beta1/2.0.0/pom.xml b/clients/google-api-services-file/v1beta1/2.0.0/pom.xml index c49cabe01b6..c2b834136fb 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-file/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-file - v1beta1-rev20260612-2.0.0 - Cloud Filestore API v1beta1-rev20260612-2.0.0 + v1beta1-rev20260710-2.0.0 + Cloud Filestore API v1beta1-rev20260710-2.0.0 jar 2011 diff --git a/clients/google-api-services-file/v1beta1/README.md b/clients/google-api-services-file/v1beta1/README.md index c32abad5753..e4d844565cf 100644 --- a/clients/google-api-services-file/v1beta1/README.md +++ b/clients/google-api-services-file/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-file - v1beta1-rev20260612-2.0.0 + v1beta1-rev20260710-2.0.0 @@ -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' } ```