org.openstack4j.api.storage.ObjectStorageAccountService Maven / Gradle / Ivy
package org.openstack4j.api.storage;
import java.util.Map;
import org.openstack4j.common.RestService;
import org.openstack4j.model.storage.object.SwiftAccount;
/**
* The Object Storage Account based services
*
* @author Jeremy Unruh
*/
public interface ObjectStorageAccountService extends RestService {
/**
* Gets the {@link SwiftAccount}.
*
* @return The {@link SwiftAccount} object.
*/
SwiftAccount get();
/**
* Creates or updates the {@link SwiftAccount} metadata.
*
* @param metadata the metadata to create or update.
* @return true if the metadata was created or updated successfully,
* false if not
*/
boolean updateMetadata(Map metadata);
/**
* Deletes the {@link SwiftAccount} metadata.
*
* @param metadata the metadata to delete.
* @return true if the metadata was deleted successfully,
* false if not
*/
boolean deleteMetadata(Map metadata);
/**
* Replaces the temporary URL key for the {@link SwiftAccount}
*
* @param temporaryUrlKey the temporary URL key
* @return true if the update was successful
*/
boolean updateTemporaryUrlKey(String temporaryUrlKey);
}