def __init__(self):
    super(SettingAutofailover, self).__init__()
    self.parser.prog = 'couchbase-cli setting-autofailover'
    group = self.parser.add_argument_group('Auto-failover settings')
    group.add_argument('--enable-auto-failover', dest='enabled', metavar='<1|0>', choices=['0', '1'], help='Enable/disable auto-failover')
    group.add_argument('--auto-failover-timeout', dest='timeout', metavar='<seconds>', type=int, help='The auto-failover timeout')
    group.add_argument('--enable-failover-of-server-groups', dest='enable_failover_of_server_groups', metavar='<1|0>', choices=['0', '1'], help='Enable/disable auto-failover of server Groups')
    group.add_argument('--max-failovers', dest='max_failovers', metavar='<1|2|3>', choices=['1', '2', '3'], help='Maximum number of times an auto-failover event can happen')
    group.add_argument('--enable-failover-on-data-disk-issues', dest='enable_failover_on_data_disk_issues', metavar='<1|0>', choices=['0', '1'], help=('Enable/disable auto-failover when the Data Service reports disk issues. ' + 'Couchbase Server Enterprise Edition only.'))
    group.add_argument('--failover-data-disk-period', dest='failover_on_data_disk_period', metavar='<seconds>', type=int, help='The amount of time the Data Serivce disk failures has to be happening for to trigger an auto-failover')
    group.add_argument('--can-abort-rebalance', metavar='<1|0>', choices=['1', '0'], dest='can_abort_rebalance', help='Enables auto-failover to abort rebalance and perform the failover. (EE only)')
def __init__(self):
    super(SettingAutofailover, self).__init__()
    self.parser.prog = 'couchbase-cli setting-autofailover'
    group = self.parser.add_argument_group('Auto-failover settings')
    group.add_argument('--enable-auto-failover', dest='enabled', metavar='<1|0>', choices=['0', '1'], help='Enable/disable auto-failover')
    group.add_argument('--auto-failover-timeout', dest='timeout', metavar='<seconds>', type=int, help='The auto-failover timeout')
    group.add_argument('--enable-failover-of-server-groups', dest='enable_failover_of_server_groups', metavar='<1|0>', choices=['0', '1'], help='Enable/disable auto-failover of server Groups')
    group.add_argument('--max-failovers', dest='max_failovers', metavar='<1|2|3>', choices=['1', '2', '3'], help='Maximum number of times an auto-failover event can happen')
    group.add_argument('--enable-failover-on-data-disk-issues', dest='enable_failover_on_data_disk_issues', metavar='<1|0>', choices=['0', '1'], help=('Enable/disable auto-failover when the Data Service reports disk issues. ' + 'Couchbase Server Enterprise Edition only.'))
    group.add_argument('--failover-data-disk-period', dest='failover_on_data_disk_period', metavar='<seconds>', type=int, help='The amount of time the Data Serivce disk failures has to be happening for to trigger an auto-failover')
    group.add_argument('--can-abort-rebalance', metavar='<1|0>', choices=['1', '0'], dest='can_abort_rebalance', help='Enables auto-failover to abort rebalance and perform the failover. (EE only)')