Skip to content

Commit c160328

Browse files
1 parent 1cd7e2a commit c160328

7 files changed

Lines changed: 67 additions & 357 deletions

File tree

‎clients/google-api-services-file/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-file</artifactId>
25-
<version>v1beta1-rev20261006-2.9.2</version>
25+
<version>v1beta1-rev20261029-2.9.2</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-file:v1beta1-rev20261006-2.9.2'
38+
implementation 'com.google.apis:google-api-services-file:v1beta1-rev20261029-2.9.2'
3939
}
4040
```
4141

‎clients/google-api-services-file/v1beta1/2.0.0/com/google/api/services/file/v1beta1/CloudFilestore.java‎

Lines changed: 25 additions & 306 deletions
Original file line numberDiff line numberDiff line change
@@ -6024,6 +6024,31 @@ public Delete setName(java.lang.String name) {
60246024
return this;
60256025
}
60266026

6027+
/**
6028+
* Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its
6029+
* volumes are deleted with it. Otherwise, the request fails if the volume pool has any
6030+
* volumes.
6031+
*/
6032+
@com.google.api.client.util.Key
6033+
private java.lang.Boolean force;
6034+
6035+
/** Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its volumes are
6036+
deleted with it. Otherwise, the request fails if the volume pool has any volumes.
6037+
*/
6038+
public java.lang.Boolean getForce() {
6039+
return force;
6040+
}
6041+
6042+
/**
6043+
* Optional. If set to `true`, the volume pool is deleted even if it has volumes, and its
6044+
* volumes are deleted with it. Otherwise, the request fails if the volume pool has any
6045+
* volumes.
6046+
*/
6047+
public Delete setForce(java.lang.Boolean force) {
6048+
this.force = force;
6049+
return this;
6050+
}
6051+
60276052
@Override
60286053
public Delete set(String parameterName, Object value) {
60296054
return (Delete) super.set(parameterName, value);
@@ -7017,312 +7042,6 @@ public Delete set(String parameterName, Object value) {
70177042
return (Delete) super.set(parameterName, value);
70187043
}
70197044
}
7020-
/**
7021-
* Creates a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used
7022-
* for testing and removed.
7023-
*
7024-
* Create a request for the method "volumes.directCreate".
7025-
*
7026-
* This request holds the parameters needed by the file server. After setting any optional
7027-
* parameters, call the {@link DirectCreate#execute()} method to invoke the remote operation.
7028-
*
7029-
* @param parent Required. The parent volume pool path, in the format
7030-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}`.
7031-
* @param content the {@link com.google.api.services.file.v1beta1.model.Volume}
7032-
* @return the request
7033-
*/
7034-
public DirectCreate directCreate(java.lang.String parent, com.google.api.services.file.v1beta1.model.Volume content) throws java.io.IOException {
7035-
DirectCreate result = new DirectCreate(parent, content);
7036-
initialize(result);
7037-
return result;
7038-
}
7039-
7040-
public class DirectCreate extends CloudFilestoreRequest<com.google.api.services.file.v1beta1.model.Volume> {
7041-
7042-
private static final String REST_PATH = "v1beta1/{+parent}/volumes:directCreate";
7043-
7044-
private final java.util.regex.Pattern PARENT_PATTERN =
7045-
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$");
7046-
7047-
/**
7048-
* Creates a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used
7049-
* for testing and removed.
7050-
*
7051-
* Create a request for the method "volumes.directCreate".
7052-
*
7053-
* This request holds the parameters needed by the the file server. After setting any optional
7054-
* parameters, call the {@link DirectCreate#execute()} method to invoke the remote operation. <p>
7055-
* {@link
7056-
* DirectCreate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
7057-
* must be called to initialize this instance immediately after invoking the constructor. </p>
7058-
*
7059-
* @param parent Required. The parent volume pool path, in the format
7060-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}`.
7061-
* @param content the {@link com.google.api.services.file.v1beta1.model.Volume}
7062-
* @since 1.13
7063-
*/
7064-
protected DirectCreate(java.lang.String parent, com.google.api.services.file.v1beta1.model.Volume content) {
7065-
super(CloudFilestore.this, "POST", REST_PATH, content, com.google.api.services.file.v1beta1.model.Volume.class);
7066-
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
7067-
if (!getSuppressPatternChecks()) {
7068-
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
7069-
"Parameter parent must conform to the pattern " +
7070-
"^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$");
7071-
}
7072-
}
7073-
7074-
@Override
7075-
public DirectCreate set$Xgafv(java.lang.String $Xgafv) {
7076-
return (DirectCreate) super.set$Xgafv($Xgafv);
7077-
}
7078-
7079-
@Override
7080-
public DirectCreate setAccessToken(java.lang.String accessToken) {
7081-
return (DirectCreate) super.setAccessToken(accessToken);
7082-
}
7083-
7084-
@Override
7085-
public DirectCreate setAlt(java.lang.String alt) {
7086-
return (DirectCreate) super.setAlt(alt);
7087-
}
7088-
7089-
@Override
7090-
public DirectCreate setCallback(java.lang.String callback) {
7091-
return (DirectCreate) super.setCallback(callback);
7092-
}
7093-
7094-
@Override
7095-
public DirectCreate setFields(java.lang.String fields) {
7096-
return (DirectCreate) super.setFields(fields);
7097-
}
7098-
7099-
@Override
7100-
public DirectCreate setKey(java.lang.String key) {
7101-
return (DirectCreate) super.setKey(key);
7102-
}
7103-
7104-
@Override
7105-
public DirectCreate setOauthToken(java.lang.String oauthToken) {
7106-
return (DirectCreate) super.setOauthToken(oauthToken);
7107-
}
7108-
7109-
@Override
7110-
public DirectCreate setPrettyPrint(java.lang.Boolean prettyPrint) {
7111-
return (DirectCreate) super.setPrettyPrint(prettyPrint);
7112-
}
7113-
7114-
@Override
7115-
public DirectCreate setQuotaUser(java.lang.String quotaUser) {
7116-
return (DirectCreate) super.setQuotaUser(quotaUser);
7117-
}
7118-
7119-
@Override
7120-
public DirectCreate setUploadType(java.lang.String uploadType) {
7121-
return (DirectCreate) super.setUploadType(uploadType);
7122-
}
7123-
7124-
@Override
7125-
public DirectCreate setUploadProtocol(java.lang.String uploadProtocol) {
7126-
return (DirectCreate) super.setUploadProtocol(uploadProtocol);
7127-
}
7128-
7129-
/**
7130-
* Required. The parent volume pool path, in the format
7131-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}`.
7132-
*/
7133-
@com.google.api.client.util.Key
7134-
private java.lang.String parent;
7135-
7136-
/** Required. The parent volume pool path, in the format
7137-
`projects/{project}/locations/{location}/volumePools/{volume_pool}`.
7138-
*/
7139-
public java.lang.String getParent() {
7140-
return parent;
7141-
}
7142-
7143-
/**
7144-
* Required. The parent volume pool path, in the format
7145-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}`.
7146-
*/
7147-
public DirectCreate setParent(java.lang.String parent) {
7148-
if (!getSuppressPatternChecks()) {
7149-
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
7150-
"Parameter parent must conform to the pattern " +
7151-
"^projects/[^/]+/locations/[^/]+/volumePools/[^/]+$");
7152-
}
7153-
this.parent = parent;
7154-
return this;
7155-
}
7156-
7157-
/**
7158-
* Required. The ID to use for the volume. The ID must be unique within the specified
7159-
* volume pool.
7160-
*/
7161-
@com.google.api.client.util.Key
7162-
private java.lang.String volumeId;
7163-
7164-
/** Required. The ID to use for the volume. The ID must be unique within the specified volume pool.
7165-
*/
7166-
public java.lang.String getVolumeId() {
7167-
return volumeId;
7168-
}
7169-
7170-
/**
7171-
* Required. The ID to use for the volume. The ID must be unique within the specified
7172-
* volume pool.
7173-
*/
7174-
public DirectCreate setVolumeId(java.lang.String volumeId) {
7175-
this.volumeId = volumeId;
7176-
return this;
7177-
}
7178-
7179-
@Override
7180-
public DirectCreate set(String parameterName, Object value) {
7181-
return (DirectCreate) super.set(parameterName, value);
7182-
}
7183-
}
7184-
/**
7185-
* Deletes a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used
7186-
* for testing and removed.
7187-
*
7188-
* Create a request for the method "volumes.directDelete".
7189-
*
7190-
* This request holds the parameters needed by the file server. After setting any optional
7191-
* parameters, call the {@link DirectDelete#execute()} method to invoke the remote operation.
7192-
*
7193-
* @param name Required. The volume resource name, in the format
7194-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
7195-
* @param content the {@link com.google.api.services.file.v1beta1.model.DeleteVolumeRequest}
7196-
* @return the request
7197-
*/
7198-
public DirectDelete directDelete(java.lang.String name, com.google.api.services.file.v1beta1.model.DeleteVolumeRequest content) throws java.io.IOException {
7199-
DirectDelete result = new DirectDelete(name, content);
7200-
initialize(result);
7201-
return result;
7202-
}
7203-
7204-
public class DirectDelete extends CloudFilestoreRequest<com.google.api.services.file.v1beta1.model.Empty> {
7205-
7206-
private static final String REST_PATH = "v1beta1/{+name}:directDelete";
7207-
7208-
private final java.util.regex.Pattern NAME_PATTERN =
7209-
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/volumePools/[^/]+/volumes/[^/]+$");
7210-
7211-
/**
7212-
* Deletes a volume directly on the CLH, bypassing CCFE. This is a temporary PoC that will be used
7213-
* for testing and removed.
7214-
*
7215-
* Create a request for the method "volumes.directDelete".
7216-
*
7217-
* This request holds the parameters needed by the the file server. After setting any optional
7218-
* parameters, call the {@link DirectDelete#execute()} method to invoke the remote operation. <p>
7219-
* {@link
7220-
* DirectDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
7221-
* must be called to initialize this instance immediately after invoking the constructor. </p>
7222-
*
7223-
* @param name Required. The volume resource name, in the format
7224-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
7225-
* @param content the {@link com.google.api.services.file.v1beta1.model.DeleteVolumeRequest}
7226-
* @since 1.13
7227-
*/
7228-
protected DirectDelete(java.lang.String name, com.google.api.services.file.v1beta1.model.DeleteVolumeRequest content) {
7229-
super(CloudFilestore.this, "POST", REST_PATH, content, com.google.api.services.file.v1beta1.model.Empty.class);
7230-
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
7231-
if (!getSuppressPatternChecks()) {
7232-
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7233-
"Parameter name must conform to the pattern " +
7234-
"^projects/[^/]+/locations/[^/]+/volumePools/[^/]+/volumes/[^/]+$");
7235-
}
7236-
}
7237-
7238-
@Override
7239-
public DirectDelete set$Xgafv(java.lang.String $Xgafv) {
7240-
return (DirectDelete) super.set$Xgafv($Xgafv);
7241-
}
7242-
7243-
@Override
7244-
public DirectDelete setAccessToken(java.lang.String accessToken) {
7245-
return (DirectDelete) super.setAccessToken(accessToken);
7246-
}
7247-
7248-
@Override
7249-
public DirectDelete setAlt(java.lang.String alt) {
7250-
return (DirectDelete) super.setAlt(alt);
7251-
}
7252-
7253-
@Override
7254-
public DirectDelete setCallback(java.lang.String callback) {
7255-
return (DirectDelete) super.setCallback(callback);
7256-
}
7257-
7258-
@Override
7259-
public DirectDelete setFields(java.lang.String fields) {
7260-
return (DirectDelete) super.setFields(fields);
7261-
}
7262-
7263-
@Override
7264-
public DirectDelete setKey(java.lang.String key) {
7265-
return (DirectDelete) super.setKey(key);
7266-
}
7267-
7268-
@Override
7269-
public DirectDelete setOauthToken(java.lang.String oauthToken) {
7270-
return (DirectDelete) super.setOauthToken(oauthToken);
7271-
}
7272-
7273-
@Override
7274-
public DirectDelete setPrettyPrint(java.lang.Boolean prettyPrint) {
7275-
return (DirectDelete) super.setPrettyPrint(prettyPrint);
7276-
}
7277-
7278-
@Override
7279-
public DirectDelete setQuotaUser(java.lang.String quotaUser) {
7280-
return (DirectDelete) super.setQuotaUser(quotaUser);
7281-
}
7282-
7283-
@Override
7284-
public DirectDelete setUploadType(java.lang.String uploadType) {
7285-
return (DirectDelete) super.setUploadType(uploadType);
7286-
}
7287-
7288-
@Override
7289-
public DirectDelete setUploadProtocol(java.lang.String uploadProtocol) {
7290-
return (DirectDelete) super.setUploadProtocol(uploadProtocol);
7291-
}
7292-
7293-
/**
7294-
* Required. The volume resource name, in the format
7295-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
7296-
*/
7297-
@com.google.api.client.util.Key
7298-
private java.lang.String name;
7299-
7300-
/** Required. The volume resource name, in the format
7301-
`projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
7302-
*/
7303-
public java.lang.String getName() {
7304-
return name;
7305-
}
7306-
7307-
/**
7308-
* Required. The volume resource name, in the format
7309-
* `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
7310-
*/
7311-
public DirectDelete setName(java.lang.String name) {
7312-
if (!getSuppressPatternChecks()) {
7313-
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7314-
"Parameter name must conform to the pattern " +
7315-
"^projects/[^/]+/locations/[^/]+/volumePools/[^/]+/volumes/[^/]+$");
7316-
}
7317-
this.name = name;
7318-
return this;
7319-
}
7320-
7321-
@Override
7322-
public DirectDelete set(String parameterName, Object value) {
7323-
return (DirectDelete) super.set(parameterName, value);
7324-
}
7325-
}
73267045
/**
73277046
* Gets the details of a specific volume.
73287047
*

0 commit comments

Comments
 (0)