def __init__(self):
    super(BucketEdit, self).__init__()
    self.parser.prog = 'couchbase-cli bucket-edit'
    group = self.parser.add_argument_group('Bucket edit options')
    group.add_argument('--bucket', dest='bucket_name', metavar='<name>', required=True, help='The name of bucket to create')
    group.add_argument('--bucket-ramsize', dest='memory_quota', metavar='<quota>', type=int, help='The amount of memory to allocate the bucket')
    group.add_argument('--bucket-replica', dest='replica_count', metavar='<num>', choices=['0', '1', '2', '3'], help='The replica count for the bucket')
    group.add_argument('--bucket-priority', dest='priority', metavar='<priority>', choices=['low', 'high'], help='The bucket disk io priority (low or high)')
    group.add_argument('--durability-min-level', dest='durability_min_level', metavar='<level>', choices=['none', 'majority', 'majorityAndPersistActive', 'persistToMajority'], help='The bucket durability minimum level')
    group.add_argument('--bucket-eviction-policy', dest='eviction_policy', metavar='<policy>', type=str, help='The bucket eviction policy (valueOnly or fullEviction)')
    group.add_argument('--max-ttl', dest='max_ttl', default=None, type=int, metavar='<seconds>', help='Set the maximum TTL the bucket will accept')
    group.add_argument('--compression-mode', dest='compression_mode', choices=['off', 'passive', 'active'], metavar='<mode>', help='Set the compression mode of the bucket')
    group.add_argument('--enable-flush', dest='enable_flush', metavar='<0|1>', choices=['0', '1'], help='Enable bucket flush on this bucket (0 or 1)')
    group.add_argument('--remove-bucket-port', dest='remove_port', metavar='<0|1>', choices=['0', '1'], help='Removes the bucket-port setting')
    group.add_argument('--database-fragmentation-threshold-percentage', dest='db_frag_perc', metavar='<perc>', type=int, help='Set Database Fragmentation level percent')
    group.add_argument('--database-fragmentation-threshold-size', dest='db_frag_size', metavar='<mebibytes>', type=int, help='Set Database Fragmentation level')
    group.add_argument('--view-fragmentation-threshold-percentage', dest='view_frag_perc', metavar='<perc>', type=int, help='Set View Fragmentation level percent')
    group.add_argument('--view-fragmentation-threshold-size', dest='view_frag_size', metavar='<mebibytes>', type=int, help='Set View Fragmentation level size')
    group.add_argument('--from-hour', dest='from_hour', metavar='<hour>', type=int, help='Set start time hour')
    group.add_argument('--from-minute', dest='from_min', metavar='<min>', type=int, help='Set start time minutes')
    group.add_argument('--to-hour', dest='to_hour', metavar='<hour>', type=int, help='Set end time hour')
    group.add_argument('--to-minute', dest='to_min', metavar='<min>', type=int, help='Set end time minutes')
    group.add_argument('--abort-outside', dest='abort_outside', metavar='<0|1>', choices=['0', '1'], help='Allow Time period')
    group.add_argument('--parallel-db-view-compaction', dest='paralleldb_and_view_compact', metavar='<0|1>', choices=['0', '1'], help='Set parallel DB and View Compaction')
    group.add_argument('--purge-interval', dest='purge_interval', type=float, metavar='<num>', help='Set the bucket metadata purge interval')
def __init__(self):
    super(BucketEdit, self).__init__()
    self.parser.prog = 'couchbase-cli bucket-edit'
    group = self.parser.add_argument_group('Bucket edit options')
    group.add_argument('--bucket', dest='bucket_name', metavar='<name>', required=True, help='The name of bucket to create')
    group.add_argument('--bucket-ramsize', dest='memory_quota', metavar='<quota>', type=int, help='The amount of memory to allocate the bucket')
    group.add_argument('--bucket-replica', dest='replica_count', metavar='<num>', choices=['0', '1', '2', '3'], help='The replica count for the bucket')
    group.add_argument('--bucket-priority', dest='priority', metavar='<priority>', choices=['low', 'high'], help='The bucket disk io priority (low or high)')
    group.add_argument('--durability-min-level', dest='durability_min_level', metavar='<level>', choices=['none', 'majority', 'majorityAndPersistActive', 'persistToMajority'], help='The bucket durability minimum level')
    group.add_argument('--bucket-eviction-policy', dest='eviction_policy', metavar='<policy>', type=str, help='The bucket eviction policy (valueOnly or fullEviction)')
    group.add_argument('--max-ttl', dest='max_ttl', default=None, type=int, metavar='<seconds>', help='Set the maximum TTL the bucket will accept')
    group.add_argument('--compression-mode', dest='compression_mode', choices=['off', 'passive', 'active'], metavar='<mode>', help='Set the compression mode of the bucket')
    group.add_argument('--enable-flush', dest='enable_flush', metavar='<0|1>', choices=['0', '1'], help='Enable bucket flush on this bucket (0 or 1)')
    group.add_argument('--remove-bucket-port', dest='remove_port', metavar='<0|1>', choices=['0', '1'], help='Removes the bucket-port setting')
    group.add_argument('--database-fragmentation-threshold-percentage', dest='db_frag_perc', metavar='<perc>', type=int, help='Set Database Fragmentation level percent')
    group.add_argument('--database-fragmentation-threshold-size', dest='db_frag_size', metavar='<mebibytes>', type=int, help='Set Database Fragmentation level')
    group.add_argument('--view-fragmentation-threshold-percentage', dest='view_frag_perc', metavar='<perc>', type=int, help='Set View Fragmentation level percent')
    group.add_argument('--view-fragmentation-threshold-size', dest='view_frag_size', metavar='<mebibytes>', type=int, help='Set View Fragmentation level size')
    group.add_argument('--from-hour', dest='from_hour', metavar='<hour>', type=int, help='Set start time hour')
    group.add_argument('--from-minute', dest='from_min', metavar='<min>', type=int, help='Set start time minutes')
    group.add_argument('--to-hour', dest='to_hour', metavar='<hour>', type=int, help='Set end time hour')
    group.add_argument('--to-minute', dest='to_min', metavar='<min>', type=int, help='Set end time minutes')
    group.add_argument('--abort-outside', dest='abort_outside', metavar='<0|1>', choices=['0', '1'], help='Allow Time period')
    group.add_argument('--parallel-db-view-compaction', dest='paralleldb_and_view_compact', metavar='<0|1>', choices=['0', '1'], help='Set parallel DB and View Compaction')
    group.add_argument('--purge-interval', dest='purge_interval', type=float, metavar='<num>', help='Set the bucket metadata purge interval')