| 1 | /** |
| 2 | * |
| 3 | * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com> |
| 4 | * |
| 5 | * ==================================================================== |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | * ==================================================================== |
| 18 | */ |
| 19 | package org.jclouds.blobstore.attr; |
| 20 | |
| 21 | /** |
| 22 | * Represents the capabilities of a BlobStore |
| 23 | * |
| 24 | * @author Adrian Cole |
| 25 | * |
| 26 | */ |
| 27 | public enum ContainerCapability { |
| 28 | |
| 29 | /** |
| 30 | * deletion of a container is recursive |
| 31 | */ |
| 32 | RECURSIVE_DELETE, |
| 33 | |
| 34 | /** |
| 35 | * There's a container that exists at the root of the service |
| 36 | */ |
| 37 | ROOTCONTAINER, |
| 38 | |
| 39 | /** |
| 40 | * Containers (and subcontainers) are created implicitly |
| 41 | */ |
| 42 | SKIP_CREATE_CONTAINER, |
| 43 | |
| 44 | /** |
| 45 | * containers can have key-value pairs associated with them |
| 46 | */ |
| 47 | METADATA, |
| 48 | |
| 49 | /** |
| 50 | * containers have an etag associated with them |
| 51 | */ |
| 52 | ETAG, |
| 53 | |
| 54 | /** |
| 55 | * containers have a system generated ID associated with them |
| 56 | */ |
| 57 | ID, |
| 58 | |
| 59 | /** |
| 60 | * container will have last modified date associated with them |
| 61 | */ |
| 62 | LAST_MODIFIED, |
| 63 | |
| 64 | |
| 65 | /** |
| 66 | * timestamps are precise in milliseconds (as opposed to seconds) |
| 67 | */ |
| 68 | MILLISECOND_PRECISION, |
| 69 | |
| 70 | /** |
| 71 | * container size in bytes is exposed by service listing |
| 72 | */ |
| 73 | SIZE, |
| 74 | |
| 75 | |
| 76 | /** |
| 77 | * possible to expose a container to anonymous access |
| 78 | */ |
| 79 | PUBLIC |
| 80 | |
| 81 | } |