001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.yarn.api.records;
020
021import org.apache.hadoop.classification.InterfaceAudience.Public;
022import org.apache.hadoop.classification.InterfaceStability.Stable;
023
024/**
025 * {@code ReservationACL} enumerates the various ACLs for reservations.
026 * <p>
027 * The ACL is one of:
028 * <ul>
029 *   <li>
030 *     {@link #ADMINISTER_RESERVATIONS} - ACL to create, list, update and
031 *     delete reservations.
032 *   </li>
033 *   <li> {@link #LIST_RESERVATIONS} - ACL to list reservations. </li>
034 *   <li> {@link #SUBMIT_RESERVATIONS} - ACL to create reservations. </li>
035 * </ul>
036 * Users can always list, update and delete their own reservations.
037 */
038@Public
039@Stable
040public enum ReservationACL {
041  /**
042   * ACL to create, list, update and delete reservations.
043   */
044  ADMINISTER_RESERVATIONS,
045
046  /**
047   * ACL to list reservations.
048   */
049  LIST_RESERVATIONS,
050
051  /**
052   * ACL to create reservations.
053   */
054  SUBMIT_RESERVATIONS
055
056}