{@link GetSplitStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
+ * + * @param name Required. The full name of the volume. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @since 1.13 + */ + protected GetSplitStatus(java.lang.String name) { + super(NetAppFiles.this, "GET", REST_PATH, null, com.google.api.services.netapp.v1.model.SplitStatus.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetSplitStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetSplitStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetSplitStatus setAccessToken(java.lang.String accessToken) { + return (GetSplitStatus) super.setAccessToken(accessToken); + } + + @Override + public GetSplitStatus setAlt(java.lang.String alt) { + return (GetSplitStatus) super.setAlt(alt); + } + + @Override + public GetSplitStatus setCallback(java.lang.String callback) { + return (GetSplitStatus) super.setCallback(callback); + } + + @Override + public GetSplitStatus setFields(java.lang.String fields) { + return (GetSplitStatus) super.setFields(fields); + } + + @Override + public GetSplitStatus setKey(java.lang.String key) { + return (GetSplitStatus) super.setKey(key); + } + + @Override + public GetSplitStatus setOauthToken(java.lang.String oauthToken) { + return (GetSplitStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetSplitStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetSplitStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetSplitStatus setQuotaUser(java.lang.String quotaUser) { + return (GetSplitStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetSplitStatus setUploadType(java.lang.String uploadType) { + return (GetSplitStatus) super.setUploadType(uploadType); + } + + @Override + public GetSplitStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetSplitStatus) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The full name of the volume. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The full name of the volume. Format: + projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The full name of the volume. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + public GetSplitStatus setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GetSplitStatus set(String parameterName, Object value) { + return (GetSplitStatus) super.set(parameterName, value); + } + } /** * Lists Volumes in a given project. * @@ -10042,6 +10194,150 @@ public Revert set(String parameterName, Object value) { return (Revert) super.set(parameterName, value); } } + /** + * Splits a clone volume from its source volume. This operation will only work for volumes which + * have clone_details set(clones). For volumes that are not clones, this operation will return an + * error. + * + * Create a request for the method "volumes.startSplit". + * + * This request holds the parameters needed by the netapp server. After setting any optional + * parameters, call the {@link StartSplit#execute()} method to invoke the remote operation. + * + * @param name Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @param content the {@link com.google.api.services.netapp.v1.model.StartSplitRequest} + * @return the request + */ + public StartSplit startSplit(java.lang.String name, com.google.api.services.netapp.v1.model.StartSplitRequest content) throws java.io.IOException { + StartSplit result = new StartSplit(name, content); + initialize(result); + return result; + } + + public class StartSplit extends NetAppFilesRequest+ * {@link + * StartSplit#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + * @param content the {@link com.google.api.services.netapp.v1.model.StartSplitRequest} + * @since 1.13 + */ + protected StartSplit(java.lang.String name, com.google.api.services.netapp.v1.model.StartSplitRequest content) { + super(NetAppFiles.this, "POST", REST_PATH, content, com.google.api.services.netapp.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$"); + } + } + + @Override + public StartSplit set$Xgafv(java.lang.String $Xgafv) { + return (StartSplit) super.set$Xgafv($Xgafv); + } + + @Override + public StartSplit setAccessToken(java.lang.String accessToken) { + return (StartSplit) super.setAccessToken(accessToken); + } + + @Override + public StartSplit setAlt(java.lang.String alt) { + return (StartSplit) super.setAlt(alt); + } + + @Override + public StartSplit setCallback(java.lang.String callback) { + return (StartSplit) super.setCallback(callback); + } + + @Override + public StartSplit setFields(java.lang.String fields) { + return (StartSplit) super.setFields(fields); + } + + @Override + public StartSplit setKey(java.lang.String key) { + return (StartSplit) super.setKey(key); + } + + @Override + public StartSplit setOauthToken(java.lang.String oauthToken) { + return (StartSplit) super.setOauthToken(oauthToken); + } + + @Override + public StartSplit setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartSplit) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartSplit setQuotaUser(java.lang.String quotaUser) { + return (StartSplit) super.setQuotaUser(quotaUser); + } + + @Override + public StartSplit setUploadType(java.lang.String uploadType) { + return (StartSplit) super.setUploadType(uploadType); + } + + @Override + public StartSplit setUploadProtocol(java.lang.String uploadProtocol) { + return (StartSplit) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The full name of the clone volume to be split from its source. Format: + projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The full name of the clone volume to be split from its source. Format: + * projects/{project_number}/locations/{location}/volumes/{volume_id} + */ + public StartSplit setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public StartSplit set(String parameterName, Object value) { + return (StartSplit) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the QuotaRules collection. diff --git a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/BackupVault.java b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/BackupVault.java index eff6e2de362..7b4b44cb17c 100644 --- a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/BackupVault.java +++ b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/BackupVault.java @@ -121,7 +121,7 @@ public final class BackupVault extends com.google.api.client.json.GenericJson { private java.lang.String sourceBackupVault; /** - * Output only. Region in which the backup vault is created. Format: + * Optional. Region in which the backup vault is created. Format: * `projects/{project_id}/locations/{location}` * The value may be {@code null}. */ @@ -354,7 +354,7 @@ public BackupVault setSourceBackupVault(java.lang.String sourceBackupVault) { } /** - * Output only. Region in which the backup vault is created. Format: + * Optional. Region in which the backup vault is created. Format: * `projects/{project_id}/locations/{location}` * @return value or {@code null} for none */ @@ -363,7 +363,7 @@ public java.lang.String getSourceRegion() { } /** - * Output only. Region in which the backup vault is created. Format: + * Optional. Region in which the backup vault is created. Format: * `projects/{project_id}/locations/{location}` * @param sourceRegion sourceRegion or {@code null} for none */ diff --git a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/CloneDetails.java b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/CloneDetails.java index 6aa01302d15..7fcbd2c6700 100644 --- a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/CloneDetails.java +++ b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/CloneDetails.java @@ -53,6 +53,13 @@ public final class CloneDetails extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String sourceVolume; + /** + * Output only. The current state of the clone split operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String splitState; + /** * Output only. Shared space in GiB. Determined at volume creation time based on size of source * snapshot. @@ -110,6 +117,23 @@ public CloneDetails setSourceVolume(java.lang.String sourceVolume) { return this; } + /** + * Output only. The current state of the clone split operation. + * @return value or {@code null} for none + */ + public java.lang.String getSplitState() { + return splitState; + } + + /** + * Output only. The current state of the clone split operation. + * @param splitState splitState or {@code null} for none + */ + public CloneDetails setSplitState(java.lang.String splitState) { + this.splitState = splitState; + return this; + } + @Override public CloneDetails set(String fieldName, Object value) { return (CloneDetails) super.set(fieldName, value); diff --git a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/SplitStatus.java b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/SplitStatus.java new file mode 100644 index 00000000000..e35acb19e4a --- /dev/null +++ b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/SplitStatus.java @@ -0,0 +1,120 @@ +/* + * 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.netapp.v1.model; + +/** + * Message for SplitStatus. + * + *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 NetApp 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 SplitStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The estimated progress percentage of the split operation (0-100). This is + * meaningful primarily when split_state is IN_PROGRESS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer progressPercent; + + /** + * Output only. The current state of the clone split operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String splitState; + + /** + * Output only. Human-readable details about the current state. Mostly used for displaying error + * messages during split failure Examples: "Split in progress", "Error: insufficient capacity". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stateDetails; + + /** + * Output only. The estimated progress percentage of the split operation (0-100). This is + * meaningful primarily when split_state is IN_PROGRESS. + * @return value or {@code null} for none + */ + public java.lang.Integer getProgressPercent() { + return progressPercent; + } + + /** + * Output only. The estimated progress percentage of the split operation (0-100). This is + * meaningful primarily when split_state is IN_PROGRESS. + * @param progressPercent progressPercent or {@code null} for none + */ + public SplitStatus setProgressPercent(java.lang.Integer progressPercent) { + this.progressPercent = progressPercent; + return this; + } + + /** + * Output only. The current state of the clone split operation. + * @return value or {@code null} for none + */ + public java.lang.String getSplitState() { + return splitState; + } + + /** + * Output only. The current state of the clone split operation. + * @param splitState splitState or {@code null} for none + */ + public SplitStatus setSplitState(java.lang.String splitState) { + this.splitState = splitState; + return this; + } + + /** + * Output only. Human-readable details about the current state. Mostly used for displaying error + * messages during split failure Examples: "Split in progress", "Error: insufficient capacity". + * @return value or {@code null} for none + */ + public java.lang.String getStateDetails() { + return stateDetails; + } + + /** + * Output only. Human-readable details about the current state. Mostly used for displaying error + * messages during split failure Examples: "Split in progress", "Error: insufficient capacity". + * @param stateDetails stateDetails or {@code null} for none + */ + public SplitStatus setStateDetails(java.lang.String stateDetails) { + this.stateDetails = stateDetails; + return this; + } + + @Override + public SplitStatus set(String fieldName, Object value) { + return (SplitStatus) super.set(fieldName, value); + } + + @Override + public SplitStatus clone() { + return (SplitStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/StartSplitRequest.java b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/StartSplitRequest.java new file mode 100644 index 00000000000..1f2e2a9500c --- /dev/null +++ b/clients/google-api-services-netapp/v1/2.0.0/com/google/api/services/netapp/v1/model/StartSplitRequest.java @@ -0,0 +1,42 @@ +/* + * 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.netapp.v1.model; + +/** + * Request message for splitting a volume. + * + *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 NetApp 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 StartSplitRequest extends com.google.api.client.json.GenericJson { + + @Override + public StartSplitRequest set(String fieldName, Object value) { + return (StartSplitRequest) super.set(fieldName, value); + } + + @Override + public StartSplitRequest clone() { + return (StartSplitRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-netapp/v1/2.0.0/pom.xml b/clients/google-api-services-netapp/v1/2.0.0/pom.xml index 5b24097ca51..64f157e8466 100644 --- a/clients/google-api-services-netapp/v1/2.0.0/pom.xml +++ b/clients/google-api-services-netapp/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@