#compdef isi_classic worm

# This file was auto-generated

# Copyright C 2008-2009 by Isilon Systems, Inc. All rights not expressly
# granted herein are reserved.
# Created in the United States of America.
# 
# This digital media is protected by U.S. and international copyright and
# intellectual property laws. Unless otherwise specified, all information
# and screens appearing as part of this digital medium, including
# software, services, documents, text, images, icons, and logos design;
# the selection, assembly, arrangement, and design thereof; and the code
# that enables its presentation, are the sole property of Isilon Systems,
# Inc.
# 
# Except as otherwise required by applicable law, no part of any
# copyrighted material may be reproduced, modified, translated,
# distributed, published, or transmitted by any means, electronic or
# mechanical, for any purpose, without the prior written consent of Isilon
# Systems. 
#  
# Isilon and Isilon Systems are registered trademarks of Isilon Systems,
# Inc.  Legion is a trademark of Isilon Systems, Inc.  All other
# trademarks and registered trademarks are the property of their
# respective holders.

(( $+functions[__isi_classic_worm] )) ||
_isi_classic_worm() {
  if (( CURRENT == 2 )); then
    _tags values && { compadd $@ list create modify mkdir filedelete info cdate }
  else
    local cmd=${words[2]}
    (( CURRENT-- ))
    shift words
    if [[ $cmd == list ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-list:"
      _isi_worm_list
    elif [[ $cmd == create ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-create:"
      _isi_worm_create
    elif [[ $cmd == modify ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-modify:"
      _isi_worm_modify
    elif [[ $cmd == mkdir ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-mkdir:"
      _isi_worm_mkdir
    elif [[ $cmd == filedelete ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-filedelete:"
      _isi_worm_filedelete
    elif [[ $cmd == info ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-info:"
      _isi_worm_info
    elif [[ $cmd == cdate ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-cdate:"
      _isi_worm_cdate
    else
      _message "unknown isi worm command: $words[1]"
    fi
  fi
}
(( $+functions[_isi_worm_cdate] )) ||
_isi_worm_cdate() {
  if (( CURRENT == 2 )); then
    _tags values && { compadd $@ set }
  else
    local cmd=${words[2]}
    (( CURRENT-- ))
    shift words
    if [[ $cmd == set ]]; then
      curcontext="${curcontext%:*:*}:isi-worm-cdate-set:"
      _isi_worm_cdate_set
    else
      _message "unknown isi worm cdate command: $words[1]"
    fi
  fi
}
(( $+functions[_isi_worm_cdate_set] )) ||
_isi_worm_cdate_set() {
_arguments \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_info] )) ||
_isi_worm_info() {
_arguments \
'--path=[Absolute path to use.]' \
'--verbose[Display verbose output.]' \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_filedelete] )) ||
_isi_worm_filedelete() {
_arguments \
'--path=[Path of existing file]' \
'--force[Bypass prompting.]' \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_mkdir] )) ||
_isi_worm_mkdir() {
_arguments \
'--path=[Absolute path to create and configure for SmartLock]' \
'--override=[Override retention date, where <date> is of form 'YYYYMMDD' or 'none'.]' \
'--min=[Minimum retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' (expire right away) or 'inf' (retain forever)]' \
'--max=[Maximum retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' or 'inf' (both imply an unbounded maximum)]' \
'--default=[Default retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' (expire right away), 'inf' (retain forever), 'min' (use min offset) or 'max' (use max offset)]' \
'--autocommit=[Autocommit delay, where <offset> is a value followed by 'm', 'w', 'd', 'h' or 'n' (months, weeks, days, hours or miNutes). e.g. '3w' => 3 weeks. Can also be 'none' (disable autocommit)]' \
'--privdel=[Privileged delete state, where <string> is 'on' (allowed) 'off' (not allowed) or 'disable' (PERMANENTLY disabled) (SmartLock Enterprise directories only.)]' \
'--compliance[Make this SmartLock directory a SmartLock Compliance directory. (SmartLock Compliance clusters only.)]' \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_modify] )) ||
_isi_worm_modify() {
_arguments \
'--path=[Absolute path of existing SmartLock root directory]' \
'--id=[ID of existing SmartLock root directory]' \
'--override=[Override retention date, where <date> is of form 'YYYYMMDD' or 'none'.]' \
'--min=[Minimum retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' (expire right away) or 'inf' (retain forever)]' \
'--max=[Maximum retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' or 'inf' (both imply an unbounded maximum)]' \
'--default=[Default retention offset, where <offset> is a value followed by 'y', 'm', 'w', or 'd' (years, months, weeks, days). e.g. '3w' => 3 weeks. Can also be 'none' (expire right away), 'inf' (retain forever), 'min' (use min offset) or 'max' (use max offset)]' \
'--autocommit=[Autocommit delay, where <offset> is a value followed by 'm', 'w', 'd', 'h' or 'n' (months, weeks, days, hours or miNutes). e.g. '3w' => 3 weeks. Can also be 'none' (disable autocommit)]' \
'--privdel=[Privileged delete state, where <string> is 'on' (allowed) 'off' (not allowed) or 'disable' (PERMANENTLY disabled) (SmartLock Enterprise directories only.)]' \
'--compliance[Make this SmartLock directory a SmartLock Compliance directory. (SmartLock Compliance clusters only.)]' \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_create] )) ||
_isi_worm_create() {
_arguments \
'--path=[Path to enable for SmartLock]' \
'--help[Print usage help and exit]' \


}
(( $+functions[_isi_worm_list] )) ||
_isi_worm_list() {
_arguments \
'--long[Long format]' \
'--wide[Print tables wide - do not truncate]' \
'--help[Print usage help and exit]' \


}
