Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-storage/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-storage</artifactId>
<version>v1-rev20251118-2.0.0</version>
<version>v1-rev20260204-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-storage:v1-rev20251118-2.0.0'
implementation 'com.google.apis:google-api-services-storage:v1-rev20260204-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class Storage extends com.google.api.client.googleapis.services.json.Abst
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </li>
* </ul>
* @param jsonFactory JSON factory, which may be:
Expand Down Expand Up @@ -5307,6 +5307,158 @@ public Delete set(String parameterName, Object value) {
return (Delete) super.set(parameterName, value);
}
}
/**
* Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.
*
* Create a request for the method "folders.deleteRecursive".
*
* This request holds the parameters needed by the storage server. After setting any optional
* parameters, call the {@link DeleteRecursive#execute()} method to invoke the remote operation.
*
* @param bucket Name of the bucket in which the folder resides.
* @param folder Name of a folder.
* @return the request
*/
public DeleteRecursive deleteRecursive(java.lang.String bucket, java.lang.String folder) throws java.io.IOException {
DeleteRecursive result = new DeleteRecursive(bucket, folder);
initialize(result);
return result;
}

public class DeleteRecursive extends StorageRequest<com.google.api.services.storage.model.GoogleLongrunningOperation> {

private static final String REST_PATH = "b/{bucket}/folders/{folder}/deleteRecursive";

/**
* Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.
*
* Create a request for the method "folders.deleteRecursive".
*
* This request holds the parameters needed by the the storage server. After setting any optional
* parameters, call the {@link DeleteRecursive#execute()} method to invoke the remote operation.
* <p> {@link DeleteRecursive#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
* lientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. </p>
*
* @param bucket Name of the bucket in which the folder resides.
* @param folder Name of a folder.
* @since 1.13
*/
protected DeleteRecursive(java.lang.String bucket, java.lang.String folder) {
super(Storage.this, "POST", REST_PATH, null, com.google.api.services.storage.model.GoogleLongrunningOperation.class);
this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified.");
}

@Override
public DeleteRecursive setAlt(java.lang.String alt) {
return (DeleteRecursive) super.setAlt(alt);
}

@Override
public DeleteRecursive setFields(java.lang.String fields) {
return (DeleteRecursive) super.setFields(fields);
}

@Override
public DeleteRecursive setKey(java.lang.String key) {
return (DeleteRecursive) super.setKey(key);
}

@Override
public DeleteRecursive setOauthToken(java.lang.String oauthToken) {
return (DeleteRecursive) super.setOauthToken(oauthToken);
}

@Override
public DeleteRecursive setPrettyPrint(java.lang.Boolean prettyPrint) {
return (DeleteRecursive) super.setPrettyPrint(prettyPrint);
}

@Override
public DeleteRecursive setQuotaUser(java.lang.String quotaUser) {
return (DeleteRecursive) super.setQuotaUser(quotaUser);
}

@Override
public DeleteRecursive setUploadType(java.lang.String uploadType) {
return (DeleteRecursive) super.setUploadType(uploadType);
}

@Override
public DeleteRecursive setUserIp(java.lang.String userIp) {
return (DeleteRecursive) super.setUserIp(userIp);
}

/** Name of the bucket in which the folder resides. */
@com.google.api.client.util.Key
private java.lang.String bucket;

/** Name of the bucket in which the folder resides.
*/
public java.lang.String getBucket() {
return bucket;
}

/** Name of the bucket in which the folder resides. */
public DeleteRecursive setBucket(java.lang.String bucket) {
this.bucket = bucket;
return this;
}

/** Name of a folder. */
@com.google.api.client.util.Key
private java.lang.String folder;

/** Name of a folder.
*/
public java.lang.String getFolder() {
return folder;
}

/** Name of a folder. */
public DeleteRecursive setFolder(java.lang.String folder) {
this.folder = folder;
return this;
}

/** If set, only deletes the folder if its metageneration matches this value. */
@com.google.api.client.util.Key
private java.lang.Long ifMetagenerationMatch;

/** If set, only deletes the folder if its metageneration matches this value.
*/
public java.lang.Long getIfMetagenerationMatch() {
return ifMetagenerationMatch;
}

/** If set, only deletes the folder if its metageneration matches this value. */
public DeleteRecursive setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch) {
this.ifMetagenerationMatch = ifMetagenerationMatch;
return this;
}

/** If set, only deletes the folder if its metageneration does not match this value. */
@com.google.api.client.util.Key
private java.lang.Long ifMetagenerationNotMatch;

/** If set, only deletes the folder if its metageneration does not match this value.
*/
public java.lang.Long getIfMetagenerationNotMatch() {
return ifMetagenerationNotMatch;
}

/** If set, only deletes the folder if its metageneration does not match this value. */
public DeleteRecursive setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch) {
this.ifMetagenerationNotMatch = ifMetagenerationNotMatch;
return this;
}

@Override
public DeleteRecursive set(String parameterName, Object value) {
return (DeleteRecursive) super.set(parameterName, value);
}
}
/**
* Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace
* enabled.
Expand Down Expand Up @@ -9179,6 +9331,29 @@ public Compose setDestinationPredefinedAcl(java.lang.String destinationPredefine
return this;
}

/**
* Specifies which groups of Object Contexts from the source object(s) should be dropped from
* the destination object.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> dropContextGroups;

/** Specifies which groups of Object Contexts from the source object(s) should be dropped from the
destination object.
*/
public java.util.List<java.lang.String> getDropContextGroups() {
return dropContextGroups;
}

/**
* Specifies which groups of Object Contexts from the source object(s) should be dropped from
* the destination object.
*/
public Compose setDropContextGroups(java.util.List<java.lang.String> dropContextGroups) {
this.dropContextGroups = dropContextGroups;
return this;
}

/**
* Makes the operation conditional on whether the object's current generation matches the
* given value. Setting to 0 makes the operation succeed only if there are no live versions of
Expand Down Expand Up @@ -12716,6 +12891,29 @@ public Rewrite setDestinationPredefinedAcl(java.lang.String destinationPredefine
return this;
}

/**
* Specifies which groups of Object Contexts from the source object should be dropped from the
* destination object.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> dropContextGroups;

/** Specifies which groups of Object Contexts from the source object should be dropped from the
destination object.
*/
public java.util.List<java.lang.String> getDropContextGroups() {
return dropContextGroups;
}

/**
* Specifies which groups of Object Contexts from the source object should be dropped from the
* destination object.
*/
public Rewrite setDropContextGroups(java.util.List<java.lang.String> dropContextGroups) {
this.dropContextGroups = dropContextGroups;
return this;
}

/**
* Makes the operation conditional on whether the object's current generation matches the
* given value. Setting to 0 makes the operation succeed only if there are no live versions of
Expand Down Expand Up @@ -15636,8 +15834,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* </li>
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </ul>
* @param jsonFactory JSON factory, which may be:
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public final class RelocateBucketRequest extends com.google.api.client.json.Gene
@com.google.api.client.util.Key
private DestinationCustomPlacementConfig destinationCustomPlacementConfig;

/**
* Resource name of a Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-
* kr/cryptoKeys/my-key. If set, is used to encrypt all objects in the destination bucket.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String destinationKmsKeyName;

/**
* The new location the bucket will be relocated to.
* The value may be {@code null}.
Expand Down Expand Up @@ -68,6 +76,25 @@ public RelocateBucketRequest setDestinationCustomPlacementConfig(DestinationCust
return this;
}

/**
* Resource name of a Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-
* kr/cryptoKeys/my-key. If set, is used to encrypt all objects in the destination bucket.
* @return value or {@code null} for none
*/
public java.lang.String getDestinationKmsKeyName() {
return destinationKmsKeyName;
}

/**
* Resource name of a Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-
* kr/cryptoKeys/my-key. If set, is used to encrypt all objects in the destination bucket.
* @param destinationKmsKeyName destinationKmsKeyName or {@code null} for none
*/
public RelocateBucketRequest setDestinationKmsKeyName(java.lang.String destinationKmsKeyName) {
this.destinationKmsKeyName = destinationKmsKeyName;
return this;
}

/**
* The new location the bucket will be relocated to.
* @return value or {@code null} for none
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-storage/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-storage</artifactId>
<version>v1-rev20251118-2.0.0</version>
<name>Cloud Storage JSON API v1-rev20251118-2.0.0</name>
<version>v1-rev20260204-2.0.0</version>
<name>Cloud Storage JSON API v1-rev20260204-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-storage/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-storage</artifactId>
<version>v1-rev20251118-2.0.0</version>
<version>v1-rev20260204-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-storage:v1-rev20251118-2.0.0'
implementation 'com.google.apis:google-api-services-storage:v1-rev20260204-2.0.0'
}
```

Expand Down