Skip to content

Commit

Permalink
add bucket/object tagging apis (minio#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurugana authored May 26, 2020
1 parent 411dfff commit 489a17d
Show file tree
Hide file tree
Showing 17 changed files with 1,194 additions and 26 deletions.
27 changes: 27 additions & 0 deletions api/src/main/java/io/minio/DeleteBucketTagsArgs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc.
*
* 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.
*/

package io.minio;

/** Argument class of MinioClient.deleteBucketTags(). */
public class DeleteBucketTagsArgs extends BucketArgs {
public static Builder builder() {
return new Builder();
}

/** Argument builder of {@link DeleteBucketTagsArgs}. */
public static final class Builder extends BucketArgs.Builder<Builder, DeleteBucketTagsArgs> {}
}
27 changes: 27 additions & 0 deletions api/src/main/java/io/minio/DeleteObjectTagsArgs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc.
*
* 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.
*/

package io.minio;

/** Argument class of MinioClient.deleteObjectTags(). */
public class DeleteObjectTagsArgs extends ObjectArgs {
public static Builder builder() {
return new Builder();
}

/** Argument builder of {@link DeleteObjectTagsArgs}. */
public static final class Builder extends ObjectArgs.Builder<Builder, DeleteObjectTagsArgs> {}
}
1 change: 1 addition & 0 deletions api/src/main/java/io/minio/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public enum ErrorCode {
NO_SUCH_OBJECT_LOCK_CONFIGURATION(
"NoSuchObjectLockConfiguration",
"The specified object does not have a ObjectLock configuration"),
NO_SUCH_TAG_SET("NoSuchTagSet", "The TagSet does not exist"),
OPERATION_ABORTED(
"OperationAborted",
"A conflicting conditional operation is currently in progress "
Expand Down
27 changes: 27 additions & 0 deletions api/src/main/java/io/minio/GetBucketTagsArgs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc.
*
* 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.
*/

package io.minio;

/** Argument class of MinioClient.getBucketTags(). */
public class GetBucketTagsArgs extends BucketArgs {
public static Builder builder() {
return new Builder();
}

/** Argument builder of {@link GetBucketTagsArgs}. */
public static final class Builder extends BucketArgs.Builder<Builder, GetBucketTagsArgs> {}
}
27 changes: 27 additions & 0 deletions api/src/main/java/io/minio/GetObjectTagsArgs.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc.
*
* 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.
*/

package io.minio;

/** Argument class of MinioClient.getObjectTags(). */
public class GetObjectTagsArgs extends ObjectArgs {
public static Builder builder() {
return new Builder();
}

/** Argument builder of {@link GetObjectTagsArgs}. */
public static final class Builder extends ObjectArgs.Builder<Builder, GetObjectTagsArgs> {}
}
Loading

0 comments on commit 489a17d

Please sign in to comment.