2 * Copyright (c) 2015 IBM Corporation and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.spi;
11 import java.util.List;
13 public interface INeutronMeteringLabelCRUD {
16 * Applications call this interface method to determine if a particular
17 *NeutronMeteringLabel object exists
20 * UUID of the NeutronMeteringLabel object
24 boolean neutronMeteringLabelExists(String uuid);
27 * Applications call this interface method to return if a particular
28 * NeutronMeteringLabel object exists
31 * UUID of the NeutronMeteringLabel object
32 * @return {@link org.opendaylight.neutron.spi.NeutronMeteringLabel}
33 * OpenStackNeutronMeteringLabel class
36 NeutronMeteringLabel getNeutronMeteringLabel(String uuid);
39 * Applications call this interface method to return all NeutronMeteringLabel objects
41 * @return List of OpenStackNetworks objects
44 List<NeutronMeteringLabel> getAllNeutronMeteringLabels();
47 * Applications call this interface method to add a NeutronMeteringLabel object to the
51 * OpenStackNetwork object
52 * @return boolean on whether the object was added or not
55 boolean addNeutronMeteringLabel(NeutronMeteringLabel input);
58 * Applications call this interface method to remove a Neutron NeutronMeteringLabel object to the
62 * identifier for the NeutronMeteringLabel object
63 * @return boolean on whether the object was removed or not
66 boolean removeNeutronMeteringLabel(String uuid);
69 * Applications call this interface method to edit a NeutronMeteringLabel object
72 * identifier of the NeutronMeteringLabel object
74 * OpenStackNeutronMeteringLabel object containing changes to apply
75 * @return boolean on whether the object was updated or not
78 boolean updateNeutronMeteringLabel(String uuid, NeutronMeteringLabel delta);
81 * Applications call this interface method to see if a MAC address is in use
84 * identifier of the NeutronMeteringLabel object
85 * @return boolean on whether the macAddress is already associated with a
89 boolean neutronMeteringLabelInUse(String uuid);