Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.onosproject.teyang.api; |
| 17 | |
| 18 | /** |
| 19 | * The operation type. |
| 20 | */ |
| 21 | public enum OperationType { |
| 22 | |
| 23 | /** |
| 24 | * The configuration data identified by the element |
| 25 | * containing this attribute is merged with the configuration |
| 26 | * at the corresponding level in the configuration datastore. |
| 27 | */ |
| 28 | MERGE, |
| 29 | |
| 30 | /** |
| 31 | * The configuration data identified by the element |
| 32 | * containing this attribute replaces any related configuration |
| 33 | * in the configuration datastore. If no such configuration |
| 34 | * data exists in the configuration datastore, it is created. |
| 35 | */ |
| 36 | REPLACE, |
| 37 | |
| 38 | /** |
| 39 | * The configuration data identified by the element |
| 40 | * containing this attribute is added to the configuration if |
| 41 | * and only if the configuration data does not already exist in |
| 42 | * the configuration datastore. If the configuration data |
| 43 | * exists, an error is returned. |
| 44 | */ |
| 45 | CREATE, |
| 46 | |
| 47 | /** |
| 48 | * The configuration data identified by the element |
| 49 | * containing this attribute is deleted from the configuration |
| 50 | * if and only if the configuration data currently exists in |
| 51 | * the configuration datastore. If the configuration data does |
| 52 | * not exist, an error is returned". |
| 53 | */ |
| 54 | DELETE, |
| 55 | |
| 56 | /** |
| 57 | * The configuration data identified by the element |
| 58 | * containing this attribute is deleted from the configuration |
| 59 | * if the configuration data currently exists in the |
| 60 | * configuration datastore. If the configuration data does not |
| 61 | * exist, the "remove" operation is silently ignored by the |
| 62 | * server. |
| 63 | */ |
| 64 | REMOVE, |
| 65 | |
| 66 | /** |
| 67 | * The node is used as a containment node to reach the child node, |
| 68 | * There is no change in the data store for the values of this node in the |
| 69 | * edit request. |
| 70 | */ |
| 71 | NONE, |
| 72 | |
| 73 | // /** |
| 74 | // * The YANG based request is to edit a config node / subtree in the data |
| 75 | // * store. |
| 76 | // */ |
| 77 | // EDIT_CONFIG, |
| 78 | // |
| 79 | // /** |
| 80 | // * The YANG based request is to query a config node / subtree in the data |
| 81 | // * store. |
| 82 | // */ |
| 83 | // QUERY_CONFIG, |
| 84 | // |
| 85 | /** |
| 86 | * The YANG based request is to query a node / subtree in the data store. |
| 87 | */ |
| 88 | QUERY, |
| 89 | |
| 90 | // /** |
| 91 | // * The YANG based request is to execute an RPC defined in YANG. |
| 92 | // */ |
| 93 | // RPC, |
| 94 | // |
| 95 | // /** |
| 96 | // * The YANG based request is to execute an RPC defined in YANG. |
| 97 | // */ |
| 98 | // NOTIFICATION |
| 99 | } |