![JAR search and dependency download from the Maven repository](/logo.png)
com.woorea.openstack.nova.api.HypervisorsResource Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (C) 2016 AT&T Intellectual Property. All rights reserved. This code is licensed under the Apache License, Version 2.0
*******************************************************************************/
package com.woorea.openstack.nova.api;
import java.util.HashMap;
import com.woorea.openstack.base.client.Entity;
import com.woorea.openstack.base.client.HttpMethod;
import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.nova.model.Hypervisor;
import com.woorea.openstack.nova.model.Hypervisors;
/**
* Model for HypervisorsResource
*
*/
public class HypervisorsResource {
private final OpenStackClient CLIENT;
public HypervisorsResource(OpenStackClient client) {
this.CLIENT = client;
}
public class List extends OpenStackRequest {
public List(boolean detail) {
super(CLIENT, HttpMethod.GET, detail ? "/os-hypervisors/detail" : "/os-hypervisors", null, Hypervisors.class);
}
}
public class Show extends OpenStackRequest {
public Show(String id) {
super(CLIENT, HttpMethod.GET, new StringBuilder("/os-hypervisors/").append(id), null, Hypervisor.class);
}
}
public List list(boolean detail) {
return new List(detail);
}
public Show show(String id) {
return new Show(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy