public class DeleteServerMetadataRequest extends AbstractOpenstackRequest<Void>
Server's metadata.| Constructor and Description |
|---|
DeleteServerMetadataRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String serverId,
List<String> metadataKeysToDelete)
Constructs a
DeleteServerMetadataRequest. |
| Modifier and Type | Method and Description |
|---|---|
Void |
doRequest(org.openstack4j.api.OSClient api)
Carries out the request and returns the response.
|
call, getApiAccessConfig, getClientFactorypublic DeleteServerMetadataRequest(com.elastisys.scale.commons.openstack.OSClientFactory clientFactory,
String serverId,
List<String> metadataKeysToDelete)
DeleteServerMetadataRequest.clientFactory - OpenStack API client factory.serverId - The server whose metadata is to be updated.metadataKeysToDelete - Meta data tags to be removed from the server.public Void doRequest(org.openstack4j.api.OSClient api) throws NotFoundException, org.openstack4j.api.exceptions.ResponseException
AbstractOpenstackRequestdoRequest in class AbstractOpenstackRequest<Void>api - An authenticated OpenStack API client that is instructed to
operate against the configured region.org.openstack4j.api.exceptions.ResponseException - if the request failed.NotFoundExceptionCopyright © 2011–2017 Elastisys. All rights reserved.