2 * Copyright (C) 2014 Red Hat, Inc. 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 public 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.neutron.spi.NeutronMeteringLabel}
33 * OpenStackNeutronMeteringLabel class
36 public NeutronMeteringLabel getNeutronMeteringLabel(String uuid);
39 * Applications call this interface method to return all NeutronMeteringLabel objects
41 * @return List of OpenStackNetworks objects
44 public 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 public 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 public 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 public 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 public boolean neutronMeteringLabelInUse(String uuid);