@@ -103,7 +103,7 @@ public class Storage extends com.google.api.client.googleapis.services.json.Abst
103103 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
104104 * <li>Android: {@code newCompatibleTransport} from
105105 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
106- * <li>Java: {@link com.google.api.client.googleapis .javanet.GoogleNetHttpTransport#newTrustedTransport()}
106+ * <li>Java: {@code com.google.api.client.http .javanet.NetHttpTransport}</li>
107107 * </li>
108108 * </ul>
109109 * @param jsonFactory JSON factory, which may be:
@@ -5307,6 +5307,158 @@ public Delete set(String parameterName, Object value) {
53075307 return (Delete) super.set(parameterName, value);
53085308 }
53095309 }
5310+ /**
5311+ * Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.
5312+ *
5313+ * Create a request for the method "folders.deleteRecursive".
5314+ *
5315+ * This request holds the parameters needed by the storage server. After setting any optional
5316+ * parameters, call the {@link DeleteRecursive#execute()} method to invoke the remote operation.
5317+ *
5318+ * @param bucket Name of the bucket in which the folder resides.
5319+ * @param folder Name of a folder.
5320+ * @return the request
5321+ */
5322+ public DeleteRecursive deleteRecursive(java.lang.String bucket, java.lang.String folder) throws java.io.IOException {
5323+ DeleteRecursive result = new DeleteRecursive(bucket, folder);
5324+ initialize(result);
5325+ return result;
5326+ }
5327+
5328+ public class DeleteRecursive extends StorageRequest<com.google.api.services.storage.model.GoogleLongrunningOperation> {
5329+
5330+ private static final String REST_PATH = "b/{bucket}/folders/{folder}/deleteRecursive";
5331+
5332+ /**
5333+ * Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.
5334+ *
5335+ * Create a request for the method "folders.deleteRecursive".
5336+ *
5337+ * This request holds the parameters needed by the the storage server. After setting any optional
5338+ * parameters, call the {@link DeleteRecursive#execute()} method to invoke the remote operation.
5339+ * <p> {@link DeleteRecursive#initialize(com.google.api.client.googleapis.services.AbstractGoogleC
5340+ * lientRequest)} must be called to initialize this instance immediately after invoking the
5341+ * constructor. </p>
5342+ *
5343+ * @param bucket Name of the bucket in which the folder resides.
5344+ * @param folder Name of a folder.
5345+ * @since 1.13
5346+ */
5347+ protected DeleteRecursive(java.lang.String bucket, java.lang.String folder) {
5348+ super(Storage.this, "POST", REST_PATH, null, com.google.api.services.storage.model.GoogleLongrunningOperation.class);
5349+ this.bucket = com.google.api.client.util.Preconditions.checkNotNull(bucket, "Required parameter bucket must be specified.");
5350+ this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified.");
5351+ }
5352+
5353+ @Override
5354+ public DeleteRecursive setAlt(java.lang.String alt) {
5355+ return (DeleteRecursive) super.setAlt(alt);
5356+ }
5357+
5358+ @Override
5359+ public DeleteRecursive setFields(java.lang.String fields) {
5360+ return (DeleteRecursive) super.setFields(fields);
5361+ }
5362+
5363+ @Override
5364+ public DeleteRecursive setKey(java.lang.String key) {
5365+ return (DeleteRecursive) super.setKey(key);
5366+ }
5367+
5368+ @Override
5369+ public DeleteRecursive setOauthToken(java.lang.String oauthToken) {
5370+ return (DeleteRecursive) super.setOauthToken(oauthToken);
5371+ }
5372+
5373+ @Override
5374+ public DeleteRecursive setPrettyPrint(java.lang.Boolean prettyPrint) {
5375+ return (DeleteRecursive) super.setPrettyPrint(prettyPrint);
5376+ }
5377+
5378+ @Override
5379+ public DeleteRecursive setQuotaUser(java.lang.String quotaUser) {
5380+ return (DeleteRecursive) super.setQuotaUser(quotaUser);
5381+ }
5382+
5383+ @Override
5384+ public DeleteRecursive setUploadType(java.lang.String uploadType) {
5385+ return (DeleteRecursive) super.setUploadType(uploadType);
5386+ }
5387+
5388+ @Override
5389+ public DeleteRecursive setUserIp(java.lang.String userIp) {
5390+ return (DeleteRecursive) super.setUserIp(userIp);
5391+ }
5392+
5393+ /** Name of the bucket in which the folder resides. */
5394+ @com.google.api.client.util.Key
5395+ private java.lang.String bucket;
5396+
5397+ /** Name of the bucket in which the folder resides.
5398+ */
5399+ public java.lang.String getBucket() {
5400+ return bucket;
5401+ }
5402+
5403+ /** Name of the bucket in which the folder resides. */
5404+ public DeleteRecursive setBucket(java.lang.String bucket) {
5405+ this.bucket = bucket;
5406+ return this;
5407+ }
5408+
5409+ /** Name of a folder. */
5410+ @com.google.api.client.util.Key
5411+ private java.lang.String folder;
5412+
5413+ /** Name of a folder.
5414+ */
5415+ public java.lang.String getFolder() {
5416+ return folder;
5417+ }
5418+
5419+ /** Name of a folder. */
5420+ public DeleteRecursive setFolder(java.lang.String folder) {
5421+ this.folder = folder;
5422+ return this;
5423+ }
5424+
5425+ /** If set, only deletes the folder if its metageneration matches this value. */
5426+ @com.google.api.client.util.Key
5427+ private java.lang.Long ifMetagenerationMatch;
5428+
5429+ /** If set, only deletes the folder if its metageneration matches this value.
5430+ */
5431+ public java.lang.Long getIfMetagenerationMatch() {
5432+ return ifMetagenerationMatch;
5433+ }
5434+
5435+ /** If set, only deletes the folder if its metageneration matches this value. */
5436+ public DeleteRecursive setIfMetagenerationMatch(java.lang.Long ifMetagenerationMatch) {
5437+ this.ifMetagenerationMatch = ifMetagenerationMatch;
5438+ return this;
5439+ }
5440+
5441+ /** If set, only deletes the folder if its metageneration does not match this value. */
5442+ @com.google.api.client.util.Key
5443+ private java.lang.Long ifMetagenerationNotMatch;
5444+
5445+ /** If set, only deletes the folder if its metageneration does not match this value.
5446+ */
5447+ public java.lang.Long getIfMetagenerationNotMatch() {
5448+ return ifMetagenerationNotMatch;
5449+ }
5450+
5451+ /** If set, only deletes the folder if its metageneration does not match this value. */
5452+ public DeleteRecursive setIfMetagenerationNotMatch(java.lang.Long ifMetagenerationNotMatch) {
5453+ this.ifMetagenerationNotMatch = ifMetagenerationNotMatch;
5454+ return this;
5455+ }
5456+
5457+ @Override
5458+ public DeleteRecursive set(String parameterName, Object value) {
5459+ return (DeleteRecursive) super.set(parameterName, value);
5460+ }
5461+ }
53105462 /**
53115463 * Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace
53125464 * enabled.
@@ -9179,6 +9331,29 @@ public Compose setDestinationPredefinedAcl(java.lang.String destinationPredefine
91799331 return this;
91809332 }
91819333
9334+ /**
9335+ * Specifies which groups of Object Contexts from the source object(s) should be dropped from
9336+ * the destination object.
9337+ */
9338+ @com.google.api.client.util.Key
9339+ private java.util.List<java.lang.String> dropContextGroups;
9340+
9341+ /** Specifies which groups of Object Contexts from the source object(s) should be dropped from the
9342+ destination object.
9343+ */
9344+ public java.util.List<java.lang.String> getDropContextGroups() {
9345+ return dropContextGroups;
9346+ }
9347+
9348+ /**
9349+ * Specifies which groups of Object Contexts from the source object(s) should be dropped from
9350+ * the destination object.
9351+ */
9352+ public Compose setDropContextGroups(java.util.List<java.lang.String> dropContextGroups) {
9353+ this.dropContextGroups = dropContextGroups;
9354+ return this;
9355+ }
9356+
91829357 /**
91839358 * Makes the operation conditional on whether the object's current generation matches the
91849359 * given value. Setting to 0 makes the operation succeed only if there are no live versions of
@@ -12716,6 +12891,29 @@ public Rewrite setDestinationPredefinedAcl(java.lang.String destinationPredefine
1271612891 return this;
1271712892 }
1271812893
12894+ /**
12895+ * Specifies which groups of Object Contexts from the source object should be dropped from the
12896+ * destination object.
12897+ */
12898+ @com.google.api.client.util.Key
12899+ private java.util.List<java.lang.String> dropContextGroups;
12900+
12901+ /** Specifies which groups of Object Contexts from the source object should be dropped from the
12902+ destination object.
12903+ */
12904+ public java.util.List<java.lang.String> getDropContextGroups() {
12905+ return dropContextGroups;
12906+ }
12907+
12908+ /**
12909+ * Specifies which groups of Object Contexts from the source object should be dropped from the
12910+ * destination object.
12911+ */
12912+ public Rewrite setDropContextGroups(java.util.List<java.lang.String> dropContextGroups) {
12913+ this.dropContextGroups = dropContextGroups;
12914+ return this;
12915+ }
12916+
1271912917 /**
1272012918 * Makes the operation conditional on whether the object's current generation matches the
1272112919 * given value. Setting to 0 makes the operation succeed only if there are no live versions of
@@ -15636,8 +15834,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
1563615834 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
1563715835 * <li>Android: {@code newCompatibleTransport} from
1563815836 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
15639- * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
15640- * </li>
15837+ * <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
1564115838 * </ul>
1564215839 * @param jsonFactory JSON factory, which may be:
1564315840 * <ul>
0 commit comments