def enable(enable = true, reason = nil, options = {})
      custom_params = []
      custom_params << use_named_parameter('enable', enable.to_s)
      custom_params << use_named_parameter('reason', reason) if reason
      custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]
      raw = send_put_request(@conn, ['/v1/agent/maintenance'], options, nil, custom_params)

      return_status = raw.status == 200
      raise Diplomat::UnknownStatus, "status #{raw.status}: #{raw.body}" unless return_status

      return_status
    end
def enable(enable = true, reason = nil, options = {})
      custom_params = []
      custom_params << use_named_parameter('enable', enable.to_s)
      custom_params << use_named_parameter('reason', reason) if reason
      custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]
      raw = send_put_request(@conn, ['/v1/agent/maintenance'], options, nil, custom_params)

      return_status = raw.status == 200
      raise Diplomat::UnknownStatus, "status #{raw.status}: #{raw.body}" unless return_status

      return_status
    end
Enable or disable maintenance mode.  This endpoint only works
 on the local agent.
 @param enable enable or disable maintenance mode
 @param reason [String] the reason for enabling maintenance mode
 @param options [Hash] :dc string for dc specific query
 @return true if call is successful