Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF 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 static javax.ws.rs.core.MediaType.APPLICATION_JSON;
 import static org.jclouds.openstack.swift.v1.reference.SwiftHeaders.ACCOUNT_TEMPORARY_URL_KEY;
 
 import java.util.Map;
 
 
 
Provides access to the OpenStack Object Storage (Swift) Account API features.

Account metadata prefixed with X-Account-Meta- will be converted appropriately using a binder/parser.

This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.

 
 public interface AccountApi {

   
 
    @Named("account:get")
    @HEAD
    @Path("/")
    Account get();

   
Creates or updates the org.jclouds.openstack.swift.v1.domain.Account metadata.

Parameters:
metadata the metadata to create or update.
Returns:
true if the metadata was successfully created or updated, false if not.
 
    @Named("account:updateMetadata")
    @POST
    @Path("/")
    boolean updateMetadata(@BinderParam(BindAccountMetadataToHeaders.classMap<StringStringmetadata);

   
Replaces the temporary URL key for the org.jclouds.openstack.swift.v1.domain.Account.

Parameters:
temporaryUrlKey the temporary URL key to update.
Returns:
true if the temporary URL key was successfully updated, false if not.
 
    @Named("account:updateTemporaryUrlKey")
    @POST
    @Path("/")
   boolean updateTemporaryUrlKey(@HeaderParam(String temporaryUrlKey);

   
Deletes metadata from the org.jclouds.openstack.swift.v1.domain.Account.

Parameters:
metadata the metadata to delete.
Returns:
true if the metadata was successfully deleted, false if not.
   @Named("account:deleteMetadata")
   @POST
   @Path("/")
New to GrepCode? Check out our FAQ X