
org.jclouds.openstack.swift.v1.features.ContainerApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openstack-swift Show documentation
Show all versions of openstack-swift Show documentation
jclouds components to access an implementation of OpenStack Swift
The newest version!
/**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you 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 org.jclouds.openstack.swift.v1.features;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import org.jclouds.Fallbacks.EmptyFluentIterableOnNotFoundOr404;
import org.jclouds.openstack.keystone.v2_0.filters.AuthenticateRequest;
import org.jclouds.openstack.swift.v1.domain.Container;
import org.jclouds.openstack.swift.v1.options.ListContainersOptions;
import org.jclouds.rest.annotations.Fallback;
import org.jclouds.rest.annotations.QueryParams;
import org.jclouds.rest.annotations.RequestFilters;
import com.google.common.collect.FluentIterable;
/**
* Storage Container Services
*
* @author Adrian Cole
* @author Zack Shoylev
* @see api doc
*/
@RequestFilters(AuthenticateRequest.class)
public interface ContainerApi {
/**
* @see #list(ListContainersOptions)
*/
@GET
@Consumes(MediaType.APPLICATION_JSON)
@QueryParams(keys = "format", values = "json")
@Fallback(EmptyFluentIterableOnNotFoundOr404.class)
@Path("/")
FluentIterable extends Container> list();
/**
* retrieve a list of existing storage containers ordered by name. The sort order for the name is
* based on a binary comparison, a single built-in collating sequence that compares string data
* using SQLite's memcmp() function, regardless of text encoding.
*
* @param options
* @return a list of existing storage containers ordered by name.
*/
@GET
@Consumes(MediaType.APPLICATION_JSON)
@QueryParams(keys = "format", values = "json")
@Fallback(EmptyFluentIterableOnNotFoundOr404.class)
@Path("/")
FluentIterable extends Container> list(ListContainersOptions options);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy