Class ObjectStorageAccountServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
-
- org.openstack4j.openstack.storage.object.internal.ObjectStorageAccountServiceImpl
-
- All Implemented Interfaces:
ObjectStorageAccountService,RestService
public class ObjectStorageAccountServiceImpl extends BaseObjectStorageService implements ObjectStorageAccountService
The Object Storage Account based services- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ObjectStorageAccountServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeleteMetadata(Map<String,String> metadata)Deletes theSwiftAccountmetadata.SwiftAccountget()Gets theSwiftAccount.booleanupdateMetadata(Map<String,String> metadata)Creates or updates theSwiftAccountmetadata.booleanupdateTemporaryUrlKey(String temporaryUrlKey)Replaces the temporary URL key for theSwiftAccount-
Methods inherited from class org.openstack4j.openstack.storage.object.internal.BaseObjectStorageService
isResponseSuccess, isResponseSuccess
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
get
public SwiftAccount get()
Gets theSwiftAccount.- Specified by:
getin interfaceObjectStorageAccountService- Returns:
- The
SwiftAccountobject.
-
updateMetadata
public boolean updateMetadata(Map<String,String> metadata)
Creates or updates theSwiftAccountmetadata.- Specified by:
updateMetadatain interfaceObjectStorageAccountService- Parameters:
metadata- the metadata to create or update.- Returns:
- true if the metadata was created or updated successfully, false if not
-
deleteMetadata
public boolean deleteMetadata(Map<String,String> metadata)
Deletes theSwiftAccountmetadata.- Specified by:
deleteMetadatain interfaceObjectStorageAccountService- Parameters:
metadata- the metadata to delete.- Returns:
- true if the metadata was deleted successfully, false if not
-
updateTemporaryUrlKey
public boolean updateTemporaryUrlKey(String temporaryUrlKey)
Replaces the temporary URL key for theSwiftAccount- Specified by:
updateTemporaryUrlKeyin interfaceObjectStorageAccountService- Parameters:
temporaryUrlKey- the temporary URL key- Returns:
- true if the update was successful
-
-