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 9a5b8097c52..a3a495a0c42 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-rev20261006-2.9.2 + v1beta1-rev20261029-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-file:v1beta1-rev20261006-2.9.2' + implementation 'com.google.apis:google-api-services-file:v1beta1-rev20261029-2.9.2' } ``` diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/CloudFilestore.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/CloudFilestore.java index 39fdd2d60c2..57fc77e6a85 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/CloudFilestore.java +++ b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/CloudFilestore.java @@ -6024,6 +6024,31 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its + * volumes are deleted with it. Otherwise, the request fails if the volume pool has any + * volumes. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its volumes are + deleted with it. Otherwise, the request fails if the volume pool has any volumes. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its + * volumes are deleted with it. Otherwise, the request fails if the volume pool has any + * volumes. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -7017,312 +7042,6 @@ public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } - /** - * Creates a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used - * for testing and removed. - * - * Create a request for the method "volumes.directCreate". - * - * This request holds the parameters needed by the file server. After setting any optional - * parameters, call the {@link DirectCreate#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent volume pool path, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}`. - * @param content the {@link com.google.api.services.file.v1beta1.model.Volume} - * @return the request - */ - public DirectCreate directCreate(java.lang.String parent, com.google.api.services.file.v1beta1.model.Volume content) throws java.io.IOException { - DirectCreate result = new DirectCreate(parent, content); - initialize(result); - return result; - } - - public class DirectCreate extends CloudFilestoreRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/volumes:directCreate"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$"); - - /** - * Creates a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used - * for testing and removed. - * - * Create a request for the method "volumes.directCreate". - * - * This request holds the parameters needed by the the file server. After setting any optional - * parameters, call the {@link DirectCreate#execute()} method to invoke the remote operation.

- * {@link - * DirectCreate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent volume pool path, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}`. - * @param content the {@link com.google.api.services.file.v1beta1.model.Volume} - * @since 1.13 - */ - protected DirectCreate(java.lang.String parent, com.google.api.services.file.v1beta1.model.Volume content) { - super(CloudFilestore.this, "POST", REST_PATH, content, com.google.api.services.file.v1beta1.model.Volume.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$"); - } - } - - @Override - public DirectCreate set$Xgafv(java.lang.String $Xgafv) { - return (DirectCreate) super.set$Xgafv($Xgafv); - } - - @Override - public DirectCreate setAccessToken(java.lang.String accessToken) { - return (DirectCreate) super.setAccessToken(accessToken); - } - - @Override - public DirectCreate setAlt(java.lang.String alt) { - return (DirectCreate) super.setAlt(alt); - } - - @Override - public DirectCreate setCallback(java.lang.String callback) { - return (DirectCreate) super.setCallback(callback); - } - - @Override - public DirectCreate setFields(java.lang.String fields) { - return (DirectCreate) super.setFields(fields); - } - - @Override - public DirectCreate setKey(java.lang.String key) { - return (DirectCreate) super.setKey(key); - } - - @Override - public DirectCreate setOauthToken(java.lang.String oauthToken) { - return (DirectCreate) super.setOauthToken(oauthToken); - } - - @Override - public DirectCreate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectCreate) super.setPrettyPrint(prettyPrint); - } - - @Override - public DirectCreate setQuotaUser(java.lang.String quotaUser) { - return (DirectCreate) super.setQuotaUser(quotaUser); - } - - @Override - public DirectCreate setUploadType(java.lang.String uploadType) { - return (DirectCreate) super.setUploadType(uploadType); - } - - @Override - public DirectCreate setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectCreate) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The parent volume pool path, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent volume pool path, in the format - `projects/{project}/locations/{location}/volumePools/{volume_pool}`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent volume pool path, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}`. - */ - public DirectCreate setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The ID to use for the volume. The ID must be unique within the specified - * volume pool. - */ - @com.google.api.client.util.Key - private java.lang.String volumeId; - - /** Required. The ID to use for the volume. The ID must be unique within the specified volume pool. - */ - public java.lang.String getVolumeId() { - return volumeId; - } - - /** - * Required. The ID to use for the volume. The ID must be unique within the specified - * volume pool. - */ - public DirectCreate setVolumeId(java.lang.String volumeId) { - this.volumeId = volumeId; - return this; - } - - @Override - public DirectCreate set(String parameterName, Object value) { - return (DirectCreate) super.set(parameterName, value); - } - } - /** - * Deletes a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used - * for testing and removed. - * - * Create a request for the method "volumes.directDelete". - * - * This request holds the parameters needed by the file server. After setting any optional - * parameters, call the {@link DirectDelete#execute()} method to invoke the remote operation. - * - * @param name Required. The volume resource name, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`. - * @param content the {@link com.google.api.services.file.v1beta1.model.DeleteVolumeRequest} - * @return the request - */ - public DirectDelete directDelete(java.lang.String name, com.google.api.services.file.v1beta1.model.DeleteVolumeRequest content) throws java.io.IOException { - DirectDelete result = new DirectDelete(name, content); - initialize(result); - return result; - } - - public class DirectDelete extends CloudFilestoreRequest { - - private static final String REST_PATH = "v1beta1/{+name}:directDelete"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/volumePools/[^/]+/volumes/[^/]+$"); - - /** - * Deletes a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used - * for testing and removed. - * - * Create a request for the method "volumes.directDelete". - * - * This request holds the parameters needed by the the file server. After setting any optional - * parameters, call the {@link DirectDelete#execute()} method to invoke the remote operation.

- * {@link - * DirectDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The volume resource name, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`. - * @param content the {@link com.google.api.services.file.v1beta1.model.DeleteVolumeRequest} - * @since 1.13 - */ - protected DirectDelete(java.lang.String name, com.google.api.services.file.v1beta1.model.DeleteVolumeRequest content) { - super(CloudFilestore.this, "POST", REST_PATH, content, com.google.api.services.file.v1beta1.model.Empty.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/[^/]+/volumePools/[^/]+/volumes/[^/]+$"); - } - } - - @Override - public DirectDelete set$Xgafv(java.lang.String $Xgafv) { - return (DirectDelete) super.set$Xgafv($Xgafv); - } - - @Override - public DirectDelete setAccessToken(java.lang.String accessToken) { - return (DirectDelete) super.setAccessToken(accessToken); - } - - @Override - public DirectDelete setAlt(java.lang.String alt) { - return (DirectDelete) super.setAlt(alt); - } - - @Override - public DirectDelete setCallback(java.lang.String callback) { - return (DirectDelete) super.setCallback(callback); - } - - @Override - public DirectDelete setFields(java.lang.String fields) { - return (DirectDelete) super.setFields(fields); - } - - @Override - public DirectDelete setKey(java.lang.String key) { - return (DirectDelete) super.setKey(key); - } - - @Override - public DirectDelete setOauthToken(java.lang.String oauthToken) { - return (DirectDelete) super.setOauthToken(oauthToken); - } - - @Override - public DirectDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectDelete) super.setPrettyPrint(prettyPrint); - } - - @Override - public DirectDelete setQuotaUser(java.lang.String quotaUser) { - return (DirectDelete) super.setQuotaUser(quotaUser); - } - - @Override - public DirectDelete setUploadType(java.lang.String uploadType) { - return (DirectDelete) super.setUploadType(uploadType); - } - - @Override - public DirectDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectDelete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The volume resource name, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The volume resource name, in the format - `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The volume resource name, in the format - * `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`. - */ - public DirectDelete 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/[^/]+/volumePools/[^/]+/volumes/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public DirectDelete set(String parameterName, Object value) { - return (DirectDelete) super.set(parameterName, value); - } - } /** * Gets the details of a specific volume. * diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/DeleteVolumeRequest.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/DeleteVolumeRequest.java deleted file mode 100644 index 2e6b7252da0..00000000000 --- a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/DeleteVolumeRequest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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; - -/** - * DeleteVolumeRequest deletes 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 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 DeleteVolumeRequest extends com.google.api.client.json.GenericJson { - - @Override - public DeleteVolumeRequest set(String fieldName, Object value) { - return (DeleteVolumeRequest) super.set(fieldName, value); - } - - @Override - public DeleteVolumeRequest clone() { - return (DeleteVolumeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/Volume.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/Volume.java index c7838ac0a20..0b62a8db438 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/Volume.java +++ b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/Volume.java @@ -89,7 +89,9 @@ public final class Volume extends com.google.api.client.json.GenericJson { /** * Optional. The state of the volume. This field is caller-settable via `UpdateVolume` to * transition a volume from `HOT` to `COLD` (freezing the volume). In `CreateVolume`, this field - * is output-only and initialized to `HOT`. + * is output-only: the volume is created as `HOT` when `ip_acls` is non-empty. When `ip_acls` is + * empty, the volume may be created `WARM` with no `mount_point` until `ip_acls` are set with + * `UpdateVolume`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -221,7 +223,9 @@ public Volume setQuotaMib(java.lang.Long quotaMib) { /** * Optional. The state of the volume. This field is caller-settable via `UpdateVolume` to * transition a volume from `HOT` to `COLD` (freezing the volume). In `CreateVolume`, this field - * is output-only and initialized to `HOT`. + * is output-only: the volume is created as `HOT` when `ip_acls` is non-empty. When `ip_acls` is + * empty, the volume may be created `WARM` with no `mount_point` until `ip_acls` are set with + * `UpdateVolume`. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -231,7 +235,9 @@ public java.lang.String getState() { /** * Optional. The state of the volume. This field is caller-settable via `UpdateVolume` to * transition a volume from `HOT` to `COLD` (freezing the volume). In `CreateVolume`, this field - * is output-only and initialized to `HOT`. + * is output-only: the volume is created as `HOT` when `ip_acls` is non-empty. When `ip_acls` is + * empty, the volume may be created `WARM` with no `mount_point` until `ip_acls` are set with + * `UpdateVolume`. * @param state state or {@code null} for none */ public Volume setState(java.lang.String state) { diff --git a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/VolumePool.java b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/VolumePool.java index 57c506e3e73..5b476ede85b 100644 --- a/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/VolumePool.java +++ b/clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/model/VolumePool.java @@ -43,6 +43,14 @@ public final class VolumePool extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer activeVolumeIops; + /** + * Optional. How long a volume stays `WARM` after it is deactivated before it is automatically + * frozen (moved to `COLD`). Must be positive if set. Default: 7 days. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String autoFreezeDelay; + /** * Output only. The time when the volume pool was created. * The value may be {@code null}. @@ -136,6 +144,25 @@ public VolumePool setActiveVolumeIops(java.lang.Integer activeVolumeIops) { return this; } + /** + * Optional. How long a volume stays `WARM` after it is deactivated before it is automatically + * frozen (moved to `COLD`). Must be positive if set. Default: 7 days. + * @return value or {@code null} for none + */ + public String getAutoFreezeDelay() { + return autoFreezeDelay; + } + + /** + * Optional. How long a volume stays `WARM` after it is deactivated before it is automatically + * frozen (moved to `COLD`). Must be positive if set. Default: 7 days. + * @param autoFreezeDelay autoFreezeDelay or {@code null} for none + */ + public VolumePool setAutoFreezeDelay(String autoFreezeDelay) { + this.autoFreezeDelay = autoFreezeDelay; + return this; + } + /** * Output only. The time when the volume pool was created. * @return value or {@code null} for none 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 56ec4c1f8b8..552c4c27017 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-rev20261006-2.9.2 - Cloud Filestore API v1beta1-rev20261006-2.9.2 + v1beta1-rev20261029-2.9.2 + Cloud Filestore API v1beta1-rev20261029-2.9.2 jar 2011 diff --git a/clients/google-api-services-file/v1beta1/README.md b/clients/google-api-services-file/v1beta1/README.md index 9a5b8097c52..a3a495a0c42 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-rev20261006-2.9.2 + v1beta1-rev20261029-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-file:v1beta1-rev20261006-2.9.2' + implementation 'com.google.apis:google-api-services-file:v1beta1-rev20261029-2.9.2' } ```