作者:手机用户2502873151 | 来源:互联网 | 2023-08-29 14:34
本文整理了Java中com.woorea.openstack.nova.model.KeyPairs.getList()
方法的一些代码示例,展示了KeyPairs.getList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyPairs.getList()
方法的具体详情如下:
包路径:com.woorea.openstack.nova.model.KeyPairs
类名称:KeyPairs
方法名:getList
KeyPairs.getList介绍
暂无
代码示例
代码示例来源:origin: org.onap.so.libs.openstack-java-sdk/nova-model
@Override
public String toString() {
return "KeyPairs [list=" + getList() + "]";
}
代码示例来源:origin: com.att.woorea/nova-model
@Override
public String toString() {
return "KeyPairs [list=" + getList() + "]";
}
代码示例来源:origin: woorea/openstack-java-sdk
@Override
public String toString() {
return "KeyPairs [list=" + getList() + "]";
}
代码示例来源:origin: com.att.woorea/nova-model
@Override
public Iterator iterator() {
return getList().iterator();
}
代码示例来源:origin: org.onap.so.libs.openstack-java-sdk/nova-model
@Override
public Iterator iterator() {
return getList().iterator();
}
代码示例来源:origin: woorea/openstack-java-sdk
@Override
public Iterator iterator() {
return getList().iterator();
}
代码示例来源:origin: com.att.cdp/cdp-pal-openstack
EELFResourceManager.format(OSMsg.PAL_OS_REQUEST_FAILURE, "get key-pair " + name), e);
if (pairs == null || pairs.getList() == null) {
return null;
for (com.woorea.openstack.nova.model.KeyPair pair : pairs.getList()) {
if (pair.getName().equals(name)) {
return new OpenStackKeyPair(context, pair);
代码示例来源:origin: com.att.cdp/cdp-pal-openstack
/**
* @see com.att.cdp.zones.IdentityService#getKeyPairs()
*/
@SuppressWarnings("nls")
@Override
public List getKeyPairs() throws ZoneException {
trackRequest();
Context cOntext= getContext();
if (context.isLoggedIn()) {
NovaConnector cOnnector= ((OpenStackContext) context).getNovaConnector();
KeyPairs pairs = null;
try {
pairs = connector.getClient().keyPairs().list().execute();
} catch (OpenStackConnectException e) {
throw new ContextConnectionException(EELFResourceManager.format(OSMsg.PAL_OS_CONNECTION_FAILED,
"Compute", connector.getEndpoint()), e);
} catch (OpenStackResponseException e) {
throw new ZoneException(EELFResourceManager.format(OSMsg.PAL_OS_REQUEST_FAILURE, "get key-pair list"),
e);
}
ArrayList list = new ArrayList<>();
for (com.woorea.openstack.nova.model.KeyPair pair : pairs.getList()) {
OpenStackKeyPair kp = new OpenStackKeyPair(context, pair);
list.add(kp);
}
return list;
}
throw new ZoneException(
"Unable to retrieve key-pairs when the context has not been logged in and authenticated");
}
代码示例来源:origin: woorea/openstack-java-sdk
serverForCreate.setFlavorRef(flavors.getList().get(0).getId());
serverForCreate.setImageRef(images.getList().get(1).getId());
serverForCreate.setKeyName(keysPairs.getList().get(0).getName());
serverForCreate.getSecurityGroups()
.add(new ServerForCreate.SecurityGroup("default"));