@Override public String toString() { return "KeyPairs [list=" + getList() + "]"; }
public void addNetworks(String id, String fixedIp) { NetworkForCreate net = new NetworkForCreate(); net.setId(id); net.setFixedIp(fixedIp); this.networks.add(net); }
public AttachVolume attachVolume(String serverId, String volumeId, String device) { VolumeAttachment volumeAttachment = new VolumeAttachment(); volumeAttachment.setVolumeId(volumeId); volumeAttachment.setDevice(device); return new AttachVolume(serverId, volumeAttachment); }
public ResizeAction resize(String serverId, String flavorId, String diskConfig) { Resize resize = new Resize(); resize.setFlavorRef(flavorId); resize.setDiskConfig(diskConfig); return new ResizeAction(serverId, resize); }
public ChangePasswordAction changePassword(String serverId, String adminPass) { ChangePassword changePassword = new ChangePassword(); changePassword.setAdminPass(adminPass); return new ChangePasswordAction(serverId, changePassword); }
public CreateRule createSecurityGroupRule( String parentSecurityGroupId,String sourceGroupId,String ipProtocol, Integer fromPort, Integer toPort) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, sourceGroupId,ipProtocol, fromPort, toPort ); return new CreateRule(securityGroupRuleForCreate); } public DeleteRule deleteSecurityGroupRule(String id) {
public AssociateSecurityGroupAction associateSecurityGroup(String serverId, String securityGroupName) { AddSecurityGroup securityGroup = new AddSecurityGroup(); securityGroup.setName(securityGroupName); return new AssociateSecurityGroupAction(serverId, securityGroup); }
public DisassociateSecurityGroupAction disassociateSecurityGroup(String serverId, String securityGroupName) { RemoveSecurityGroup securityGroup = new RemoveSecurityGroup(); securityGroup.setName(securityGroupName); return new DisassociateSecurityGroupAction(serverId, securityGroup); }
public UpdateServer update(String serverId, String name, String accessIPv4, String accessIPv6) { Server server = new Server(); // server.setName(name); // server.setAccessIPv4(accessIPv4); // server.setAccessIPv6(accessIPv6); return new UpdateServer(serverId, server); }
public AssociateFloatingIpAction associateFloatingIp(String serverId, String floatingIpAddress) { com.woorea.openstack.nova.model.ServerAction.AssociateFloatingIp action = new com.woorea.openstack.nova.model.ServerAction.AssociateFloatingIp(floatingIpAddress); return new AssociateFloatingIpAction(serverId, action); }
public void addNetworks(String id, String fixedIp) { NetworkForCreate net = new NetworkForCreate(); net.setId(id); net.setFixedIp(fixedIp); this.networks.add(net); }
@Override public String toString() { return "KeyPairs [list=" + getList() + "]"; }
public ChangePasswordAction changePassword(String serverId, String adminPass) { ChangePassword changePassword = new ChangePassword(); changePassword.setAdminPass(adminPass); return new ChangePasswordAction(serverId, changePassword); }
public CreateRule createSecurityGroupRule( String parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); }
@Override public String toString() { return "KeyPairs [list=" + getList() + "]"; }
public CreateRule createSecurityGroupRule( String parentSecurityGroupId,String sourceGroupId,String ipProtocol, Integer fromPort, Integer toPort) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, sourceGroupId,ipProtocol, fromPort, toPort ); return new CreateRule(securityGroupRuleForCreate); } public DeleteRule deleteSecurityGroupRule(String id) {
public CreateRule createSecurityGroupRule( String parentSecurityGroupId, String ipProtocol, Integer fromPort, Integer toPort, String cidr) { SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate( parentSecurityGroupId, ipProtocol, fromPort, toPort, cidr); return new CreateRule(securityGroupRuleForCreate); }