Skip to content

Commit 19a68aa

Browse files
1 parent 00e3a14 commit 19a68aa

File tree

12 files changed

+671
-15
lines changed

12 files changed

+671
-15
lines changed

clients/google-api-services-netapp/v1/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>v1-rev20250908-2.0.0</version>
25+
<version>v1-rev20250917-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:v1-rev20250908-2.0.0'
38+
implementation 'com.google.apis:google-api-services-netapp:v1-rev20250917-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/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.v1.model.RestoreBackupFilesRequest}
7590+
* @return the request
7591+
*/
7592+
public Restore restore(java.lang.String name, com.google.api.services.netapp.v1.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.v1.model.Operation> {
7599+
7600+
private static final String REST_PATH = "v1/{+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.v1.model.RestoreBackupFilesRequest}
7619+
* @since 1.13
7620+
*/
7621+
protected Restore(java.lang.String name, com.google.api.services.netapp.v1.model.RestoreBackupFilesRequest content) {
7622+
super(NetAppFiles.this, "POST", REST_PATH, content, com.google.api.services.netapp.v1.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.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.v1.model;
18+
19+
/**
20+
* Configuration of the cache 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 CacheConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache
34+
* volume.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean cifsChangeNotifyEnabled;
39+
40+
/**
41+
* Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache
42+
* volume.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.Boolean getCifsChangeNotifyEnabled() {
46+
return cifsChangeNotifyEnabled;
47+
}
48+
49+
/**
50+
* Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache
51+
* volume.
52+
* @param cifsChangeNotifyEnabled cifsChangeNotifyEnabled or {@code null} for none
53+
*/
54+
public CacheConfig setCifsChangeNotifyEnabled(java.lang.Boolean cifsChangeNotifyEnabled) {
55+
this.cifsChangeNotifyEnabled = cifsChangeNotifyEnabled;
56+
return this;
57+
}
58+
59+
@Override
60+
public CacheConfig set(String fieldName, Object value) {
61+
return (CacheConfig) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public CacheConfig clone() {
66+
return (CacheConfig) super.clone();
67+
}
68+
69+
}

0 commit comments

Comments
 (0)