Skip to content

Commit b4232e4

Browse files
1 parent ed1b6ba commit b4232e4

File tree

5 files changed

+263
-6
lines changed

5 files changed

+263
-6
lines changed

clients/google-api-services-netapp/v1beta1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-netapp</artifactId>
25-
<version>v1beta1-rev20250616-2.0.0</version>
25+
<version>v1beta1-rev20250630-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-netapp:v1beta1-rev20250616-2.0.0'
38+
implementation 'com.google.apis:google-api-services-netapp:v1beta1-rev20250630-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-netapp/v1beta1/2.0.0/com/google/api/services/netapp/v1beta1/NetAppFiles.java

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7576,6 +7576,146 @@ public Patch set(String parameterName, Object value) {
75767576
return (Patch) super.set(parameterName, value);
75777577
}
75787578
}
7579+
/**
7580+
* Restore files from a backup to a volume.
7581+
*
7582+
* Create a request for the method "volumes.restore".
7583+
*
7584+
* This request holds the parameters needed by the netapp server. After setting any optional
7585+
* parameters, call the {@link Restore#execute()} method to invoke the remote operation.
7586+
*
7587+
* @param name Required. The volume resource name, in the format
7588+
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7589+
* @param content the {@link com.google.api.services.netapp.v1beta1.model.RestoreBackupFilesRequest}
7590+
* @return the request
7591+
*/
7592+
public Restore restore(java.lang.String name, com.google.api.services.netapp.v1beta1.model.RestoreBackupFilesRequest content) throws java.io.IOException {
7593+
Restore result = new Restore(name, content);
7594+
initialize(result);
7595+
return result;
7596+
}
7597+
7598+
public class Restore extends NetAppFilesRequest<com.google.api.services.netapp.v1beta1.model.Operation> {
7599+
7600+
private static final String REST_PATH = "v1beta1/{+name}:restore";
7601+
7602+
private final java.util.regex.Pattern NAME_PATTERN =
7603+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/volumes/[^/]+$");
7604+
7605+
/**
7606+
* Restore files from a backup to a volume.
7607+
*
7608+
* Create a request for the method "volumes.restore".
7609+
*
7610+
* This request holds the parameters needed by the the netapp server. After setting any optional
7611+
* parameters, call the {@link Restore#execute()} method to invoke the remote operation. <p>
7612+
* {@link
7613+
* Restore#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
7614+
* be called to initialize this instance immediately after invoking the constructor. </p>
7615+
*
7616+
* @param name Required. The volume resource name, in the format
7617+
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7618+
* @param content the {@link com.google.api.services.netapp.v1beta1.model.RestoreBackupFilesRequest}
7619+
* @since 1.13
7620+
*/
7621+
protected Restore(java.lang.String name, com.google.api.services.netapp.v1beta1.model.RestoreBackupFilesRequest content) {
7622+
super(NetAppFiles.this, "POST", REST_PATH, content, com.google.api.services.netapp.v1beta1.model.Operation.class);
7623+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
7624+
if (!getSuppressPatternChecks()) {
7625+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7626+
"Parameter name must conform to the pattern " +
7627+
"^projects/[^/]+/locations/[^/]+/volumes/[^/]+$");
7628+
}
7629+
}
7630+
7631+
@Override
7632+
public Restore set$Xgafv(java.lang.String $Xgafv) {
7633+
return (Restore) super.set$Xgafv($Xgafv);
7634+
}
7635+
7636+
@Override
7637+
public Restore setAccessToken(java.lang.String accessToken) {
7638+
return (Restore) super.setAccessToken(accessToken);
7639+
}
7640+
7641+
@Override
7642+
public Restore setAlt(java.lang.String alt) {
7643+
return (Restore) super.setAlt(alt);
7644+
}
7645+
7646+
@Override
7647+
public Restore setCallback(java.lang.String callback) {
7648+
return (Restore) super.setCallback(callback);
7649+
}
7650+
7651+
@Override
7652+
public Restore setFields(java.lang.String fields) {
7653+
return (Restore) super.setFields(fields);
7654+
}
7655+
7656+
@Override
7657+
public Restore setKey(java.lang.String key) {
7658+
return (Restore) super.setKey(key);
7659+
}
7660+
7661+
@Override
7662+
public Restore setOauthToken(java.lang.String oauthToken) {
7663+
return (Restore) super.setOauthToken(oauthToken);
7664+
}
7665+
7666+
@Override
7667+
public Restore setPrettyPrint(java.lang.Boolean prettyPrint) {
7668+
return (Restore) super.setPrettyPrint(prettyPrint);
7669+
}
7670+
7671+
@Override
7672+
public Restore setQuotaUser(java.lang.String quotaUser) {
7673+
return (Restore) super.setQuotaUser(quotaUser);
7674+
}
7675+
7676+
@Override
7677+
public Restore setUploadType(java.lang.String uploadType) {
7678+
return (Restore) super.setUploadType(uploadType);
7679+
}
7680+
7681+
@Override
7682+
public Restore setUploadProtocol(java.lang.String uploadProtocol) {
7683+
return (Restore) super.setUploadProtocol(uploadProtocol);
7684+
}
7685+
7686+
/**
7687+
* Required. The volume resource name, in the format
7688+
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7689+
*/
7690+
@com.google.api.client.util.Key
7691+
private java.lang.String name;
7692+
7693+
/** Required. The volume resource name, in the format
7694+
`projects/{project_id}/locations/{location}/volumes/{volume_id}`
7695+
*/
7696+
public java.lang.String getName() {
7697+
return name;
7698+
}
7699+
7700+
/**
7701+
* Required. The volume resource name, in the format
7702+
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7703+
*/
7704+
public Restore setName(java.lang.String name) {
7705+
if (!getSuppressPatternChecks()) {
7706+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7707+
"Parameter name must conform to the pattern " +
7708+
"^projects/[^/]+/locations/[^/]+/volumes/[^/]+$");
7709+
}
7710+
this.name = name;
7711+
return this;
7712+
}
7713+
7714+
@Override
7715+
public Restore set(String parameterName, Object value) {
7716+
return (Restore) super.set(parameterName, value);
7717+
}
7718+
}
75797719
/**
75807720
* Revert an existing volume to a specified snapshot. Warning! This operation will permanently
75817721
* revert all changes made after the snapshot was created.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.netapp.v1beta1.model;
18+
19+
/**
20+
* RestoreBackupFilesRequest restores files from a backup to a volume.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the NetApp API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class RestoreBackupFilesRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The backup resource name, in the format
34+
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String backup;
39+
40+
/**
41+
* Required. List of files to be restored in the form of their absolute path as in source volume.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<java.lang.String> fileList;
46+
47+
/**
48+
* Required. Absolute directory path in the destination volume.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String restoreDestinationPath;
53+
54+
/**
55+
* Required. The backup resource name, in the format
56+
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.String getBackup() {
60+
return backup;
61+
}
62+
63+
/**
64+
* Required. The backup resource name, in the format
65+
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
66+
* @param backup backup or {@code null} for none
67+
*/
68+
public RestoreBackupFilesRequest setBackup(java.lang.String backup) {
69+
this.backup = backup;
70+
return this;
71+
}
72+
73+
/**
74+
* Required. List of files to be restored in the form of their absolute path as in source volume.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.util.List<java.lang.String> getFileList() {
78+
return fileList;
79+
}
80+
81+
/**
82+
* Required. List of files to be restored in the form of their absolute path as in source volume.
83+
* @param fileList fileList or {@code null} for none
84+
*/
85+
public RestoreBackupFilesRequest setFileList(java.util.List<java.lang.String> fileList) {
86+
this.fileList = fileList;
87+
return this;
88+
}
89+
90+
/**
91+
* Required. Absolute directory path in the destination volume.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.lang.String getRestoreDestinationPath() {
95+
return restoreDestinationPath;
96+
}
97+
98+
/**
99+
* Required. Absolute directory path in the destination volume.
100+
* @param restoreDestinationPath restoreDestinationPath or {@code null} for none
101+
*/
102+
public RestoreBackupFilesRequest setRestoreDestinationPath(java.lang.String restoreDestinationPath) {
103+
this.restoreDestinationPath = restoreDestinationPath;
104+
return this;
105+
}
106+
107+
@Override
108+
public RestoreBackupFilesRequest set(String fieldName, Object value) {
109+
return (RestoreBackupFilesRequest) super.set(fieldName, value);
110+
}
111+
112+
@Override
113+
public RestoreBackupFilesRequest clone() {
114+
return (RestoreBackupFilesRequest) super.clone();
115+
}
116+
117+
}

clients/google-api-services-netapp/v1beta1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-netapp</artifactId>
11-
<version>v1beta1-rev20250616-2.0.0</version>
12-
<name>NetApp API v1beta1-rev20250616-2.0.0</name>
11+
<version>v1beta1-rev20250630-2.0.0</version>
12+
<name>NetApp API v1beta1-rev20250630-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-netapp/v1beta1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-netapp</artifactId>
25-
<version>v1beta1-rev20250616-2.0.0</version>
25+
<version>v1beta1-rev20250630-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-netapp:v1beta1-rev20250616-2.0.0'
38+
implementation 'com.google.apis:google-api-services-netapp:v1beta1-rev20250630-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)