com.huawei.openstack4j.api.networking.ext.AgentService Maven / Gradle / Ivy
/*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*******************************************************************************/
package com.huawei.openstack4j.api.networking.ext;
import java.util.List;
import com.huawei.openstack4j.common.RestService;
import com.huawei.openstack4j.model.network.Agent;
/**
* Networking (Neutron) Agent Extension API
*
* @author Yin Zhang
*/
public interface AgentService extends RestService {
/**
* List neutron agents.
*
* @return a list of available neutron agents
*/
List list();
/**
* Returns the agent with agentId.
*
* @param agentId id of agent
* @return agent
*/
Agent getAgent(String agentId);
/**
* Sets the admin_state_up.
*
* @param agentId the id of the agent to set state for
* @param state the state to set
* @return a new reference to the updated agent
*/
Agent setAdminStateUp(String agentId, boolean state);
}