@@ -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.
0 commit comments